Base
Prêt à utiliser cela en production ?
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
Base
Le niveau gratuit couvre les projets personnels. Le paiement à l'usage évolue sans carte bancaire.
eth_getProof returns an account's core fields — balance, nonce, codeHash, storageHash — together with Merkle-Patricia trie proofs for the account itself and for any storage slots you request. Those proofs let a verifier confirm the values against the block's stateRoot without trusting the node. Base is Coinbase's OP Stack optimistic rollup that settles to Ethereum L1 and meters gas in ETH, so verifiable state reads matter for bridges and light clients that anchor on L1. Call it at https://base.therpc.io/YOUR_API_KEY (chain ID 8453, hex 0x2105) with an address, an array of storage keys, and a block tag.
stateRoot.| # | Nom | Type | Obligatoire | Description |
|---|---|---|---|---|
| 1 | address | string (hex) | Oui | The account to generate proofs for. |
| 2 | storageKeys | array of string (hex) | Oui | Storage slots to include in the storage proof. |
| 3 | blockTag | string | Non | Block at which to generate the proof.Défaut : latest |
| Type | Description |
|---|---|
| object | Object containing: address, balance (hex wei), codeHash (hex), nonce (hex), storageHash (hex), accountProof (array of hex-encoded RLP trie nodes), storageProof (array of {key, value, proof} objects). |
Try it live in the Base playground.
| Code | Message | Cause |
|---|---|---|
-32602 | Invalid params | Address malformed or a storage key is not 32 bytes. |
-32000 | Missing trie node | Block is too old and the node has pruned state (non-archive node). |
eth_getStorageAt hands you the raw value with far less work.Missing trie node.stateRoot in the corresponding Base block header; an unanchored accountProof proves nothing.Paramètres
0x-prefixed 20-byte address
array of 32-byte hex slot indices, may be empty []
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"