Posts tagged #erc20

1 post.

July 31, 2026 · 5 min read

Reading Balances: eth_getBalance vs balanceOf

Reading a balance sounds trivial, but it's where indexers quietly go wrong: native vs token, wrong decimals, summing Transfer events, rebasing and fee-on-transfer tokens, and latest-vs-historical reads. Here's how to read balances correctly over RPC, with viem/ethers/web3.py examples.

Read →