Skip to main content
Version: 5.24.3

Namespace: uint256

References​

Uint256​

Re-exports Uint256

Variables​

UINT_128_MAX​

• Const UINT_128_MAX: bigint

Defined in​

src/utils/uint256.ts:9


UINT_256_MAX​

• Const UINT_256_MAX: bigint

Defined in​

src/utils/uint256.ts:10

Functions​

uint256ToBN​

â–¸ uint256ToBN(uint256): bigint

Convert Uint256 to bigint

Parameters​

NameType
uint256Uint256

Returns​

bigint

Defined in​

src/utils/uint256.ts:15


isUint256​

â–¸ isUint256(bn): boolean

Test BigNumberish is smaller or equal 2**256-1

Parameters​

NameType
bnBigNumberish

Returns​

boolean

Defined in​

src/utils/uint256.ts:22


bnToUint256​

â–¸ bnToUint256(bn): Uint256

Convert BigNumberish (string | number | bigint) to Uint256 (hex)

Parameters​

NameType
bnBigNumberish

Returns​

Uint256

Defined in​

src/utils/uint256.ts:29