The Solana Token Balances APIs enable you to retrieve the balances of Solana addresses. This includes SPL tokens and the native SOL token.
‘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.
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.decimals
is defined via configuration.