Get the Merkle inclusion proof for an account and its storage keys.
GET/:network/contract/merkle-proof
Get the Merkle inclusion proof for an account and its storage keys.
Request
Path Parameters
Query Parameters
Optional block number for which the balance is requested. Provide only block height or timestamp you want to check for.
Optional Date timestamp for which the balance is requested (ISO 8601 format). Provide only block height or timestamp you want to check for.
Address of the contract
An array of storage-keys that should be proofed and included.
Responses
- 200
- 400
Merkle inclusion proof fetched successfully.
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Name of the blockchain network
Chain ID of the blockchain network
The address associated with the account.
An array of RLP-serialized MerkleTree-Nodes for the account proof.
The current balance of the account in wei.
A 32-byte hash of the code of the account.
The nonce of the account.
A 32-byte SHA3 hash of the storage root.
storageProof
object[]
required
An array of storage proofs for the requested keys.
The requested storage key.
The storage value at the specified key.
An array of RLP-serialized MerkleTree-Nodes for the storage proof.
{
"network": "eth-mainnet",
"chain_id": 1,
"address": "0x1234567890abcdef1234567890abcdef12345678",
"accountProof": [
"0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
],
"balance": "1000000000000000000",
"codeHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"nonce": "0x1",
"storageHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"storageProof": [
{
"key": "0x0",
"value": "0x0000000000000000000000000000000000000000000000000000000000000001",
"proof": [
"0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
"0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
]
}
]
}
Invalid input parameters.