Solana Address API examples
The Solana Address API on Bitquery V1 returns the latest SOL balance and annotation for any Solana account, including batched lookups across many wallets in one request. It is the fastest entry point for wallet directories, portfolio dashboards, accounting bootstraps, and compliance pre-checks — and it pairs naturally with the Solana transfers API when you need full SPL token portfolios or historical balances.
Use cases at a glance
- Portfolio and dashboards — single-wallet SOL balance, batched multi-wallet lookup
- Accounting and audit — pair with historical balance at a timestamp for end-of-period closing balances
- SPL token portfolios — pair with per-token balance from transfers for full token-level positions
- Compliance pre-checks — verify whether an address has any Bitquery annotation before deeper diligence
Latest SOL balance for a single Solana address
Look up the current SOL balance and annotation for a single Solana address. Run query.
Variations: For SPL token balances, use the transfers API with aggregation. For balance at a specific timestamp or block height, see historical balance. Combine with the multi-address query below for batch lookups.
query MyQuery {
solana {
address(address: {is: "AgexL8gWCy62B6z95WqeGFcs5Y8AmiP65Yte4xyvbsfv"}) {
address
annotation
balance
}
}
}
Batch multi-wallet SOL balance lookup
Batch-query SOL balances for multiple Solana addresses in one request using address: {in: [...]}. Returns balance and annotation for each address — ideal for treasury dashboards, partner-program reporting, and exchange wallet sets. Run query.
Variations: Add or remove addresses from the array. Combine with the transfers API for per-token balances across wallets. For bubble-map style aggregation across the same wallets, use the multi-wallet aggregate query in the transfers examples.
query MyQuery {
solana {
address(address: {in: ["AgexL8gWCy62B6z95WqeGFcs5Y8AmiP65Yte4xyvbsfv","u4JVgijAL87QWhuig6YNnJCoxgEKbYZt1q3nPbfbUBC","9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"]}) {
address
annotation
balance
}
}
}
When to use the Address API vs Transfers
| Need | Use |
|---|---|
| Latest SOL balance for one or many wallets | Address API (this page) |
| SPL token balance per wallet/token | Transfers + amount(calculate: sum) |
| Balance at a specific timestamp or block | Historical balance |
| Sender or receiver activity history | Transfers (sender/receiver filters) |
| Multi-hop fund flow across addresses | Coinpath |
Related Resources
- Solana transfers API examples — historical balances, sent/received, multi-wallet aggregates, S3 bulk export
- Solana transactions API examples — fee, signer, success, block context
- Solana schema overview
- Solana address schema
- Solana Coinpath schema
- V1 vs V2 API and cloud data
- Getting started with the GraphQL IDE