Bitcoin Forum
November 11, 2024, 01:31:37 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: insight-api, dump addresses with positive balance  (Read 170 times)
dalslandan200 (OP)
Newbie
*
Offline Offline

Activity: 30
Merit: 0


View Profile WWW
January 02, 2018, 06:37:27 AM
Last edit: January 02, 2018, 07:13:06 AM by dalslandan200
 #1

Hello!

I'm not experienced with leveldb, insight or nodejs.

I have the latest https://bitcore.io/ up and running with insight-api.

What I'm trying to accomplish is to get all addresses with a positive balance in JSON.


E.g:
Code:
[
{
"address": "152f1muMCNa7goXYhYAQC61hxEgGacmncB",
"satoshi": 9444791124
},
{
"address": "152f1muMCNa7goXYhYAQC61hxEgGacmncB",
"satoshi": 12615867764
}
]
I understand that this is not optimal, and it is not for production use.*

I have tried using this parser https://github.com/SynRgTechnology/InsightParsers, but I'am unable to get it working correctly.
I opened an issue about it in the GitHub repository.

But to be honest, it shouldn't be that difficult to parse the db without any extra packages, since everything is already organized by insight.

If anyone have a working implementation, I would be very grateful if you could share it.

Thanks.

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!