Request the signature and broadcast of a Partially Signed Bitcoin Transaction (PSBT) using the user's selected Leather account.
Method name
signPsbt
Parameters
hex
: Hex of the PSBT payload for signingallowedSighash
: Sighash types allowed (optional)signAtIndex
: Index or indices of inputs to sign (optional)network
: Network for signing (e.g. testnet, mainnet)account
: Index of account (optional, defaults to active)broadcast
: Whether to broadcast the signed tx (default: false)
Examples
Sign PSBT
Broadcast PSBT manually
Use case
Use signPsbt
for secure, collaborative signing workflows in Bitcoin apps, including multisig coordination, Taproot interactions, and hardware wallet integrations.
Sandbox
Try the signPsbt
method in this CodeSandbox environment: 👉 Debug PSBT Signing