Skip to content

eth_getProof ​

served · same as reth

Returns an account and some of its storage slots with Merkle proofs (EIP-1186).

When to use ​

Use it to prove a balance, a nonce or a storage value against a state root, for example in a light client or a bridge.

Example ​

bash
curl -s -X POST -H 'Content-Type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "eth_getProof", "params": ["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", ["0x0000000000000000000000000000000000000000000000000000000000000000"], "0x18faced"]}' \
  http://127.0.0.1:8547
json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getProof",
  "params": [
    "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    [
      "0x0000000000000000000000000000000000000000000000000000000000000000"
    ],
    "0x18faced"
  ]
}

Response ​

Live mainnet, block 26193133, 2026-10-14. Checked against reth 2.7: equal.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
    "balance": "0x1d48c558ed568b00ef1da",
    "codeHash": "0xd0a06b12ac47863b5c7be4185c2deaad1c61557033f56c7d4ea74429cbb25e23",
    "nonce": "0x1",
    "storageHash": "0x0df003cadcca8325668b079b1af98aa70be1995a38efe8bd971c229c14304b98",
    "accountProof": [
      "0xf90211a016ef1feaffb11bc7dbd9ad29530ff5158e41346a0721c3250727f871313e64fda0507e5a2c8e26719c83f69a5925a614a0f10bc1f53a2b82f33fe12b4d5bf80c9da0d5e2b82fc284c29e10625a17eb5a6cc4a94ee6dede44c575c598e1a3f908c25da0c8c850f3748e7700eb783493f6487f7fb478574bb13dc5e94fc309b16f11da20a0eb43bce9e0aa71a943f11792a7b42ae16e2b9afaa5fbc0ece825090fc7153548a0b8406fec65f7e69934237237e65cd60ecadbce6d50c272a5e3ce0738470e... 666 more characters",
      "0xf90211a02366b3420956e4f48c9249a756b9b9e5f343d183779ffdb5bcf477b87752ad12a0a837f022c8558c66ec22e071cc5a072eea9a5ef344e73b82080d834b72598643a0115250c9359b8d003c107a629dc2eb6eb13105151cd7a59cf8b67d276ae36abaa017c80a34bf674a6992acc50c6715fcc8d962e1605b80a0be0a8422bd9d3bf193a0cc1aa1c8d974c35523fd892104b03386f4ef07c2bcfc04f05943cf3dfba38763a00cf0075e0303da91036e9f3c8e3d334279f3bba808b785b5194183dc496b... 666 more characters",
      "0xf90211a008ee217ca8f90d1709fa815ccadfafeede4d0651385ce7f81014157c15c50273a0413ae306e4c0ef0560dc081813987177150583f039b1bd3f9a5b98070bfe488ba02c1a973d560f1be85120978e3ef0561d81f2436ac6321a0a2537446bc7fd1589a0a80f649d60830b187a8c2352125de9b48fe2892521be70e6784ad8e6dbd2b8b6a0e34451d5d4c762807b24ad70b9fdb39e8c7687194c850c914bf022b49c704088a0d42afd2abd55728415edb67665793047e6e390589dd041bdcd73d321968b... 666 more characters",
      "... 6 more items"
    ],
    "storageProof": [
      {
        "key": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "value": "0x577261707065642045746865720000000000000000000000000000000000001a",
        "proof": [
          "0xf90211a05a07ab75903a29d7458e8ccd998568ec136cc607f07f9eebf6f0828732979a5ca0f959996b75ad862211fa04fa131020cd64ab132b471c1916cafe5f1514787ce2a0c1765b0a0661e3c27f2a440f769d51a01ffdd69ab919f8368c454ff51ede6abfa012acd3b20592eb5d7c93e86c75d12686b532faaba72411f95bf47e2f741f2edaa0077430ce043e10a8b22a1dd76421e5da1dc0ac1a1261cd444739e8be765a40d3a03b9531550912766f6e19d16510f3990c6dd56f2bb2e44583e1b3de68751b... 666 more characters",
          "0xf90211a056bb0a5c5bdc26cd061febba9208b78a7e000a0385b4c4471cac2aaaec88ad9ea09ccbc1b9f78dbcde031da194b5b470a16edc8b40e608cfe1d6a161fe1f0176bea0602de5386ac7f9292a92ba1c222a0fc7c535bd97720763213960e91abd349442a0c303227ea5fa7ccef383561d2d0831c939649cd7f15eb2c25854d282cd05727ba00ca6a7e7affeee69cb1dc1eeebe620d826ffb72ab571eec12b5793e0ddd49a93a00f5d665d561b2f35c1dbfeeb8fdbbe32a4eb07e29d02b108cb2558f0f791... 666 more characters",
          "0xf90211a0ae6c23daeb6aad86a37ce16c317bc20691b6e65b2968b3aadc9402595169281da040c69f34ff314907d2da9c7538a143d90416b5e5dafb4dff81c36249d53eedb2a0ebbb9b9e5a31b98fbf759e20f679344dbea0aa27eef95f2f431a787ccca7a4fba00ef2226514ab44a943f098b838750f264a45d121101f86544344f0243e591c07a0bbcf20d569fb7f013708d5d305e643fafc45eb45040e8e292981281648aa0370a0578af84818677bc1ab9e47197ac39c6a0aec75cb00562b04ac5e2ec531c1... 666 more characters",
          "... 4 more items"
        ]
      }
    ]
  }
}

Full response

Parameters ​

NameTypeRequiredMeaning
addressaddress (20 bytes, hex)yesThe account.
storageKeyslist of hex numbers (slots)yesThe storage slots to prove. Can be empty.
blockblock number in hex, or a tag, see Block parameteryesThe block. Only the latest block works.

Returns ​

An object with address, balance, nonce, codeHash, storageHash (the storage root) and accountProof (the trie nodes from the state root to the account). storageProof has one item per slot, with key, value and proof.

Notes and limits ​

  • Only the latest block works. Any older block gives an error.
  • An account without storage returns an empty proof for each slot.

Errors ​

CodeMessageWhen
-32602distance to target block exceeds maximum proof windowThe block is not the latest block, whatever its age.
-32602Invalid paramsA parameter is missing or does not parse. data has the text of reth, with the position.
-32001block not found: pendingThe block is pending, as in reth.

Compared with reth ​

Cinder behaves as reth with its default proof window: proofs for the latest block only. reth can raise its window with the option --rpc.eth-proof-window. Cinder serves historical proofs from v1.4 (archive).

The live example above gives the same answer on Cinder and on reth 2.7.

eth_getBalance, eth_getStorageAt, eth_getAccount.

Schema (OpenRPC) ​

The official specification: eth_getProof in ethereum/execution-apis.

Parameter Address: string
json
{
  "pattern": "^0x[0-9a-fA-F]{40}$",
  "title": "hex encoded address",
  "type": "string"
}
Parameter StorageKeys: string[]
json
{
  "items": {
    "pattern": "^0x[0-9a-f]{0,64}$",
    "title": "32 hex encoded bytes",
    "type": "string"
  },
  "title": "Storage keys",
  "type": "array"
}
Parameter Block: Block number or Block tag or Block hash
json
{
  "anyOf": [
    {
      "pattern": "^0x(0|[1-9a-f][0-9a-f]*)$",
      "title": "Block number",
      "type": "string"
    },
    {
      "description": "`earliest`: The lowest numbered block the client has available; `finalized`: The most recent crypto-economically secure block, cannot be re-orged outside of manual intervention driven by community coordination; `safe`: The most recent block that is safe from re-orgs under honest majority and certain synchronicity assumptions; `latest`: The most recent block in the canonical chain observed by the client, this block may be re-orged out of the canonical chain even under healthy/normal conditions; `pending`: A sample next block built by the client on top of `latest` and containing the set of transactions usually taken from local mempool. Before the merge transition is finalized, any call querying for `finalized` or `safe` block MUST be responded to with `-39001: Unknown block` error",
      "enum": [
        "earliest",
        "finalized",
        "safe",
        "latest",
        "pending"
      ],
      "title": "Block tag",
      "type": "string"
    },
    {
      "pattern": "^0x[0-9a-f]{64}$",
      "title": "Block hash",
      "type": "string"
    }
  ],
  "title": "Block number, tag, or block hash"
}
Result: object
json
{
  "additionalProperties": false,
  "properties": {
    "accountProof": {
      "items": {
        "pattern": "^0x[0-9a-f]*$",
        "title": "hex encoded bytes",
        "type": "string"
      },
      "title": "accountProof",
      "type": "array"
    },
    "address": {
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "title": "address",
      "type": "string"
    },
    "balance": {
      "pattern": "^0x(0|[1-9a-f][0-9a-f]{0,63})$",
      "title": "balance",
      "type": "string"
    },
    "codeHash": {
      "pattern": "^0x[0-9a-f]{64}$",
      "title": "codeHash",
      "type": "string"
    },
    "nonce": {
      "pattern": "^0x(0|[1-9a-f][0-9a-f]{0,15})$",
      "title": "nonce",
      "type": "string"
    },
    "storageHash": {
      "pattern": "^0x[0-9a-f]{64}$",
      "title": "storageHash",
      "type": "string"
    },
    "storageProof": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "key": {
            "pattern": "^0x[0-9a-f]{0,64}$",
            "title": "key",
            "type": "string"
          },
          "proof": {
            "items": {
              "pattern": "^0x[0-9a-f]*$",
              "title": "hex encoded bytes",
              "type": "string"
            },
            "title": "proof",
            "type": "array"
          },
          "value": {
            "pattern": "^0x(0|[1-9a-f][0-9a-f]{0,63})$",
            "title": "value",
            "type": "string"
          }
        },
        "required": [
          "key",
          "value",
          "proof"
        ],
        "title": "Storage proof",
        "type": "object"
      },
      "title": "Storage proofs",
      "type": "array"
    }
  },
  "required": [
    "address",
    "accountProof",
    "balance",
    "codeHash",
    "nonce",
    "storageHash",
    "storageProof"
  ],
  "title": "Account proof",
  "type": "object"
}