Great information and very educational - thank you very much - I executed every example statement and learned a lot.
to run commands like: getrawtransaction and decoderawtransaction, does the blockchain have to fully downloaded?
I am at about 74.6% this evening.
Should still work "OK" if you're not fully synced... not ALL commands will thoigh.
I get this error:
./bitcoin-cli decoderawtransaction 00000000c937983704a73af28acdec37b049d214adbda81d7e2a3dd146f6ed09
error code: -22
error message:
TX decode failed
decoderawtransaction needs the actual raw transaction data... not the transaction ID... try this:
decoderawtransaction 02000000000101458ace070b657aacb654c3fb21f8172b3248af1d8411da314a7ed6ef986033990700000000fdffffff075532010000000000160014f229feea0a005ecc0bef615443f4f307a11f66ee583b03000000000017a914095223404b3af6500ce9091bcab36cda998cba4787392c07000000000017a9140f862146e7a500576dc2ceac6b32c238eed97b3c8784940900000000001976a914f0cff358543aab5322b7a50a1031be7a0f653a5988ac70cf10000000000017a9148048a84908896eb958b6df937b8cdc5ce94de69a87820f53000000000017a914881b738741dabd18b7f0be0e6ccc78245d60fd82876260792d000000001600143e38cb6d861323ce5f30a8e004a27cfa5abf2e4902483045022100caef78dbd023b7ef6cc6621ac9ed3565feed96c78533d4f5bcb482ea4432d08202204faefb6414ffbe226f2c1d0b675846ff9ce66f5ebd396ecd4e8a42f1052a4257012103b1a0490fe980457f2b6ac431d91287c187f5c19d9010ab78aec779ab6aa30f70f7550a00
To get the raw transaction data... you would use:
getrawtransaction TRANSACTION_ID
ie.
getrawtransaction 27151ebf894c2f1cdb6ba26ec2a5407a2378c4fb305c39b30d6406af4e986c10
That will return the raw hex... and you can then use that with
decoderawtransactionNote... if your node is not indexing transactions (ie. it does NOT have txindex=1 set in the bitcoin.conf configuration file)... then it will only be indexing transactions that relate specifically to your wallet. You won't be able to use
getrawtransaction on "random" transaction IDs.
I also get an error with this command:
./bitcoin-cli getblockchainstatus
error code: -32601
error message:
Method not found
My bad... it's supposed to be
getblockchaininfoIf you use:
You'll get a list of all available commands