rpc
Category
Auto-generated documentation for the rpc bag.watch functions.
- 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#rpc
- 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#rpc
- call Invokes eth_call using the provided transport, target address, and calldata, returning the raw bytes.Scalar#rpc
- get_balance Returns the Wei-denominated account balance via eth_getBalance through the configured transport.Scalar#rpc
- get_block Retrieves block metadata via eth_getBlockBy* endpoints using the canonical schema.Table#rpc
- get_code Retrieves deployed EVM bytecode via eth_getCode, returning NULL for EOAs or pre-deploy addresses.Scalar#rpc
- 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): - 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#rpc
- 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.Scalar#rpc
- get_transaction Retrieves canonical transaction metadata via eth_getTransactionByHash with strict hash validation.Table#rpc
- 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#rpc
- 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.Scalar#rpc