Author

Topic: [Bitcoin Core] Show TX inputs/outputs on debug console (Read 321 times)

sr. member
Activity: 613
Merit: 305
Thanks
legendary
Activity: 3388
Merit: 4919
https://merel.mobi => buy facemasks with BTC/LTC
bitcoin-cli listtransactions
=> get the txid
bitcoin-cli getrawtransaction "txid"
=> get the raw transaction
bitcoin-cli decoderawtransaction "rawtransaction"

Now, you'll see about anything you need in json format:
  • the txid
  • the size
  • all info about all inputs (txid,  vout, signatures,...)
  • all info about the  outputs (value, n, scripts, type, addresses,...)
  • ...

If you don't need all this info, you can also receive part of the information using one step less:
bitcoin-cli listtransactions
=> get the txid
bitcoin-cli gettransaction "txid"

Using these steps, you'll see part of the info
sr. member
Activity: 613
Merit: 305

How can i get, from the RPC console, a list of transactions sent from my wallet that have multiple inputs/outputs?
I.E. if i use "sendmany" to pay many people at once, how can i list that transaction on the console afterwards?

I have checked out the "listtransactions" RPC call , but the response only tells you a single address, which is either the sender or receiver.
I wonder how does "listtransactions" deal with transactions with multiple inputs/outputs then... i guess it doesn't list them
Jump to: