Skip to main content
GET
/
api
/
v1
/
customer
/
solana
/
balances
/
account
/
{account_address}
/
current
Current SOL Balance
curl --request GET \
  --url https://api-gateway.sonarx.com/api/v1/customer/solana/balances/account/{account_address}/current \
  --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
}

Documentation Index

Fetch the complete documentation index at: https://docs.sonarx.com/llms.txt

Use this file to discover all available pages before exploring further.

This endpoint returns live data from the Solana blockchain. For historical balances, use the standard historical endpoint.

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:

"AUqnU3dfXdcnSuaZCnaEC7FfWjR1x8VGdphaA12wqJ6i"

Response

Current SOL balance

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