Skip to content

Base58.fromHex

Encodes a Hex.Hex to a Base58-encoded string.

Imports

Named
import { Base58 } from 'ox'

Examples

import { Base58, Hex } from 'ox'
 
const value = Base58.fromHex(Hex.fromString('Hello World!'))
'2NEpo7TZRRrLZSi2U'

Definition

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

Source: src/core/Base58.ts

Parameters

value

  • Type: Hex.Hex

The byte array to encode.

Return Type

The Base58 encoded string.

string