signPsbts
Signs multiple Partially Signed Bitcoin Transactions (PSBTs) in a single operation. This is useful for batch operations or when working with multiple transactions that need to be signed together.Usage
Parameters
| Parameter | Type | Description |
|---|---|---|
requests | BitcoinSignPsbtRequest[] | Array of PSBT signing requests |
requests[].unsignedPsbtBase64 | string | The unsigned PSBT encoded in Base64 |
requests[].allowedSighash | number[] | Array of allowed signature hash types |
requests[].signature | Array (optional) | Array of signature configuration objects |
walletAccount | BitcoinWalletAccount | The wallet account to sign with |
client | DynamicClient (optional) | The Dynamic client instance. Only required when using multiple clients. |
Returns
Promise<{ signedPsbts: string[] }> - A promise that resolves to an object containing an array of signed PSBTs in Base64 format.
Errors
| Error | Description |
|---|---|
NotBitcoinProviderError | Thrown if the wallet account’s provider is not a Bitcoin provider |
Related functions
- signPsbt - Sign a single PSBT
- sendBitcoin - Send a simple Bitcoin transaction