Converts an unsigned 256-bit integer (u256) BigInt into a Uint8Array.
Will throw an error if the input value is not within the valid u256 range (0 to 340282366920938463463374607431768211455)
A Uint8Array containing the serialized u256 BigInt value
The BigInt to convert
Generated using TypeDoc
Converts an unsigned 256-bit integer (u256) BigInt into a Uint8Array.
Throws
Will throw an error if the input value is not within the valid u256 range (0 to 340282366920938463463374607431768211455)
Returns
A Uint8Array containing the serialized u256 BigInt value