Function selector and event topic for a Solidity signature
evm_selectorFunction selector and event topic for a Solidity signature. Normalizes a function/event/error signature (drops parameter names, expands uint to uint256, handles tuples and arrays) and returns the 4-byte selector and the 32-byte event topic. No network access. Price: $0.003 USDC per call via x402 (eip155:8453).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"signature": "<signature>"
},
"name": "evm_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signature | Yes | e.g. transfer(address to, uint256 amount) |