Bitcoin Forum
October 13, 2024, 02:30:59 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain  (Read 187 times)
Begamucks (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
December 29, 2017, 01:35:51 PM
Last edit: April 11, 2018, 12:31:43 PM by Begamucks
 #1

 [deleted]
AGD
Legendary
*
Offline Offline

Activity: 2070
Merit: 1164


Keeper of the Private Key


View Profile
December 29, 2017, 05:22:09 PM
 #2

sql?

Bitcoin is not a bubble, it's the pin!
+++ GPG Public key FFBD756C24B54962E6A772EA1C680D74DB714D40 +++ http://pgp.mit.edu/pks/lookup?op=get&search=0x1C680D74DB714D40
washi
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
December 29, 2017, 07:35:46 PM
 #3

Hi All

I would like to do a hobby project in c++/Dx11 using transaction data from the BTC blockchain.

Whats the easiest way to get an extract into an easy format to work with (csv/txt etc etc)? it doesnt need to be live data, just a large sample starting at the first block.

Any advice would be greatly appreciated.

Learn how the to use the command line tools.

For example:

Code:
bitcoin-cli getblockhash 1

That will give you the block hash of block 1. Then run:

Code:
bitcoin-cli getblock <blockhash>

That will print data about the block data, including transactions. Take a transaction ID and use:

Code:
bitcoin-cli gettransaction <txid>


You can make app that uses the RPC interface just like bitcoin-cli does to automate this.
Taras
Legendary
*
Offline Offline

Activity: 1386
Merit: 1053


Please do not PM me loan requests!


View Profile WWW
December 29, 2017, 09:26:23 PM
 #4

If you use RPC, make sure to set txindex=1 on your client so that it keeps track of all transactions, not just your own.
uarebitcoinsbox
Member
**
Offline Offline

Activity: 112
Merit: 13


View Profile
December 30, 2017, 08:27:25 AM
 #5

use sqli..
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!