Skip to main content
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.17/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.