@lelantos-org/sdk / primitives / fieldToBytes32
Function: fieldToBytes32()
ts
function fieldToBytes32(x): Hex32;Defined in: @lelantos-org/sdk/dist/core/hex.d.ts:24
Format a field element as a 0x-prefixed, zero-padded 32-byte hex word.
Range-checked because the result is branded Hex32 without validation: unchecked, -1n pads to a string containing a minus sign and 2n ** 256n yields 65 digits.
Parameters
| Parameter | Type |
|---|---|
x | bigint |