post https://api.infstones.com/ethereum/mainnet/
Returns the account and storage values of the specified account including the Merkle-proof.
Parameters
OBJECT
- The filter options:
Object Name | Required | Type | Detail |
---|---|---|---|
ADDRESS | ✅ | String/Array | Address to check proof |
STORAGE KEYS | ✅ | Array | Storage keys to generate proofs |
BLOCK PARAMETER | ✅ | String/Object | A hex code of an integer that represents the block number, "latest", "earliest" . Learn more here. |
"params":[
"0x5ecddc1ac099074ae965d140a7c62bd71b7fc80a",
["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"],
"latest"
]
Result
It is an array of account objects.
Result Fields
Key | Type | Detail |
---|---|---|
address | String | Address of the account. |
accountProof | Array | Array of rlp-serialized MerkleTree-Nodes, starting with the stateRoot-Node, following the path of the SHA3 (address) as key. |
balance | String | A hex code of an integer that represents the balance of the account. |
codeHash | String | A hex code of an integer that represents the hash of the code of the account. |
nonce | String | A hex code of an integer that represents the nonce of the account. |
storageHash | String | SHA3 of the StorageRoot. All storage will deliver a MerkleProof starting with this rootHash. |
storageProof | Array | Array of storage-entries as requested |
Example
Request
curl <your-endpoint> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_getProof","params":["0x5ecddc1ac099074ae965d140a7c62bd71b7fc80a",["0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"],"latest"],"id":1}'
Return
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"address": "0x5ecddc1ac099074ae965d140a7c62bd71b7fc80a",
"accountProof": [
"0xf90211a0a57e162275e03b39910e80b7281c1a8215e125d90f0a93cee5020a6adf5ed96ba0e77cb5a99f0207c724fc5a04190ecae3beeb031ca7f0b230a1308cc6abe58e4aa0d5bc72f9e43cdd995a6c28ebc6e36738adf7c918d1e520bc8304dd62771c952fa0c2f9df20c97e1b1fb93f8df16b50c53d649c1dd46cf21347dff2e391377c0dd6a026f9c1262b3a7965dfebd44fd327ed9812c0038f93a4e06554adad979ca547e6a00b0d71ae828a7c88c2e966dbd723f40cda26c61bd79cd8da2e9c52c86b37f050a01b628da32bbc1c2b485de88570725514940c3d2cd871c26809d2e3fc910c1220a038a038f5ced770d12e7610ec264dbb0e1fa8fa02d20714061fe543628448456aa01af492e5b8f1d6305ae6bbcb6c8cf38170df89663eedfc90a4130b8c20baa2c6a026263b4812769c34ce6f6b48b286daaeed50b524169b33e1c53f37a9d0c8b36ea0e2711200f4a2a3d83286c0e2a90caccf652a07bbb366435ce6d562c472aa2c8ea0d4fec3bad359c1ea992c420bb48fdeb3863fe05fe26c1c9702617f98d9a7c18ea04400d80b317c77d5fa13fcba85bc2ace773f752f37f9b07bff361d456f1f1ce4a00543f6e74a65ba55a31b33e226fed7976a16973fa7734f97ab419c52e68a1c57a0af57a5e35562fc03275886aad038bd3e7bdfc590e20e6e1d595eebd8a3d8fd03a0185f1123ee574ad9def873672817427d8ceed92ba933a6731dd950bff8f4f14380",
"0xf90211a02ec38504b7dede3ff39e04bd1707b6a4ab0bd23ba72e6c7318a9388eade84d53a01282b341131850fb208403afe5f088b0f0c537ed41a6d500be812cfc9d4c9b23a00621be234ad110228ae2a64ab593169151d934941e8aa415ef27fd6907056b45a01e3b0f797c6b5f8db88df04da87282f42891aa911965d9860a9432729d37271aa00bc0074e71369a4d3e0541a3f6f1fcd0d56ac3ec6048d425ed1359bd401b8d72a0ee9be4d8fe13ea8235a8e1760b0cbc67505fa85a39b2bfe2ecb26e30f66924cea0da93d5b65c6abe9509a80c4f024d56b1ba565cf21c36525cdead9aff08753315a002c35f0d57a9ec82bcaef48c22256e0610455648e5593b32f168728767be430da06d6f76a8325f7a1cd52286fc57622078de49093c760723eada0c3bb16274942ba02bf5fdb64dae2becf2f892a3ff9b805a05fa5b7593db9e275c3dc8f24f0f3e42a0854d9478a2970be16a5ab0123287297bd7d017656a13432de41b4fca5751ee0ea01970da675ba5d2800e004020fe903632bb83d0afa2e4e17a00c777543a7634e0a0e3e40beb557bb42dc36cc3041579de120dc25be211ecbd929c783891f369f9efa015015a7ca77314f5240e29850d0fd12859344feb597556b60faced32bf2d75bfa00907e547af1d9bb978b7293943d0af1e237e141626686869dedb0c763dac0539a0b66dcd5dd5247896bd19077d667c5cd9f4b188c94dd7ce76282c27ce262a370280",
"0xf90211a0abd0942702da8f19b9db91c74429bc08576e72d77c6d555bbd41de2b1c4eed70a08cbfe9a7c860eb464d7795bd3e619c2c9ef2129c6d9bccf9d7d27ca70889695aa0796cd37c5a04b9bd8e7f3eff5bbb84a4cbb72e55cf3259eee2c9beee255ae6e1a073ae1597cf3350ae0044db16396404afd287b6ba82f6dd48bdfe98ab3c5c6113a03ddbd2880db04dd0d6b8e94bef3194089bc71386d514ecc5263ca0b1f7578acaa05323ea9770b2555d0ccf8f5091922d10ce766fe0a21e564f19019981bc656eb1a0b7f0052343cf687865928b0b6e07f2a08319efad9a2bbe746727b31417ee5b9ea08fa0abd50589dc4faa38fff523f678f96ebeac81730ccfb35b87e62efa84fb4fa0fc19a1adf5ff6a69e678ba4b790ca43b5af199b4fe084731294aa25bdcfed9d5a03a5acd74183cd71f72acc4e09a77c9b4cc59bf99aebb290dd2173d394c4c44e0a09a2bcfa8d02ba38c56f6c547cc6aaf0881b07783bcd4ab5273898f6dada53ba5a0598f97374bd2e139540292a17d70f3c19ca0134d4e68efb95736bb155a94262ea079768104fac4af83f67065b02701b3ed4e8809da0d2a44e59fa2e8c9536a8a98a0c2194f079813043b1aa7087ef61d550dda5997cf8c3f57fa0d86aa6e29af32a0a0a821591ba7955d7af6fdcb24535ab7c6970c6ed20a2bb82a9d25cf510114e443a012f52c574bd804d2bf06312fb75cf23a5aa8c0dd1918cc0264c56005b179fd3480",
"0xf90211a0c0da4a697af7d3874070b4e5b7c4ee01e49a87f3c0efefcde853470c1ae8b4f4a0c8c7fb24eb4edfb4a1a1d8570e23bf31b6e8af713530cea44b55dcc6368f7dd0a0ab46ad25b084531931f25bed0345d75d5a04470dd14342cc3ee6c16bfd28577ca0aeb0e98094737dc0e135e5fc15d0065985fcfb3d10e5ed5b5efdd07719225ba2a0524e3d497b4cd053b815d165738d05657b0798475ef02e953c6dc5d77dce0cfca0ce9fae6bbe52865f146963fe78b8f9dc9b58701d700f0a2122cd459a7ade5f53a0fb6d9b52fc986d0911870411c20c707cccc1f4251166f595a88b06e11beeb5f5a0ef307ebffea753b9bddae3935ed4a5c99bd41a2aef4a4eb087532b199ece34aca041b2c1729eec862d00e66c0f95eaeb8a322389fa284a189e87863722bd19552aa0a5d842ef141952091c835dbaac4e4a737dae8530f8f279c8dba69318a07e24a3a01821e5b5b9a6de2d7f27a10b040a146c0e7cee9cdd83bda7a3ae1d1a9b9cc36ca07b472e94ea48d8522f54ce1e736232ba5381106387f21bbe520ed6fb2872fae6a07ae0fc63736ad66a5ec3def9d45b81d74639484bd367288013a30349974d1a42a0c0ca592542dfbedcbb37b46d70a001b8e832a934c1b7c5bbb2fc12acb8508cd2a02e3d45951e3568dce2abf297fdd170334af092c8170d3c7ac8da679dc2410554a0c024befd21b73a096bff9f0a0e75fed14c1f897fd6d3356b743217affa30a98d80",
"0xf90211a0c911e282b3d18bf019f1b3b60722b85a795fd9854496806cdd65ba73fd8b6352a0dac0793f184af74456b84ec0d9d30f77a4d7ff55645c41e4b92e3e28b1dff261a04c15115e50084ebc093acb0cab0fd9a7611bcfe45f012e978978a1ce5db7899ea09595de537cbdad47cbc7d264015da3630b7b86e4a825c83bcea74c11470fcc1ea0cddad4eaa04670b542db984899a76219143f03675b9d56b219654d730eb848f5a0c56fab3c9138bf6538f336f6d75c82be1cdb49027b4730fb9b638e31da6eb3c6a04515f1b441370eac7d0c7aecc22201def69a8cf75021cdfa71aac2f07f95ffdea04e18e2c8fa86fd3aa4ae4b737b71e8582324390f4f6c226755f5034a06b0e645a03af0449f34c5908982ae32718a6e3e572e5b39b5cb13d220753a00d33d58a5c5a0751bb8a670ffe833849016ce7805a11b2ccc6c13ca74a5dbf9ffe85f0083897ea071adfe9834c221d31c1c85ab1f44f4e3263d235767698edcf72c0c2c29deaee0a0767e07996e1047b5dc9961a2cd727337efca8c637e46df0ac023e551d9374416a0ee91ca6f4bb7eefa66e4df312632e3a5a5e463e76a14f95586abff2ec52d6172a090976b29e1b949d4bc4504cce9e27d3678063518aacdbdd19a7f84a302e64c3fa0cfb72a37d9954a31e76fb30ea8d027c6419fa9f38588569703bb5be23816f551a047bf2bda9088bd972945f0ff9407634ffd78416c00a3e9369beb1cd6dd0a81ce80",
"0xf90211a0a27bd4135a4e0c02ca06fd4dd838ec1e69a9edd23623e4b7db27fb657d4954eca0d453f44bbb4795a2a7fc5269c235014cecdfa5c56ba0b582dd0e70287ee4ba4ea0235c1ffd746f17c4046e89b4ff5421bf0cbe00f1726ed9608d165e7e17a05b44a0366313719ba615de28ddcb0655716495fa208d7336b901b4c8c38b518fdcc93ea088c40bd74fa29b9e76b4bc19fcb87fb47865c17f7c0b8f5a5c55f0923d09b18ca089a53a1ee671370157b5ef33c4dcba677a3a6e26eead3b653ad9a0e7e531024fa09450e342c9b7dd6b5ffbddfb49fab21cab2ab1516f607bca391e5c8baad6d343a0d51764cb213a2b312edf847b4f24762a36583fc0d9c758a14e90df6c877b048ca0e0fc0cdf4c1a53202f2630184b2b1dbb4755e7350ce09d9d0c17ec8685a8a18ba0ca312d528187551c94c0901843109f1cfa312005a8cef8dd5d84f63ce7b79957a0fd525c125a90c41e576355d54e5ebdee221b6e6b7707fea39dd40eb7a880e09fa074a1c81482774793b9adbf4977f7504ecf2f8e388d01a784c0a947069cda8e36a0f5e9bf9b582dc91f42f655326affb66900fb9c6df1ac191b67059d91b4ceee2ea0652f10e3a371a41f44e80cf1f264695304867cd1aeaed6cd389d383351f7a689a0297bfa7628e69fb1457d422c14f0a6d29c0499ceb91ec44f5e3ba756e9c1a005a0631f80acdf481d6ae77cb607341affdfe84c642af0eeadfc8229c83ae991742080",
"0xf8f18080a03f9ccab976dcf32175de4de11034524fff5d3136e9c9262ae985af1af0292606a079d1826c21da2028117ad3948fedbb21ba6b3626e83acba4a31fa84042de6a3a80a0aa3afd13817308ed6188f0282dde702af7001dff6855534f37cf9d35b4f7e51ba08f0bc348e3973ca89064af5bf6054d5e57957a6b5cf04c83da60a22a4db91a5c80808080a0e3e2ac6e3daf929d1d18cc1025c89258590d862d8d6832ecc7349bf21d6b829280a0a187039dd45cb1d77d5b9042b36a9849512029bb8002db642509f228c5dfeb6480a0aa255828ae731b155e78d84eb3cabdfb1d1a60f5ed615d0a8636423da7f0a63a80",
"0xf8729d3622fba7f79abec316967dee3a19f2226cd6a6d335308a660f61017578b852f850830169c7890223cb8f1ae66b75a8a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a0c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
],
"balance": "0x223cb8f1ae66b75a8",
"codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"nonce": "0x169c7",
"storageHash": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"storageProof": [
{
"key": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"value": "0x0",
"proof": []
}
]
}
}