Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

  • decode(string: string): Uint8Array
  • Decode a base58 string into aUint8Array

    example
    const from = Base58.decode("1DQzuCcTKacbs9GGScRTU1Hc8BsyARTPqe");
    

    Parameters

    • string: string

      base58 encoded string

    Returns Uint8Array

  • encode(source: Uint8Array): string
  • Encode Uint8Array as a base58 string.

    example
    const contractId = System.getContractId();
    System.log("contractId: " + Base58.encode(contractId));

    Parameters

    • source: Uint8Array

    Returns string

Generated using TypeDoc