Module

x/polkadot/util/bn/index.ts>bnToU8a

Package publishing for deno.land/x/polkadot
Go to Latest
function bnToU8a
import { bnToU8a } from "https://dotland.deno.dev/x/polkadot@0.2.35/util/bn/index.ts";

Examples

import { bnToU8a } from 'https://deno.land/x/polkadot@0.2.35/util/mod.ts';

bnToU8a(new BN(0x1234)); // => [0x12, 0x34]

Type Parameters

ExtToBn extends ToBn

Parameters

optional
value:
| BN
| bigint
| number
| null
optional
unnamed 1 = [UNSUPPORTED]

Returns

Uint8Array