Skip to main content

Parameters

chainId
string
default:"1329"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"eth_getProof"
required
JSON-RPC method name.
params
object
required
Parameters: [address, storageKeys, blockParameter]Positional parameters for eth_getProof:
  • params[0]: The 20-byte address to check for balance, nonce, and storage.
  • params[1]: Array of 32-byte storage keys (hex) to be included in the proof.
  • params[2]: Block number or tag (“latest”, “earliest”, “pending”, “safe”, “finalized”).

Returns

result
object
Account details and Merkle proofs for storage verification.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=1329 \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "eth_getProof",
    "params": [
      "0x7F0d15C7FAae65896648C8273B6d7E43f58Fa842",
      [
        "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421"
      ],
      "latest"
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "address": "0x7f0d15c7faae65896648c8273b6d7e43f58fa842",
    "balance": "0x0",
    "nonce": "0x0",
    "codeHash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
    "storageHash": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
    "accountProof": [
      "0xf90211a0...",
      "0xf90151a0..."
    ],
    "storageProof": [
      {
        "key": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
        "value": "0x0",
        "proof": [
          "..."
        ]
      }
    ]
  }
}