Title: [Bitcoin Core] Show TX inputs/outputs on debug console Post by: Lionel on November 23, 2017, 06:41:14 AM 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 Title: Re: [Bitcoin Core] Show TX inputs/outputs on debug console Post by: mocacinno on November 23, 2017, 10:42:31 AM 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:
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 Title: Re: [Bitcoin Core] Show TX inputs/outputs on debug console Post by: Lionel on November 23, 2017, 12:03:48 PM Thanks
|