Last updated
Was this helpful?
Last updated
Was this helpful?
This method will traverse all inputs that match the current address to sign.
psbtHex
— required string
the hex string of psbt to sign
options
— optional object
autoFinalized
— optional boolean
: whether finalize psbt after signing, default is true
toSignInputs
— optional Array
: specify which inputs to sign
index
— required number
: which input to sign
address
— optional string
: (specify either address or publicKey) which corresponding private key to use for signing
publicKey
— optional string
: (specify either address or publicKey) which corresponding private key to use for signing
sighashTypes
— optional number[]
: optional sighash types for the input
disableTweakSigner
— optional boolean
: default is false. Set true to use original private key when signing taproot inputs
useTweakedSigner
— optional boolean
: force whether to use tweaked signer. Higher priority than disableTweakSigner
Promise<string>
— the hex string of signed psbt
Software Wallet
-
p2wpkh (Native Segwit), p2tr (Taproot)
Hardware Wallet
Pro, Classic1S
p2tr (Taproot)