tokenAmountToUiAmount
Converts a raw amount (BigInt) to UI amount (human-readable)
Note: This function does not support token balances that utilize the various "UI amount modifying" Token Extensions, like the Interest-Bearing extension.
Parameters
| Parameter | Type | Description |
|---|---|---|
amount | bigint | The raw token amount as BigInt |
decimals | number | The number of decimals for the token |
Returns
number
UI representation of the amount as a number