Chain reads
Reference functions grouped under Chain reads, with signatures, examples, and metadata generated from the Determica catalog.
- block_at Resolves a timestamp to a block boundary through an attached live client. at_or_before selects the highest block number whose timestamp is no later than the target; at_or_after selects the lowest block number whose timestamp is no earlier; closest selects the nearer timestamp.Scalar
- block_range Resolves the start and end independently with at_or_after and returns [from_block, to_block). A DATE supplies UTC midnight at the start of that day and UTC midnight at the start of the next day.Scalar
- code_at Reads an account's runtime bytecode from live RPC state, the exact state identified by a pinned CLIENT, or retained execution state. Without a CLIENT, it builds a reusable READ and does not access state.Scalar
- create_access_list Builds an EIP-2930 access list for a transaction request. Each result row identifies an accessed account or storage slot and includes request status.Table
- get_block Fetches a block by decimal height, supported block tag, or block hash. The block defaults to latest and include_transactions defaults to false.Table
- get_gas_price Returns the RPC provider's current legacy gas-price estimate as an exact UINT256 value in Wei.Scalar
- get_logs Reads logs matching emitter, inclusive block bounds, and topic filters. Live clients use eth_getLogs; retained execution clients read stored execution logs.Table
- get_transaction Fetches a transaction by hash, then makes a separate receipt request for receipt metadata.Table
- get_transaction_logs Returns logs from a transaction receipt, optionally filtered by emitter or indexed topics. Supply an event signature or JSON ABI to append typed decoded fields.Table
- latest_block Returns the latest block number reported by the RPC provider. Because the chain head moves, persist the result before using it as a reproducible boundary.Scalar
- native_balance Returns an address's native-token balance as exact Wei in live, pinned, or retained execution state. Without a CLIENT, it builds a reusable READ and does not access state.Scalar
- nonce Returns an address's transaction count in live, pinned, or retained execution state. Without a CLIENT, it builds a reusable READ and does not access state.Scalar
- raw_call Executes an isolated EVM call and returns the raw response bytes. Without a CLIENT, it builds a reusable READ and does not execute the call.Scalar
- read_contract Calls a contract function against live, pinned, or retained execution state and returns a typed SQL value. Without a CLIENT, it builds a reusable READ and does not execute the call.Scalar
- read_contract_at Calls a contract function at an explicit block number and returns ABI-decoded SQL values.Scalar
- read_contract_multicall Executes a table of encoded contract reads through Multicall3 and returns one diagnostic row per input call. Results separately report batch execution and target-call success.Table
- storage_at Returns one raw 32-byte storage word for a contract and BYTES32 slot in live, pinned, or retained execution state. Without a CLIENT, it builds a reusable READ and does not access state.Scalar