Bitcoin Forum
November 07, 2024, 08:05:28 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Blockchain querying with mongodb  (Read 2858 times)
btc_enigma (OP)
Hero Member
*****
Offline Offline

Activity: 692
Merit: 569


View Profile
August 12, 2014, 11:37:29 AM
 #1

Hi,

I am thinking of writing an opensource project similar to https://github.com/bitpay/insight that is based on mongodb .
It has the following features:

1. Backend written in python / tornado
2. Fetches blockdata from bitcoind and stores in mongodb ( Querying is easy and replication is provided)
3. Has simple UI for blockexplorer
4. Has UI for creating report for querying blockchain . for example :

User can enter query like :

"{Block:  { age: { $lt: 25 } }"

Will generate a txt/UI report of blocks less than twenty five days older

"{Tx: {fees : {$gt: 0.001} }"

Will generate a txt/UI report for transactions with fess less than 0.001


I am thinking of feeding the input query directly into mongodb find function.  Of course, more complex queries like mysql cannot be supported but this looks like a good start to me.

Let me know your thoughts.  




RagnarDanneskjold
Full Member
***
Offline Offline

Activity: 144
Merit: 100



View Profile
August 13, 2014, 05:58:47 AM
 #2

do it.

git  |  | ID
'Bitcoin is the progress toward a society of privacy. The savage’s whole existence is public, ruled by the laws of his tribe. Bitcoin is the process of setting man free from men'
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!