Solana balance: SOL balance of a wallet
SOL balance of a Solana wallet, read live from mainnet in lamports and SOL, plus its SPL token accounts (mint, symbol for well-known tokens, decimals, amount) when the public node serves them; otherwise tokens is null with a note. Use to check a Solana wallet before a payment. An address that is not 32-byte base58 is 400, uncharged.
Inputs
| Name | Type | Description |
|---|---|---|
address (required) | string | Solana wallet address (base58) |
Request
Over HTTP, with a card key from /credits:
curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/solana/balance?address=vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg"
Or one of your 25 free calls, no key:
curl "https://agent-data-tools.revmesh2074.workers.dev/solana/balance?address=vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg&trial=1"
Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.
Example result
{
"address": "vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg",
"sol": "0.039869364",
"lamports": "39869364",
"tokenCount": 6,
"tokens": [
{
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"symbol": "USDC",
"decimals": 6,
"amount": "12.5",
"raw": "12500000",
"program": "token"
}
],
"slot": 460750950
}
From an AI agent (MCP)
Add the MCP server to Claude, Cursor or any MCP client. This tool is solana_balance, and the first 25 successful calls are free:
https://agent-data-tools.revmesh2074.workers.dev/mcp