get_function_selector
Compute the 4-byte function selector for any Solidity function signature to get the EVM bytecode used in contract calls.
Instructions
Compute the 4-byte function selector for a Solidity function signature
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": "get_function_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signature | Yes | The function signature (e.g., 'transfer(address,uint256)') |