Bitcoin Forum
October 15, 2018, 11:29:26 AM *
News: Make sure you are not using versions of Bitcoin Core other than 0.17.0 [Torrent], 0.16.3, 0.15.2, or 0.14.3. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [RFC] Add 'dumpblock' RPC command, to dump all fields in specified block  (Read 4752 times)
jgarzik
Legendary
*
qt
Offline Offline

Activity: 1554
Merit: 1002


View Profile
February 24, 2011, 01:37:17 AM
 #1

"dumpblock" RPC command is a variant of getblockbycount.  I believe that a program should come with easy data inspection tools, and that was the motivation of the original getblock (then renamed to getblockbycount).  One apparent objection to the merging of this patch into bitcoin was that the output would vary in the future, when lightweight clients and partial blocks are far more common.  I have attempted to address this objection, with this patch.

So, I propose to include this patch

     http://yyz.us/bitcoin/patch.bitcoin-dumpblock

into bitcoin 0.3.21.  It adds the "dumpblock" RPC command, which takes a block-height parameter.  A "_complete" boolean is inserted into the JSON output as a convenience, to indicate whether or not all transactions in the block are present (lightweight client).

Although not shown in the this, if this proposal is acceptable, I will further modify the 'dumpblock' RPC command to accept a hash parameter as an alternative to a block-height parameter.  This will permit JSON-RPC users to query by either height or hash, to obtain the desired block dump.


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
1539602966
Hero Member
*
Offline Offline

Posts: 1539602966

View Profile Personal Message (Offline)

Ignore
1539602966
Reply with quote  #2

1539602966
Report to moderator
1539602966
Hero Member
*
Offline Offline

Posts: 1539602966

View Profile Personal Message (Offline)

Ignore
1539602966
Reply with quote  #2

1539602966
Report to moderator
There are several different types of Bitcoin clients. EWallets such as Coinbase are like banks -- a central organization has complete control over your money. You shouldn't put much money in EWallets.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1539602966
Hero Member
*
Offline Offline

Posts: 1539602966

View Profile Personal Message (Offline)

Ignore
1539602966
Reply with quote  #2

1539602966
Report to moderator
1539602966
Hero Member
*
Offline Offline

Posts: 1539602966

View Profile Personal Message (Offline)

Ignore
1539602966
Reply with quote  #2

1539602966
Report to moderator
barwizi
Legendary
*
Offline Offline

Activity: 882
Merit: 1000



View Profile
September 13, 2014, 10:30:09 PM
 #2

NECRO

Looking for something similar, except i require it to dump a list of all addresses and current balance.
Pages: [1]
  Print  
 
Jump to:  

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!