Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/util/types.ts>IBigIntConstructor

Package publishing for deno.land/x/polkadot
Go to Latest
interface IBigIntConstructor
import { type IBigIntConstructor } from "https://deno.land/x/polkadot@0.2.19/util/types.ts";

Methods

new(value:
| string
| number
| bigint
| boolean
): bigint
asIntN(bits: number, int: bigint): bigint

Interprets the low bits of a BigInt as a 2's-complement signed integer. All higher bits are discarded.

asUintN(bits: number, int: bigint): bigint

Interprets the low bits of a BigInt as an unsigned integer. All higher bits are discarded.