Function signatures for a 4-byte selector, and for calldata
evm_decodeFunction signatures for a 4-byte selector, and for calldata the decoded arguments. Signatures come from the openchain.xyz database, with 4byte.directory as fallback. Calldata is decoded against each candidate until one fits the selector and the arguments; bigints are returned as strings. Read-only. Related tools on this server, for a different need: evm_call when you need to read the result of a read-only EVM contract function; evm_address when you need native balance, nonce and account type of an EVM address. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "evm_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Calldata, 0x followed by hex (at least 4 bytes) | |
| selector | No | Or only the selector: 0x followed by 8 hex characters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | No | ||
| decoded | No | ||
| selector | No | ||
| checkedAt | No | ||
| signatures | No |