Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Base58.decode

import { Base58 } from "https://raw.githubusercontent.com/marigold-dev/tzstamp/0.3.4/helpers/mod.ts"; 

const { decode } = Base58;

Decodes a Base58 string to a byte array payload as described in the Base58 Encoding Scheme.

Throws SyntaxError if the input string contains letters not included in the Base58 Alphabet.

Base58.decode("u734C");
// Uint8Array(4) [ 35, 37, 31, 49 ]
function decode(string: string): Uint8Array;
§
decode(string: string): Uint8Array
[src]

§Parameters

§
string: string
[src]

Base58 string to decode

§Return Type

§
Uint8Array
[src]