{"slug":"web3-tools-x402tookit-com-function-selector-81b8c9","title":"Compute the 4-byte function selector and event topic0 from a Solidity signature ","host":"web3-tools.x402tookit.com","method":"GET","resource":"https://web3-tools.x402tookit.com/function-selector","category":"other","description":"Compute the 4-byte function selector and event topic0 from a Solidity signature such as transfer(address,uint256).","price_listed":0.02,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":2,"reported_payers_30d":1,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"signature":"transfer(address,uint256)"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"signature":{"description":"Canonical signature: name(type,type), no spaces or parameter names","type":"string"}},"required":["signature"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"asOf":{"type":["null","string"]},"degraded":{"type":["boolean","null"]},"disclaimer":{"type":["null","string"]},"name":{"type":["null","string"]},"notChecked":{"items":{"type":"string"},"type":["array","null"]},"paramList":{"type":["null","string"]},"reasons":{"items":{"type":"string"},"type":["array","null"]},"selector":{"type":["null","string"]},"signature":{"type":["null","string"]},"source":{"type":["null","string"]},"summary":{"type":["null","string"]},"topic0":{"type":["null","string"]},"verdict":{"type":["null","string"]},"warnings":{"type":["array","null"]}},"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Compute the 4-byte function selector and event topic0 from a Solidity signature such as transfer(address,uint256).","last_updated":"2026-10-20T20:03:33.19Z","schemes":["exact"]}