Balance
POST
/wallet/balanceParameters (Kit SDK)
When using @sonabuild/kit, you only provide these parameters. The SDK automatically handles context (wallet, origin) and encryption.
symbolsarrayToken symbols to query (e.g., ["SOL", "USDC"]). Omit for all supported tokens.
Array items:
string
Full Request Schema (Direct API)
If calling the API directly (without Kit), send this complete structure. The Kit SDK constructs this automatically from your params.
contextobjectrequiredwalletstringrequiredUser wallet public key
originstringrequiredRequest origin URL
paramsobjectrequiredsymbolsarrayToken symbols to query (e.g., ["SOL", "USDC"]). Omit for all supported tokens.
Array items:
string
Response Schema
All responses follow this structure. The data field contains operation-specific results (see example response →).
successbooleanrequiredmetadataobjectprotocolstringrequiredquerystringrequiredtimestampnumberrequireddataobject | objecterrorstring | nullcurl -X POST https://api.sona.build/wallet/balance \
-H "Content-Type: application/json" \
-d '{
"context": {
"wallet": "YourWalletPublicKey",
"origin": "https://your-app.com"
},
"params": {
"symbols": [
"USDC",
"SOL"
]
}
}'Example Response
{
"transaction": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAQACC...",
"metadata": {
"protocol": "wallet",
"operation": "operation",
"timestamp": 1766817731853
},
"data": {
"result": "success"
}
}