Update 6_1_Sending_a_Transaction_to_a_Multisig.md

This commit is contained in:
Shannon Appelcline 2017-05-10 12:25:40 -07:00 committed by GitHub
parent 3642954163
commit 9ab46cc1db

View File

@ -255,6 +255,18 @@ $ bitcoin-cli -named signrawtransaction hexstring=020000000128e3b6f901705be0730e
}
```
You'll note that it now says signature is complete, which means that you should just fall back on the standard JQ methodology:
```
$ signedtx = $(bitcoin-cli -named signrawtransaction hexstring=020000000128e3b6f901705be0730e8a1345cf893e3cc38f0598e38bc56e9d43ac1ae11b62000000009200483045022100a9fe6ed0dbe14c0c4c7c89cee0aef2770f0b2bdcd6b3e8d71fe91e91c4bb765e02200cfba27a59b584a0cc8e70fb4438be94da417ee77eff28deb70449e012b6d6fa014752210307fd375ed7cced0f50723e3e1a97bbe7ccff7318c815df4e99a59bc94dbcd819210367c4f666f18279009c941e57fab3e42653c6553e5ca092c104d1db279e328a2852aeffffffff01e01dbe07000000001976a914cd1b2ba4fa8ae3e62bc4fc6be467a63228ceeedf88ac00000000 prevtxs='''[ { "txid": "'$utxo_txid'", "vout": '$utxo_vout', "scriptPubKey": "'$utxo_spk'", "redeemScript": "'$redeem_script'" } ]''' privkeys='["cTi1Muvj24vG159R8orFjtqsPygCxhu8mJt2GLDQv7bNBGYoav4B"]' | jq -r '.hex')^C
user1@blockstream2:~$ bitcoin-cli -named sendrawtransaction hexstring=$signedtx
99d2b5717fed8875a1ed3b2827dd60ae3089f9caa7c7c23d47635f6f5b397c04
```
Whew! That took some work, but the transaction was successfully used!
===
IS IT EASIER LIKE THIS?
$ bitcoin-cli -named addmultisigaddress nrequired=2 keys='''["'$address1'","029bf628adf0698a089137294975c8589cf0cc6be050f92d944faaa8c8a6234303"]'''
## Summary: Sending a Transaction with a Multisig