This page is a placeholder. All examples on this page are currently AI-generated and are not correct. This documentation will be completed in the future with accurate, tested examples.
State methods query account balances, contract bytecode, storage, and Merkle proofs at specific block heights.
eth_getBalance
Get ether balance of an address.
Parameters:
address: Address - Account address
blockTag: BlockTag - Block to query
Usage:
eth_getCode
Get contract bytecode at an address.
Parameters:
address: Address - Contract address
blockTag: BlockTag - Block to query
Usage:
eth_getStorageAt
Get value from a contract storage slot.
Parameters:
address: Address - Contract address
position: Quantity - Storage slot
blockTag: BlockTag - Block to query
Usage:
eth_getProof
Get Merkle proof for account and storage values.
Parameters:
address: Address - Account address
storageKeys: Quantity[] - Storage slots to prove
blockTag: BlockTag - Block to query
Usage:
Proof structure:
Common Patterns
Check account type
Verify state proof
Read contract state