Solana balance: SOL balance of a wallet
No account. Pay by card from $1 and your key appears right after payment. Get a key by card
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://glyphtools.com/solana/balance?address=vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg"
Node.js
const r = await fetch("https://glyphtools.com/solana/balance?address=vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg", {
headers: { Authorization: "Bearer adt_…" },
});
const data = await r.json(); // 402 until the key is in the header
Python
import requests
r = requests.get("https://glyphtools.com/solana/balance?address=vines1vzrYbzLMRdu58ou5XTby4qAqVRLmqo36NKPTg", headers={"Authorization": "Bearer adt_…"}, timeout=60)
data = r.json()
Or one of your 3 free calls, no key — the same request with &trial=1 on the end:
curl "https://glyphtools.com/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 10 successful calls are free:
https://glyphtools.com/mcp