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://optimism.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": [
            "0xf90211a0c70e2b796fa99cac34dbb88700b5f1244016c4b0658d2a5b756172d09e3004fca00be3f80f8b5120871ba2d12150ba304c6b9a4274dbfd3b66f32a0cfd260a8887a02a9568888a9000ed6d129c5c909f0ff59eec2674d035971e441611892798d237a0acc9845a4df7facca6df805cb8e1321d1f5565bdcab03dec284fc72ee585ee9ea0883faa01179a88d69747863c0eabc42fd4973e80e3f5db51bf4f1908dc59fe35a0da92ef05be1d12972cb3c721fb24ffa8b8e50bd6f3234c14466ccbee24323d38a04606663c85c9979243703252aa9c3026ddb323d5f11fdddba1c072edb148fab3a0087d6db65d0f0a21787ee8f844005da73092a14717aed0951bd7ae864a1198f7a0b43e072ea4e0326c339a0bb1eff1619a1e5474412a7ce9e0c86b6e46065d165ba011df089dad77026df0568057bfa53df66dfd31c998b6b4ebf30b770131dc9d05a04d679999511717caff5faf41a0f97b5e93d2a6e2879519fca58eb1a1e9d66666a0962b07e3e9860b54d5c844d79abc75b212d826de8839e3eebdb575e9023d512da0e257b4dd84cea5b844792772bd7293c190c555ec29b76cdeba9acbd39efa46faa07583cd1712771de2335991249e54e8fd543665667df3626fdfff6873c3f25e58a03870a76edce8c5358e26659b5f077c30bfefa11965a8305794485d7b857a1d61a0129c4ca27eeea1504e128632ddb356d74735bb4444020646fa9a8b7bcb05034480",
            "0xf90211a0567c25bc3beae05d03909816f161548e991ec84fadd9a82cdf22f695e23a88f1a08c02b14ce92295fbef079e19bbfdc91b9cc240e939b5d528ec89787aa33df72aa01c0264442a197a27cd005e651473ef08086cb3c874d7ba9b87800315e3deac4ca062bdb12198ef548bfd0f20f5fcaba7c74997f71d38b71322738ba82fe5ead895a0d99743c118cdb4f67077dcd71dedf51c69c496f4e1e9a5f75643b91aec178c7da078459603c18808b2c45178623b06168950ee69a90c0f48aae2fa7f964bb7bb6ba07cfcd54bf44846435f8564bafe2a4fcbce50a5e7014df5742fac199afa6b5a4aa0e3a13327f648ee3a67b1fc349011139c8cb016e6157be48aa881aae764eb3397a0d544da59feb8765dbaa3000a00f29cb175db5fce5b755050f300f94aecf18fd4a0ef31ade233bffa3f7accd7bedf4764b09416acb1f0af0d7cf5d585ec903c8cb7a0df5a2b6c8c80c6331968db6404b0b5d8ab483a32d5e8c1fe9eab0dbd14cfc2a8a0924e6138b2b950c41888cb8266b535c1f175a05758ac4aacd1062d2c06e9cb0aa0bc0f46db3044b6cc9a07c03c6f283eb9db3a78f4bb2b75aa258f7010c9fd4e59a0be31abe4453591ac92c48e9bccdafcd25c1634d22388fbaa440f9dd2ee79e9f5a0d26f3195c4650a09ac18ec2cfb72342ce6edf2fe9cd3be83e02d30f0e6d0031ca08cc134b44de503e6ca5bfdc1a00189bcb588e0fb413447469b5c206c43f4d09e80",
            "0xf90211a0bab1bd4a719a6dddef24b88e7d624734010c683ffc41da5af4940f82aa83c6b1a0d579b8fd82a5fcbae768e7b9ef8283bd0b6e6a200f21dba288b41246058c0e4ca0bbabf8b2951fb67ec16c2966abef64c6a15a975d1fe6f5a876d5a418da8fb5e1a0b419efb1e7a470d145d67f304c7bbe07d50cbfbddc8d281ea971c2502ce88474a00423163cf612dbe8256f61b4a91a2a5a6ebaac18845d3c8f1850ccdc19750505a00dc0b111ac207570f4c6b6073e3d9611887e3fa3a5c393c70dd9417e00eeaaf9a02545a5b6ba9b3e15d4efc1fc3a54ff6038523b479fc60fcba133c8ce35e1c348a01acdaf8df2aa6f03dcfa4349da379eb2a4b2ec2295bd0debab812c7d67de6868a03e16ca906fd5cd3b5511b60cf634796e9f742de9c5b55bb6fb478b2ef4257622a02b7257dc379687ecea44f055487416e8d9ed902176aa1f15ce8c90f41ddbc3f6a0bf9d59f9b0c6e50d6f409c644d3f404fa68b23c24b9b0e6cbf9d3842d94c74b5a0cac5134fc085c16fd569de1676a1ef940f6f01153c37e7f738effc9a6091da5fa0a9711427d8f6441a1b7cb47a05d29cf8a17edebb495d539778c8ad5e61e4e7d5a00e2ab533a2ac9ae472064fb8729174d897584354189f0ffee49336ca3f4eb6c1a00ea2bc10114b354de3724f664db3710acd727a3a698167e529580ad223be9dc6a0d6317846d840886d4cb23364a8a3494d39fa14f12e38628b23e04c186220658a80",
            "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