Skip to content

Base32.toHex

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

Imports

Named
import { Base32 } from 'ox'

Examples

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

Definition

function toHex(
  value: string,
): Hex.Hex

Source: src/core/Base32.ts

Parameters

value

  • Type: string

The Base32 encoded string.

Return Type

The decoded hex string.

Hex.Hex