Skip to content

Base58.fromString

Encodes a string to a Base58-encoded string.

Imports

Named
import { Base58 } from 'ox'

Examples

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

Definition

function fromString(
  value: string,
): string

Source: src/core/Base58.ts

Parameters

value

  • Type: string

The string to encode.

Return Type

The Base58 encoded string.

string