eth_getProof
Polygon / https://triport.io/polygon
Minimum tier: Free
Last updated:
eth_getProof implements EIP-1186.
It returns the account's value (balance, nonce, code hash, storage root)
together with the cryptographic proof needed to verify those values against the
block's stateRoot — and, for each storage key you pass, the slot value plus
its proof against the account's storageHash.
Use it whenever a client needs to trust the state without trusting the
provider: Polygon PoS bridge L1↔L2 state verification, light-client SDKs
(e.g. Helios-style verifying clients), and any flow that re-checks a balance or
storage slot against a known block hash. A verifier walks accountProof from
the stateRoot down to the account, then walks each storageProof[].proof
from storageHash down to the slot.
Gotchas. The response grows with the number of storage keys — each key adds
its own value plus a full proof branch, so a request for hundreds of keys can
return tens of kilobytes. Request only the slots you actually verify. Proofs are
block-specific: pin an explicit block number or hash for reproducible
verification rather than relying on latest, which advances every block (~2 s
on Polygon). Available on the free tier; no daily cap applies — limits are
requests-per-second per tier with short bursts.
Parameters
This method takes no parameters.
Returns
| Field | Type |
|---|---|
| result | object |
Examples
curl https://triport.io/polygon \
-X POST -H 'Content-Type: application/json' \
-H 'Authorization: Bearer <api-key>' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_getProof","params":[]}'const res = await fetch("https://triport.io/polygon", {
method: "POST",
headers: { "Content-Type": "application/json", Authorization: "Bearer <api-key>" },
body: JSON.stringify({
"jsonrpc": "2.0",
"id": 1,
"method": "eth_getProof",
"params": []
}),
});
const data = await res.json();import requests
resp = requests.post(
"https://triport.io/polygon",
headers={"Authorization": "Bearer <api-key>"},
json={"jsonrpc":"2.0","id":1,"method":"eth_getProof","params":[]},
)
print(resp.json())Usage
- Transport: HTTP (JSON-RPC).
- Chain: Polygon.
- Clusters: mainnet.
- Credit cost: 1 per call.
FAQ
- What does eth_getProof do?
- Returns a Merkle-Patricia proof that a given account — and optionally specific storage slots — is included in the Polygon state trie at a chosen block.
- 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.