> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metalntwx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get account and storage proofs

> Returns EIP-1186 account and storage proofs against the selected block state root. Proof availability depends on the node retaining that state. The balance field is the native EVM account balance, not the default MIP20 balance returned by Metal eth_getBalance. To prove a MIP20 balance, query the token contract and its balance storage slot. Verify proofs against a trusted finalized header. See https://eips.ethereum.org/EIPS/eip-1186 for the standard response fields.



## OpenAPI

````yaml /reference/json-rpc/json-rpc.json post /eth_getProof
openapi: 3.1.0
info:
  title: Metal JSON-RPC
  version: 1.0.0
  description: Interactive playground for Metal's public JSON-RPC endpoints.
servers:
  - url: https://rpc-testnet.metalntwx.com/v1/{endpointId}
    variables:
      endpointId:
        default: YOUR_ENDPOINT_ID
        description: >-
          Your endpoint ID from the Metal console. It is a credential, so keep
          it private. Paste it once, and the playground remembers it in this
          browser.
    description: Testnet
  - url: https://rpc-devnet.metalntwx.com
    description: Devnet
security: []
tags:
  - name: Chain
    description: Identify the chain and its head.
  - name: Consensus
    description: Simplex finality, node build, and gas-token metadata.
  - name: Blocks
    description: Read blocks with Metal's millisecond timestamps and proposer.
  - name: State
    description: Read accounts, contracts, and storage.
  - name: Gas
    description: Quote gas in MIP20 gas-token base units.
  - name: Transactions
    description: Submit and inspect transactions.
  - name: Logs
    description: Query event logs.
  - name: MIP20
    description: Gas-token pricing detail standard Ethereum responses cannot represent.
paths:
  /eth_getProof:
    post:
      tags:
        - State
      summary: Get account and storage proofs
      description: >-
        Returns EIP-1186 account and storage proofs against the selected block
        state root. Proof availability depends on the node retaining that state.
        The balance field is the native EVM account balance, not the default
        MIP20 balance returned by Metal eth_getBalance. To prove a MIP20
        balance, query the token contract and its balance storage slot. Verify
        proofs against a trusted finalized header. See
        https://eips.ethereum.org/EIPS/eip-1186 for the standard response
        fields.
      operationId: eth_getProof
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - id
                - method
                - params
              properties:
                jsonrpc:
                  type: string
                  enum:
                    - '2.0'
                  default: '2.0'
                  description: JSON-RPC protocol version. Always `2.0`.
                id:
                  type: integer
                  default: 1
                  description: Request identifier echoed back in the response.
                method:
                  type: string
                  enum:
                    - eth_getProof
                  default: eth_getProof
                  description: JSON-RPC method name.
                params:
                  type: array
                  prefixItems:
                    - type: string
                      default: '0x000000000000000000000000000000000000B5D5'
                      description: Account or contract address.
                    - type: array
                      items:
                        type: string
                        description: Storage key as a hex quantity or 32-byte hex data.
                      default:
                        - >-
                          0xada5013122d395ba3c54772283fb069b10426056ef8ca54750cb9bb552a59e7d
                      description: >-
                        Storage slots to prove; an empty array requests only the
                        account proof.
                    - type: string
                      default: finalized
                      description: >-
                        Block number as a hex quantity or a standard block tag.
                        Use finalized for an authenticated settled state.
                  items: false
                  minItems: 3
                  maxItems: 3
                  default:
                    - '0x000000000000000000000000000000000000B5D5'
                    - - >-
                        0xada5013122d395ba3c54772283fb069b10426056ef8ca54750cb9bb552a59e7d
                    - finalized
                  description: '[address, storageKeys, blockSelector].'
                  x-default:
                    - '0x000000000000000000000000000000000000B5D5'
                    - - >-
                        0xada5013122d395ba3c54772283fb069b10426056ef8ca54750cb9bb552a59e7d
                    - finalized
            example:
              jsonrpc: '2.0'
              id: 1
              method: eth_getProof
              params:
                - '0x000000000000000000000000000000000000B5D5'
                - - >-
                    0xada5013122d395ba3c54772283fb069b10426056ef8ca54750cb9bb552a59e7d
                - finalized
      responses:
        '200':
          description: >-
            JSON-RPC 2.0 response. Errors are reported in-band via an `error`
            object with `code` and `message` in place of `result`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                    enum:
                      - '2.0'
                  id:
                    type: integer
                  result:
                    type: object
                    properties:
                      address:
                        type: string
                        pattern: ^0x[0-9a-fA-F]*$
                        description: Requested account address.
                      balance:
                        type: string
                        pattern: ^0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)$
                        description: >-
                          Native EVM account balance. This field does not use
                          the MIP20 eth_getBalance override; MIP20 balances are
                          token storage.
                      nonce:
                        type: string
                        pattern: ^0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)$
                        description: Account transaction nonce.
                      codeHash:
                        type: string
                        pattern: ^0x[0-9a-fA-F]*$
                        description: 32-byte Keccak-256 hash of account code.
                      storageHash:
                        type: string
                        pattern: ^0x[0-9a-fA-F]*$
                        description: 32-byte account storage-trie root.
                      accountProof:
                        type: array
                        items:
                          type: string
                          pattern: ^0x[0-9a-fA-F]*$
                          description: RLP-encoded account-trie node.
                        description: Account proof against the selected block state root.
                      storageProof:
                        type: array
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                              pattern: ^0x[0-9a-fA-F]*$
                              description: Requested storage key.
                            value:
                              type: string
                              pattern: ^0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)$
                              description: Storage value at the requested key.
                            proof:
                              type: array
                              items:
                                type: string
                                pattern: ^0x[0-9a-fA-F]*$
                                description: RLP-encoded storage-trie node.
                        description: One entry per requested storage key.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.