Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man current-balance

/current-balance

agentutility / edge-market / current-balance
PRICE / CALL
$0.002
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
edgemarket
CATEGORY
uncategorized
STATUS
live
NAME
current-balance current balance api / wallet current balance / token balance lookup
synonym alias of erc20-balance — reuses the canonical handler.
SYNOPSIS
POST https://x402.agentutility.ai/current-balance
     Content-Type: application/json
     X-PAYMENT:    <signed-transferWithAuthorization>

     { ... }
↳ first call → 402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.
DESCRIPTION

Current balance API / wallet current balance / token balance lookup. Exact buyer-demand slug for agents that need a read-only ERC-20 balanceOf(wallet) call on Base, Ethereum, Arbitrum, Optimism, Polygon, BSC, or Avalanche. Uses public RPC only, co-fetches decimals, returns raw and decimal-formatted balance, and supports historical block reads. No custody, transfers, trading, or investment advice.

INPUTrequest schema
propertytypedescriptionreq?
tokenstringERC-20 contract address (0x...).required
walletstringWallet address to query (0x...).required
chainanyChain id or slug. 8453|'base' (default), 1|'ethereum', 42161|'arbitrum', 10|'optimism', 137|'polygon', 56|'bsc', 43114|'avalanche'.optional
blockany'latest' default, or hex/decimal block number for historical reads.optional
OUTPUTresponse shape
fieldtypedescription
chainstring
chain_idstring
tokenstring
walletstring
blockstring
balance_rawstring
balance_hexstring
decimalsstring
balancestring
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/current-balance \
  -H 'Content-Type: application/json' \
  -d '{ }'
first response = 402 Payment Required with payment requirements; sign + retry with X-PAYMENT.
EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster
npx -y @agentutility/mcp-<cluster>

# Required: EVM private key with USDC on Base
export X402_PRIVATE_KEY=0x...

# Then call the current-balance tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
tags
edge-marketcurrentbalancecurrent-balance
methods
POST
cluster
edgemarket
price
$0.002 USDC per call
ADJACENTother endpoints in edgemarket
endpointdescriptionprice
erc20-balanceERC-20 balance reader / balanceOf / on-chain token balance / wallet balance lookup / multi-chain ERC20 balance / read Base / read Ethereu…$0.002
erc20-metadataERC-20 metadata reader / token info / token symbol lookup / token decimals / total supply / multi-chain ERC20 reader / Base / Ethereum /…$0.002
funding-ratesPerp funding rates / Binance USD-M futures funding / next-funding-time / 24h history / perp basis.$0.002
token-balanceToken balance API / ERC-20 balanceOf reader / on-chain token holdings lookup.$0.002
wallet-current-balanceWallet current balance API / ERC-20 wallet balance / treasury balance check.$0.002
hyperliquid-marketHyperliquid market API / Hyperliquid market data / perps mark price / crypto futures market lookup.$0.001
safe-tx-decodeGnosis Safe execTransaction decoder.$0.003
agent-card-resolveAgent card resolver / ERC-8004 Identity Registry lookup / Trustless Agents / agentId → owner + agentURI / A2A identity / agent.json fetch…$0.005
SEE ALSO
agentutility · edgemarket · x402 · mcp · llms.txt · registry.json · bazaar.x402.org