Japanese version: /ja/doc/rpc/state.html
State Methods
TL;DR
- Provides
eth_getBalance,eth_getTransactionCount,eth_getCode, andeth_getStorageAt. - blockTag accepts
latest/pending/safe/finalized/earliest/QUANTITY, but historical support is limited for many methods.
Methods
eth_getBalance->rpc_eth_get_balanceeth_getTransactionCount->rpc_eth_get_transaction_count_ateth_getCode->rpc_eth_get_codeeth_getStorageAt->rpc_eth_get_storage_at
Key Constraints
- balance/code/storage: historical reads other than head-equivalent can return
state unavailable/ out-of-window - tx count:
pendingreturns pending nonce;earliestand historical nonce are currently unavailable
See ../compatibility/json-rpc-deviations.md and ./overview.md for details.
Sources
tools/rpc-gateway/src/handlers.tscrates/ic-evm-rpc/src/lib.rstools/rpc-gateway/README.md