Function base58AddressToLockingBytecode

  • Convert a Base58Address to its respective locking bytecode.

    This method returns the locking bytecode and network version. If an error occurs, an error message is returned as a string.

    For the reverse, see lockingBytecodeToBase58Address.

    Parameters

    • address: string

      the CashAddress to convert

    • sha256: {
          hash: ((input) => Uint8Array) & ((input) => Uint8Array);
      } = internalSha256
      • hash: ((input) => Uint8Array) & ((input) => Uint8Array)

    Returns string | {
        bytecode: Uint8Array;
        version: number;
    }

Generated using TypeDoc