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://ftm.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": [
            "0xf90211a091e7160245e083ab795eff221fb230e91ace657a6f043e61f154b2e9a11fa18ea0a56257d9736bc577117880a4cf9739bb33c57a70e96b13206a6e493ff05477d6a0372ebb0b58a0711615da62f6c5ce9c678df40ad8df3ba01aaaf4adfbb18e5bc4a0254cace03a783572c70edb5cef4f0ba503c4933b3c56696c6694118442ac6eb7a0e0a6726338b51d09049acd3a63b45e35abf686d7bee074ff0afd1a5f2e087286a029d7c791058f365e7db680bfb29a371379aa21f2b878039dfd5d6c3ff820a9b7a0d93e17b7a156b68ec64870a8221b606c3dd871c409783d0a91297bb2f6016b9fa0aca655c31008b71be9f0c6c3079b5632f4e59d76efd8db47775818515c9c9a88a0be7cf3fda591879c150c1622d63399acbbd07d3329a6cd9b52b5daa23fa0c03aa0e6bce390e97483a4da40d7efb51992b29a61babee88f3813ed73df73e1912b2fa0d79614e789a3275f9f110f2821393d867f3c4559f65d4412e774c5cf6abac494a09cd7e6e6e23d78484acdcc836dff2cbfd391b518a1024d31f0031d0b41abf71da0322fac936f77c94c1105d26cbacf9bc7b077fcbea25a1417c1a8aeb1f98c51d6a09376aa68b34504180a89fed6d3f5272c352f4d6cf01e153d475c3b4d095d1c3ea000e3877b5241c12ed512ae4f4d10c3b430a8c74f28d03c5b7c75de939cc853a3a00d1881bb9c533ba411e11c803d66ddff17a73dc4d5c877074db6001ebdfafc2380",
            "0xf90211a02a6615ba54be3b0f1cd26c17be9541ee27ab30a23571a685df070c00b5a75ecaa093666599b2dd15db66aa0b5248bc6c26fbbf88767747369a534217881d5c464fa0ad2a7255c378f6f1a1bd3d5af14e14dac0178a2344e9c80145b9d56e1b8fc60ea06fed9ca67542fe0dfabddd22bf5c7c22cdb975bb83c9674d4a5aa36e0940ebe0a0e4a14d1b85f918409c661cdacebf6f533fbece8868592ceb39344eeeb43dfed2a0100692fecddcbdd4d2f649cd79120d14236aae00e200634d73500f2cf289cb00a0e9a2dd3779e5788caccda7957ac2632bc0eddd652f6f01ce1d6ad0298cc3d8c1a099dfb62fabc794ce7d0deb2fe61eb92b1aaf6bfa6c640ad0d9be886eec6a05e7a097d78b3a24142f2420769a4c6af4af5eab64ff9ca2c95266a9ca741e6af07c15a020fd6414e164cb7025332bebaa47f47bb318331b7a28d7c8797223e988399990a07d968482163be7a48968f37ba8a9d5bf49f33980a045b8c7674bc4bcf194bc0fa058522818a1db807fd27de234bb7d41d9b00e525c37b31a9d169f8af4ce2af20aa05e6f79298a291edebd432bcd5b6caa1c20db95a1bac249c78e7433ae0ccb67faa08f83ce705788da12c8ed33ec821c98da5abd78f5f08810a5aea3fe250e494214a0d8d6584ae847f37639d512fc4641d2d2fe3d28a369212b5fe4cf437fc54dcaada0a18ecc72bc84f1df3babc295472eafff0a57bcae5d93df5f5932ece3102eb0ec80",
            "0xf90211a0c76dea16fc416d5cc3be8f9b35f6e996d7891e533a44ca6e1710b4f6b6c9a701a0d1b694104e6a536f3bc4a52d2aba286670929b9c0ee8e92cb7241ddf79a2542aa0ecd9157b3d66349eadc683984b91d7b7da836cf91dec594507fc1bdc7ee13cb1a040812008a63f7be9091c83bbefd3967e8c8a75b67857b1d6c799f378c62c361da03a976856b572fb79ec6fc2654ce4c4ba29c6fdd95bd71b366269a67d8229df07a05a0874039bb2b497c74fb4342e42df4fc9c936d4533b411e4253d60c34e3eebda04f1c3c4013b28e763b70230ff7106ae9c4033e080ee69a0f358e4ecf06bab183a068f9768100d508b1ea3b5aefe44244413b36369e0b15800615221a550d912beda0de1848f76fb400df26166ea30db84af3c61612a84210cfb82332fb5bfc719d6ba02d829216ef15e6f09d8bda3e494750f3f82949ffc881ce698e2665405e6c73a0a054c632e9ce22714f2bcf01e8c0a9173f7e5fc063391019a2672ab3896d99ec55a0b55663e9e2432fd65870951691eebad1c8012c457f233f83934811aeeb006b92a00c6cddb448e767bb4dc9bae52bd3229a8ec78da2783fb871bb8e6886db364e8fa06fd88042c54e791b940b4b171dd4825c488db93edde7625037309627a755f998a0f9dbe7f4970d6cc5624942958b9a07d9feaeab9099d9cad4bc4dcf1cb215e3a8a023e01f8e608663e7b7c1b49880c8c47a1e13e9050d50a23a8cba61a7d5b15fa980",
            "0xf90211a032c8b770dc4747b1ee7b2dfafcf680d2fa4e592ac3d7922cfd80de2df4dde6cba084af512bd7c01fc3e777431e39c4eb31c0df30393560b14df87f6fc5927bdd8ea07c6d74400c809aa3f715ef4fc15e58e4d85f364e1fe6c665da8f073c0498f335a000439996f2ce0d69b64f7586bd80a12bc5a280e65efb7558d9fd0a2fddf2f57da09da0a4226a5a25e907556df6189105660f2880e3ef915f32373c77ab9d9781dfa0381416d551f237b6b082fce46891b6a2ef5df09c02c470cd26ada4f54a90a840a0f194fd5df5d2d9b0f4f018b0e1ff8676a67d3eebae4f5675a52aab11d4c0c4c8a0d6b56cdf4afddd668d287eb7b84f4859acfc14327cf24421c50d5d9a13838f6da02acd04f9b09693c1b811651f7306fd5ca7684b9d5dd41b27f9e13fbc5226093ba0cb391ff6a8b4ce92607a1b6a9af0312f66b69b4ef124916e9d9fcbc691f3788fa00274d3839df2e70d4281df5b8fa95756c50b7e7324b2a2e5a47b72d576107f95a0810cde758b2dd7b03d68c0e910cc3dc8cbc484fa522ff784e5598482c0400caca0c8efe4fc3c0fcba861a80fd58584d26136d92a9f6b64a0288847fb23ad062192a03d36657a470a13f5b1f325d6e01cc9c217904b14958317e1828071f9fb66c93fa0b94234199d1c72bb2dafdcced150c7d06dff6806aece102146d624eb04b7c174a07bee5f49df2a19922cf60e75b5f8280431338683a3e8bd54e7d6cac90976e79b80",
            "0xf90211a07ea07729f3b606058d43929e864d17cd7d4e40912364b6376796aa7eda32e792a03874175662a920dc228b4e3add5a2a3bb43d4e029860f441fe71dc832214245fa0934cc16ecde88c1783b3398686ca383e3d7efe51682833392ca2f7fc5a8995b5a0a8c0cdf9073cabc8b661bed4dde8d50037bbd9cb49dec537fa5bda2bdc270620a0884f5ced3cdd6185abe88e9e2c54b10c661d4e5c39fdf87e7f01438cfafc5050a0ad2320f3c83673eb8ca427b6ece0bde840f19c380008a59aa3153e302f4ed605a0814827a113cb2c982d37f85048c0ff0dea49eefa7d0575428a6821677285d068a005924caf66cdbe0015619eaf264d6d005c001164f09e2115db023824f09153aba04fb455abc817bd81f1f3dff46761e1d59c1653a275fd28558724b9e4fd55c835a0e6117f283149bbdf7e907ac6443c38c58c9882f9b46b868d3853f12004d62a86a02d23ee7b997ace5fdb4edaed2f64856e8c1f2cac2e994291ac8ab3b955f3335ca0451aeee89a6caac8f3295cd70cfe4a09b52485ece36f580b273614ddfbb3a7a2a033c04ff6a47200b9e599f1b07c4b917fc2de1e72d9074efd6e9b7fba819aad25a007612f50a952bf7086e6eec2868eb074c7fcffbb89ce5118434abb26c159a7f0a0cd403c6538966f5dd16679fffa54811cb1d345deb8ab0bbcb8e7fb88d2c844fba0f595a09b313911fbc4253cf05bdc03d78e3762f904972766d069141e9c69a0d580",
            "0xf90211a0d687eeebfa94922f780dd8742b47cbdcbef787b17b0483e2c5d3a66b0b2a5cf4a0030e92c4719956280aa88754ce10491047ed6344651cd691c8148e364e9d6fe1a05d7d9796c6ae103761d4bc9e169ea812abd161b53e9b888bc07ce90c9d1a7f96a053b028c099b4cca4f7d98379f4edc0422ef1843ab5d6c3cd4814065de6fe379ca03f858ffefdc7cca9bb0dcdacff5b37a1eb3c4dbbdb03e6fc61283bf9f7f34b89a0f97eb08448f221c968ad375d73e07f807ed926cdc0ccfe55117d89f2b233e5c7a00867d42da658e9cf4ceb0bc03329f1c9454510caf0890c09767de8fedf65ca0ca079e40b9c0e5758e95c42cef998073bf04003ed82f475ac3756d44c3fa12b1d30a0cfb6e183584fd1504e9ac95ecb78c1f3bd117d934f84ad85a40136f2dede66e4a0e9e01f700ba218975598df30d7d07445a75b0869ac8e38ac6793990df14216bfa03267ca1b02072db3893a31de984abadd1b7399842ed92af0ebf3ad097a77c54da07e38cb8167798112630cdd7cd53a55372407bbbd07496e85f6122861bb285127a004123be2a370a0008b2555f8fb2f15297bfd1c3a8c44afde0fc42a02a63d4036a085d757d002069c12543dbf5849843ac38fc3de3b64f7b3ad54f557667e955b29a03a461101b0fe8b06cc4a5b5957bf65b54796b2f2bd66f012f8f57e4bdf1cad01a05bacc2587a1e5592cc55ad58c46be2b698f0db302ee6e483cc2ef3edc6cc92ec80",
            "0xf8b18080808080a07301b5c0baf36a04dbd4825788d1d7ca0c4290bf004a6ae0cb61cbd61e92077f8080a048a6d40b7df351f1b49b98df0717a431d9e53e99203fa0ff47d27d5072dd66708080a0ffc6778ceb3e08cdc51fdab1f0f5ab6e7e2a509869239cfe6c0849683ce0e08f80a04f720e6d6b3ec84dc73fb9fecf0d506b5f1146491a61107f28485c1cea9e8fa880a003f2126c0af0fa19134897d05b61d134717fb8341fd3a64e494e0ba06b3dccdb80",
            "0xf8669d3a76c3dfa5a389797e84d446d393aa2db51ec8fa9c97753616aaf46cc2b846f8440180a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a07431b889dd3a1bd35cdc6f9b9cadd26d6fc2aa2a17c2dabd608344c84e4069d7"
        ],
        "address": "0x0a8156e7ee392d885d10eaa86afd0e323afdcd95",
        "balance": "0x0",
        "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
        "nonce": "0x0",
        "storageHash": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
        "storageProof": [
            {
                "key": "0xc48fb64230a82f65a08e7280bd8745e7fea87bc7c206309dee32209fe9a985f7",
                "proof": [],
                "value": "0x0"
            }
        ]
    }
}
banner icon

Start Building with GetBlock RPCs for Free