@wtasnorg/node-lib / decode58
decode58(
input,charset?):string
Defined in: src/base58.ts:132
Decode a Base58 string.
string
The Base58 encoded string.
"bitcoin" | "flickr" | "ripple"
The charset variant to use (default: “bitcoin”).
string
The decoded string.
import { decode58 } from "./base58.js";
decode58("JxF12TrwUP45BMd");
// => "Hello World"
decode58("jXf12sRWto45bmD", "flickr");
// => "Hello World"
Error if the input contains invalid characters.