TriportRPC

eth_getProof

BNB Smart Chain / https://triport.io/rpc/bsc

Minimum tier: Free

BNB Smart Chain method guide

Last updated:

eth_getProof returns an account proof and proofs for the requested storage keys at a selected BNB Smart Chain block.

Use it when a consumer must verify account state against a state root rather than trusting a balance or storage value directly. The response includes proof node byte arrays plus the account balance, nonce, code hash, and storage hash from the schema.

Unlike eth_getStorageAt, this method includes Merkle proof material. Historical proof generation requires historical state and therefore depends on the two confirmed archive-state pool nodes.

Parameters

eth_getProof parameters
NameTypeRequiredDescription
addressAddressYes
storageKeysarrayYes
blockBlockTagYes

Returns

eth_getProof return value
FieldType
proofAccountProof

Examples

curl https://triport.io/rpc/bsc \
  -X POST -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <api-key>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_getProof","params":["<address>","<storageKeys>","<block>"]}'
const res = await fetch("https://triport.io/rpc/bsc", {
  method: "POST",
  headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
  body: JSON.stringify({
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getProof",
  "params": [
    "<address>",
    "<storageKeys>",
    "<block>"
  ]
}),
});
const data = await res.json();
import requests
resp = requests.post(
    "https://triport.io/rpc/bsc",
    headers={"Authorization": "Bearer <api-key>"},
    json={"jsonrpc":"2.0","id":1,"method":"eth_getProof","params":["<address>","<storageKeys>","<block>"]},
)
print(resp.json())

Usage

  1. Transport: HTTP (JSON-RPC).
  2. Chain: BNB Smart Chain.
  3. Clusters: mainnet.
  4. Credit cost: 1 per call.

FAQ

What does eth_getProof do?
Return an account and storage Merkle proof.
How many credits does eth_getProof cost?
eth_getProof costs 1 credit(s) per call on Triport by default.
Is eth_getProof available over WebSocket?
eth_getProof is an HTTP JSON-RPC method.