Skip to main content
GET
/
api
/
v1
/
customer
/
solana
/
balances
/
account
/
{account_address}
SOL Balance
curl --request GET \
  --url https://api-gateway.sonarx.com/api/v1/customer/solana/balances/account/{account_address} \
  --header 'apikey: <api-key>'
{
"as_of_datetime": "2024-06-01 12:00:00.000",
"account": "GWmnqn5hHeDos73XhP6rZ4ejQPnqSSocxyZwzxjyeJCi",
"balance": 2322.966374739,
"balance_source": 2322966374739,
"datetime_last_updated": "2024-06-01 00:31:18.000",
"block_slot_last_updated": 269136004
}

Authorizations

apikey
string
header
required

API key for authentication

Path Parameters

account_address
string
required

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

Example:

"GWmnqn5hHeDos73XhP6rZ4ejQPnqSSocxyZwzxjyeJCi"

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"

Response

SOL balance at the specified timestamp

SOL balance for the account

as_of_datetime
string

The datetime of the balance snapshot

account
string

The Solana account address

balance
number

The SOL balance in human-readable format (converted from lamports)

balance_source
integer

Raw balance in smallest units (lamports for SOL, raw token units for SPL tokens) before decimal conversion

datetime_last_updated
string

When this balance was last updated

block_slot_last_updated
integer

The block slot when this balance was last updated