tokenUiAmountToAmount
Converts a UI amount (human-readable) to raw amount (BigInt)
Parameters
| Parameter | Type | Description |
|---|---|---|
uiAmount | number | The human-readable token amount (e.g., 1.5) |
decimals | number | The number of decimals for the token |
Returns
bigint
BigInt representation of the amount