signPsbt
Signs a Partially Signed Bitcoin Transaction (PSBT). PSBTs are used for more complex Bitcoin transactions that may require multiple signatures or advanced scripting.With an embedded wallet,
signature[].address must be your wallet’s own address for the active network, and disableAddressValidation has no effect. To co-sign a P2WSH multisig input, pass its witness script in allowedWitnessScripts. See Embedded Wallet Differences.When a Business Account wallet has a quorum rule that covers the transaction,
signPsbt rejects with a SigningConsentRequiredError and opens a proposal instead of returning a signed PSBT. One approval covers the signature for every input. See Quorum policies for the approval flow.Usage
Parameters
Returns
Promise<{ signedPsbt: string }> - A promise that resolves to an object containing the signed PSBT in Base64 format.
Errors
React
Related functions
- signPsbts - Sign multiple PSBTs
- sendBitcoin - Send a simple Bitcoin transaction
- Embedded Wallet Differences - How these options behave with embedded wallets