Skip to main content

Don't have an RPC Node yet?

Start using RPC Nodes in your project today.

Get your free RPC Node

eth_getProof

Get Proof

POSThttps://site1.moralis-nodes.com/:chain/:apiKey

Returns the account and storage values of the specified account address, as well as the Merkle-proof. This allows verification of account and storage data within the current state without needing the entire state.

Note

Please refer to RPC schema page for more details on the RPC params and RPC response definitions of the RPC method.

PATH PARAMS
chainstringrequired
The blockchain to interact with.
apiKeystringrequired
Your API key for authentication.
BODY PARAM
Request Bodyobjectrequired
The request payload for retrieving the proof.
Responses
200Returns the requested proof data.
400Bad Request
404Not Found
429Too Many Requests
500Internal Server Error
curl --request POST \
--url 'https://site1.moralis-nodes.com/eth/YOUR_API_KEY' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getProof"
}
'
Response Example
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"accountProof": [
"0x..."
],
"balance": "0x1bc16d674ec80000",
"codeHash": "0x...",
"nonce": "0x0",
"storageHash": "0x...",
"storageProof": [
{
"key": "0x...",
"value": "0x..."
}
]
}
}