RPC
Reference functions grouped under RPC, with signatures, examples, and metadata generated from the Determica catalog.
- block_at Convert a timestamp/date to a block number. Essential for querying blockchain events by date - use with get_logs to fetch transfers, swaps, or any events on a specific day or time range.Scalar
- block_range Get the block range for a specific date or time period. Perfect for querying all events (transfers, swaps, mints) that happened on a particular day or within a date range on Ethereum, Base, or other EVM chains.Scalar
- call Invokes eth_call using the provided transport, target address, and calldata, returning the raw bytes.Scalar
- event_decode_json Decodes raw EVM log topics/data with a JSON event ABI fragment and returns a JSON object keyed by ABI input name.Scalar
- get_balance Returns the Wei-denominated account balance via eth_getBalance through the configured transport.Scalar
- get_block Retrieves block metadata via eth_getBlockBy* endpoints using the canonical schema. When include_transactions is false, use transactions for transaction hashes; when include_transactions is true, use transactions_full for expanded transaction objects.Table
- get_code Retrieves deployed EVM bytecode via eth_getCode, returning NULL for EOAs or pre-deploy addresses.Scalar
- get_logs Streams contract logs via eth_getLogs, decoding topics with human-readable signatures or ABI. Named parameters for topic filtering (available on all overloads): - topic0 := BYTES32 or BYTES32[] - Filter raw topic0 (useful when no event ABI/signature is supplied) - topic1 := BYTES32 or BYTES32[] - Filter first indexed parameter (exact match or OR) - topic2 := BYTES32 or BYTES32[] - Filter second indexed parameter - topic3 := BYTES32 or BYTES32[] - Filter third indexed parameter For Transfer events: topic1=from, topic2=to. Use NULL::ADDRESS to match all contracts.Table
- get_storage_at Retrieves raw storage slot values via eth_getStorageAt for EVM forensics, bytecode analysis, and state inspection. Returns 32-byte BYTES32 values suitable for low-level contract state research. This RPC helper accepts a numeric UINT256 slot; simulation storage helpers use BYTES32 slots, so be explicit about casts and slot encoding when moving between RPC reads and simulation overlays.Scalar
- get_transaction Retrieves transaction metadata and receipt context via eth_getTransactionByHash and eth_getTransactionReceipt with strict hash validation.Table
- get_transaction_logs Retrieves receipt-scoped transaction logs via eth_getTransactionReceipt and decodes matching events. Named parameters: - address := ADDRESS to restrict to one emitting contract inside the receipt - addresses := ADDRESS[] to restrict to multiple contracts inside the receipt - topic0..topic3 := BYTES32 or BYTES32[] for exact/OR topic filteringTable
- latest_block Get the current block number (chain head/tip). Use to find the most recent block on Ethereum, Base, or other EVM chains.Scalar
- read_contract Invokes eth_call with ABI-aware argument encoding. Returns a single value if the ABI function has one output, or a STRUCT with named fields if multiple outputs. Determica needs output types at planning time: constant ABI literals can be inferred, while dynamic ABI values require the return_schema overload.Scalar
- read_contract_result Invokes eth_call with ABI-aware argument encoding and returns one row containing RPC/decode diagnostics plus ABI-derived output columns.Table