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://gno.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": [
            "0xf90211a0f36f3aa9c9ace840000d751371ab1f62ab26fe1b36c206bb532137587f4bf25ca0bba06bf3f045979e19c47b6208b5396f0e9d3ba7c40e804a64340c835feed8dfa0d41a58e3738187b6a21ad510c52cdf9ea6123e3228cb6b0d7e5d83af3c04dfffa0a89f356d79feead320d40ed320247339b02b37cadc61048b1a8dbf440c20dd62a022f760be94a16e8fb6288e7e5c94ab456ee9ea89328f980989e20d13a0df01fca024f5be54c3185c57a3893447822e8cb193fc1be9dafe804ac8119bfd40e2c688a0d168e533ecb81cdde9156badeac878248290fad56165ee14111beba9aed5c069a0ca4036e90ed6910edd4609015be01ada88f107797686ceacebc49864c9014ecaa01f89bc466fdc33373c072eb0a4849906123b6779355d913775da44f3c8c50f50a09c06417198608cfcb13db83e81a33667e1f1f8c80043f518afd82b63c1ee5c5ba00ef801af1075c076c902883b93112decec6e4d1b3b2baed57aa86dfdf1a39f23a0fb30083048afd4731c268a271e5b4fe1e8035e37f7c5dd59dcf22cf8b918bf7fa055d36e229850f948aaddabdf935ce55e3a57b4aa0c6e47b27550e500e176da35a0aa33b49c82fd335a83a54939b69cb6ca754b443e2740a921206a6c1818e3f7b9a0426032863d7624c5f1ccde600fa81d6b992ab16f544ae59ec2a4702cf215281ea04a489b53db41866c9c1119d402bb123e228adc24fd7b2cac5bbd6376a235060680",
            "0xf90211a0cfd3faa6ddeee986d0eadbef87277c73120bdfa219c2c3bc0d47c41422d5392ba081ebbbe9fe62cf7d2363cf62177febbba8aca78cb2080423f5076855271c6d4da0d72dc39a6cc1c804581431d698c6d508dabea4161a56586612dbcbcdd59c8dc6a0fdac21d6ceed474c550c0bc5aa1f6986028b1f909a5beddeb4f3f51b3f09ee1aa0606c4523b65ec76b7748221bf8a7935a419fafa583179fb2d80207d3561cc34ca01d10b6c364ed4e080e51f640d62ca4a3dc17b9463ed09d296a2c982b2c07c639a07faade1293150058100ecc82fc2574c71cf921f2d7088c8e2bdb26dae054c7fca03db293e6996f8b54e4423b61feb88c98f0c1d4dd4a447a8f9121578a21a85de0a030ee76d70f33db14e6db27d70b34923a398174656f197ee1a2ba0d54555ef014a0bad9ce5c84d7cb53f9429d5714ff730c5040547c78692c971e9fecea60ee4ac8a0516ebd206de809475a99d0bdbebc1097454d05a732d818ee7f7a4c4c077702b6a0c220fc1bdf1778f6effc2a6d2cf7aa7f236387b8f8ac9d21d53b1fde9bad71a0a0b805049d0fb8e901c4bcefc6a965c515789a7b937e563eca0db19ba1159e8b98a0f714894c0245e6d293f873b7d326f5b8dc5aab156d2f75cb30d918ec7c43d4c1a09ca1ae1beeabfb40a6b9ea8d69dec85d97aa8dfae9a6a93e0df3e10edfe0a07ca06a672298f57ebc4c10434ec554fd6d5ce6f6d8747f1d42957df1ec8c0955195080",
            "0xf90211a060c151df4d0793229e51cd03977427455f61e851a6483ceeef93c07ddfd0acbba04928cb82d1521f1393b3d816ba882218350004f9657b018eb4fe103bd14be6c8a03f81382aa088a8151258ee4b5894994ad86e246bb023a612e79ec0c3470386f4a0582dc48684340aea80a6ee80bbc021d3b6cfeca14720fc5dcfe50ca63fbae474a0bd9ed9195b50ba267696e2ab0be728a0d62a217a4a910353fd80abb6cd78eb88a05ff31c75665b67f1810a35b78fe2fe8c7093f030818ea6e1c0f729905e50014ca055623031eb715da2b5b03eb98ededbc7d5699dd85cfb49af0c17cd114233627aa0e75304a58e8268cc832611c85c68b2b60cfe63d3802ddfc25b91d11029bb77b5a0dc2ba7648c529abc3eb54f2ec7b1a6d126f807ad713eaae9c5c1b26fca965f51a0ea528c8ba5b4bedd6f11de8b44ba2e9551ca3cd6282d56e052c2b866d1e41e93a0d7406c80d521a4ac94366760d05a37cb9992958be3d13a90df1c7c9ff2617420a0acf92e87487b2ef58a8e32335039b94d2dd1b941fafb28863a3e50b14a970f35a0b2c8d6d5eecf2ab0323bb7e06fe6861518756765fa7f08aff1e32f086580700da0f9f023f38837eac67ba0227bb9f1c8901163c1d11c9370f00a3f499e9ae2a070a03e371209cda4e4a217866949abb552f338e92ce75f90b55ba321b4107338a051a062dff543788dcfd1d8fb28b6f1c2e6f2307d383c7d6b3a451d946e0829b6572380",
            "0xf90211a08c00a5acf3933787b709d7f06eae719d0a7791351339d725a4d0e00ca80129b7a05824a28a72b2f5d1320ef58591e0cc233d746c2216ae86aa97af3a6761b596e8a0dfad235701b03bf69635730a34f9646a5dd82b2f835ebf2ee4d61840652b3016a007c9589730892a72728d517dadfa438ad06bb8095f9f3160d9183e564b7b8168a0feb231d2da7773d5aeba12e6a0eec9ec3e367969dc91b6efcf131cc864759be9a0f662472ba3d91b6bec245f835f92aec87481df843c5e10013c6d261c6fde2a72a02676a265a6cfa84fd2fa1588e4da3c5cb7fe8c6c74d6b50cedbcfcaf5a7f5f02a0ab4547e73c82e584ecf6a67e7d985d77d0ab76b9e63809076880f318e9577d01a04401527ed9a8787c90c3dd620b4036cce70aa9c0fcfbf3fe3b7ee9028ec71c3da0a4255be80fb5dc9b138bb86f1e57185cbfdee5eeb809cd8d680ccd71c667bd77a0ac6e6b2d4f196f8c9b311cbff566577fe90ed89a60af72cbbaa55b1dd815e7cfa0881399c8b277afcae0665fb1cf20c196bdda8095f8323a09038d6d4b571d9e84a069e939b418232f9bc741cc37a1436d7c39e1c9ad7c9c62ad301047fe71473a15a0d87c7dd550e2866f771a162ad66d184c84ba7b047f20eb928e7944fcb022c8b3a0edee30e3ee6a0e9c818aeddaea28c448450a0f6d9cccc7c8eb8b0394d0b3d54ba0f4a62224bf8317aa1efd32c58b6a4b6e85563e52ccfe23a0ea2a8364f20e1d8e80",
            "0xf90211a04645cb90324a896ef615d503250d9af74445f76efd18ff42f293866944b03ff3a0b2942182f13a07247ee4a099cc3f550116864ba42a128a23daed673a6f58089ea0adbe24c9b3e3b790fc39b4e3df21d34c01770436a11478bb93550abb41bd8c79a084c2e8d09e9ab4b1e3df08c798aedf366c8ff26ab997ed8e1f18109d2d91553fa0b058a5dd15eb62be63f7f3f22d85754ac6033e91dbdaed79b8d5ce66a8dec10ea04cdff36edda206474ca8238098c97f8557780f80d59c0afe2878f9edf31d5fa6a002818b2e120994494357cb39f00b623bca529fed55859abeae276c1d03a9d76ba083e5b7f0a9375ea7dde4b6bc9a35a05b89b62d196d7e3485077cdf579ac5201ea0829c8f7c290a02a56c32196a3ca4c8603682c4c5bdaee3f4403961e7bb4cee62a04e161261aa58532cd295b55ffdc17e0394a926d55fd2718d9ef0f5ba36efdbdca019610ac9adb37496676f65c472c1b63205f4201cae44e95e0718337e8ffb8193a0637467fef43f5ea2f342acd3fd29528853ac6783be0a279e096bb0cef91245eca0230cb106cf9a431ee5b809875009c3a556d301c94b5336b1ae98c89a2bfc536fa01b44b13f79cf220ca4fd8f91bcd45d9203816a172052154bba00121ecf46fdb3a0dc525ee093b247fe4955a0e908088e2216e0f9d8511c9aa2f63ef6ee8abdea6da097015c41a3a7514f2a63e698a6b880d712818f116ccb0219ccded5ff03be911b80",
            "0xf85180808080808080a0d3a182ddb0d5713ca489a3f7b9200cbe9952fa09d332d74eca645339b0bb545b80808080a078bd8f4229df4b088dbd270235ef33df044605e8c327001d8bf1e9cb12f632e280808080"
        ],
        "address": "0x0a8156e7ee392d885d10eaa86afd0e323afdcd95",
        "balance": "0x0",
        "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
        "nonce": "0x0",
        "storageHash": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
        "storageProof": [
            {
                "key": "0xc48fb64230a82f65a08e7280bd8745e7fea87bc7c206309dee32209fe9a985f7",
                "proof": [],
                "value": "0x00"
            }
        ]
    }
}
banner icon

Start Building with GetBlock RPCs for Free