Last updated on January 1, 1970

3 min read

Method eth_getProof undefined ()
connect with JSON-RPC protocol

eth_getProof

info-circle-fill

Returns the account and storage values of the specified account,including the Merkle proof.The API allows IoT devices or mobile apps which are unable to run lightclients to verify responses from untrusted sources, by using a trustedblock hash.

Parameters

DATA - None

20-byte address of the account or contract.

ARRAY - None

Array of 32-byte storage keys to generate proofs for.

QUANTITY|TAG - None

Integer representing a block number or one of the string tags latest, earliest, or pending, as described in Block Parameter.

Request

curl --location --request POST 'https://cro.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "eth_getProof",
"params": ["0x0a8156e7ee392d885d10eaa86afd0e323afdcd95", ["0xc48fb64230a82f65a08e7280bd8745e7fea87bc7c206309dee32209fe9a985f7"], "latest"],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "accountProof": [
            "0x12b1120a15010a8156e7ee392d885d10eaa86afd0e323afdcd95128b090a15010a81524414b4aa668f53605da9f06d4689b5c26a129a010a1e2f65746865726d696e742e74797065732e76312e4574684163636f756e7412780a320a2a6372633170327134793371356b6a34786472366e767077366e7572646736796d74736e32326b6e67343218e8cc1a200112423078633564323436303138366637323333633932376537646232646363373033633065353030623635336361383232373362376266616438303435643835613437301a0e0801180120012a060002b89dbe01222e080112070204e68b9b02201a21206abd82683494b027da70eb4c89f7eee06ff720c1a6d22089b70ecb0c6fa5d5fa222e08011207060ccc9af005201a21205dffdc31af2f0ad53d7e971579748c8fc53ceef0ae04210196fbe1184a109705222c080112280812f4a3ae0720e46336b3a88cc0c6e1808c00e308a1499ecde7bc00c85a37562449eea692911620222c080112280c32b0e5f607206dba84350858f7dd80c9aa04bf3b25f2bd3f4fadc750aa18e798260e158c576320222c080112280e7caa948b08208c9e38615202b0ca14a51dda9ee17dd33678f57349ddf220abb9a77a6fa01b5920222d0801122912f002a499960820ef301af5b54e7e9574d1d9556f0d09012a3b31cc40759cee0771d9b3c66fe30020222f0801120814a605a4999608201a21204dadd3f777d7d0831f9e54bd90c17868dc1fa134b379f9fbbdfcdeeed51734a1222f0801120816d00beac69608201a212055fa4fc1cfb0d5a7815a315e2c00fd905b573c208f5fe96948d636869402d21e222d0801122918fe12eac6960820d7f6eec4b18c808db157537d8f7293c027d43d129c2fe3022a08824e470fea4a20222d080112291a8e23c4cb960820836877ad3d5d43ea174ce307714353ada9d77a9c08496dc5add85189a1aead1320222d080112291ec24c9cd79608201732788f70ec0dc8b91d71bde78013f4b5fe78da8e3f18b1439e92bb2a74660c2022300801120920fe96019cd79608201a2120afa3ed3e7943d06060a15973fc0ff284f514fcf569a5ebc35a3167e982e4587f222e0801122a22c298029cd7960820d4418b6a5213c1626c09f9c672f616614ac32ea56e32c209123c1fb44710ebd020223008011209249691049cd79608201a2120e48d281ee11c20fd31beec4e85ff56dec4610d2e77461053e9c311e1b01cc044222e0801122a26caa1099ed7960820f0b92417ea7761424214c27f55a2cb8616a51da9fc923e934c8f92e96642467f202230080112092ad2ca129ed79608201a21204118069d3d1f5854eec08f79065f6488e45e7d86e9e2fb44ee77cbda1c6a54fd2230080112092cc883239ed79608201a21201765af19ade1262eb5d4d2df74d7b3cc70a5a3dce1f87dabbb5cf1b1c5f135f72230080112092eb2a9389ed79608201a2120e8c6b59795d488563e199ae936fd7e81759d7fcd2a1d8cc6489e83603261ece822300801120930ca815d9ed79608201a21205facd45040eeff47a5118ff989df953eba0418cceb3cd179c150f39700cd620f22310801120a32e2abc3029ed79608201a2120fa7a1b840a6315eb3b893f079e6f5dadedc6880bf33f4a3740ae27fdc5d0d2001a89090a15010a81633f253c13135d73f5c7f89420d24dcef7a7129a010a1e2f65746865726d696e742e74797065732e76312e4574684163636f756e7412780a320a2a637263317032716b78306539387366337868746e3768726c33397071366678756161613866797a7361611894c834200112423078316439336636306631303538393931373266373235356330333033303163336166343536346564643461343835373764626463343438616563376464623061631a0e0801180120012a060002e68b9b02222c080112280204e68b9b02206a731dcce870fa3d4332d014ff14372952d811d8852dc04ee227caed9caa6a3520222e08011207060ccc9af005201a21205dffdc31af2f0ad53d7e971579748c8fc53ceef0ae04210196fbe1184a109705222c080112280812f4a3ae0720e46336b3a88cc0c6e1808c00e308a1499ecde7bc00c85a37562449eea692911620222c080112280c32b0e5f607206dba84350858f7dd80c9aa04bf3b25f2bd3f4fadc750aa18e798260e158c576320222c080112280e7caa948b08208c9e38615202b0ca14a51dda9ee17dd33678f57349ddf220abb9a77a6fa01b5920222d0801122912f002a499960820ef301af5b54e7e9574d1d9556f0d09012a3b31cc40759cee0771d9b3c66fe30020222f0801120814a605a4999608201a21204dadd3f777d7d0831f9e54bd90c17868dc1fa134b379f9fbbdfcdeeed51734a1222f0801120816d00beac69608201a212055fa4fc1cfb0d5a7815a315e2c00fd905b573c208f5fe96948d636869402d21e222d0801122918fe12eac6960820d7f6eec4b18c808db157537d8f7293c027d43d129c2fe3022a08824e470fea4a20222d080112291a8e23c4cb960820836877ad3d5d43ea174ce307714353ada9d77a9c08496dc5add85189a1aead1320222d080112291ec24c9cd79608201732788f70ec0dc8b91d71bde78013f4b5fe78da8e3f18b1439e92bb2a74660c2022300801120920fe96019cd79608201a2120afa3ed3e7943d06060a15973fc0ff284f514fcf569a5ebc35a3167e982e4587f222e0801122a22c298029cd7960820d4418b6a5213c1626c09f9c672f616614ac32ea56e32c209123c1fb44710ebd020223008011209249691049cd79608201a2120e48d281ee11c20fd31beec4e85ff56dec4610d2e77461053e9c311e1b01cc044222e0801122a26caa1099ed7960820f0b92417ea7761424214c27f55a2cb8616a51da9fc923e934c8f92e96642467f202230080112092ad2ca129ed79608201a21204118069d3d1f5854eec08f79065f6488e45e7d86e9e2fb44ee77cbda1c6a54fd2230080112092cc883239ed79608201a21201765af19ade1262eb5d4d2df74d7b3cc70a5a3dce1f87dabbb5cf1b1c5f135f72230080112092eb2a9389ed79608201a2120e8c6b59795d488563e199ae936fd7e81759d7fcd2a1d8cc6489e83603261ece822300801120930ca815d9ed79608201a21205facd45040eeff47a5118ff989df953eba0418cceb3cd179c150f39700cd620f22310801120a32e2abc3029ed79608201a2120fa7a1b840a6315eb3b893f079e6f5dadedc6880bf33f4a3740ae27fdc5d0d200",
            "0x0aff010a0361636312200ef957479a3b3a7ffadf2f13508c2f6c2f03d59f914395d73944cc4b7d0313291a090801180120012a0100222708011201011a205060a26945c38cb078c10dc28a96e99d402dbeb555e7c6343af1f668c2241eb4222708011201011a20a6eaf8d94fec4053ae73ed25f06344b02a440e61cfcc5d7cfd4f5214c0e1cac2222708011201011a2033308381820f96cabd7c1d33209d327c24e1fdf0554aa3fb962d0585a8332982222708011201011a2006044476b23c7b1f743efe53aee3cbaa1e00a6b8031d317d8503e8dc02caa4e0222708011201011a201468f484ddeb5bd9c9f7b66c15c6928f657a31722cf2dae926f82a09042c6eca"
        ],
        "address": "0x0a8156e7ee392d885d10eaa86afd0e323afdcd95",
        "balance": "0x0",
        "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
        "nonce": "0x0",
        "storageHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "storageProof": [
            {
                "key": "0xc48fb64230a82f65a08e7280bd8745e7fea87bc7c206309dee32209fe9a985f7",
                "proof": [
                    "0x12db140a35020a8156e7ee392d885d10eaa86afd0e323afdcd95c48fb64230a82f65a08e7280bd8745e7fea87bc7c206309dee32209fe9a985f712f7090a35020a7ebd349a8c9e209ae2a94dd043df654eba9b3200000000000000000000000000000000000000000000000000000000000000051220000000000000000000000000d6597aa36dd90d7fccbd7b8a228f2d5cdc88ead01a0e0801180120012a060002f2daf602222c080112280406a0bcfc02209fb91941967daadcd33d6cc67076304460d38b536bbca41df941c5d092c2becd20222e080112070810a0bcfc02201a212071ab17b2b61ca695b8502ada7eb98ec26bbd0a91636b67dd74854b458b114825222c080112280a1ca0bcfc02209c59ce9008cfc93360dac901e3ec1b09974f8cd3613189741a5085fd8772b1b520222e080112070c3ca0bcfc02201a212036f7c73e116bb12ab2f61e58b33ded7c18080fe0ad0d901b491763996d3b1f87222f080112080e84019ccef207201a2120a3ba17fba41a1404ee65562005b2414dd3ac9bcb81ad3fa049f138845f5b7161222d080112291098029ccef20720cfc37283a74980b4b85464180b88f72f81fa1edcac59c5943e854f501ddb00ad20222d0801122914dc059ccef20720ac2f3c3284849f4e102e24c10cde22efb7e265b3ff1c4b07427c35c0efd292ce20222d0801122916a00a9ccef20720be4a16a3c3a983d48aa1da2e7bf8ff6c649422996667b466123891807e5c65cd20222f0801120818b60e9ccef207201a2120b11523f42e183fe1c00dc2812872c574f308770aaac10751db37faf2367178b5222d080112291acc169ccef20720fed7a7cfeb69797ebd4bd9a65b523ee7e5f938dc911e68d3e681402671cc25d520222d080112291cec2a9ccef2072010e35d75b75773e3aabb90d669836a3a1785628238929d572762a658747acf9e20222e0801122a20ac8a01d6d59508208b4515bee41504d6b451369b873ba3120da5a242882875bac747d7a1661b05112022300801120924c8ad03eac69608201a21200cc1fdb09c3b09fd1dd539ba10939c38944862452091233ed6e79a31be9a54d9222e0801122a28eef4089cd79608206f4b9880646d52b713b4c55ac9cd8806600a57cb9c279f4dda7e774a35c6095a202230080112092ae087149cd79608201a21201767b4d7459343b3644267035cb43893e046929465097f09c3b44c87506b389d222e0801122a2cd8e72b9cd796082069899e8981336f8a9e3814c12d6ca8f3b0bbeba3c5100a98dc5001f6415714d120222e0801122a2efeb5499cd79608203cb8549eedf0ad81fb591ba37392843a19f431c2d9b3f12f5bcec3f7dd6a214f20222f0801122b30b6988c019cd7960820d8a4b5a8c1f2386188296b30e220cfb6d8429fcb854b4107605801f14db7abde20222f0801122b32fab293029cd79608205eaf23ad4f1ffcfc3e7ef9c094cefac207bd760dca7a200d4c0c7a2ecd67f6092022310801120a34caad89049ed79608201a2120358bc9ec13399cd552761b98f683e96ef8ff58a58b80b6a68a008aa06c92849922310801120a38ca8bdd0a9ed79608201a2120000bb99782a5ec3249a715f05e674d79ff31c3bb8b794244087c2a3543c013d322310801120a3a8896cb149ed79608201a2120345cc8ffc8d62b5e1bd0eb80212df7c2660c4a45fd751d76e454b8d52c5c145722310801120a3c84c4a5299ed79608201a2120ada36215e7b376a2a3089e1823b063bd0299708e40335e89d9a5051443c9952622310801120a3ee6eaa9419ed79608201a212057d08705e1b01ab2f260867a7649ca25cc6e5bedd4960c42508b78683e3e548f1aa70a0a35020a81ddf4cfee5d589c0a9dc38d71f1ba0a9c6d090000000000000000000000000000000000000000000000000000000000000000122000000000000000000000000055fa1f59a5bfbaf312fca564356992b36c0f2b1a1a0e0801180120012a060002a0bcfc02222e080112070406a0bcfc02201a2120317605032cf439096cc2c7ba46591f518abf246c52c6e6827b9a9ac48dc1524e222e08011207060aa0bcfc02201a21208d8e6e90639b40805491f0f115c11150faa3bf4b7304afc43cd5e81d12fb57e4222c080112280810a0bcfc022058c00f97f3aa1983eb0848e765976dc88d29fdea46575e71258a31806a50aef520222c080112280a1ca0bcfc02209c59ce9008cfc93360dac901e3ec1b09974f8cd3613189741a5085fd8772b1b520222e080112070c3ca0bcfc02201a212036f7c73e116bb12ab2f61e58b33ded7c18080fe0ad0d901b491763996d3b1f87222f080112080e84019ccef207201a2120a3ba17fba41a1404ee65562005b2414dd3ac9bcb81ad3fa049f138845f5b7161222d080112291098029ccef20720cfc37283a74980b4b85464180b88f72f81fa1edcac59c5943e854f501ddb00ad20222d0801122914dc059ccef20720ac2f3c3284849f4e102e24c10cde22efb7e265b3ff1c4b07427c35c0efd292ce20222d0801122916a00a9ccef20720be4a16a3c3a983d48aa1da2e7bf8ff6c649422996667b466123891807e5c65cd20222f0801120818b60e9ccef207201a2120b11523f42e183fe1c00dc2812872c574f308770aaac10751db37faf2367178b5222d080112291acc169ccef20720fed7a7cfeb69797ebd4bd9a65b523ee7e5f938dc911e68d3e681402671cc25d520222d080112291cec2a9ccef2072010e35d75b75773e3aabb90d669836a3a1785628238929d572762a658747acf9e20222e0801122a20ac8a01d6d59508208b4515bee41504d6b451369b873ba3120da5a242882875bac747d7a1661b05112022300801120924c8ad03eac69608201a21200cc1fdb09c3b09fd1dd539ba10939c38944862452091233ed6e79a31be9a54d9222e0801122a28eef4089cd79608206f4b9880646d52b713b4c55ac9cd8806600a57cb9c279f4dda7e774a35c6095a202230080112092ae087149cd79608201a21201767b4d7459343b3644267035cb43893e046929465097f09c3b44c87506b389d222e0801122a2cd8e72b9cd796082069899e8981336f8a9e3814c12d6ca8f3b0bbeba3c5100a98dc5001f6415714d120222e0801122a2efeb5499cd79608203cb8549eedf0ad81fb591ba37392843a19f431c2d9b3f12f5bcec3f7dd6a214f20222f0801122b30b6988c019cd7960820d8a4b5a8c1f2386188296b30e220cfb6d8429fcb854b4107605801f14db7abde20222f0801122b32fab293029cd79608205eaf23ad4f1ffcfc3e7ef9c094cefac207bd760dca7a200d4c0c7a2ecd67f6092022310801120a34caad89049ed79608201a2120358bc9ec13399cd552761b98f683e96ef8ff58a58b80b6a68a008aa06c92849922310801120a38ca8bdd0a9ed79608201a2120000bb99782a5ec3249a715f05e674d79ff31c3bb8b794244087c2a3543c013d322310801120a3a8896cb149ed79608201a2120345cc8ffc8d62b5e1bd0eb80212df7c2660c4a45fd751d76e454b8d52c5c145722310801120a3c84c4a5299ed79608201a2120ada36215e7b376a2a3089e1823b063bd0299708e40335e89d9a5051443c9952622310801120a3ee6eaa9419ed79608201a212057d08705e1b01ab2f260867a7649ca25cc6e5bedd4960c42508b78683e3e548f",
                    "0x0af9010a0365766d122074b149532e9963a383725f505e6f37a28eb10065de1d81c8daf4505f2cfb35b91a090801180120012a010022250801122101e882aaf3ec30ebc7e95c710d430895fd0152fc5af26d9daca7c5b00f360c26112225080112210194e4b5bb49d3cf1ca594a086afaccb759b45f824556a7b700d54aea5e6287640222508011221010fa87204cc55d274940097310a620d3fed61bb4adac1c1aff6624de41ab73701222708011201011a2006044476b23c7b1f743efe53aee3cbaa1e00a6b8031d317d8503e8dc02caa4e0222708011201011a201468f484ddeb5bd9c9f7b66c15c6928f657a31722cf2dae926f82a09042c6eca"
                ],
                "value": "0x0"
            }
        ]
    }
}
banner icon

Start Building with GetBlock RPCs for Free