tokenAmountToUiAmount
Converts a raw amount (BigInt) to UI amount (human-readable)
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