linea_getProof

Returns the account and optionally storage values of the specified account, including the Merkle proof. This method is similar to eth_getProof and follows the same format.

Path Parameters

apiKeystringRequiredDefaults to docs-demo

Request

This endpoint expects an object.
addressstringRequiredformat: "^0x[0-9a-fA-F]{40}$"
The address of the account.
storageKeyslist of stringsRequired
An array of storage keys to generate proofs for.
blockNumberstring or enumRequired
The block number or tag at which to get the proof.

Response

The account and storage proof data.
addressstring or nullformat: "^0x[0-9a-fA-F]{40}$"
accountProoflist of strings or null

Array of RLP-encoded Merkle tree nodes for the account trie.

balancestring or nullformat: "^0x([1-9a-f]+[0-9a-f]{0,31})|0$"
codeHashstring or nullformat: "^0x[0-9a-f]{64}$"
noncestring or nullformat: "^0x([1-9a-f]+[0-9a-f]*|0)$"
storageHashstring or nullformat: "^0x[0-9a-f]{64}$"
storageProoflist of objects or null
Array of storage entry proofs.