Bitcoin Forum
May 25, 2024, 11:23:21 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Bitcoin Core] Show TX inputs/outputs on debug console  (Read 321 times)
Lionel (OP)
Sr. Member
****
Offline Offline

Activity: 613
Merit: 305


View Profile
November 23, 2017, 06:41:14 AM
Merited by ABCbits (1)
 #1


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
mocacinno
Legendary
*
Offline Offline

Activity: 3402
Merit: 4984


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
November 23, 2017, 10:42:31 AM
Merited by ABCbits (1)
 #2

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

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Lionel (OP)
Sr. Member
****
Offline Offline

Activity: 613
Merit: 305


View Profile
November 23, 2017, 12:03:48 PM
 #3

Thanks
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!