eth_getProof
Returns the account- and storage-values of the specified account including the Merkle-proof.
Parameters
Address
.Array of
storage keys
which should be proofed and included.Quantity
ortag
- choose 1 of the following options:A hexadecimal block number.
"earliest"
- the earliest/genesis block."latest"
- the latest mined block."safe"
- the latest safe head block."finalized"
- the latest finalized block."pending"
- the pending state/transactions.
Sample Request
curl https://lb.nodies.app/v1/<INSERT URL> \
-H "x-api-key: <API-KEY>" \
-X POST \
-H "Content-Type: application/json" \
-d '{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_getProof",
"params": [
"0x95007D0Ca1E9453b0A5eEf4dc4DE91211F295822",
[
"0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
],
"latest"
]
}'
Sample Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"address": "0x95007d0ca1e9453b0a5eef4dc4de91211f295822",
"accountProof": [
"0xf90211a078a55eefb871ca719b6e8c7a5a7fec84bf229e3054368172a64602e93219ea71a0b026eaff1c61736f09537bbde26d1c743e2ba62faeef5b44dc98c914d80661bda092f95323dc3b8383399c516b9eee0b6f3980ce76fb4c73e45df23a96928f4ba0a0ba4d26a4b6c673baea6721281246b76982cf68398e3058cf1ff35b53986275a9a0ce70a1d49f938488bcb7614fac65fa0df50923d9a3666cafff88a1830d06851aa02ec85c1b2e3a356afbfaab580b467a79c72245aa03a428468fe08f11b942f22aa052b199789d1075ed551f713267c98870f1cc2abef5dfa7a16a426073efba9084a01d16ee95ab71e97a3c9fd97d22e05a17f5a83b59cec179f51a4985458620b4f8a04c7d4fc339b42d20d4f02112ffc3ca5960765bff1156b4d836ab35993ad72993a062aac05b7141faed5afd1f3849eaa691ac8cf47ec9d70bd8f11dbe7f1027d6e8a0e04d6455fbaca0680a0c04903a90d13c82930195d797b8761d4ba0ce217c6ef3a0fc807f7ee3823cce8f9e3311c1eed3287c60b06bd184a879e991c80d81985bf5a00daa670779a6a5979094db0b521c4ef74890fdf5a8b393eb65bfc684bfe1848ea00cd541dc8077c6a84c5b5c0ba7adc57d18861a181e94f0b089d41c9cbb0a5d9da076e1797304d31d75f0d7a22bf58557c41593e3734865479ba41cfb53476a2bb7a0aa391ab6b69cb1fcca91b079b37a33895999b5020253ec5822185bd5492de31880",
"0xf90211a02b132241dbf14bd766b4f550fb099dbc50fbb700e6191abcbf39f499f3e249f2a064796f1a258e7b7f21a8a43284097ba6be40341d2fcc675ac04caa01ec7e515ba04bd359ff090211ef80aadb3776363cd214a5231fa68cee522f4d58a5e9645286a02f9042bf00698efb3299276da8ff139e80d16f8a0b0d237cff94eb50117567c4a0581f25f54209562816bc4e6bf354f9ef447448f4e0cc5086399bcca289277a72a03782da59e82965ec161ae41b200041be008ecb5456043ecc94cf8949500eb39ba0d4a25d8ea99e03c922f9873f127a73f67267efa9948b1672032002ef48800f83a00a005dffaf50412b247f543725955c06ddd4ccdbdbd61ff9aed98e3433c23432a039af61cf0fbdf1b73005d9d36e220ee15790a7a66e2a754496b3c8b56661c592a06b6a66a2fa12543e45bb2b3bf74f104ae45523ce3b8665b92e93d01c7a7bcbbba0cccfa7e0b8e96856c70e0a2b4a27941ea7bff5f73b978cee864ff4392ead2121a091a55875c712faf7af1e63e9d48fc86cbf7ee6562a5ddda1eb14b34ba74d1eb9a05a3c0cb96c793e43718e44a587ec1b4860a76c2721daf222af2a50f101c34e4aa0a2ec84dbe43ab184271f22bfaba50495be1d7c8cff5f2828bbfff103f1f99434a0368a6db5e9dc7b3f802a1f889730b8c4b369ad1f8fe29bbad1b9281448a4f565a0b020d48fbfd3ecf50a359d12b9b89179856acf3b3b2419e7e8e16af4b55f9c4980",
"0xf90211a0d2ac8ee39380a791208a5bcfd1470060d071cf4937c01bb580e8e1d4a37a1194a0f8812c3c1151b6bf3c3a028009dc03f6fde958dc3ea3433c81e6d479b7816fd9a04c98b828d4fd4e30f639a8c56f6781039d838dd6daefcf03333cbdab4a23ec9aa0368bcb193e76c578aa3b51de3be1626c1035fac38de4a78afbfbbe75aeaf82d0a0732ebb9b1f781f1c0326f5eee149a26416f40cd1234f105973685b660c662d69a0084f36a0d55dcdca32a5f40e88162837d8f9c7dd1eb45523c086d193863d3bdfa0512dc5968f9b47e4b6228f05976c6ab38286e5861201e3c9ae535bfed79464a8a05dddbbbaaa0ddc15876b24d178d55b339917971e2824ed64d9f73e8d1abad120a0aaecefe3dc7a3799e212ba3686cf3cb9a095e30869d9f6d2d3e736c098b354d0a03f7981faee9d186080f315c4ce22ec6dda61e4b0e098222ddac1dce9a1daf60da0cc4dcf6210202949fd8038a150b6febb577668c80189fac6cb0b005d6d3c2417a04898e3b93dcd069fc2f196d9b11ca8474fc6d69b247ce2c47df355fc6e9c6dc1a04b4da723272f0fbff4184ab96555ac298485828b9d861d1e39b8a7efc84f026ea0adf52dd8be996776ad1f5cc9dc803ce85e3e386796159e92bf0a4f04990b5f18a0bc75a19bcbb4541f2460f8c79dcc5b24c208c39b634a88af852689642cd8680ba058268aedb1b8895dfc7f6977104f0b8c368e9835add6e8f20e7cdfa6be7babba80",
"0xf90211a0d34f5b48e01b996cadc001622fb5e363b421a0c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
],
"balance": "0x1c0799708a69246",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"nonce": "0xa",
"storageHash": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"storageProof": [
{
"key": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"value": "0x0",
"proof": null
}
]
}
}
Last updated