Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/encoding/base58.ts>decodeBase58

The Deno Standard Library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function decodeBase58
import { decodeBase58 } from "https://deno.land/std@0.222.0/encoding/base58.ts";

Decodes a base58-encoded string.

Examples

Example 1

import { decodeBase58 } from "https://deno.land/std@0.222.0/encoding/base58.ts";

decodeBase58("2NEpo7TZRRrLZSi2U");
// Uint8Array(12) [ 72, 101, 108, 108, 111, 32,  87, 111, 114, 108, 100, 33 ]

Parameters

b58: string

The base58-encoded string to decode.

Returns

Uint8Array

The decoded data.