Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.

public final class Base64

  1. Object
  2. Base64
Standard Base64 (RFC 4648) with padding: the text form of PSBTs and Solana transactions.

Methods

public static String encode(byte[] in)Encodes bytes.
public static byte[] decode(String text)Decodes text; whitespace is ignored.

Inherited methods

Method details

encode

public static String encode(byte[] in)
Encodes bytes.

decode

public static byte[] decode(String text)
Decodes text; whitespace is ignored.

Throws

IllegalArgumentException
for malformed Base64