eth_getProof

Returns the account- and storage-values of the specified account including the Merkle-proof.

Parameters

  1. Address.

  2. Array of storage keys which should be proofed and included.

  3. Quantity or tag - choose 1 of the following options:

    • A hexadecimal block number.

    • "latest" - the latest mined block.

    • "finalized" - the latest finalized block.

    • "pending" - the pending state/transactions.

Sample Request

curl https://lb.nodies.app/v1/<INSERT URL> \
   -H "x-api-key: <API-KEY>" \
   -X POST \
   -H "Content-Type: application/json" \
   -d '{ 
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getProof",
  "params": [
    "0xe93685f3bBA03016F02bD1828BaDD6195988D950",
    [
      "0x0000000000000000000000000000000000000000000000000000000000000000"
    ],
    "latest"
  ]
}'

Sample Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "address": "0xe93685f3bba03016f02bd1828badd6195988d950",
    "accountProof": [
      "0xf90211a06f88ae395e2a095544da6a0cb54518ddaa890331dffbc1b072e9af81e0c2614ca06ce3a3e05a8eadcc866746fe248505d26c8fad53190b738c0e65984838b71722a009cf4ed1d1521ce5afc7e4e902098df76ccb26fdfcf2e8e514f9180b064dbf3ca07ea05dc8629b9dc3386bfdfbe3d1d517f57f364b84448eafd3c8b9aa48ee0950a0db7b0619493c17dae75f1ac82a51f0ccec94cbdf81779e37968254c6d1dffd45a070e4ff6700bd94bffca7197aa9745dbb4430fb804a5db8165922b8dc8190b28fa0779947904e960950d1813b014bd9f68bdf96f32bb5d2c2ab009642d7aaeb8168a0696b94390e6aafebb21a36b62b7809d75fcfaa4c35160b473593b55b96912669a0857ff57503b412948be2bdd4a91a982ea43c6a1c030f5c26415c22b2ea922334a03d890ec483bbb8bc5c5554a3f7a4551eb7ab6379b5fee0f2f72a2b9c558925caa021637546fd2a42673b4d92c45b7134ab892a9bab85c1e908681bb14ce5f4456ca035370201f3e5e39b2fdb97a517797c28399c79fe6d1a66bff698a65c17c5d763a0d981748eab862f71c8c7270e949b0bbde96969bb2a05a3d1132f3a247b82a6cda089943bff9312a35ea092e81413f0d9c47fa59ee23783afbc07321796b89cdb07a029ee8150f8cb37a27f35f283ad85bc300eb815080f629b3e496fcc3d7b4bc054a0954329329d6359f4ab507c3835b337864eaecb93b4794e6ca838d52740ad5d0380",
      "0xf90211a04007226292a893e424bff93ccd2ba4bb80dbf7f0a1f22a1cc0fc76cf9f13a831a0b09fa18fdce977de20c2f2050c998ea084ddfe078e25ace219efe2c384e4a511a0e9cea56d64b008a4e9647f6f084d1df4c2f8be372e39b9aa5e59f42a761b58caa06a782404f008c308428b376bd7bf885f6ca17eb0b60da0a14e65e138190aea80a0fab0161f1c0ac30238d29d4464312fe94c4656c2fbee680be9a6773dc29b8181a0203be75df6ebf114add88b47834c83de354a467626ab492ed50e835d0724325aa03b32b703ee2c025e9c1328b38581735f61a1e2f6dfaaf4ad063722e7055279eda07b4b88ab72192b9a2edcd9b3e8fe67913fa843881dfeb15f2d58dd29d292459da0d786c21dff9b6d2c5100a4c7fc3ac777fd1b7275ef31d2a1464df48551264312a0e217b58ad6230252098d00116cbcad39454a59aa38e0e5e6de05f4ddf7622cc8a0c6f5b8deaae4e49f6c149e3e4b988bb5652c815929d4f8a186aef799f92ff39ea0839a64a13c88473f85cbe9a28d1c8dc63410b7fa419b02dbe98110ccda59b615a0af3ec45a69906b7626f30f016263ab47006bb5b4903f7d277c60b97414680ee9a0ed107b6731944a46ad11ed0c995e6854c879085bc1f41293d39fc5fa66e2e61da0f5ba7753ca787ba050305357ab3b341e71fb90f129413f64f3943f2d9b38c071a0c7d83bebba66db98353b25fe060d25e414f45af62835dd9387f17b78fb7efbc480",
      "0xf90211a0ddfa4f8cf43418aa7b2539ff2d88071b70799ad70ef77f391473811445f03a8fa08ff16f1ebb2fd92d3f55ffa29bdb7a008166c6523c27bed7859baa90056723aea073e52fe451230143c4db6246bb30da187cf97a9730dba1951a3290d238e27f56a0af23e379b6d5f320d381a87016faee2af22cf7c97130e87b9c0660017b46a38da0a7d82f6fbe90636f5ce8a6f62ab9c805ab085173fb39c55c45f74d0b29043647a0f6f4e2f246e6219110c5bf8125c66eaeabad7ee022a897b0b158479768238c02a070a1e72b68c41d4a610d8fcca2f8a16278a17ca73a420381e6d5d253ff6299fca0e9ee2e3d677c4489c8eab58325592c56673734be6e50e23a641299b5ebc9063da04e5e22ff7aef5dfe3303b750231a214a1e68d1537255bdb16bd8f0a619a46b88a0a3d1c405dca828524d4f849ea1ba44ea0f821d6d57900830e09b92534c2a547ba0c32f8e44eb6649e8ede74443398d8a1bfed5b34efcbbf4c9065956fb767fe603a0a45847690c3f21d9a599ad438e5fa6b7a6a8704c95b6eb3880b7f92c45212b19a05eb7821f3fc7fc743eef585e0521fda45090ffd9283bb18eb84b3feabe0ff633a050de73d925c0182208d99600a7851def14c63b35cbfc1a63ca41fa890224f5f8a05050caa7a8a61a98d6b02ef29e11fc5c8f3ba55cd7cd020524f6f4d519006743a028cbd195f5f3176e5a5bed758c76544b8aab48364b5b79c117d31eb34a82ee5780",
      "0xf90211a07972ebf50e1a166e52b2ddb1d7cf831ed74f43a365dbd969ceb6ec446ae5e068a0076fd47adcf767de04def990662c1de9d1f8a5be442208c3cd2b8c4a740dfcada01382e958b55c98b371826a7d5e7451b989e76f44d21988204b84743651f6cf9fa02bd778ffdb126fa1615674cdff6d3361e57faa45d552f406a39373db4658f377a071406fadfb267c2a1d268ecee34371b6e01d48746b46f43cc86b69d59921b308a0437811222ecb7b1ad5b652ae1fca32582f839b5708c52c5d1a557e2fae2f6d52a055e002828f7dec9496771f900bfc6eda1502ed0045c635b86b00ad8b17a27831a090e867c3b95e150c27bc5504dd33dd9b0a6eeb7f68afafd8957a9c63077c6185a0c404589dbb2d58e052fce66ac2014c7751cb9a80519647346ab6942d0b897b53a0d1369ac155d72dfb0127ff49d559f63e1d086ba953d65d3974df4470114c672ea09e872f943b5b994abe39d5f3a5f42872b72588b6e003356620e2ba3959473aa2a0e4d117b9af2aa498f2807e1aa97e73a28bf691f151382c5909b481bac94d1f23a09119f9458c55209210972584adc303bb8f8b0260113a0fefd34f1ac8d2477e84a03a3f4cab2ec8cc2e0ed40ef3890ce5420a74341e0ca1ab03b04937eb08700448a0ebacac4c73643b7d27a4224341a33c215f28942c1cb898ad28747f8b1074eb70a0392b8a3d60d7f4b8969a63e6789e35d94527d9c7ea89ea45e150326193a7a63280",
      "0xf8d180a0cecda998ce04037f337cdc7f0b81065735c37c26d954ca6015b3ab0f7d805ec880a0b1005bd21e3cbab3ff93e3a7ab2d280aa5a76ecba7d3b0eb17eeb6a0ddc524228080a051ada630102850c58b26a6ca7b9a0a9b9c88b7f76c1867891b935e4c5c2968388080808080a0744c967ccd8611b5b2f25dcd6b7cac8331fd5f28c431adc457f3476960a9e58ba0ead87248cd58a634d0ac821864c73715feee6128acf7a0c1b746dbe206ce3a5f80a04de954bf717128c957941036432901294c4a20aab84ee3928b80434d8c52856480",
      "0xf86a9e35d5c73fae383bfec62ae08d44bd5d40855d1664ba148b59fbe9dd7e383eb849f847830bdaa080a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a0c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
    ],
    "balance": "0x78cb2bbce27a144e89",
    "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
    "nonce": "0xbdaa0",
    "storageHash": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
    "storageProof": [
      {
        "key": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "value": "0x0",
        "proof": []
      }
    ]
  }
}

Last updated