Skip to main content Link Menu Expand (external link) Document Search Copy Copied

UiTokenAmount

Model getters

Method name Return type Description Notes
getAmount() string Raw amount of tokens as a string, ignoring decimals.
Example: 2653579503
[optional]
getDecimals() float Number of decimals configured for token’s mint.
Example: 9
[optional]
getUiAmount() mixed Token amount as a float, accounting for decimals.
Example: 2.653579503
[optional]
getUiAmountString() string Token amount as a string, accounting for decimals.
Example: 2.653579503
[optional]