Avalanche
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Avalanche
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
eth_getProof returns an account's core fields on the Avalanche C-Chain — balance (in AVAX wei), nonce, codeHash, and storageHash — together with Merkle-Patricia trie proofs for the account and for any storage slots you request. The proofs let a verifier check that the values truly belong under the block's stateRoot without trusting the RPC node, which is the foundation for light clients and cross-chain bridges over the C-Chain. Call it against https://avalanche.therpc.io/YOUR_API_KEY (chain ID 43114, 0xa86a) with an address, a list of storage keys (possibly empty), and a block tag.
stateRoot.| # | Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|---|
| 1 | address | string (hex) | Sim | The account to generate proofs for. |
| 2 | storageKeys | array of string (hex) | Sim | Storage slots to include in the storage proof. |
| 3 | blockTag | string | Não | Block at which to generate the proof.Padrão: latest |
| Tipo | Descrição |
|---|---|
| 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 Avalanche playground.
| Código | Mensagem | Causa |
|---|---|---|
-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 returns the raw value far more simply.accountProof root against the stateRoot from that block's header — the proof alone proves nothing without the trusted header.Parâmetros
0x-prefixed 20-byte address
array of 32-byte hex slot indices, may be empty []
hex block number or "latest"/"earliest"/"pending"/"safe"/"finalized"