GNO
POST
GET
Last updated on January 1, 1970
3 min read
Method eth_getProof undefined ()
connect with WS protocol
eth_getProof
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://gno.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": [
"0xf90211a06877ed80fdde2b0be869f4f3ca3c66ce65b7c4fdc7859a8927a914ee98113feca0690a7af52e5338638ef16a85bf6b6f57e4fd7c54485999af01c35045f95cccc4a0226f273d8ae9472949d437f970be3d2e7c6cde7c6a6f8a18b13e4d559220df40a03c9cd48df9fcfa940cde9f9b511fe00d09a25ad2d3376cfe728f1ddcb0736edda04511c80b3ee9362709e8ad9f8ed8397ab0e91f3f0bc0da9a6f2024ce1bab7373a08134edfa76c6ca8ce8eac73f009d6722d096398536a0bbe616329fc7bfb956fea0d4e63b32c256583472b284de1e1cbac42b09ca2b9994f88f79bc27187da6f971a06feb2a3243fb38267628fd22004e755d62c1e51ca05b710d2647181a7588f33da0d0248c4fd2dd605b039cb658df8f9cec0b079d5d37742ae33f324e79d1ee6013a0f7dc0165cec982468b0d1fe2362b0a131f2a62fdd14a2a71b60dcf5258798167a028fa6fb5b4272e49a20c6454f63c73f3f486fb0cd7c67c26ac9769cca9bec258a06c315539b9ef63f88db097b83262f92ec5a559d76fbc46dd39e1cedf2004c183a073d3c4bd84ad29fe1136d31efdcefdae890a519b2217149c0b413ca337dd3278a054e5ecc7720ecc8ac3d39e67169b7f0b70a11cfef98c55a18f63b0c4a97fe353a023f33f159135c0a8b360ffc972acf06a702ed79581fee37e83d7368d8d354a10a04f23a87fc07f830a1e99488adfd63a9654b7c0005230b2c08ccec6b4707c66c680",
"0xf90211a0cfd3faa6ddeee986d0eadbef87277c73120bdfa219c2c3bc0d47c41422d5392ba081ebbbe9fe62cf7d2363cf62177febbba8aca78cb2080423f5076855271c6d4da0d72dc39a6cc1c804581431d698c6d508dabea4161a56586612dbcbcdd59c8dc6a0fdac21d6ceed474c550c0bc5aa1f6986028b1f909a5beddeb4f3f51b3f09ee1aa093a9befc3dec61db6e03c1e32e300f97203e4084741fc3bd2f3c4c3f79464a3aa01d10b6c364ed4e080e51f640d62ca4a3dc17b9463ed09d296a2c982b2c07c639a07faade1293150058100ecc82fc2574c71cf921f2d7088c8e2bdb26dae054c7fca03db293e6996f8b54e4423b61feb88c98f0c1d4dd4a447a8f9121578a21a85de0a07b86fd99cb650c64efd422840ddb1be4fa0ee86b9595b4e1d047388e4ba752bea0bad9ce5c84d7cb53f9429d5714ff730c5040547c78692c971e9fecea60ee4ac8a0516ebd206de809475a99d0bdbebc1097454d05a732d818ee7f7a4c4c077702b6a0fcb4c19299731dfb6c9633f153953592baee99a18bdd1322ddf4f8b63271fb90a0b805049d0fb8e901c4bcefc6a965c515789a7b937e563eca0db19ba1159e8b98a0f714894c0245e6d293f873b7d326f5b8dc5aab156d2f75cb30d918ec7c43d4c1a09ca1ae1beeabfb40a6b9ea8d69dec85d97aa8dfae9a6a93e0df3e10edfe0a07ca06a672298f57ebc4c10434ec554fd6d5ce6f6d8747f1d42957df1ec8c0955195080",
"0xf90211a060c151df4d0793229e51cd03977427455f61e851a6483ceeef93c07ddfd0acbba04928cb82d1521f1393b3d816ba882218350004f9657b018eb4fe103bd14be6c8a03f81382aa088a8151258ee4b5894994ad86e246bb023a612e79ec0c3470386f4a0582dc48684340aea80a6ee80bbc021d3b6cfeca14720fc5dcfe50ca63fbae474a0bd9ed9195b50ba267696e2ab0be728a0d62a217a4a910353fd80abb6cd78eb88a05ff31c75665b67f1810a35b78fe2fe8c7093f030818ea6e1c0f729905e50014ca055623031eb715da2b5b03eb98ededbc7d5699dd85cfb49af0c17cd114233627aa0e75304a58e8268cc832611c85c68b2b60cfe63d3802ddfc25b91d11029bb77b5a0dc2ba7648c529abc3eb54f2ec7b1a6d126f807ad713eaae9c5c1b26fca965f51a0ea528c8ba5b4bedd6f11de8b44ba2e9551ca3cd6282d56e052c2b866d1e41e93a0d7406c80d521a4ac94366760d05a37cb9992958be3d13a90df1c7c9ff2617420a0acf92e87487b2ef58a8e32335039b94d2dd1b941fafb28863a3e50b14a970f35a0b2c8d6d5eecf2ab0323bb7e06fe6861518756765fa7f08aff1e32f086580700da0f9f023f38837eac67ba0227bb9f1c8901163c1d11c9370f00a3f499e9ae2a070a03e371209cda4e4a217866949abb552f338e92ce75f90b55ba321b4107338a051a062dff543788dcfd1d8fb28b6f1c2e6f2307d383c7d6b3a451d946e0829b6572380",
"0xf90211a08c00a5acf3933787b709d7f06eae719d0a7791351339d725a4d0e00ca80129b7a05824a28a72b2f5d1320ef58591e0cc233d746c2216ae86aa97af3a6761b596e8a0dfad235701b03bf69635730a34f9646a5dd82b2f835ebf2ee4d61840652b3016a007c9589730892a72728d517dadfa438ad06bb8095f9f3160d9183e564b7b8168a0feb231d2da7773d5aeba12e6a0eec9ec3e367969dc91b6efcf131cc864759be9a0f662472ba3d91b6bec245f835f92aec87481df843c5e10013c6d261c6fde2a72a02676a265a6cfa84fd2fa1588e4da3c5cb7fe8c6c74d6b50cedbcfcaf5a7f5f02a0ab4547e73c82e584ecf6a67e7d985d77d0ab76b9e63809076880f318e9577d01a04401527ed9a8787c90c3dd620b4036cce70aa9c0fcfbf3fe3b7ee9028ec71c3da0a4255be80fb5dc9b138bb86f1e57185cbfdee5eeb809cd8d680ccd71c667bd77a0ac6e6b2d4f196f8c9b311cbff566577fe90ed89a60af72cbbaa55b1dd815e7cfa0881399c8b277afcae0665fb1cf20c196bdda8095f8323a09038d6d4b571d9e84a069e939b418232f9bc741cc37a1436d7c39e1c9ad7c9c62ad301047fe71473a15a0d87c7dd550e2866f771a162ad66d184c84ba7b047f20eb928e7944fcb022c8b3a0edee30e3ee6a0e9c818aeddaea28c448450a0f6d9cccc7c8eb8b0394d0b3d54ba0f4a62224bf8317aa1efd32c58b6a4b6e85563e52ccfe23a0ea2a8364f20e1d8e80",
"0xf90211a04645cb90324a896ef615d503250d9af74445f76efd18ff42f293866944b03ff3a0b2942182f13a07247ee4a099cc3f550116864ba42a128a23daed673a6f58089ea0adbe24c9b3e3b790fc39b4e3df21d34c01770436a11478bb93550abb41bd8c79a084c2e8d09e9ab4b1e3df08c798aedf366c8ff26ab997ed8e1f18109d2d91553fa0b058a5dd15eb62be63f7f3f22d85754ac6033e91dbdaed79b8d5ce66a8dec10ea04cdff36edda206474ca8238098c97f8557780f80d59c0afe2878f9edf31d5fa6a002818b2e120994494357cb39f00b623bca529fed55859abeae276c1d03a9d76ba083e5b7f0a9375ea7dde4b6bc9a35a05b89b62d196d7e3485077cdf579ac5201ea0829c8f7c290a02a56c32196a3ca4c8603682c4c5bdaee3f4403961e7bb4cee62a04e161261aa58532cd295b55ffdc17e0394a926d55fd2718d9ef0f5ba36efdbdca019610ac9adb37496676f65c472c1b63205f4201cae44e95e0718337e8ffb8193a0637467fef43f5ea2f342acd3fd29528853ac6783be0a279e096bb0cef91245eca0230cb106cf9a431ee5b809875009c3a556d301c94b5336b1ae98c89a2bfc536fa01b44b13f79cf220ca4fd8f91bcd45d9203816a172052154bba00121ecf46fdb3a0dc525ee093b247fe4955a0e908088e2216e0f9d8511c9aa2f63ef6ee8abdea6da097015c41a3a7514f2a63e698a6b880d712818f116ccb0219ccded5ff03be911b80",
"0xf85180808080808080a0d3a182ddb0d5713ca489a3f7b9200cbe9952fa09d332d74eca645339b0bb545b80808080a078bd8f4229df4b088dbd270235ef33df044605e8c327001d8bf1e9cb12f632e280808080"
],
"address": "0x0a8156e7ee392d885d10eaa86afd0e323afdcd95",
"balance": "0x0",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"nonce": "0x0",
"storageHash": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"storageProof": [
{
"key": "0xc48fb64230a82f65a08e7280bd8745e7fea87bc7c206309dee32209fe9a985f7",
"proof": [],
"value": "0x00"
}
]
}
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }