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.

ConfigurationobjectRequired

Optional configuration object containing additional settings.

Response

The balance of the SPL Token account.

amountstringOptional

The raw balance without decimals, a string representation of u64.

decimalsintegerOptional

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

uiAmountintegerOptional

The balance, using mint-prescribed decimals. DEPRECATED

uiAmountStringstringOptional

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