The Solana Token Balances APIs enable you to retrieve the balances of Solana addresses. This includes SPL tokens and the native SOL token.

Denomination

  • ‘amount’ is denominated in the smallest indivisible unit of the token. For SOL, the smallest indivisible unit is Lamport (10^-9 SOL).

  • ‘decimals’ is the exponential value N that satisfies the equation amount * 10^-N = standard_denomination. The standard denomination is the most commonly used denomination for the token.

    • In the case of the native gas token, decimals is defined via convention. As an example, for the native SOL token, the standard denomination is 10^-9 the smallest denomination (Lamport). As such, for SOL on Solana mainnet, decimals is 9.
    • In the case of SPL tokens, decimals is defined via configuration.