@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 โ
| Parameter | Type |
|---|---|
n | bigint |
Returns โ
`0x${string}`