BigInt & number
bnToHex
bnToHex
Convert bigint to hex
import { bnToHex } from 'dedot/utils';
bnToU8a
bnToU8a
Convert bigint to Uint8Array
import { bnToU8a } from 'dedot/utils';
bnMax
bnMax
Return the bigger bigint value
import { bnMax } from 'dedot/utils';
bnMin
bnMin
Return the smaller bigint value
import { bnMin } from 'dedot/utils';
bnAbs
bnAbs
Return the absolute value of a bigint
import { bnAbs } from 'dedot/utils';
numberToHex
numberToHex
Convert a number to a hex string
import { numberToHex } from 'dedot/utils';
numberToU8a
numberToU8a
Convert a number to a Uint8Array
import { numberToU8a } from 'dedot/utils';
Last updated
Was this helpful?