getBN
const getBN: (value, decimals) => BN;
getBN
const getBN: (value, decimals) => BN;Defined in: packages/common/dist/esm/index.d.ts:25
Used for conversion of token amounts to their Big Number representation. Get Big Number representation in the smallest units from the same value in the highest units.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | number | Number of tokens you want to convert to its BN representation. |
decimals | number | Number of decimals the token has. |
Returns
BN