Choose an event decoder
Use event_decode for typed table output when the event ABI is constant while the query is planned.
Use event_decode_json for compact JSON from already-materialized topics and data. Use log_decode_json when unknown, ambiguous, and decode-error statuses must remain visible.
Use evm_decode_log_for when ABI selection depends on a registered chain, address, and block range.
- Both scalar arguments and a single relation input are accepted. The constant event ABI determines the bind-time output schema.
- The canonical sample reconstructs USDC transaction 0x5cbf...3dde, log index 97, at Ethereum block 20,000,000 without an RPC call.
- Non-anonymous topics begin with topic0; anonymous topics begin with the first indexed parameter.
- Indexed dynamic values are returned as BYTES32 hashes. A mismatched non-anonymous topic0 is currently not rejected.
- Malformed topics or data raise an error.