Skip to content

@lelantos-org/sdk / core / bigintToHex

Function: bigintToHex() โ€‹

ts
function bigintToHex(n): `0x${string}`;

Defined in: @lelantos-org/sdk/dist/core/hex.d.ts:31

Minimal-width 0x-prefixed hex of a bigint, padded to a whole byte.

Negatives are rejected rather than emitted as "0x-1", which is typed `0x${string}` but is not hex.

Parameters โ€‹

ParameterType
nbigint

Returns โ€‹

`0x${string}`

Lelantosno cookies ๐Ÿช ยท no tracking ๐Ÿ‘๏ธ ยท no accounts ๐Ÿ‘คwalletexplorer4536080GitHub