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://bsc.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": [
            "0xf90211a0325d087995b284dc052920354e9e24239cfb54b5d864ae2e3dc80b9e0f79a044a08cc73ca2c06d9670dc4bef81e4065ad16d3e486aa8fca90e6fc4c8bd5870b9f1a0d7f1f9b0ed58f1c081d7dac3c11d25236fcdc4a7b40dd4d54df143afe136b1c9a0f6e1efc5f9384029489f32536914a86130e1711373f4baccfd8770fb7307b52ba01655bd4ab92b67825135f3e357291e61bd69387f426c98a3ca82ca5bc1753bb2a0621687546eb053c1ad29b97fb8f98bf77a5b6cca4395f6348f88c0c8b91f730ca0a3820d46450391ff7e64ca8b107e49e01fd3c8ee2d49b063e1c5fbcd07193cbda01662f5b1fd34d3630a30fefc684687c6f16ec69d9b41b1167c0775e3143376ada0298b56042cb2b235f6dcc4c579493c2e3457d6a4c33f268dfe6afb3e71da9a87a0b65480e16bcc57a68ef1dbc6927ad0d92c3d12ae70de48d1e89a29a4b97bb713a05e0a380c2c85aee04fa779f32691f38ba041f390f96d6cfb3c4f59ab83501559a0973f19b259d71b3e60e4c25d36f5811f4644950d7ffcc7ab3a97920e26980e05a0d1b5a92da06c6b944d09d727cb4e5500f1363729eaff6e18c38de74d744c3667a0be1a20dfac4a1cd11849fa559e552e19bf44688cf01176eb199091b8e0fca544a0a17599356323d855245c0d3dd727f176e4297e8ec0f94c7b58c89ff3298c39b9a0bde5e18636e106144216e604334f23d11a819f9574e57ab1dbbfddf5309c959d80",
            "0xf90211a00cf565127b5166514c9d23397c56a4055399a0036c77be411e7bdf2f42223033a0932e16474695c4f51e8aa803a787d83bdb1f4229eb6779c328c363479f9516caa0c1d2c86616561dd368347064319f76eadd9a81af9fcc012875ce248869d7ca2ba028a84cbf7faf63f558d548262fb48b27303db2f8be918bfc1a5e9f784a21ce11a07c266fc4e8f86f384ceb23f5044c693481a42ff09cafe132b928129a9bdfb83da0a7a1ce2bbe15a3f58452bd872b6cbcf306285a38a7078c54f6a8afa833993de3a0e23fb3842e88be5ee7ae81a61502012c4b238ca653badc9e996b54c92432fd12a07e78cd69496fc537853f6caa9098a167bf5843d6bc40bac5fe7be9a853f2c2a3a04fcfe912a975bd2cfe92aeaeebea4593c15acd79edd445efa5c55fbbc158be8ba0fd29a027d01bacbaf16b958002ff0492826f88799d1c28ef4997bb85603a9941a06b1494c595a2af708ce7cf530a6c1f1675ee7a81d43dff9d84a68596ec8b6d6ea083bbf7628b2919765aa92f5ebdc33aa47c0edfebf899f9635dab22329dff70d3a0f66b37bca5c576bf62034d01376c49e6d5e7c769c026a5d0ae26a8166539997ba03c3e9760eb4a140f0a5c149d823a9e1ef93ea30bf61ccf1dff63919fc275e6eea04b99a7839b9c7014e5ef3223f8d5c6276e6e8bda22f5a26373731077de8d8a88a053e35bcb7e28fe46f66d0788130792a06998cc8b75b44b28ee0179646e3b450480",
            "0xf90211a0c9c14814225122a9b70b0c3a99adb137fd8a489c39da2b19b531ad8ce2eb9e98a06a44cd46745f3c9d3a73f39fd9f134f7be102263d00d71a6dcaaf2bc3ad5cb69a03b0a0f09d2c2b5de7e563c3ec0462b40b21b8a5dfb79838c7e066b0d68389e5fa05f08a1a3cfe8f9f15b73a105f6dcf10a59825b64a8142a04c3f95a11c72a4ff7a0f728343b2a16550ae310b555cbf2bdcb17202684de47bdc866cee7b2a9bbeb5ca0a0ce03db13cf64356f3a8ce144a13aa57da948ec7da828c29b0e5e500a374251a01c00d2433bc8ed1556048da09b2932a3e382063866cae48fddb1d2777c0af06aa0a7053ee33233cb2d6b997696c5bd36173b095bf1b3c17d457a03523a272c3c9fa0f8b4ca4ce755155b3236dd89df4e3b867c2ad3a2b1e40d01d0d8b25c9b9baa69a0bf18a9289e7faeb3a44ecb941bb5673da8536d37fb1d7993a41388bd6c2f64fba0591774c1fb9ce663477661c6f9a3f93d3aa99ec1280768a082c19c1aa7c5625ba0ab8483d396236bc59339809d21f8ff3c3913a52b42102a419f0005fb5cfca449a0bb08d721baefe8af8f2fb754ad8c7d5a0063fc12580db66e307f2dd371210154a0d81727aa5e873504fafa8d5ed333be1496b91739f79a2a1ab08eb70dd5995932a09166e24858724a5074d4f4f8248e3b8c22c90324e5c32d6fb312c3ea1d588020a05b227894a0bc0a3787fe3ed1231d6a609cf9a35b69ec347c0e77cadba2d9a49880",
            "0xf90211a00b9069e17b9d2d18c5ee2fdf6abba4e9d24f39553bc1628b68878dae9d289c29a00036b5f10aa15b4681d092031a49a5c28fcd31af3cc4b6f9fac51ab8e7cd472da0be8da8381977e826f09c4b29ca065131f49be241aa1900aaf2a8df1a6b974b28a032e7d4ec5e358c298e602087669c18f66e7cb1ef1606dd3a5b180bda3fe7f435a03506c68b13272008315578407d3edfef17a9d2e11ba84acb4887718bb3924d6ba09971872a8c4610faf50f2c89ca0ffda471b8f99ea60311894b568aef49e166a3a086520138917cc20d9f08b291fef547acd9a649a7f63a2c21e8bb27815ebaf147a0d9ae1cf012c9de3a748ab491b7c5e075efabc01121f7606491d387ea4a0b066ba036b00ee13fb6215f9a2836e530f3f3491a7dd0d4df0592674b63ac0e5b0ff737a0dc75411afaa3013816fdd1ac4b8ac09053ad6bc784fec02a5e13a9a1e6d6e0d6a0ff7060d21efb3c055d17c508ce05a1789cdb84935bd65ab23243639257535254a07671f332871fb64304687cebd2a6fb7f24bc122a5fb190fc8a573e8a1638d652a07ec19dbfc17ac300044f67f68a3c86d6d98e1269875b731c9ce21f83c7526659a02b8f51946bdd8cc565a1544867a06dd8ea1778bdd0eb76c723e7d73c53dfd756a0a9a8ed16e5a1cb4d75a9a73a4728e468e9f9664388c27a6ca1aecbba9548ef5aa0deff3c7297b000a1d6f404f4fa1b602ab23963a7f94de41ec763ef9814bd4a9380",
            "0xf90211a0a59a6c7a3e181ec4283cb7087c05e89a08a3776ed2ad1c619dcee9532b9417a8a0dd6516e48541cf706b617daa002a44ee90dcedf19fc2d8278384605ca9342213a0057f2ce716f459db0485100375fc523edf993d04a1c32976e28ec47ab233883aa02d88aae4ccf7136330b3a4eb3a349f512378c8ba4764e13aabd6aaa167535030a0d3f609a1c2713dc59b307556e0de989c6db4e645a604fcd86b93c30a04f47e83a0e8c290b8e1058b03f2ac04db8da71be6431aed1baa23c642fcca9e95b6419a43a0967693e497661d14ca7d71d3c7c1ef8954ec8df03da6ed96a9f9a58e916a8df7a0d443c808c7e2affeab5158f2aff861f1bee6dee527d184f91c9f96e92a3c5e22a0e823ea31b28a97b7f0c9e71eff76f66a523536d322bf7e7a9147e36b8b32d85ea06b16f9a426306e8bbc1add25abd2651f77ce989e7847596eab1e2dfb7860aefaa0d08d1605f7c95733dc4a2a499fed12e274fa7cfbc6c0c772b0c3af88dbe37ed3a06e7f9dd88095a6a78bffe6326531bc9bb880c58a7219e39ec11f336d0c636291a07f7ed815377701ebfe70b3d507e003260a4581c35b51eaaae6e4e79278d1d4f8a0ec5fa35ecb180e132b4b1dfbb912fbffbef6dfa56d82463d2b8b3cca3f36400da052e410e80a1cd36ee206a85c00963e055d22360ec18980a2f2bdaf795bad39cfa078fc18e4ec1e2d2b7236d331ba017d8edf004ce07e1bbb168bc585bf311e172780",
            "0xf90211a06931dd01311043fccac2d973f078ddae66fcd25dff875dbb75f46db94d3a3375a0cc9b9368eb0a3c76d97b2b951cf7630df5c07e448a51e0e0d4adffb16441f81ca02118d1b083b213b0c881bb33cc99110634d94170e261c4d62fd22ef235ab23efa0cd97d3c84554e839ec389e19d2844e8ff655c0a243b7c5d085c8b216bb43c604a02ca22b2ba1d334fee15b996d10daa6b8ccc40fe93e0f24fe9bf90b6be3ce7832a0263f4bacfe32922539d9bc10d8e724770f1fec918586bfcb0a1c4c00f8d7c282a07720c7c30dc682dd98fbcd617c02d9b7bbd05af27c91b1de76a04839b088d910a0821e21a1fd8533040356bd759ceede2a79e02dbac9a5d32242545905032d9867a0d7038e424f7610882dcbcf583ba31c43cba4bb7e9369e15d29d9995ff8b17c7ba0d269eee3a40393d31482260431bff02c70796f7374d90f4777c537a363c313fda07733ed1bcf714e2ba768be4ff64b1acecd02cc6648cf5a26dfaadb69ea84bdcaa03b9ab16e3cac5cbb6d3a5b66ad4772522a4d598beea5a2db00747285c8f91cc8a044046274d17107400068f6bf9b4d0ef0d1e09471d3127122cf7dc312ea0f20c3a00eefe90d11be24987c0fd65d1cbd0b2cadca9545de3b8b5b7c5c51b1a841305ba0a17f4f8a5d63728a4149d3e834bf3e9a066c0fd422d71a81bb65a798fce7aad1a08eed2ef9b3777dd759eec8d7f07c118c15cdbe96d6b878e45d0ace69517d048380",
            "0xf90151a0a38f990f38bd3d3a6c69df83b9dc6216fc541aba35ec0e7eb3749f30084a6c1080a0215009a5f2fd888f08dde7b9ad09d7c2ab0c01488a7665990504346e611b7630a04c7b29e592cea1c265148c75d5f133b6a78873b263b61a6f14cd4d88981a45a4a03277ba33111692fd6f88c9641ad124858033e2d030f992fdb186035df18063f8a0f8d2d1502c30d33422ce16473d881f5478ab50e23267490ec48274f31a59c1e3a083a8491117c8e11f9402871e6f1ebb0c1bfc068b41dc7d13268ad006c63a2599a0fcd9ec9735c6ae153d53e731127416d1b9ea6037724ed1d0e35e76e6131b7fda8080a07bd882107e5d111955fa186d9927ce76554f75fc87c76df69f437895d1f0fd08808080a0e2b573cd300181a1b8acb970eaf1b4e5d6909719956bb13631a2af2a6aff5167a0f59cdc7c94d8b0c292d75746ca09a42d8eeacf638d46d727b78c7cbe4ab124cc80"
        ],
        "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