Skip to main content
GET
/
api
/
v1
/
customer
/
solana
/
token-balances
/
account-owner
/
{account_owner}
Token Balances by Owner
curl --request GET \
  --url https://api-gateway.sonarx.com/api/v1/customer/solana/token-balances/account-owner/{account_owner} \
  --header 'apikey: <api-key>'
{
"offset": 0,
"limit": 10,
"result": [
{
"as_of_datetime": "2024-06-01 12:00:00.000",
"account_owner": "4G1mhdPXaUUf2yvCHnZSejDCpPxS7ymPzjYHNfzJqdE9",
"token_address": "6kFRCohSxmsXyMYV2uax57BQo224rPaBAf2CpqgduWRn",
"token_account": "35hadxsTpn1xxovQReWeD5jskRdYWBjBEo1tD4pqgTh3",
"balance": 86000119,
"balance_source": 86000119,
"datetime_last_updated": "2024-04-08 07:59:49.000",
"block_slot_last_updated": 258979466
},
{
"as_of_datetime": "2024-06-01 12:00:00.000",
"account_owner": "4G1mhdPXaUUf2yvCHnZSejDCpPxS7ymPzjYHNfzJqdE9",
"token_address": "orcaEKTdK7LKz57vaAYr9QeNsVEPfiu6QeMU1kektZE",
"token_account": "12QCfo5SdFuyC9P5oioken91gCYK5vnRbXaDVuV5KLpZ",
"balance": 12.956933,
"balance_source": 12956933,
"datetime_last_updated": "2024-04-20 13:04:30.000",
"block_slot_last_updated": 261237308
}
],
"count": 2
}

Authorizations

apikey
string
header
required

API key for authentication

Path Parameters

account_owner
string
required

The Solana wallet owner address (base58 encoded, 32-44 characters)

Example:

"4G1mhdPXaUUf2yvCHnZSejDCpPxS7ymPzjYHNfzJqdE9"

Query Parameters

datetime_filter
string
required

Datetime at 10-minute intervals in format YYYY-MM-DDTHH:MM. Minutes must be 00, 10, 20, 30, 40, or 50. Note: Cannot be within the last hour of current UTC time due to data processing lag.

Example:

"2024-06-01T12:00"

offset
integer
default:0

Number of results to skip for pagination (0-indexed)

Required range: x >= 0
limit
integer
default:10

Number of results per page (minimum: 1, maximum: 1000)

Required range: 1 <= x <= 1000
include_metadata
boolean
default:false

Include token name and symbol metadata in the response. When true, populates token_name and token_symbol fields from the token registry. This may add slight latency due to additional lookups.

Response

Token balances for the wallet owner

offset
integer

Number of results skipped

limit
integer

Results per page

result
object[]
count
integer

Number of records returned