๐Ÿ“ftm.getProof()

Description: Retrieves Merkle proof for an account and its storage keys.

Parameters

Name

Type

Description

data

string

The address of the account.

array

array

An array of storage keys to be included in the proof.

quantity/tag

integer / string

Block number or one of "latest" or "earliest".

Returns

Type

Description

object

An object containing the proof details.

Response Object Structure

Field

Type

Description

balance

quantity

The balance of the account (See eth_getBalance).

codeHash

string (32 Bytes)

Hash of the accountโ€™s code. Simple accounts without code return "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470".

nonce

quantity

Nonce of the account (See eth_getTransactionCount).

storageHash

string (32 Bytes)

SHA3 hash of the storage root. All storage will include a Merkle proof starting from this root hash.

accountProof

array

An array of RLP-serialized Merkle tree nodes, starting with the state root node and following the path of the SHA3(address) as key.

storageProof

array

An array of requested storage entries, each containing:

key

quantity

The requested storage key.

value

quantity

The corresponding storage value.

proof

array

An array of RLP-serialized Merkle tree nodes, starting with the storageHash node and following the SHA3(key) path.

Last updated