Choose a selector source
Use function_selector_json when the source of truth is a JSON ABI fragment. It preserves tuple and array structure and normalizes uint and int aliases before hashing.
- Use function_selector for signature text that is already canonical.
- Use encode_function_data when complete selector-prefixed calldata is required.
- Use event_signature for event topic0.
Local SQL