1
I'm trying to get transactions infos out of the bitcoin core wallet with the console. For that I picked a random transaction of a block from today and tried to access it with
gettransaction 8c0430d0139603db9983daf539604c612b3f7e8d5244aefc3cd3181ece08dd1f
Instead of a json-output with the decoded transaction I get
Invalid or non-wallet transaction id (code -5)
Shouldn't I be able to retrieve every transaction in the blockchain with this command?
How can I read/access the transactions included in mined blocks? I already did this on some altcoins with PoS and there is was possible for every transaction. Now with bitcoin it seems that only wallet transactions are available? Why is that and can I get around that to access / read the transactions on my own?
The same problem appears to be with the getrawtransaction command, so I can even decode a transaction on my own.
I run a bitcoin core 0.14.2 and my blockchain is up-to-date.
thanks. I'm rescanning now and try again after that. I also observed, that some transactions did return tx-data anyway without
txindexset to 1. Can you explain how that could be possible? – Jack O'neill – 2017-09-13T16:25:29.657Bitcoin Core will return transaction information for transactions you sent (and maybe received, not sure about this one). – alcio – 2017-09-13T16:29:24.380
I set txindex=1 and did a full rescan (took long time). after that I restartet my client and tried again. Still not able to access transactions. Same error again. – Jack O'neill – 2017-09-15T20:18:31.957
getrawtransactionseems to work with all transactions I checked, butgettransactionstill fails. – Jack O'neill – 2017-09-15T20:24:09.653