Get Function Signatures
4byteRetrieve Ethereum function signatures using a 4-byte hex selector from the 4byte.directory database. Simplify smart contract interactions by identifying function details quickly and accurately.
Instructions
Get function signatures for the given selector from 4byte.directory
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": {
"selector": "<selector>"
},
"name": "4byte"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | Function selector (4-byte hex), e.g., '0xa9059cbb' or 'a9059cbb' |