Utils
func isTokenAmountPackable
/**
* @param {string} amount
* @returns {boolean}
*/
isTokenAmountPackable(amount: string)Checks whether the token amount can be packed (and thus used in the transaction)
func isFeeAmountPackable
/**
* @param {string} fee
* @returns {boolean}
*/
isFeeAmountPackable(fee: string)Checks whether the fee amount can be packed (and thus used in the transaction)
func closestPackableTransactionAmount
/**
* @param {string} amount
* @returns {string}
*/
closestPackableTransactionAmount(amount: string)Returns the closest possible packable token amount. Returned amount is always less or equal to the provided amount.
func closestPackableTransactionFee
Returns the closest possible packable fee amount. Returned amount is always less or equal to the provided amount.
Example
Last updated
Was this helpful?