chain_selector
Function selector and event topic calculator — Compute the 4-byte function selector (or error selector) and the 32-byte event topic0 for Solidity signatures with keccak-256, offline. Accepts human-readable signatures with parameter names, indexed and memory modifiers, uint/int shorthands and tuples (e.g. function transfer(address to, uint amount) or event Transfer(address indexed from,address indexed to,uint256 value)); returns the canonical form, selector, full hash and known-function matches. signature= required; up to 20 separated by ;. Price: $0.001 USDC (Base, via x402).
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": "chain_selector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signature | Yes | transfer(address,uint256) |