toBigInt
@bidask-protocol/sdk / toBigInt
Function: toBigInt()
toBigInt(
amount,decimals):bigint
Converts a number or string to a bigint
Parameters
amount
The amount to convert
string | number
decimals
The number of decimals
string | number
Returns
bigint
The bigint value