Selector, topic0, calldata, and return data
Use error_selector or error_selector_json to match revert data selectors before decoding or classifying custom errors. The JSON helper derives canonical input types and ignores parameter names.
- Canonical signatures omit parameter names and spaces.
- Use function_selector for calldata selectors.
- Use event_signature for event topic0.
Local SQL
{"id":"sample_3cxipr","title":"Sample","code":"SELECT error_selector('InsufficientBalance(uint256,uint256)') AS selector;"}
Notebook ready in readonly mode.