cast_sig
Converts an Ethereum function signature, such as transfer(address,uint256), into its 4-byte selector for use in calldata, contract calls, and ABI encoding tasks.
Instructions
Get the 4-byte function selector from a function signature (cast sig).
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": "cast_sig"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signature | Yes | Function signature, e.g. "transfer(address,uint256)" |