Skip to content
GET /v1/account

Account state + Merkle account proof

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/stateproof-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/stateproof-api/v1/account" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stateproof-api/v1/account", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stateproof-api/v1/account");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/stateproof-api/v1/account",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "note": "The account's state (nonce, balance, codeHash, storageHash) plus its Merkle-Patricia account proof, verifiable against the block stateRoot (see /v1/roots). balance_wei is the raw integer.",
        "block": "latest",
        "chain": "ethereum",
        "nonce": 1,
        "source": "public JSON-RPC (publicnode) eth_getProof",
        "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
        "code_hash": "0xd80d4b7c890cb9d6a4893e6b52bc34b56b25335cb13716e0d1d31383e6b41505",
        "balance_wei": "0",
        "is_contract": true,
        "storage_hash": "0x93ebca03322e801b7d1646d101d2793cd8ed2ccd6c63fb4a7d3e85b4aa9d29d0",
        "account_proof": [
            "0xf90211a0e706920cd6eb1a6f1aa5bf591d44f6ce1e1d6e5d35affc92503b9ef4238921f6a01a8a87d8085dd61d0d0716c0b0365b6371c6e740ebe5623e3e351279aeff124ba0329c7e4bf3dca3a110e6a9b892c18614f499bd0bec63e79f25f2313db3ff07f3a089d6376fc06e6da0e90a1396d5acac9fc53b1140b05b664fecc93b91c5475f8ba00ef270caf706fd77e4d75358edfc000c6de00ded9573dfeb2d327cf0c1c607afa0280023ffa8a6c06acf1df25e77d183084bd5fbc857e7f2c4eff8e6c10408a012a0cb340a4cf2ad6b753f0d9e68833de43a704b2958b70a4ccc60b3285b346d6ba9a033f18a5f4462c9a1b6b4337e86b6ee7b67062595862d62795ff5808104ae0ecfa089188e9f0dccb025c57bb482a8c9c81cdc342862b2298a1e7e38153020c9713ba0a616544f2c40358236a1d37d0a3283f03bba431bf8974a04b1d96a653afeb860a050eb95523788d62822987dca16a96109e4b27f412be1f674934873d29a83030da066181915ee0c5cd47cbe1580abbecf98e68463f61350ee38462316eb0d5b89d8a0a53643678ca5faaadf04a84d62ac4e84f9aeb2ebd40290d53694cc24418fa7d0a08affc5e36bfecf7114efd372963ec1f547b0c9241161a94c958d7aa961d50896a0a063c9f4338895f2f40e543d6c5e2b4055ab2e9767332f515c59dfcd12a0b8a0a06fa5d6d7e547bc277d86183516ba9abfd76fa82caa15535f5ef08193ba291ddc80",
            "0xf90211a033adea6d5dbc18ab6817494579735c0fe82ad86b7f1e4fd774e3441dd6d234b4a0d984da2f98b4339af74f9766fff5af7e37e9a71378393edecec3efaa724f379aa0eb17c00c17cbd234edb768d1cba557da97e43358ecbe409308fa7668a6eedeaea0af274db7df8c2c8ce68c306a7111fbb10a9b206577745227ab020006f28cf88fa0e12319045d7c5fc0085b4f2171fa9daa69dd034801d94d8ddd2e71c686ba9b71a072b881a25a687436a482dcab1cc92763500229cd1c860c0fdb123bed0f3fa682a0b7f62e8b1c4f965712b0fd87c60151faaeb281ee9b80c9fe812e4269f153d2aba0d5ef46c3156918466989621c4f1d28832a874a82c5a53597e2b403ee5a6ffdd3a0e2d10478b25d286fd5446b6e3fd39a852c897d52ead1d54245eb87296c266e0da0784145ed34e64c776c631b1ebcd1355fec4a23fae344e6e3874ba90bdbfc70b2a0d423bad43e2152d4807f3da91c8ea64fc48b1d2d8f8b9fc1d4cc0d2d66f1c787a0658948bdb648d33d99749b470c485d0a8e99a992d6d1711e54b438e8a6cf641ba07c144d2f1f00c2ffc3c8809b17f947ddebfb564bbbaeee9996d779239805ed25a0ccfe7440839f735f2fb29ec94c849b66c31e82c062ff2d90b6a7eec257a9c74fa0e4e0c8f0d9614ae8080f82968e7c0d0cbc0b8521d8ab99715214d7289a38c94aa01d0264b87723b9d638fe196b606bac215cba978b4c35b7d2760efca0b01558f680",
            "0xf90211a0e2e712d31ed7bd43f71dad5e12d5a9bbbf074077160ed9cc2ab067319348f6daa0fd6f5555c8c5d192299a09873d434949440a41668a3431913c9
…