Contract read workflow fit
A literal or foldable ABI lets the binder infer the exact SQL return type from Solidity outputs.
When the ABI comes from a CTE, materialized CTE, table, or other row value, use the options + return_schema overload.
The default block context is latest. For reproducible historical reads, pass options with block_number or blockNumber.
- block_number/blockNumber takes precedence over block_tag.
- on_error/onError accepts raise or null.
- rpc_batch_size must be an integer greater than or equal to 1.
- Use raw_call/call_decode for raw single-call diagnostics.
- Use encode_function_data, read_contract_multicall, and call_decode for table-shaped batched reads.
Named parameters · RPC required