Bitcoin Forum
May 06, 2024, 08:32:02 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Open source address index & query software  (Read 130 times)
georgerick80 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 15


View Profile
April 11, 2021, 08:40:11 PM
Merited by LoyceV (6), hugeblack (4), OmegaStarScream (3), o_e_l_e_o (2)
 #1

I want to be able to run address queries (balance, tx count, etc.) similar to the API provided by Block Explorer, blockchain.info, Blockcypher, etc. For performance reasons I want to run my own node & server and not depend on someone else's API (most/all of which cost money for making a large number of requests, or rate limit their free requests).

The Bitcoin Core RPC / REST API does not support general address queries, only queries against addresses in your own wallet and then some general blockchain status info on top of that.

Blockcypher Explorer publishes open sources for the web front end, but apparently not for the back end server that does the actual address indexing & search: https://github.com/blockcypher/explorer

I found "iquidus explorer" but this comment says it is too slow to practically use with Bitcoin:
https://github.com/iquidus/explorer/issues/452

I found several other projects that work with Ethereum, Cardano, and other coins but nothing for Bitcoin. Any others you know of that work with Bitcoin?

Thanks.
1715027522
Hero Member
*
Offline Offline

Posts: 1715027522

View Profile Personal Message (Offline)

Ignore
1715027522
Reply with quote  #2

1715027522
Report to moderator
Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715027522
Hero Member
*
Offline Offline

Posts: 1715027522

View Profile Personal Message (Offline)

Ignore
1715027522
Reply with quote  #2

1715027522
Report to moderator
1715027522
Hero Member
*
Offline Offline

Posts: 1715027522

View Profile Personal Message (Offline)

Ignore
1715027522
Reply with quote  #2

1715027522
Report to moderator
PrimeNumber7
Copper Member
Legendary
*
Offline Offline

Activity: 1624
Merit: 1899

Amazon Prime Member #7


View Profile
April 12, 2021, 12:01:13 AM
 #2

You will want to put every transaction into a database, and run a database query anytime you want to lookup information about an address. This is in essence what any block explorer will do whenever you lookup an address or transaction.
ABCbits
Legendary
*
Offline Offline

Activity: 2870
Merit: 7476


Crypto Swap Exchange


View Profile
April 12, 2021, 11:07:23 AM
Merited by hugeblack (2)
 #3

There are many open source Bitcoin block explorer out there, there are few that you might haven't tried such as
1. https://github.com/mempool/mempool. This one can run Raspberry Pi, so i'd recommend this.
2. https://github.com/Blockstream/esplora

Both of them have some dependency though (Bitcoin Core with txindex enabled and Electrum server).

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16609


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
April 12, 2021, 11:15:36 AM
 #4

If it doesn't need to be real-time (but updated once a day), you could use this instead of running a full node:

If you create your own API, will you make it accessible to the public?

dkbit98
Legendary
*
Offline Offline

Activity: 2226
Merit: 7130



View Profile WWW
April 12, 2021, 11:18:18 AM
 #5

I found several other projects that work with Ethereum, Cardano, and other coins but nothing for Bitcoin. Any others you know of that work with Bitcoin?

I am not sure how they compare with iquidus explorer but there are several open source explorers for Bitcoin an you can run them on your own and see if you find them useful for address index and query:

Mempool is use mostly for checking current state of Bitcoin mempool and fees but you can use it as explorer:
https://github.com/mempool/mempool

Yogh.io you can run on top of your full Bitcoin node as explorer:
https://github.com/yogh-io/bitcoin-transaction-explorer

BTC RPC Explorer is simple self-hosted explorer you can run on your own full node:
https://github.com/janoside/btc-rpc-explorer




.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
NotATether
Legendary
*
Offline Offline

Activity: 1596
Merit: 6728


bitcoincleanup.com / bitmixlist.org


View Profile WWW
April 13, 2021, 07:15:03 PM
 #6

If you create your own API, will you make it accessible to the public?

What would be the point of doing that though, since OP would most likely have to rate-limit requests, which he wants to avoid?

BTC RPC Explorer is simple self-hosted explorer you can run on your own full node:
https://github.com/janoside/btc-rpc-explorer

This one looks the most similar to Blockchain.info, you just need a non-pruned node to run it because some information cannot be grabbed if running with a pruned node. Same thing happens if txindex is off.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
georgerick80 (OP)
Newbie
*
Offline Offline

Activity: 2
Merit: 15


View Profile
April 19, 2021, 07:15:07 PM
 #7

Thanks all, I decided to give mempool a try and it seems to be meeting my needs so far.
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!