MultiSig Suite aux deux précédents articles sur les adresses multisig, nous allons voir ici comment envoyer via notre adresse des fonds provenant de plusieurs transactions et en utilisant directement deux signatures (deux clé privées) en une seule opération.

Tout d'abords nous allons aller voir nos fonds ( je vais pour ma part prendre tous les fonds disponible à ce jour ) et comme dit dans l'article précédent Adresse multi-signature ( partie 2 sur 3 ) je vais prendre pour chaque fonds son TxID, son vout, et son montant (et retenir le scriptPubKey et le reddemScript de l'adresse multisig pour plus-tard)
Fonds disponibles
Que je vais me mettre en liste ci-dessous

{"txid":"72641bbd13ac887d13a14b1b9516329dfb5159bdc14c005662d07a565b4c4ac9","vout":1, ( 0.0002 YTN )
{"txid":"058786a8f0795c83d1785ac31a2bfa7633b5bdbaed5e5b285834687527b12dd3","vout":1} ( 0.00070215 YTN )
{"txid":"e75ec6a2d4e16025f6de792febe2cb3184480da3f2973d788c5b0a674eece9c9","vout":0} ( 0.149 YTN )
{"txid":"f51c24dcd7c185634a58928d6cd07f64df36baf15bd403c33f30f665a7366c42","vout":0} ( 0.0003 YTN )
{"txid":"5ece924b3fbf2ad77f4f4dfcccf4f4266548a09537044bf638b2f0f29525130f","vout":0} ( 0.1 YTN )
{"txid":"bf4487fe68a2b0194bc5102f081269263804382ae5546e3b49359274cb5ec857","vout":0} ( 0.1 YTN )
{"txid":"ff751d08b9192009867577f2d950172a55e35371dd912879601eaa591711eec0","vout":0} ( 0.1 YTN )
{"txid":"b879d6dd6ec62bb47e09756035b0c00fdc86df29da814ccb843ed5d31d4e6359","vout":0} ( 0.1 YTN )
{"txid":"15095acfa74a15e10ceb83fca421730e4c552f40e514365379079af22bad099e","vout":0} ( 0.1 YTN )
{"txid":"1cfe4220784accab531378df6870dc814a48834191e2a821297cf86c3da40608","vout":0} ( 0.0018 YTN )
{"txid":"569305b94f9a032fa44096d5807f2b17e67d5f7392657af03b5b533538f11db7","vout":0} ( 0.0026 YTN )
{"txid":"96f5986a1f8e43b1406c477f6a2e0ddd277c49534a5edb2432362b34f76cbd2f","vout":0} ( 0.002 YTN )
{"txid":"c0df8f7d7c78c164c05505ddddd92f7a7240700b09912243b906c769ab6ad00d","vout":0} ( 0.00773079 YTN )
{"txid":"96e11288d97f3c8e3b97907dd722240edd741bea621619df1af6936361528b36","vout":0} ( 0.0012 YTN )
{"txid":"43c3e217062faa0c61055830ab49d283d1612c9123d2bf6a75353c575395b08c","vout":0} ( 1 YTN )

On vas calculer le montant disponible/que je vais envoyer et préparer/créer notre transaction

1.00 +0.0012 +0.00773079 +0.002 +0.0026 +0.0018 +0.1 +0.1 +0.1 +0.1 +0.1 +0.0003 +0.149 +0.00070215 
= 1.66553294 disponible - 0.00180212 (que je vais donner en frais aux mineurs)
= 1.66353082 YTN ( que je vais envoyer à YStuCpv1U9iT3L1VqBr52B9nBxrNgt4Fpj )

'[{"txid":"72641bbd13ac887d13a14b1b9516329dfb5159bdc14c005662d07a565b4c4ac9","vout":1},{"txid":"058786a8f0795c83d1785ac31a2bfa7633b5bdbaed5e5b285834687527b12dd3","vout":1},{"txid":"e75ec6a2d4e16025f6de792febe2cb3184480da3f2973d788c5b0a674eece9c9","vout":0},{"txid":"f51c24dcd7c185634a58928d6cd07f64df36baf15bd403c33f30f665a7366c42","vout":0},{"txid":"5ece924b3fbf2ad77f4f4dfcccf4f4266548a09537044bf638b2f0f29525130f","vout":0},{"txid":"bf4487fe68a2b0194bc5102f081269263804382ae5546e3b49359274cb5ec857","vout":0},{"txid":"ff751d08b9192009867577f2d950172a55e35371dd912879601eaa591711eec0","vout":0},{"txid":"b879d6dd6ec62bb47e09756035b0c00fdc86df29da814ccb843ed5d31d4e6359","vout":0},{"txid":"15095acfa74a15e10ceb83fca421730e4c552f40e514365379079af22bad099e","vout":0},{"txid":"1cfe4220784accab531378df6870dc814a48834191e2a821297cf86c3da40608","vout":0},{"txid":"569305b94f9a032fa44096d5807f2b17e67d5f7392657af03b5b533538f11db7","vout":0},{"txid":"96f5986a1f8e43b1406c477f6a2e0ddd277c49534a5edb2432362b34f76cbd2f","vout":0},{"txid":"c0df8f7d7c78c164c05505ddddd92f7a7240700b09912243b906c769ab6ad00d","vout":0},{"txid":"96e11288d97f3c8e3b97907dd722240edd741bea621619df1af6936361528b36","vout":0},{"txid":"43c3e217062faa0c61055830ab49d283d1612c9123d2bf6a75353c575395b08c","vout":0}]' 
'{"YStuCpv1U9iT3L1VqBr52B9nBxrNgt4Fpj":1.66353082}' 

Ce qui nous donne un tres long "hexstring" :
createrawtransaction

Qu'il vas falloir signer cette fois ci en intégrant le "scriptPubKey" de chaque transactions et le "redeemScript" qui nous avais été donné lors de la création de l'adresse multisig.

'[
{"txid":"72641bbd13ac887d13a14b1b9516329dfb5159bdc14c005662d07a565b4c4ac9","vout":1,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"},
{"txid":"058786a8f0795c83d1785ac31a2bfa7633b5bdbaed5e5b285834687527b12dd3","vout":1,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"},
{"txid":"e75ec6a2d4e16025f6de792febe2cb3184480da3f2973d788c5b0a674eece9c9","vout":0,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"},
{"txid":"f51c24dcd7c185634a58928d6cd07f64df36baf15bd403c33f30f665a7366c42","vout":0,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"},
{"txid":"5ece924b3fbf2ad77f4f4dfcccf4f4266548a09537044bf638b2f0f29525130f","vout":0,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"},
{"txid":"bf4487fe68a2b0194bc5102f081269263804382ae5546e3b49359274cb5ec857","vout":0,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"},
{"txid":"ff751d08b9192009867577f2d950172a55e35371dd912879601eaa591711eec0","vout":0,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"},
{"txid":"b879d6dd6ec62bb47e09756035b0c00fdc86df29da814ccb843ed5d31d4e6359","vout":0,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"},
{"txid":"15095acfa74a15e10ceb83fca421730e4c552f40e514365379079af22bad099e","vout":0,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"},
{"txid":"1cfe4220784accab531378df6870dc814a48834191e2a821297cf86c3da40608","vout":0,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"},
{"txid":"569305b94f9a032fa44096d5807f2b17e67d5f7392657af03b5b533538f11db7","vout":0,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"},
{"txid":"96f5986a1f8e43b1406c477f6a2e0ddd277c49534a5edb2432362b34f76cbd2f","vout":0,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"},
{"txid":"c0df8f7d7c78c164c05505ddddd92f7a7240700b09912243b906c769ab6ad00d","vout":0,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"},
{"txid":"96e11288d97f3c8e3b97907dd722240edd741bea621619df1af6936361528b36","vout":0,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"},
{"txid":"43c3e217062faa0c61055830ab49d283d1612c9123d2bf6a75353c575395b08c","vout":0,"scriptPubKey":"a91483a56d6bc45afd354ba617c578ee8486f6f1b83687","redeemScript":"522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453ae"}
]'

Comme vous le voyez il s'agit plus d'un copier/coller car nous envoyons les fonds à partir d'une seule adresse ( ScriptPubKey et reddemScript sont donc les mêmes partout ), si nous nous étions amusés à envoyer des fonds à partir de plusieurs adresses multisig ou non ces valeurs aurais été différentes.
Il nous faut mettre au bout au moins deux des trois clé privés qui peuvent signer la transactions

'["Kprivatekey1","Kprivatekey2"]'

signrawtransaction with privatekey
Vous ne le voyez peut-être pas sur l'image mais la transaction à été signée avec deux clés privées et est complétée ( complete : true )

Nous pouvons maintenant envoyer la transaction sur le réseau avec "sendrawtransaction" en utilisant le nouveau hex que signrawtransaction viens de nous donner en réponse.

sendrawtransaction 010000000fc94a4c5b567ad06256004cc1bd5951fb9d3216951b4ba1137d88ac13bd1b647201000000fc0047304402203a1feb139205074550d403c69707d9daf26af585a5844e83317c2927b9731434022033f3df67b7bd3868e41d8936cf531c2c7329778883d5a60faafd24a49740e58a0147304402202ecb217743423cbd955451cf47f5fd89c6bd6c2fe9cf1ed675beba1a9a1f19d3022042684f92791c2743e53067c602b357db067eccbb2f124462c96f81ab5011d3bf014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffffd32db12775683458285b5eedbabdb53376fa2b1ac35a78d1835c79f0a886870501000000fdfd0000483045022100e3d6cb2e48604f870a27832e5947a0c20fb1519ba388c42900c877ca761d8759022025b4fb4d5a9801739ca560362ffa45af2d993d4ffa035a45a4d3fb84874b6ce301473044022053f11180d2e5cb5ac77525fca369149676c67b0deac7f9f75e3e7e636ed8a5d602202deadfe432d162ab2cc753db1253fb596ca168adfcfd5cbc9dd059dc6b9765ee014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffffc9e9ec4e670a5b8c783d97f2a30d488431cbe2eb2f79def62560e1d4a2c65ee700000000fc004730440220366057345e0aa674282796751d5d02223e19872dafb6794ca4c08ff12f9f55ec022079a7a42ac97e5ae76802b88f233a734411d4bfa3e46491cd49bc1cf8f5f801b9014730440220222104d1068a30852d04dd4c04f7833d843274127fbd17a42a151e38d785de6802205abfcfd23c29b22c01dd2c8e3f6849ac13c14e2e6eca6e820eccc1342217d1aa014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffff426c36a765f6303fc303d45bf1ba36df647fd06c8d92584a6385c1d7dc241cf500000000fdfd000047304402206d35a24135d1f181da306db218e462caa3083fb52be933adc34149de1a3167520220511f4bd6b2c0c29a62b957530fb6bf19f05aad598e0474c98e8b31728ddd514401483045022100f13358c9b0eb1ec871387e6689396d353d6949f3062cd3aaca9310c9eaa08c4b02205e9da719bbc75af2e5829fe1f4e1ab399a7c5341bade456418bfa33a4194ded9014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffff0f132595f2f0b238f64b043795a0486526f4f4ccfc4d4f7fd72abf3f4b92ce5e00000000fdfe0000483045022100f1d881d56ea4f44eb1f71ffc963d1b587926e2a52e2563b905c73912a0a3adb40220197470f7d216a07123da873247f02cab5841095dad1245648587fe28b88d6e6901483045022100e88895979d756ef6cab8a6987b3fba69f8b295525c0798f225001e4a7508b61d0220678d0ff3f1d750005557d95bb624e94fedb5b7f32b082dbacd48c2b584a4da6f014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffff57c85ecb749235493b6e54e52a380438266912082f10c54b19b0a268fe8744bf00000000fdfd0000483045022100ae4f2489954cb4f74804d8fa34e59d6a622f97c9e05378c27538da01911058e102202e0fe15e801d86f79b269651e4de3f3b46aa977216cc6d360504086b9fdb83ce01473044022057c8cae2c6ceb62a50ef853337317aa1869055854e1f1bda79b683cd0730286602200b25b51ef32d9b90f39441e338f573114d8a1f04dcf88449a216d6fbc32fe939014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffffc0ee111759aa1e60792891dd7153e3552a1750d9f2777586092019b9081d75ff00000000fdfd0000483045022100c0406709e616b3e10abcd4c72cf4d108dccade7a9f8f75547256d8299f0bb570022075f1bef6a133e7789b26c8bed54118cffc51bb3cd4fe1eaab04b4f462b16dc830147304402201865fec3b709c5430714e9e8ff740192d1a9a8c92cb254405be357e208210a7c02204e57b386944de46962ce0fea2ac6d972618812b2712679bf239e66b5a37c7ce3014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffff59634e1dd3d53e84cb4c81da29df86dc0fc0b0356075097eb42bc66eddd679b800000000fc0047304402203ae78fdb55b654f5fc3b4a787dc81c1f969aeecb7212130ef5f912466fb59364022052ea752fca0d39f3248063f0d6ccbcfd9ad4a02dcb8b8e233f511659b884129f01473044022007e7b3c535087efd87288717e5e25e5a21a560bf8875b491a84c4793183fe87802204815580dc85e9202b904dc945a8b226beb12d4b6154f84660fa8753275e63d88014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffff9e09ad2bf29a0779533614e5402f554c0e7321a4fc83eb0ce1154aa7cf5a091500000000fdfd00004730440220374592f49a5484cfe02cf987c5f0d0fee6c01d4a1888a61afa9feda787b7624402203aea0341548fe4bf84fe3039a751dc10a0b6162ec28a7a21d544913562bd871201483045022100d68f05f5dd3901d1640f028787a5945eede18ae2e9c83cc382231fc67c031edd022002899f8db528df9b3a4799b63338d2dcfb7962fe6c1cd237d3456144ad08392a014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffff0806a43d6cf87c2921a8e2914183484a81dc7068df781353abcc4a782042fe1c00000000fc0047304402205905f7055521b38b504d7782df2d5be4494606f7e13323958e2423ab16c5e84502206a5210a93313181809d380cec18677055420516f259591ef1076208103f214d30147304402203662e927317347fea385ab5dd13a75949764c620908d9d198662aa6658ebb56802203cdd8b3debdf5a92ef366cb121a4383ea8f7b9990bf857008aba01b9fe2a3393014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffffb71df13835535b3bf07a6592735f7de6172b7f80d59640a42f039a4fb905935600000000fc0047304402204bb0305507334055b4df516ed6fa0f0502c6f020718ed1f42b111a15cbf7563d0220520bb02e15045a57abb75b3bbcbda01ef2aaac5a2a597a8f193b2275bef318cf01473044022000cdce49e60423e1e44c5d3aa46484013f1c5dd326a51d601a5986c0250d96ae022020345d2047101cee39d33e321c112c2fd18abd96c9cb6947921d7ab09672716e014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffff2fbd6cf7342b363224db5e4a53497c27dd0d2e6a7f476c40b1438e1f6a98f59600000000fdfd0000473044022079410b033c5f4ab19b92cd047442cbd6cae84bc9184c9f9562ab0a2a1f61553f0220138067cb1e23d167f572e13827cc3e79095d17ac10c677164597657b068cf04901483045022100b960a7419cd3050d2e1253cf255b590425ca8c8cee1729bd4c7e70fe263e1356022013a3e3bdabbfb1cb90d0c0279e0b9b59724982577a7b75b93dcaeb267c59feed014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffff0dd06aab69c706b9432291090b7040727a2fd9dddd0555c064c1787c7d8fdfc000000000fc00473044022032ee23a05c775a41f271f2d6720c3c98f065f6891dbb86f31ca71aa1a8e2ebd20220022e03ebf474dc30c9d72f75fa10559cab837658146c3f6e8f9df15c9c1195ba01473044022056a36480192b98c5225c35b30530760b57842bef194daa403e4199446bdf367c02206c1253691d28af713eda057613e048768b7895252c78b6ea1298182033bf41d8014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffff368b52616393f61adf191662ea1b74dd0e2422d77d90973b8e3c7fd98812e19600000000fdfd00004730440220750cc0ee2bdcdac0552869ac00623dead0c5f6881eb30f20ef47908ce060d9ba022076fe47247d4271ed794cc0eaf4f4c18c209d26a0e6badbb71ad6511f0f6ed89801483045022100c457ec18919c5098400cd3b9a6fa4a8bd28f64c2acc8527d1d4e95eadf5054ab02200b844e8566748b70a7023ed976dc4b451fda28560c56bc8211c4b67c82658dce014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffff8cb09553573c35756abfd223912c61d183d249ab305805610caa2f0617e2c34300000000fdfd0000483045022100e3de049dc2b7ffaee81360e4215f5845f5cb961d7d77620e766e1e77c6a72532022077a6c173bbb27cc7af9ae2d2e77cab1af90b70b17940d155951ee37109b08b0f0147304402207437dca601b223830000a49d58e4275d3727646e345493e68885b408195f23f80220052c5d8e73e4cbcede109e6a9622e5fcd2a05df967dbe05e9635c4ca3f609173014c69522102c504e26852d1a8a843699669e01cb9840e4e600e9e66dc13ae79c05e143f00b92103ec77d9d3bf53009b864bece762fd6c50d44bd3fb991661b277f7ca58f9a4334f2103a1582bb2a36908191af926a6b8f8b88c3b37c7acb49259329deac64e399dfc7453aeffffffff01ba58ea09000000001976a91426be18728810869f2496001aff9fb1575f11fcef88ac00000000
6c9260dc301b07138f4a92590c709ac18367bc67b187469dcb5af8202d672ba3

sendrawtransaction

La transaction à bien été envoyé et est visible là : 6c9260dc301b07138f4a92590c709ac18367bc67b187469dcb5af8202d672ba3
transaction sortante

Comme vous le voyez, même si ce n'est pas franchement difficile, il n'ai pas aisé de faire ce genre de transactions surtout "à la main", ici nous n'avions que 15 montants reçus à envoyer, je vous laisse imaginer une centaine voir un millier, on préféra donc dans la mesure du possible utiliser notre adresse multisig pour recevoir que quelques "gros" montants au lieu d'une centaine de "petits" montants.
Notification de transaction

A noter que je n'ai pas dans cet exemple fait d'adresse de rendu de monnaie car j'envoyais toute la monnaie disponible sinon il aurais fallu calculer le restant de ce que l'on veux envoyer par rapport à ce que l'on possède dans les transactions et de renvoyer à l'adresse voulue la monnaie restante (exemple ici envoyer 1 YTN et se renvoyer le change à la même adresse au moment de la création de la transaction avec "createrawtransaction") pour ne pas perdre la monnaie.

'{"YStuCpv1U9iT3L1VqBr52B9nBxrNgt4Fpj":1,"5EP7YKFeNdLL8hHeD4NzFxSAwbEc2FDVza":0.66353082}' 

Notez qu'il aurais été plus facile de créer un portefeuille, d'importer les trois clés privées, d'ajouter l'adresse Multisig dedans, puis de choisir ce que l'on veux envoyer via le contrôle des pièces et d'y rentrer une adresse de rendu de monnaie ! Mais cela aurais été moins amusant et moins instructif non ?

Écrire un commentaire

Chargement du Captcha... ( Si il ne se charge pas, svp désactivez Adblock ! )