Skip to content

Instantly share code, notes, and snippets.

@esbullington
Created November 12, 2013 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esbullington/7432131 to your computer and use it in GitHub Desktop.
Save esbullington/7432131 to your computer and use it in GitHub Desktop.
Command to fetch all Bitcoin blockchain transaction id's and put them in a (very large) text file. Requires the amazing jq, bitcoind (comes with reference client), along with standard linux coreutils.
bitcoind getblockcount | xargs seq | xargs -I{} bitcoind getblockhash {} | xargs -I{} bitcoind getblock {} | jq --raw-output '.tx[]' >> alltx.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment