New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image

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://optimism.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": [
            "0xf90211a01e872aa2e00186683e4171edbacb5f788d362d21306cb6abce7f766fefe1c725a02bff1071d43ee9c7353467354376c4299c0c0b842c8328be91c601b898ee5220a0651f8f75a55d97300ababfa7bd4399a5d9ea8a7c88fb0dc86d62e34a5bbef126a03824794fe3543baf9637a9e3d83e13293bc67c67e6be3d690d6d98c97c3f1b77a02896e0c0a7a3bfd3cf8e4f86cde1739ef175afbebc1c84669777ea79ae5baca2a0c72311cb768e2d99026b59d8cedc8975466899ee1ae95075ec791d477bf09e2fa0022631b75c30d9ec677c31172a9e017b8159e0a938dd1c1abdf2f17e4919147aa0436edb907005e9c60cc51d09d97050f130adc56de617d8115fb3964b7ab64671a0160187c95b5e23be7709f76ab3983ac5f1f6f68985286727effd4e8433c9ce19a0b8e763e032695f35eb8ff7c70febc4cbe3355666aeca34e60a21713e01d311fda041e678cbdbb2993ef3f32429d014cd6fc77c3960ae6777ebde9d1b1cf712522aa0519ceeda0eb0ae598a5c1b52c5ed1214adea671801bddffbc56522a32da21984a0da12309f3fd6f21acee6c37e83d7ecb386c8af34b9c58d6888e1251571f4ad2ea049d968860fee35a3a900e3d1bf71673a16926f9a55e95d257409d591a7d802eba0601b2feb0a3a0faeabf2a226280a076d6e3dd2ff64afdf3957c455ce436613d4a04ffbc080381da6a09a7f84f213297ca372a10f33a3f0bd90250eac55779cbefd80",
            "0xf90211a0567c25bc3beae05d03909816f161548e991ec84fadd9a82cdf22f695e23a88f1a058179280c1814a215b375dfa1878055de4edca3fb35b899716c03fd2bdffaf50a09301898fc3c12209a25a676485133adab3d2109b54016c597e027fe795fd6f1ca08dc6ee370bfe5a7a0f7dac7c158424c4d4caf77a83036e6c2f1a4f7f4446989ba0d99743c118cdb4f67077dcd71dedf51c69c496f4e1e9a5f75643b91aec178c7da078459603c18808b2c45178623b06168950ee69a90c0f48aae2fa7f964bb7bb6ba02619f5766f554ac4473cff539fab448c03f26af989be4826507cea39a412f87da0e3a13327f648ee3a67b1fc349011139c8cb016e6157be48aa881aae764eb3397a0226afbf55d3894dab7408bf92e6702f6f34d319b2c48951b1a06cb6da3fec354a0ef31ade233bffa3f7accd7bedf4764b09416acb1f0af0d7cf5d585ec903c8cb7a075bd50a383b83bc464ba4e6895733929de89cc783cb38d63defeab7a45f80b36a0526184c34d588a93cfa91984dd849ae9d62db608bacc0f0a98e1d17dc49b50e0a01c23134c333d967723d0a834d38e8df0782f2bf3e2244ffb0426f335a84980c0a0ae68f79abad9e96898a89017da1d33b9c5e5afbed9894b4533cc02cff6421997a082837ea4d9abbc4ff1b01d2f3041a64dd32c37cf5b405fdbd02e7f0890f66dc5a025e60a8350fb0eaa2a670158cc48e6b45d4b40f61ef35e89dee32043e296edcd80",
            "0xf90211a0bab1bd4a719a6dddef24b88e7d624734010c683ffc41da5af4940f82aa83c6b1a0d579b8fd82a5fcbae768e7b9ef8283bd0b6e6a200f21dba288b41246058c0e4ca0bbabf8b2951fb67ec16c2966abef64c6a15a975d1fe6f5a876d5a418da8fb5e1a0b419efb1e7a470d145d67f304c7bbe07d50cbfbddc8d281ea971c2502ce88474a00423163cf612dbe8256f61b4a91a2a5a6ebaac18845d3c8f1850ccdc19750505a00dc0b111ac207570f4c6b6073e3d9611887e3fa3a5c393c70dd9417e00eeaaf9a02545a5b6ba9b3e15d4efc1fc3a54ff6038523b479fc60fcba133c8ce35e1c348a01acdaf8df2aa6f03dcfa4349da379eb2a4b2ec2295bd0debab812c7d67de6868a03e16ca906fd5cd3b5511b60cf634796e9f742de9c5b55bb6fb478b2ef4257622a02b7257dc379687ecea44f055487416e8d9ed902176aa1f15ce8c90f41ddbc3f6a0bf9d59f9b0c6e50d6f409c644d3f404fa68b23c24b9b0e6cbf9d3842d94c74b5a0cac5134fc085c16fd569de1676a1ef940f6f01153c37e7f738effc9a6091da5fa0a9711427d8f6441a1b7cb47a05d29cf8a17edebb495d539778c8ad5e61e4e7d5a07b6bc4a61ca2dfd39b64f55f5dc2e2aa8bb2344ba84269e43ecabe6a17d45194a00ea2bc10114b354de3724f664db3710acd727a3a698167e529580ad223be9dc6a0d6317846d840886d4cb23364a8a3494d39fa14f12e38628b23e04c186220658a80",
            "0xf90211a0239158e0775c93e3f31bad79536f0e5cca7135d0f45aa418833de3032f7889eca0a5c5b4890d01a820478f1a32a4f8f7b425fbe50520aa60443da6010831d0b606a07c79412c127bf98af01a87d40d0ebc8223957a53ea91040adfd20b8ce43698a7a022ab300d700e7f9daf2bf2c5be9f4b4ecd7da71899418116f353671546b2abf7a005b9df250c3a6cebfd6bc95f209c385c22324a4b64c93d869649d96b79ff233da09f40d10a7a592f0e843304e6b956852a83323d7b416f3710418652dcd7e30aafa098563a4e8c592836c830006348760c32db40e37660c106a479e332f78a6f5fe2a00e129e3a7874944be34a2d996cce3d65f5e53318d82d2efb79d2a0b988ed2366a023775b964cf45111a6f73dc535d99802f67b9483c329b235a771cd2b25937e6ba08ef375a20c280b89b28a9de38a8ff43759ceccf244f794c0c82a5439251c9559a0a321c368a134c10f81eac136ff79b0546806d4b891b5cdb4f317022490f45d20a0d24ab619bab804ed0313f702631f4d8e2c2b0f498493f8e8d71bc942d88590b4a0343f1379e363152e8e1e106ea3589a7c14c24665e8a45ff9d38c32f8ddd5534ea09823cc5cf15f2083de77e02a6fae0710958f0c11b354737984b4e39ce836a084a07b5afce67f86fec0715ee3004a87754634e3462fc1e9e581dc92e8c6cb3ff4e1a0e6f304b5f51fe6d9edbdcd2fb7509a3501b20087906c7773bcdcb2915510029c80",
            "0xf90211a0c52c20c92d18ac19d0eece7ca3434d0148e737a2ec2adeb731be20bb10a76775a0192cbc7cd86823706c9d64e0275a84b851ce6000a0248b5282b27d90ff0157fea0cd858e052c30ba575736de346af926383db3e87d1a9e5658f400234287345cb8a09e696bc19a894bc514b5a6fb891ed96667fb25240470c3cf82fddef1a74161eca002eb90131516480a1fb8b9b2bf460afb9dfe32091763821329a01cf6fc25a26aa039f1a7f66534b11acab3de5ca8da1126966d2b6d6e5d85c980bf16f37f29e7a6a08e647c224ada756bec14a9852bfb5ff3dde0bafade8daee6b4b6c967bafff5faa09211df22ce34de07358a3d40ab398dba2e587b5cf678320c44dcb4422bcf654ba004a4c23b3111e0b13f54a64b21440a6fa6a2baeb6c5d370eef663f46875ce0f4a081dec6fae9dba02f2475a8dd3ac6cf55a3e7dc2ecd3489e7afca9e2e12fca008a0825dd394e683330b90281431e7b41984f43d2cbb484e64101852c6dd98c1687fa03a5d22876a800039187e4cd784f1021d745b054d8fcd4660746c6fb285372f71a04e6c1ad09980b4e19ec13ab03f04fb13144112faa7ef0cb90db85008f65d9402a02814e65ca4b2f09b26894b32a7ed113bca53aaac32f81974f8488fd64636e87fa0b3aae6ba83fe29159962aa7fb3975af57f671114c8babb4455d9f9e390f25e64a0b7162c401c5d2dd13d304cfa245b4040c3daf47aaffcae3849e5e8b90da10d4d80",
            "0xf891808080a0c55e8c89869890f1b44e2aa568a9a70f960fb6d469dd213fc0f880f62dc44395808080a058e168e25a5fdac211d06d2b1a0effc1c8b5c92b2aceec6c36d4e5b94ede586d80a0b62e5032b5b6a6d6d3a802970c46040bd2c4e030a21941f43a8ffc76e1f5adce8080a06474290c1f4ffb0565af1b6b128378b53face143cca598e33811e3e78dfc514480808080"
        ],
        "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