sign

open override fun sign(psbt: Psbt, signOptions: SignOptions?): Boolean(source)

Sign a transaction with all the wallet's signers, in the order specified by every signer's `SignerOrdering`. This function returns the Result type with an encapsulated bool that has the value true if the PSBT was finalized, or false otherwise.

The `SignOptions` can be used to tweak the behavior of the software signers, and the way the transaction is finalized at the end. Note that it can't be guaranteed that every signers will follow the options, but the "software signers" (WIF keys and xprv) defined in this library will.