Hi HCP!
Looks like I am stuck somewhere at the end. I have a total of 3 addresses and one of them appears to be very tricky wallet address with 4 Transaction IDs. I did my best to fulfill all of the requirements for "More than one input" and I hardly doubt I made a mistake there. However, after I signrawtransaction the second time, I get:
"complete": false,
"errors": [
{
"txid": "dc7995b5b2756c85657803519569c2203e7d18ff3bae7679f1a4b579cf9fca6c",
"vout": 0,
"witness": [
],
"scriptSig": "",
"sequence": 4294967295,
"error": "Operation not valid with the current stack size"
},
This same error is present in the first signrawtransaction output as well. I am not sure why it happens. In your guide, you do not specify anything for AMOUNT_TO_SEND in the createrawtransaction for wallets with more than 1 input. So I decided to add together all the 'value' amounts from 4 transaction IDs, minus fee (100000 satoshi) and converted it to BTC. If I did it wrong, please, correct me.
However, there was one VERY interesting and also confusing moment along the way, at the very beginning. When I ran the deserialize(gettransaction("dc7995b5b2756c85657803519569c2203e7d18ff3bae7679f1a4b579cf9fca6c")) I got two outputs and none of them matched the address I was considering (even though in your guide you say it has to). However, the very first output actually matched my other address from the 'Change' section. And this transaction ID(dc7995b5b2756c85657803519569c2203e7d18ff3bae7679f1a4b579cf9fca6c) is also related to that other wallet. So this particular moment was agains the plan and I simply decided to take the data from this first output, even though it did not match they address I considered.
Anyhow, considering the fact that at the end this particular transaction ID had issues I assume it might have been related to the issue I faced at the beginning. Please, assist.
P.S. I managed to retrieve BTG from my other two addresses (one of them is the "Change" address mentioned above) with no issues. So I've got to be doing something right.
I have digged further and tried excluding the txid mentioned above from the 'createrawtransaction' and use the remaining 3 txid's and a sum of their balances for AMOUNT_TO_SEND. Just pretending this txid does not exist. Eventually I do get "complete":true in the end. However, when I try to send this transaction I get Missing inputs (code -25). So I have tried various combinations and still cannot figure it out.