@ethereumjs/util / toBytes
toBytes(
v):Uint8Array
Defined in: packages/util/src/bytes.ts:260
Attempts to turn a value into a Uint8Array.
Inputs supported: Buffer, Uint8Array, String (hex-prefixed), Number, null/undefined, BigInt and other objects
with a toArray() or toBytes() method.
the value
Uint8Array