Author

Topic: Blockchain querying with mongodb (Read 2862 times)

full member
Activity: 144
Merit: 100
August 13, 2014, 12:58:47 AM
#2
do it.
hero member
Activity: 692
Merit: 569
August 12, 2014, 06: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.  



Jump to: