getTokenAccountBalance

Returns the token balance of an SPL Token account.

Path parameters

apiKeystringRequired

Request

This endpoint expects an object.
Token account PubkeystringRequired
The Pubkey of the token account to query.
ConfigurationobjectOptional
Optional configuration object containing additional settings.

Response

The balance of the SPL Token account.
amountstring or null
The raw balance without decimals, a string representation of u64.
decimalsinteger or null

Number of base-10 digits to the right of the decimal place.

uiAmountdouble or null

The balance, using mint-prescribed decimals. DEPRECATED

uiAmountStringstring or null

The balance as a string, using mint-prescribed decimals.