Last updated on January 1, 1970

3 min read

Method eth_getProof undefined ()
connect with WS 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

wscat -c wss://matic.getblock.io/YOUR-API-KEY/mainnet/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_getProof",
"params": ["0x0a8156e7ee392d885d10eaa86afd0e323afdcd95", ["0xc48fb64230a82f65a08e7280bd8745e7fea87bc7c206309dee32209fe9a985f7"], "latest"],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "accountProof": [
            "0xf90211a0067e7eff3fadd0cbe60811810beaab3e262f374085582900655dca0f58c07b05a0835b7a0deb07cfc13cb157077cf4071e64aa1e26306608f48ea46a932085e85aa07017115f316559066c4b62df5de6505edaa5c87ea6ee2d80caa8aac1e199c4c3a022dbfe9f72b01ba8d934b368e9424b87453b8a4cb6fbc625d0aaa512844e872ea0d69879cea703a8fd81fc77192c37182d68879cf6ab585399d53c3f05ddd7553aa08941740d2ac0c2f99fb5a1f2959f64c9703148dbc6bd4250081a8f836bf2950da0aa99df3c73b5da0159f7d8d2aac85a07545dcb9a499ecefe455e98e251a8a9e8a0fcbf66f0652c93cfc2b9f611192bd10032f712070bbabb4ee43ce3da1b601e1aa0f5682e4e1f5ac420b0c062d9ba1d7f49256237d767c824220ca0902aa644f581a0dd8c90411fdd491f36e5df734832d6d553f64aacd251bb64f55ccf75a0af334ba0dd6ef733ebaa814c1a30cc2f53bdb78c74382776d67917728506b3de59d1f46ea0b2b151217ae15c880e99406201fdd8f3622d3dc229ab5bb3ac09c11fe1ce9d73a0a06c6c46f448698033c740a3182feb96e51356b4c7f2bfd078f953ccc6510954a0eab614c6844d89de32729dac4d17b26c4edee7dcff73994d7937bda3790f891aa0b4ed387ca14848bb4f61a2e25a10eccf32c1b794c4e42a829b6c89bb03c84475a00595e78c691b101f966f3c33672f30fc4a81aaeab07ef9b18086e8fd0f51766d80",
            "0xf90211a01858d1fe7473b1d794e6289855c98af1f3d4ffd7f701c2853832e9a6a025d471a0f2e5e37aafc42478a29778f19639ad5d8dabb5bcfe97b63d02b4580758d8185ca006ab8610483d41dbfb6dfaf2fe94bfd8924c7fea7dad36131bc3bc080a5f6536a004ffd3b9bf00ca33b9bb3b166557ea2a24e2739caba0e9545d2f52ffe6d24555a064089f2fec237e44205c7bb1d9f133d47a8e338645d285f79542bf0e5cf77949a0cc7f5f0baf28523972a8035b41b6c82fb258ae1b12e23209a6791b6071414814a06285081aab27d6a8ff9e03f88c597779544653e17eaefbc23aefbcd4526b884ea0b01c37df3e992cac40a51d9a4a537be73b9e8499a9206281d87471c1ae10d3aba09dc8fcaeb9922bfb3430dc608b5b9f171812b2db9dd8db113c7577a5edb12f59a06d5eaa0cd5455235a1d27883f16e8b650b347685ce6ea3659fc117315d4cbb17a0d1d1123fcdb3591bdf623b2132857f892975fd403b97c258ecb9c02a252219a2a077cec030030099f3b6dfd59a70269c59d776d17ff02b5cedb3c6daf17d6dc633a0f5a26f6f3422eb9dc982cc0654cb2085f65ad8cfe0ddd6bee8537e05e5e2a771a03700ba4e2321ff5bc2b07a116315df364edb5b4c0c20f2b52d05c0b86f99c002a01540546edc9177f3f690c47c6dcdae5abba839dddefc697cb0afeae721d229fba01a7f3f7a4885850dbde34b8e5b2f3b03cbc4df15e7b0e4244f5b8e4e529c4bff80",
            "0xf90211a06fd0c2f6c3b03b3cdddc922590d2cf9be9fa991dbf6b47af3af12ccbfb0dc455a03e814ac96f42615cb5a6ac00586b0b0aa420efd234a7c4800ac88438fbab1f36a0d8f26660d7f445aaf5c1150f05802882e41668311833fc87c03aef4fe11058eca0ceab90b9165920ce4a2fb489a675283dec63f6320f7b9abe11ba68052434c363a0880fc526b97bb516e5644ee7776e03caf3c2c20b206a157b7230cab51c61742ea06aa299aaa0064077e9854eb8d77239f0af2ae2e7269219a2607a6a50181f1e07a028381928d8e8276717b63a83ae4d6d08f667b0a4d8950627b9ef04c0a727fec9a0630dfae071484444bc883723a1d7fd3e886ccf4d30df96300d8a36d23c061b9ba0412848348a65f72bb1a0db1bedafc5b7b1e7eecb83c51b321738b9f6c5d47ad7a0b8f2a20abfb123164d1313b1135a34b981fe5f99ea1469d04bc71bbf1db4451da09a871f81166ed71b9856892761bcc6a73c05e87cdad6b5d7fbefdec54999d870a0f84b37ed3abafdcbc7eace6d1e5bd46f08960f098202f53e7df5fd3c4729d388a0fc6ba74251053c88c33e23f7dfa8441acd0f1baaab2f964a304e9552baa6c268a00f0717be90b3dabfc17d1762cd971e3b5788c9e6c051d964135fe405febdefdfa0c66374364606fcb76a5b1afbb8a75351acc227ea472de235e1f726d6bd06ce19a010ed23d83e8d2ba1f919388578045a344ca2f1f61d7e61c8da8e3c1e6f4b2f4f80",
            "0xf90211a01ac0f6de7d5ddae9fb0777045996418b3005511a8646106a53e64bc2d380c95aa039a3481a684436b687c97f2c96261ad9e3ec4ac932b0115636dcc8b57d16743fa0acdfb85a6a1f35e0d64b4ab2a9985d9bbfe84d44a27a1e6da221461ca864efeba0a67b6b0329bd85dd20d03e675c2cd10befb7df14f9f6be664e17c0970158f956a04453248ecf2e6196897e713faded62f58660777c8d852f6d3ccb6d3c232c63c5a090e2dd85708a742ca6f54144ac1473c49f761590c8513305639b43a53a682476a0908985a6b7849f620a718cf5c5a8b2d6425a8e6b0117b79db012d7144edaa2e2a01009525fc628b0411fe9cb3b7d2f3972a048c64485387c16bf828009db1087cba02589e2cde192575543038db4aea55767283cc9033c64e6658232c71c598c6c7fa0658d3566fd585ec3b510361cb7b525c7aeb9516d409eb1fa494b115f628ca38ea01034132ef431f67fcd47b29c967c4a29ae6ac8710025460bae79237c18585f52a0426a08a32e618797ae01017f78b0ad08dfe6ea30660c56f3676d652e890085b4a0dae27b09f7f908886300d88cbd409ab75873640cc27505ae6713be85d47d246da091ee8e8901e9247dce651dc9d27955835eabd03f08cf85251f3a4f84eaa32d2ca0d38a8dd82745606b211b2e538291f38ef33dae3d4960031584563790aa68bc6aa01147996e21fc498f7febde14748d9e43f7d732c1b01c8155b67c4d953cef3f1a80",
            "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