fromOutputScript
bitcoinjs-lib / address / fromOutputScript
Function: fromOutputScript()
fromOutputScript(
output
,network
?):string
Defined in: ts_src/address.ts:175
Converts an output script to a Bitcoin address.
Parameters
output
Uint8Array
The output script as a Buffer.
network?
The Bitcoin network (optional).
Returns
string
The Bitcoin address corresponding to the output script.
Throws
If the output script has no matching address.