FLOT BKS Operations (buy side)

Excitement intensifies! :smile:

There doesn’t seem to be anything at that address, so I’ll skip it.

https://bcblockexplorer.com/address/97vgjUf9ccmRoyuKRoJgaPAmPA4HhjQd1R

Can you try to craft another one for the address I made?

Send 1 BKS from Dhume’s first address (again)

Address: 9CXZXhnhp8HBx12Zr6JJmJmTm8qQWrsR6r (B&C Explorer)
Transaction #1: bde678d3497d794992840d37b30637b03ba0c72b4355cc48bc42bf261fddd9d9

Aquire inputs

getrawtransaction bde678d3497d794992840d37b30637b03ba0c72b4355cc48bc42bf261fddd9d9
01000000035ebb5602291282d6c6945160d983fea99ae3d1eea73dc9d88ebfbb5b6686224142892350000000006b4830450220587b51dc9478dd34a9116f1260aa9eaa5c180760db18b56cf63d83a601d40180022100822cfdc3591b380372d1860cae30f51b2e17355022038d73755591d0c5214e0f012102d7d6376e22b2a01bb99aebd452885855b18a402b9cbfd2bd3e8e8248613dd0dcffffffffee7df19a6dc2b70c26dedcb1c930c0943a9011a8c709e2054ab7f0993c252ce30100000048473044022076c43d98ea3ac1d7c332e0a7ed11f80a282d450f1971c47e6bc59cab7b65bc690220569937bd3b7e9215ededf589212f4a81e52defbc92868949a7cd234a65d9599001ffffffff02d0140000000000002321029d92a6268fda3b1f6d5765ace74b69b9e7010386469b79e517f68ab28b835595ac102700000000000017a914602b615b0bc6c352defa2dda8cd6628df7454c50870000000038
decoderawtransaction 01000000035ebb5602291282d6c6945160d983fea99ae3d1eea73dc9d88ebfbb5b6686224142892350000000006b4830450220587b51dc9478dd34a9116f1260aa9eaa5c180760db18b56cf63d83a601d40180022100822cfdc3591b380372d1860cae30f51b2e17355022038d73755591d0c5214e0f012102d7d6376e22b2a01bb99aebd452885855b18a402b9cbfd2bd3e8e8248613dd0dcffffffffee7df19a6dc2b70c26dedcb1c930c0943a9011a8c709e2054ab7f0993c252ce30100000048473044022076c43d98ea3ac1d7c332e0a7ed11f80a282d450f1971c47e6bc59cab7b65bc690220569937bd3b7e9215ededf589212f4a81e52defbc92868949a7cd234a65d9599001ffffffff02d0140000000000002321029d92a6268fda3b1f6d5765ace74b69b9e7010386469b79e517f68ab28b835595ac102700000000000017a914602b615b0bc6c352defa2dda8cd6628df7454c50870000000038
[...]
{ "value" : 1.0, "n" : 1, "scriptPubKey" : { "asm" : "OP_HASH160 602b615b0bc6c352defa2dda8cd6628df7454c50 OP_EQUAL", "hex" : "a914602b615b0bc6c352defa2dda8cd6628df7454c5087", "type" : "scripthash", "reqSigs" : 1, "addresses" : [ "9CXZXhnhp8HBx12Zr6JJmJmTm8qQWrsR6r" ] } }
[...]

Input #1

Amount: 1.0 BKS
N: 1
Script: a914602b615b0bc6c352defa2dda8cd6628df7454c5087 (scriptPubKey)

Add multisig address to wallet

createmultisig 3 '["023c41edc461814e825a0847f9031fddf9b2610bb91992724920107f5fd07b4922", "0234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c07", "0304571109f4e9dd3ce67133df452375597d20f583894cdd8ed09c65a3a3e3be5a", "034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff", "029684f165042b44197bce605d81e3e9b22acb8ae677ea4ea3412307b3ff26ea6e"]'
{ "address" : "9CXZXhnhp8HBx12Zr6JJmJmTm8qQWrsR6r", "redeemScript" : "5321023c41edc461814e825a0847f9031fddf9b2610bb91992724920107f5fd07b4922210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c07210304571109f4e9dd3ce67133df452375597d20f583894cdd8ed09c65a3a3e3be5a21034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff21029684f165042b44197bce605d81e3e9b22acb8ae677ea4ea3412307b3ff26ea6e55ae" }

Create transaction

createrawtransaction '[{"txid":"bde678d3497d794992840d37b30637b03ba0c72b4355cc48bc42bf261fddd9d9","vout":1}]' '{"8dueh4ZZnifxdeVezqm8kEPEiiq2XZkdCa":0.99}'
01000000f084bb5601d9d9dd1f26bf42bc48cc55432bc7a03bb03706b3370d849249797d49d378e6bd0100000000ffffffff01ac260000000000001976a914fa5cb066a539b79ff3188b523f6a0933554aa0ea88ac0000000038

Sign transaction

Private key omitted. Replace WIF at the end with private key in WIF format.

signrawtransaction '01000000f084bb5601d9d9dd1f26bf42bc48cc55432bc7a03bb03706b3370d849249797d49d378e6bd0100000000ffffffff01ac260000000000001976a914fa5cb066a539b79ff3188b523f6a0933554aa0ea88ac0000000038' '[{"txid":"bde678d3497d794992840d37b30637b03ba0c72b4355cc48bc42bf261fddd9d9","vout":1,"scriptPubKey":"a914602b615b0bc6c352defa2dda8cd6628df7454c5087","redeemScript":"5321023c41edc461814e825a0847f9031fddf9b2610bb91992724920107f5fd07b4922210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c07210304571109f4e9dd3ce67133df452375597d20f583894cdd8ed09c65a3a3e3be5a21034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff21029684f165042b44197bce605d81e3e9b22acb8ae677ea4ea3412307b3ff26ea6e55ae"}]' '["WIF"]'
{ "hex" : "01000000f084bb5601d9d9dd1f26bf42bc48cc55432bc7a03bb03706b3370d849249797d49d378e6bd01000000f8004730440220607eeb01fb5ca218b9a4018eb38d85ed9e9e11947dcc6f30d4cbe422506aead902206f56caee13108e81b41e61988d4e26ddc104077020a0f589d9f694a4db7cbb9e014cad5321023c41edc461814e825a0847f9031fddf9b2610bb91992724920107f5fd07b4922210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c07210304571109f4e9dd3ce67133df452375597d20f583894cdd8ed09c65a3a3e3be5a21034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff21029684f165042b44197bce605d81e3e9b22acb8ae677ea4ea3412307b3ff26ea6e55aeffffffff01ac260000000000001976a914fa5cb066a539b79ff3188b523f6a0933554aa0ea88ac0000000038", "complete" : false }

Transaction

Signed 1 of 3-of-5.

01000000f084bb5601d9d9dd1f26bf42bc48cc55432bc7a03bb03706b3370d849249797d49d378e6bd01000000f8004730440220607eeb01fb5ca218b9a4018eb38d85ed9e9e11947dcc6f30d4cbe422506aead902206f56caee13108e81b41e61988d4e26ddc104077020a0f589d9f694a4db7cbb9e014cad5321023c41edc461814e825a0847f9031fddf9b2610bb91992724920107f5fd07b4922210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c07210304571109f4e9dd3ce67133df452375597d20f583894cdd8ed09c65a3a3e3be5a21034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff21029684f165042b44197bce605d81e3e9b22acb8ae677ea4ea3412307b3ff26ea6e55aeffffffff01ac260000000000001976a914fa5cb066a539b79ff3188b523f6a0933554aa0ea88ac0000000038

Verify and sign.

:sunglasses:

1 Like

Nice @jooize ! Lets get this signed :smile:

Pinging: @mhps, @woodstockmerkle, @cryptog and @dysconnect

Edit: If we manage to succesfully send back 1 BKS again I feel we are ready to secure the colleteral? Should we use the multisig I made or a new one, thoughts?

Made a template for sending BlockShares from a multisig address. Hope it’s comprehensible.

https://daology.org/articles/79c9ae029a1a4006747be888ec70fdc8575f8441

We should also try sending back from the lexicographically ordered address that’s going to be the offical one, but I expect that to go smoothly now.

2 Likes

I’m having problems with the Create Transaction step:

createrawtransaction ‘[{“txid”:“InputTransaction1ID”,“vout”:InputTransaction1N}]’ ‘{“TargetAddress1”:TargetAddress1Amount}’

I get the target address and target address ammount. I assume I have to put the Tx id of the transaction that put BKS into the address as the txid? But what is the second one (inputTransactionID) and “vout”?

You replace InputTransaction1ID with the actual transaction ID like the following:

  • InputTransaction1ID → bde678d3497d794992840d37b30637b03ba0c72b4355cc48bc42bf261fddd9d9
  • InputTransaction1N → 1
  • TargetAddress1 → 8dueh4ZZnifxdeVezqm8kEPEiiq2XZkdCa
  • TargetAddress1Amount → 0.99

I didn’t use < and > for these to make it easier to replace them by double-clicking.

Does that explain it?

You get these values from getrawtransaction + decoderawtransaction as described in “Aquire inputs”.

Could you show me the createrawtransaction command you put in?

createrawtransaction '[{"txid":"bde678d3497d794992840d37b30637b03ba0c72b4355cc48bc42bf261fddd9d9","vout":1}]' '{"8dueh4ZZnifxdeVezqm8kEPEiiq2XZkdCa":0.99}'

01000000f084bb5601d9d9dd1f26bf42bc48cc55432bc7a03bb03706b3370d849249797d49d378e6bd0100000000ffffffff01ac260000000000001976a914fa5cb066a539b79ff3188b523f6a0933554aa0ea88ac0000000038

Oh now I get it haha, I thought I also had to replace “txid” and “vout” for something. Thanks for explaining!

1 Like

I’ll add an explanation to the article. Thanks for trying it out!

Lets see, I’m not acctually a part of the BKS group so I cannot sign it but is the command good like this (except the private key):

signrawtransaction 01000000b79cbb5601d9d9dd1f26bf42bc48cc55432bc7a03bb03706b3370d849249797d49d378e6bd0100000000ffffffff01ac260000000000001976a914fa5cb066a539b79ff3188b523f6a0933554aa0ea88ac0000000038 ‘[{“txid”:“bde678d3497d794992840d37b30637b03ba0c72b4355cc48bc42bf261fddd9d9”,“vout”:1,“scriptPubKey”:“InputTransaction1ScriptPubKey”,“redeemScript”:“5321023c41edc461814e825a0847f9031fddf9b2610bb91992724920107f5fd07b4922210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c07210304571109f4e9dd3ce67133df452375597d20f583894cdd8ed09c65a3a3e3be5a21034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff21029684f165042b44197bce605d81e3e9b22acb8ae677ea4ea3412307b3ff26ea6e55ae”}]’ ‘[“PrivateKeyWIF”]’

It says: Invalid private key (code -5) so dous that mean the command is good except the private key is missing?

You forgot InputTransaction1ScriptPubKey, but I successfully signed it with that!

signrawtransaction 01000000b79cbb5601d9d9dd1f26bf42bc48cc55432bc7a03bb03706b3370d849249797d49d378e6bd0100000000ffffffff01ac260000000000001976a914fa5cb066a539b79ff3188b523f6a0933554aa0ea88ac0000000038 '[{"txid":"bde678d3497d794992840d37b30637b03ba0c72b4355cc48bc42bf261fddd9d9","vout":1,"scriptPubKey":"a914602b615b0bc6c352defa2dda8cd6628df7454c5087","redeemScript":"5321023c41edc461814e825a0847f9031fddf9b2610bb91992724920107f5fd07b4922210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c07210304571109f4e9dd3ce67133df452375597d20f583894cdd8ed09c65a3a3e3be5a21034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff21029684f165042b44197bce605d81e3e9b22acb8ae677ea4ea3412307b3ff26ea6e55ae"}]' '["PrivateKeyWIF"]'

{
"hex" : "01000000b79cbb5601d9d9dd1f26bf42bc48cc55432bc7a03bb03706b3370d849249797d49d378e6bd01000000fa00493046022100b6fec6bc438f8e6782aadbab422799a902e2c023003b12b70d05b90ef60d3a8a022100f50b6d74047c2a74edf4b5e11569233d24716bb851baa9c56e7c13cf7fdc456f014cad5321023c41edc461814e825a0847f9031fddf9b2610bb91992724920107f5fd07b4922210234139729dd413c84a71a0bfd6f236790be861b37311cef3240277c940e4b0c07210304571109f4e9dd3ce67133df452375597d20f583894cdd8ed09c65a3a3e3be5a21034b0bd0f653d4ac0a2e9e81eb1863bb8e5743f6cb1ea40d845b939c225a1a80ff21029684f165042b44197bce605d81e3e9b22acb8ae677ea4ea3412307b3ff26ea6e55aeffffffff01ac260000000000001976a914fa5cb066a539b79ff3188b523f6a0933554aa0ea88ac0000000038",
"complete" : false
}

Verify. (example, don’t sign)


Explanation added to article.

Ah yes, thanks for clearing it up!

Reminder for @mhps, @cryptog, @woodstockmerkle and @dysconnect to sign this test transaction:

verified and signed 2 of 3-5.

1 Like

in the verify page the input amount is “Not available”. when i tried to sign i get an error message that “There is a problem with one or more input”

i am traveling.

That is weird, it shouldn’t be a problem the input was not available at Cointoolkit with the last BKS transaction we did.

@woodstockmerkle and @dysconnect could any of you try to sign it?

verified signed and broadcast using bcexchange, txid 6f3c3919ec1fe5a31340beac9b2e2f85e0dd285d9cda3727f118fe8fa0b734c8

1 Like

And already received in my wallet! If only BTC would be this fast :wink:

I feel confident in using this multisig address, we’ve done 2 successful transaction now. I will send the 7500 BKS as collateral and make a transaction to receive the BTC.