Help Center
Developer Docs
signPsbt API method
May 16, 2025
Leather does not broadcast PSBTs or manage the finalization process. Developers must handle PSBT completion and broadcasting responsibly.
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
[Unsupported block type: code]
Broadcast PSBT manually
[Unsupported block type: code]
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