Language

Choose a language

/build/rpc / btc

combinerawtransaction

combinerawtransaction ["hexstring",...] Combine multiple partially signed transactions into one transaction. The combined transaction may be another partially signed transaction or a fully signed transaction. Arguments: 1. txs (json array, required) The hex strings of partially signed transactions [ "hexstring", (string) A hex-encoded raw transaction ... ] Result: "str" (string) The hex-encoded raw transaction with signature(s) Examples: > bitcoin-cli combinerawtransaction '["myhex1", "myhex2", "myhex3"]'

Signature

combinerawtransaction(txs: array) → any

Code samples

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

Parameters

NameTypeReq.Description
txsany[]yesThe hex strings of partially signed transactions [ "hexstring", (string) A hex-encoded raw transaction ... ]

Result

Type:  any

"str" (string) The hex-encoded raw transaction with signature(s)

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

C++ symbol: combinerawtransaction