Contracts and ABI
Reference functions grouped under Contracts and ABI, with signatures, examples, and metadata generated from the Determica catalog.
- abi_encode_packed Encodes scalar values with Solidity's packed ABI rules. The result has no selector, offsets, lengths, or 32-byte padding.Scalar
- call_decode Decodes selector-free function return data into typed SQL columns defined by the function's ABI outputs.Table
- decode_function_data Validates and decodes selector-prefixed function calldata into typed SQL columns defined by the function's ABI inputs.Table
- encode_function_args Encodes function arguments with standard ABI encoding and omits the 4-byte function selector.Scalar
- encode_function_data Encodes function arguments as contract calldata: the function's 4-byte selector followed by standard ABI argument bytes.Scalar
- error_decode_json Returns a status-rich JSON description of EVM revert bytes; supply an ABI to decode matching custom errors.Scalar
- error_selector Returns a custom error's 4-byte selector by hashing already-canonical signature text exactly; use it to identify revert payloads.Scalar
- error_selector_json Returns the 4-byte selector for a custom error described by JSON ABI; use it to identify revert payloads.Scalar
- event_decode Returns one EVM log as ABI-derived typed columns; use it when a constant event ABI can define the SQL schema at bind time.Table
- event_decode_json Returns decoded EVM event arguments as compact JSON; use it for already-materialized topics and data when malformed input should produce NULL.Scalar
- event_signature Returns EVM topic0 by hashing already-canonical event signature text exactly; use it to filter non-anonymous logs.Scalar
- event_signature_json Returns EVM topic0 for an event described by JSON ABI; use it to filter or validate non-anonymous logs.Scalar
- evm_abi_word Encodes a supported scalar as exactly one 32-byte Solidity ABI word. Addresses and unsigned integers are left-padded; signed integers are sign-extended.Scalar
- evm_decode_log_for Returns a log diagnostic using the ABI registered locally for a chain, emitter, and block; use it when ABI selection depends on contract context.Scalar
- evm_decode_revert_for Returns a revert diagnostic using the ABI registered locally for a chain, contract, and block; use it when ABI selection depends on contract context.Scalar
- evm_register_contract_abi Stores contract ABI metadata in the current database for block-aware log and revert decoding.Scalar
- function_selector Returns the 4-byte Keccak-256 selector for an already-canonical function signature. The input bytes are hashed exactly and are not normalized.Scalar
- function_selector_json Builds the canonical signature for a JSON ABI function fragment and returns its 4-byte Keccak-256 selector.Scalar
- log_decode_json Returns a status-rich JSON description of one EVM log; use it when unknown, ambiguous, and malformed logs must remain distinguishable.Scalar
- parse_abi_event Returns a JSON ABI event fragment parsed from Solidity event syntax; use it with log filters and decoders.Scalar