Language

Choose a language

/build/rpc / btc

joinpsbts

joinpsbts ["psbt",...] Joins multiple distinct PSBTs with different inputs and outputs into one PSBT with inputs and outputs from all of the PSBTs No input in any of the PSBTs can be in more than one of the PSBTs. Arguments: 1. txs (json array, required) The base64 strings of partially signed transactions [ "psbt", (string, required) A base64 string of a PSBT ... ] Result: "str" (string) The base64-encoded partially signed transaction Examples: > bitcoin-cli joinpsbts "psbt"

Signature

joinpsbts(txs: array) → any

Code samples

curl --user "$RPC_USER:$RPC_PASS" \
  --data-binary '{"jsonrpc":"1.0","id":"docs","method":"joinpsbts","params":[[]]}' \
  -H 'content-type: text/plain;' \
  http://127.0.0.1:8332/

Parameters

NameTypeReq.Description
txsany[]yesThe base64 strings of partially signed transactions [ "psbt", (string, required) A base64 string of a PSBT ... ]

Result

Type:  any

"str" (string) The base64-encoded partially signed transaction

Source: services/core-node/bcore/src/rpc/rawtransaction.cpp:4479

C++ symbol: joinpsbts