[Others] eth_getProof
Returns the account and storage values of the specified account including the Merkle-proof. This call can be used to verify that the data you are pulling from is not tampered with.
JSONRPC: eth_getProof
Request
- application/json
Body
method stringrequired
Default value: eth_getProof
Method name
id int64required
Default value: 1
Request ID, Random or Auto incrementation
jsonrpc stringrequired
Default value: 2.0
JSON-RPC Version (2.0)
params
object[]
Responses
- 200
A account object
- application/json
- Schema
- Example (from schema)
Schema
jsonrpc stringrequired
Default value: 2.0
id int64required
error
object
result
object
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": {
"balance": "string",
"codeHash": "string",
"nonce": "string",
"storageHash": "string",
"accountProof": [
"string"
],
"storageProof": [
{
"key": "string",
"value": "string",
"proof": [
"string"
]
}
]
}
}
- curl
- python
- nodejs
- java
- CURL
curl -L -X POST 'http://localhost:8551/eth/miscellaneous/getProof' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"method": "eth_getProof",
"id": 1,
"jsonrpc": "2.0",
"params": [
"0xe5cB067E90D5Cd1F8052B83562Ae670bA4A211a8",
[
"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
],
"latest"
]
}'
ResponseClear