Solana
Get Solana Wallet Balance
Get the SOL or SPL token balance for a Solana wallet on a specific Solana network.
Authentication: Pass x-client-id for frontend usage from allowlisted origins or x-secret-key for backend usage.
get/v1/solana/wallets/{address}/balance
Request
- Base URLhttps://api.thirdweb.com
- AuthAPI key in header x-client-id
Path parameters
addressstring required
Public key of the Solana wallet.
Example:8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B
Query parameters
chainIdstring required
Solana network to query. Choose either solana:mainnet or solana:devnet.
Example:eip155:1
tokenAddressstring
SPL token mint address. Omit to retrieve native SOL balance.
Example:8JBLmveV4YF5AQ7EVnKJgyj6etGgVkPp3tYqQMTu3p5B
Response
Wallet balance retrieved successfully for the requested Solana network.
Example response
{
"result": {
"chainId": "eip155:1"
}
}Changes
No recorded changes to this operation across all 5 revisions of this API.