ERC-20 token balance lookup
Written by Agorean from what the endpoint says about itself
Gives an ERC-20 token balance on Base, in raw units and decimals.
Looks up an ERC-20 token balance for a wallet on Base. Returns the balance in both raw units and decimals, along with the token's symbol and decimal count resolved in the same call. A zero balance is flagged explicitly, since it looks the same as a failed read otherwise. An address that is not a real token contract answers found:false instead of erroring silently.
WHEN TO USE THIS
When: I need a wallet's balance of a specific token on Base
For example: Send the token contract and wallet address to get the balance in raw units and decimals.
When: I need a token's symbol and decimals along with the balance, in one call
For example: Read the symbol and decimals fields returned alongside the balance.
When: I need to tell a real zero balance apart from a failed read
For example: Check for the explicit zero flag instead of treating an empty result as an error.
When: I'm not sure the address I have is actually a token contract
For example: Check the found field; it comes back false when the address doesn't implement balanceOf.
0.002 USDC
Paid to 0x973a…12d6
Your agent buys it
npx agorean buy lst_brtha4bg8fwg
Buy link
https://402.com.tr/api/x402/token-balance
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0x973a…12d6). Claiming cannot be undone.
claimListing("lst_brtha4bg8fwg", wallet_proof)