eth_getProof
BNB Smart Chain / https://triport.io/rpc/bsc
Minimum tier: Free
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
| Name | Type | Required | Description |
|---|---|---|---|
| address | Address | Yes | |
| storageKeys | array | Yes | |
| block | BlockTag | Yes |
Returns
| Field | Type |
|---|---|
| proof | AccountProof |
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
- Transport: HTTP (JSON-RPC).
- Chain: BNB Smart Chain.
- Clusters: mainnet.
- 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.