Function fromOutputScript

  • Converts an output script to a Bitcoin address.

    Parameters

    • output: Uint8Array

      The output script as a Buffer.

    • Optionalnetwork: Network

      The Bitcoin network (optional).

    Returns string

    The Bitcoin address corresponding to the output script.

    If the output script has no matching address.