Skip to content

Base32.toBytes

Decodes a Base32-encoded string (using the BIP-173 bech32 alphabet) to Bytes.Bytes.

Imports

Named
import { Base32 } from 'ox'

Examples

import { Base32 } from 'ox'
 
const value = Base32.toBytes('qqsa0')

Definition

function toBytes(
  value: string,
): Bytes.Bytes

Source: src/core/Base32.ts

Parameters

value

  • Type: string

The Base32 encoded string.

Return Type

The decoded byte array.

Bytes.Bytes