Skip to content

@lelantos-org/sdk / core / hexToBytes

Function: hexToBytes() โ€‹

ts
function hexToBytes(h): Uint8Array;

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

Decode an optionally-0x-prefixed even-length hex string.

Parameters โ€‹

ParameterType
hstring

Returns โ€‹

Uint8Array

Throws โ€‹

on odd length or a non-hex character.

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