Bitcoin Forum
January 22, 2019, 03:17:53 AM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Bitcoin Core] Show TX inputs/outputs on debug console  (Read 202 times)
Lionel
Sr. Member
****
Offline Offline

Activity: 545
Merit: 269


View Profile
November 23, 2017, 06:41:14 AM
 #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
1548127073
Hero Member
*
Offline Offline

Posts: 1548127073

View Profile Personal Message (Offline)

Ignore
1548127073
Reply with quote  #2

1548127073
Report to moderator
1548127073
Hero Member
*
Offline Offline

Posts: 1548127073

View Profile Personal Message (Offline)

Ignore
1548127073
Reply with quote  #2

1548127073
Report to moderator
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
mocacinno
Legendary
*
Offline Offline

Activity: 1470
Merit: 1339


https://unblur.ninja =>lightning network testsite


View Profile WWW
November 23, 2017, 10:42:31 AM
 #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

Lionel
Sr. Member
****
Offline Offline

Activity: 545
Merit: 269


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

Thanks
Pages: [1]
  Print  
 
Jump to:  

Bitcointalk.org is not available or authorized for sale. Do not believe any fake listings.
Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!