eth_getProof
Defined in EIP-1186
Returns the account and storage values of the specified account including the Merkle-proof.
Parameters
type GetProofParams = [string, string[], string]
- The address of the account
- Array of storage-keys which should be proofed and included
- Block number or tag (as hexadecimal string)
Returns
interface ProofResult {
/**
* The address of the account being proved.
*/
address: string
/**
* The balance of the account.
*/
balance: string
/**
* The hash of the code of the account.
*/
codeHash: string
/**
* The nonce of the account.
*/
nonce: string
/**
* The storage hash of the account.
*/
storageHash: string
/**
* Array of storage entries as requested.
*/
storageProof: StorageProofEntry[]
}
interface StorageProofEntry {
/**
* The storage key.
*/
key: string
/**
* The storage value.
*/
value: string
/**
* Array of rlp-serialized MerkleTree-Nodes, starting with the stateRoot-Node.
*/
proof: string[]
}
Errors
Code | Message |
---|---|
4200 | Unsupported method |