Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.36/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.