Skip to main content

combinepsbt

Overview

The 'combinepsbt' method allows you to combine multiple partially signed Bitcoin transactions into a single transaction. This is particularly useful in multi-signature wallet setups where transactions require signatures from multiple parties before they can be broadcasted to the network.

Request

wget --no-check-certificate --quiet \
--method POST \
--timeout=0 \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--header 'X-CoinAPI-Key: 4303fb63-adec-42dc-b571-74bc2f2a5167' \
--body-data '{"jsonrpc":"2.0","id":1,"method":"combinepsbt","params": [ ]}' \
'https://bitcoin-mainnet.node.coinapi.io'

Request Parameters

  • method: (string) The name of the method being invoked, in this case, "combinepsbt".
  • params: (json array, required) The base64 strings of partially signed transactions. Each element in the array is a base64 encoded string representing a partially signed transaction.
  • psbt: (string) A base64 string of a partially signed Bitcoin transaction (PSBT).

Response

{
"result": null,
"error": {
"code": -1,
"message": "combinepsbt [\"psbt\",...]\n\nCombine multiple partially signed Bitcoin transactions into one transaction.\nImplements the Combiner role.\n\nArguments:\n1. txs (json array, required) The base64 strings of partially signed transactions\n [\n \"psbt\", (string) A base64 string of a PSBT\n ...\n ]\n\nResult:\n\"str\" (string) The base64-encoded partially signed transaction\n\nExamples:\n> bitcoin-cli combinepsbt '[\"mybase64_1\", \"mybase64_2\", \"mybase64_3\"]'\n"
},
"id": 1
}