Options
The default block selector is latest. block_number is preferred over blockNumber, and either takes precedence over block_tag.
on_error is preferred over onError. The default is raise; null converts reverts, ABI result-decode errors (including empty return data from an address without code) and decoded output-count mismatches to NULL. Transport, rate-limit and archive failures still raise, as do invalid options, arguments, ABI encoding, client-state errors and return_schema cast failures.
null_on_failure also gives NULL for a read the node could not answer, for a caller that records it as unread instead of reading NULL as a value.
A null block_number, or a NULL options value on a row, gives NULL without a call. An unknown option key raises.
rpc_batch_size defaults to 100 and must be an integer of at least 1.
- Pinned and retained execution CLIENT values require the resolved block selector to be latest. read_contract_at and options that select another block are rejected for those states.
Live RPC