Post
Topic
Board Development & Technical Discussion
Re: help! about multisig address spending using bitcoind
by
HCP
on 11/06/2019, 10:25:03 UTC
I believe signRawTransactionWithKey requires that you provide ALL the keys at the same time.

as per the documentation:
Quote from: signRawTransactionWithKey
signrawtransactionwithkey "hexstring" ["privatekey",...] ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" )

Sign inputs for raw transaction (serialized, hex-encoded).
The second argument is an array of base58-encoded private
keys that will be the only keys used to sign the transaction.
The third optional argument (may be null) is an array of previous transaction outputs that
this transaction depends on but may not yet be in the block chain.
...

I think what you're looking for (with regards to MultiSig) is the relatively new "PSBT" (Partially Signed Bitcoin Transaction) functionality... Refer here: https://github.com/bitcoin/bitcoin/blob/master/doc/psbt.md