W3matchJoin

How to Verify an Onchain Balance Without Trusting a Dashboard

Two dashboards report different ETH balances for the same treasury address. One shows 12.5 ETH. The other shows 10 ETH. Both numbers could be correct if a transfer landed between their snapshots. Before deciding which number belongs in a report, ask which Ethereum block each dashboard used. To verify the balance independently of the dashboard, you also need a way to check the answer against that block.

Pawnie2 min read

Two dashboards report different ETH balances for the same treasury address. One shows 12.5 ETH. The other shows 10 ETH. Both numbers could be correct if a transfer landed between their snapshots. Before deciding which number belongs in a report, ask which Ethereum block each dashboard used. To verify the balance independently of the dashboard, you also need a way to check the answer against that block.

Compare the same state

Start with the chain, address, asset, and block. An account can use the same address on multiple Ethereum-compatible networks, with a different balance on each. On Ethereum mainnet, eth_getBalance returns the native balance in wei. If both dashboards query latest, they can legitimately read different blocks. For a treasury reconciliation, choose a finalized Ethereum block and record its number and hash. Query that specific block at each provider. Where supported, the EIP-1898 block-hash parameter can request the exact block and ask the provider to check that it is canonical. Ethereum JSON-RPC documentation · EIP-1898 block identifiers

Suppose the treasury received 2.5 ETH between the two dashboard snapshots. The finalized block before the payment can show 10 ETH. A later finalized block can show 12.5 ETH. A reconciliation spreadsheet should record the balance alongside its block hash, so another person can repeat the query using a provider that retains the historical state. Save the proof itself if independent verification will matter later. If providers disagree at the same block, their raw replies and the exact parameters are more useful than screenshots of rounded balances.

Verify the proof against a trusted header

An RPC response reports what a provider says. A proof lets you check that claim. On Ethereum, query eth_getProof for the address at the chosen block with an empty storage-key list if you only need the native ETH balance. The response includes an account proof. A verifier checks the proof against the execution block header’s state root, using the account address to locate the right entry, then reads the balance from the verified account data. EIP-1186 account and storage proofs

The header needs independent authentication. A locally validating Ethereum node can provide that anchor. A light client can also authenticate the header using Ethereum’s consensus data under its own verification model. Fetching a header and a proof from the same RPC only gives you meaningful independent verification if you authenticate that header separately. Ethereum light client documentation

Keep token balances separate

For an ERC-20 token such as USDC, a normal balance read calls balanceOf on the correct token contract at the selected block. A storage proof covers the storage slots requested. To turn it into evidence of the token balance, you must know how the deployed code represents that balance, including how a proxy uses storage where applicable. The native ETH procedure above works directly because ETH is recorded in the account data. ERC-20 token standard

For a treasury report, keep the block hash, raw amount, and proof or verification result alongside the number on the page. With those details, the balance becomes a claim another reader can check.

#ethereum#treasury#onchain-data

Keep reading

Related reports

Back to blog