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://matic.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": [
            "0xf90211a0f3ae130c0edc69ef118b11d8aba0a597901468de8753436ffd0822769d710b25a09a0f2bbc63b5d2a8b071a8dafcd6ab98cedfdacdcf3b2ebbf371d1f0ffd16721a04d8cccd9b72ff8af46826d84478df97622fc6d17d3c83cb58ceae309efe0d969a0c5d4884a6a706197bcfc6e062902d930f9b945e7ce458fd241edeb1b5438772da0b6cb1e62422f90ca126c0e0a12862cb1864caf83464c6e6956581f235f99d481a0ff343636059a02fca7041c8d035e23999273281f25fe7b4d20df2f75039a2b9ca06441f2d8f5202ac250e97730fe1bede82dc2a04df7d0d3da877d1f3b24dbc586a0382d58e77e5ec7b85f697137d8a18cfc12ff3a60958319b27b9a87f0680956cca0bb48678c863ba8199487847286263b9cbb018c067af6825fa09ab6c40b4db906a049e855f08c17f09600ba09363500532b3549fc9f20741bcb342f8c5e1e1e1c13a008859cef3d2187a9a673a0f3c1b1469594f303571b6b0280212ccd8ae25f9fffa0a8562a7e493bcbb82d769f3f22682b21794033c039d9046087a145c4bc0b4a90a09e2a049cf75a2f7f945a0b4d5b5beca88cf4403f72fce91a6a6687a46117ff84a0d83f6f5ac98900c02a0fbc987199b8f542a844d8c3762c1219af3eca3e5d207ba0e04d79207d143562be61ecb5e164f490dade6ed57c2c0745e1722920d351057ba0495d46178bae919f4596cb03c5eea4c166659b6ac278fe118d84e065856b89b280",
            "0xf90211a0b694385af1303166a70e3ff85b35db2beb09fb50a4cb78de85a18829bf74c6d8a00c9d299ed3ec72f92e99bf5c0f9c1f61bc5646cb3df5f70a80a49492a6b7a9f0a0741180b71d19a2ef9ba1807a7463cb7227209fbfaec21f78552a770fb1d538baa0dd53edb70a0cb0d5bdf49bc468ec89199d5a10ed17fd2416b867d190159d18aca0e82a559f45934f2e04499e581d2e042bb70e17e992556aeafa7efe9a242ad40ca0f13ab4743b918285ae543f509a918d521275f674b0452f4ee922d38de2f1f37ea0c4308d8b02612780731eb47e9d1fab072978a8a1e1b5fe8dc759849b6b68eea1a08ce419d87330520fbdba919f05bfc6c6b5a8d424ad1853598464b03eca9beedaa0c21657e7020432f96389846b5935ac1b6d90364f8f192cf886a1ef904c4c414aa0820235f7924aead5b1d2829101e7fe2a9c1296a77fe998afab597030396551a9a0cf960c86671facd92cd0f74ff7b04229480d0e6a1ec3c636934f192b6ad10e71a0f780d9e5c5c754dd46dadf618b2354aec42af0c584852562e2d0ae34ae000dcea001cdc6039b4009a1d769bb997c313c1653513f3a80e38b6c04c6bb790d816cb6a0698c89eca29a5dcaef1131af773cdff5fa7d70b0852da101c66b935fd32d8ed9a0f13e048f5552466c87546f172fd76b73320b8dc0b8a236ac4fd22adbbe46f09ba06f1046baf30f15b6d5997ba2454f213be98a1c0bdb8569562a39765af8585efa80",
            "0xf90211a09e8c50f9ef2b0a91acb01558747c3de93e5f12e1c4ed8280a939ecc978701362a03e814ac96f42615cb5a6ac00586b0b0aa420efd234a7c4800ac88438fbab1f36a0d614174aaf653ac2c028544189b1d85cb8bafeb99bcb0f24a2bd809355568b62a043dd8d1af49bd03d40851c9c312cc8b7bc1ddb3b1c3da9016a3478c44f67c44da09e50a8da897e18c640986f8c68ba6ac397ae0ea3701a7a76f89a64a3228cba62a005f97f991bcccbac97c92994737a892df014bcc8ec93d6f13f448b230b48f623a0207697af5f638fadd0e10e9d59b333931254c5a2bcaea2d39f0c9ae04f41da2ba0c66cdbee1e8910b4c82496563a1f45caaf3b7504f01feb132a9ec11a78ce14dfa0c1325b8da0560d537d1225a416f62f6bbc904e4be160779d613ab3f3dff8ca26a01662c609cfd08e2d8944d1ec900ca976a401878078f2766d58b81639da7cbd13a00df5f294a44d35b7d60b4031d032fc8a82fe6876898e05dc9e413e645c537ba6a025a5b85a23be86512c4169476583a749714e9632f00fa5dffcf1b10d06aa4c5da029c67151bfc3b8a295f1b194091b3b7e8390940b4e8dcc6dd7c241e885721d91a0c1e922e47f413bc520bba6ac369af2e6a0bd478642a346ebdeead1a473164a12a060503e4b0a785db39884f4066fc9dae36224504400a4a5c9af41b5cd4a4df097a0e6758aaa84ceac08a1ac6d6d11306436aa990cc026be384232e95f686b695d6080",
            "0xf90211a01ac0f6de7d5ddae9fb0777045996418b3005511a8646106a53e64bc2d380c95aa039a3481a684436b687c97f2c96261ad9e3ec4ac932b0115636dcc8b57d16743fa0acdfb85a6a1f35e0d64b4ab2a9985d9bbfe84d44a27a1e6da221461ca864efeba0a67b6b0329bd85dd20d03e675c2cd10befb7df14f9f6be664e17c0970158f956a04453248ecf2e6196897e713faded62f58660777c8d852f6d3ccb6d3c232c63c5a09df076199ea86cc1b69b18f43873ba0300fb6c6b07a238fe6a07a6b1f349eca8a0908985a6b7849f620a718cf5c5a8b2d6425a8e6b0117b79db012d7144edaa2e2a06a2a48f14e94d4c010bfd3433c2119544eb55884f176db2831ed85d4e92f5994a028a5e7727ce24a0dde01cecfab6b3dfd818bd741c74d6e4501070af484f0f70ba0658d3566fd585ec3b510361cb7b525c7aeb9516d409eb1fa494b115f628ca38ea01034132ef431f67fcd47b29c967c4a29ae6ac8710025460bae79237c18585f52a0426a08a32e618797ae01017f78b0ad08dfe6ea30660c56f3676d652e890085b4a0dae27b09f7f908886300d88cbd409ab75873640cc27505ae6713be85d47d246da091ee8e8901e9247dce651dc9d27955835eabd03f08cf85251f3a4f84eaa32d2ca087a18146d660103dc43354c3602f999cd28fd2cdcfa1d65370ec5d5ec6433172a01147996e21fc498f7febde14748d9e43f7d732c1b01c8155b67c4d953cef3f1a80",
            "0xf90211a06be0fd92e97cc1a5d0aa0f21cae5c4cf76b70535ca8653e8895be2863ca57823a00fe32e3d01a3f699ac7379463b480a919416ced85f384edc1e8318c793f30e3da0eccefe13cf89369afcce8ae11a9f53bcacb3549fc5818029ebb48818461c2494a0fdb2ae98d10996517c098ee72c82aa20c755f9230f716b8771e043dfeba45d28a0f406661238e37a8739c377911dffb37c6167b719102e0eed75e38029e59d8e8aa0f227293ccee7f03902b5c5eac642dbd1af65c31890c09073c553a525c26c3191a0fceb0eb175143832ab768c0b1be0d767e33cf189032e877d987fdb57a395e292a07d659056fd5bb88fed80884cfd48fe78549c2a742a765bd1ce199009164865e6a03df80ab37a565eceeccfdd26f8ae7d8ca013fd8d96415ea21488d5373c8c92cea0821843cedb570d46520ca79becc901cb02bf5e8df6231171a93b2d8ecf67c8dba0ac7fb7a0bad7a8ff8d98bb636da032b07af963d552e690e9edf375e6bd404b8ba04d444b31e6e34e041c180a30be4e4f187ad970f9b8d1441313fdca9d4309562da0403f5525f45435016b8f5d3db61251e720b1305782e79dbb2d6afe7ae167f8bea02c10433e8f0a864a1f1434c9ca81d1c38523e9b7ac1a2b5496a834a68b0c88e5a06aa7dbafdf069bb5c3efb2d7874157d2d92baea8f1c6f1e880c2a3e8dd201a46a0673a1e2cb21da4b8211785a206b90f7b8af9d4ef45c920be693f2ab2e74a791b80",
            "0xf90211a0d335da3932c9f75ea34139d22cc9e3229fb730c04d387710cadd55606052c16fa05fed6f051ab28adbb22805cb8ad33c4f94812886dda953aa7f737ade7d84fdd3a0a2cf37a3c481ed93524546c85546e17e66d0f21db63b4c9046f7773a438b8e05a0a738ce7378819cd1b3a16eddb4487cb7fce8b77cf3c926ec312e43c6b74c9e4fa00a7009017563aa4d370014d289bab7b3281a1e126a2d05d8906c379f8f17f324a0c32c47b4263aed4a9710b423eecde7fd1aa4f7f599492e3f8f2f85466dc46e91a07bbed52a07033b8617e4ec17fe438f46bc9966076ce265904af47a7594ad6035a0fb723bd7f28372aaa333d5b59fa17514a0f18cd7354f16ee9e7abf9e7e9a3119a0085920fa8008da14a20cf76828f3ded72555104447ac7858e3b2a28f6ebb237ca05b73b9ff818ccfbf596f480910b2100daeab01312a6d9d56925f5101e372f887a0ff96cde9fdf9f6af3b7570447ba62f8cdb4fd9942c8c5fb3798ceafd4ec641a7a043ab1c0829218d254602cc1e3228d968f83c3e8ada274cf2c641fa708166038aa08abbf987d0dbba54f5e630644aea6726aaad7036b841bd75d956ee37cbbf97aba01846e46731d15bd14d8eca06dce96eb64253d5c15c0f08b91d880129239ab7cca0df997ce3a8f65c46b7d5120cd2f8ae6701633f4578f06b67d8a8615558a3e0c4a0bc683773dd5e92b40d03e6ed71207dd39bca2d1e6a443220150f2ba29299ec8c80",
            "0xf90131808080a0f1b73b7cc2d16ee82934e43c69e43f1b5eb80a12ce58935eb02291ceb44e3431a0a561aee7e9895016c8571b85f89d1095f8be9dd6f43e884e6e8924b0f4267215a032718305e699c8e5358413acb61255743adbeb6cb63cd2e1e0f6e16243714122a009d82f3d38112435aac11ca642fe9a0fc56a2699e16213f633a14df64896102680a0eb0eee6509b9383a42274d4995a02d7cdcf87aab101ce3468e023c7da6eab703a07186af76972df435904adeff1f3aa17a1683339529fa4418b81b5360d9da23678080a06315cf77d20cf04bd504a0061fc9ef7e61801b7e5929f613dd24025fb9380d6ea08586fa89d8a1ad90d791011fc8173578622c9430b3527ae0f869db59bd0e707d80a00c8a063218adb4209007c541b1005ab9a4a33c392122ecb7e80ef359043d857880",
            "0xf8669d30733edb4c8d0c8791a142a302a4557d676ee282e791db968e06f51437b846f8440180a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a07cb0537ae61dacdfd35696ef622af83418f4f60f052b36671cf032a95ced2eeb"
        ],
        "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