curl --request POST \
--url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getProof",
"id": 1,
"params": [
"0x548Da0F6b0AFD0094F735503D44e79a3769980Fd",
[
"0xf6e506a9cbe7546a796b187c40609a170ea8073e047129a3cae1c38e6d7559b7"
],
"latest"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {
"accountProof": [
"<string>"
],
"balance": "<string>",
"codeHash": "<string>",
"nonce": "<string>",
"storageHash": "<string>",
"storageProof": [
{
"key": "<string>",
"value": "<string>",
"proof": [
"<string>"
]
}
]
}
}
curl --request POST \
--url https://optimism-mainnet.core.chainstack.com/efb0a5eccd2caa5135eb54eba6f7f300 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "2.0",
"method": "eth_getProof",
"id": 1,
"params": [
"0x548Da0F6b0AFD0094F735503D44e79a3769980Fd",
[
"0xf6e506a9cbe7546a796b187c40609a170ea8073e047129a3cae1c38e6d7559b7"
],
"latest"
]
}'
{
"jsonrpc": "<string>",
"id": 123,
"result": {
"accountProof": [
"<string>"
],
"balance": "<string>",
"codeHash": "<string>",
"nonce": "<string>",
"storageHash": "<string>",
"storageProof": [
{
"key": "<string>",
"value": "<string>",
"proof": [
"<string>"
]
}
]
}
}
eth_getProof
retrieves the account and storage values of the specified account, including the Merkle-proof. This method is used to verify the data without needing the entire state on the client side.
address
— the address of the account.storageKeys
— an array of storage keys to prove.block
— the block number (in hexadecimal) or one of the strings "earliest"
, "latest"
, or "pending"
, indicating the state to consider. The default is "latest"
.result
— an object containing the account proof, balance, code hash, nonce, storage hash, and storage proof for each requested storage key.eth_getProof
method is essential for:
Account and storage values of the specified account including the Merkle-proof
The response is of type object
.
Was this page helpful?