Skip to main content

GET /wallets/balance

Fetch on-chain balance for a user-owned wallet.

Returns SOL balance and all token holdings.

Use case

Pre-flight check before a transfer, snipe funding, or volume-bot payment — verify the wallet has enough SOL before you commit.

Query

ParamRequiredDescription
walletAddressyesPubkey to check.

Response 200

{
"balance": {
"address": "…",
"solBalance": 1.234,
"solBalanceLamports": 1234000000,
"tokens": [
{ "address": "mint…", "balance": 1000000, "decimals": 6 }
]
}
}
FieldDescription
balance.addressWallet pubkey.
balance.solBalanceSOL balance in SOL units.
balance.solBalanceLamportsSOL balance in lamports.
balance.tokensToken accounts held by the wallet.
balance.tokens[].addressToken mint address.
balance.tokens[].balanceRaw token amount.
balance.tokens[].decimalsToken decimals.

Example

curl "$BASE_URL/wallets/balance?walletAddress=…" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID"