Skip to main content
Returns the account and storage values of the specified account including the Merkle-proof. This method will use 40 Compute Units.
Cronos Mainnet keeps state for the last 362,880 blocks, about 42 hours at Cronos’s block time of under half a second. Requests for an older block return JSON-RPC error -32000 with a message that contains failed to load state at height.Cronos proofs are Cosmos SDK store proofs, not Ethereum Merkle Patricia trie proofs, and storageHash is always zero. Ethereum proof libraries cannot verify them.

Parameters

  1. address- String - The address of the account for which the balance is to be checked.
  2. storageKeys - Array[Strings] - An array of storage-keys that should be proofed and included.
  3. blockNumber - String - The block number as a string in hexadecimal format or the string "latest", "earliest" or "pending", see the default block parameter.

Returns

  • address - The address associated with the account.
  • accountProof - An array of protobuf-encoded Cosmos SDK (IAVL/ICS-23) commitment proofs from the account (acc) store.
  • balance - The current balance of the account in wei.
  • codeHash - A 32 byte hash of the code of the account.
  • nonce - The account’s transaction count (nonce), as a hexadecimal value.
  • storageHash - The 32-byte storage root of the account. Every storage proof starts from this root hash.
  • storageProof - An array of storage-entries as requested. Each entry is an object with the following fields:
    • key - The requested storage key.
    • value - The storage value.
    • proof - An array of protobuf-encoded Cosmos SDK (IAVL/ICS-23) commitment proofs from the evm store.