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.


    • address: string

      the CashAddress to convert

    • sha256: {
          hash: ((input: Uint8Array) => Uint8Array);
      } = internalSha256
      • hash: ((input: Uint8Array) => Uint8Array)
          • (input: Uint8Array): Uint8Array
          • Returns the sha256 hash of the provided input.

            To incrementally construct a sha256 hash (e.g. for streaming), use init, update, and final.


            • input: Uint8Array

              a Uint8Array to be hashed using sha256

            Returns Uint8Array

    Returns unknownCharacter | tooShort | invalidChecksum | unknownAddressVersion | incorrectLength | {
        bytecode: Uint8Array;
        version: number;

Generated using TypeDoc