signPsbts
signPsbts
Sign multiple PSBTs at once. This method will traverse all inputs that match the current address to sign.
Wallet & Address Type Compatibility
Software Wallet
All
p2wpkh (Native Segwit), p2tr (Taproot)
Hardware Wallet
Pro, Classic1S
p2tr (Taproot)
Method
Parameters
psbtHexs
— requiredstring[]
Array of hex strings of PSBTs to signoptions
— optionalobject
autoFinalized
— optionalboolean
Whether to finalize PSBTs after signing, default istrue
toSignInputs
— optionalarray
Specify which inputs to signindex
— requirednumber
Which input to signaddress
— optionalstring
Which corresponding private key to use for signing (specify either address or publicKey)publicKey
— optionalstring
Which corresponding private key to use for signing (specify either address or publicKey)sighashTypes
— optionalnumber[]
Optional sighash typesuseTweakedSigner
— optionalboolean
Force whether to use tweaked signer, has higher priority than disableTweakSigner
Returns
Promise<string[]>
Array of hex strings of signed PSBTs
Example
Demo
Last updated