Bitcoin Forum
February 17, 2020, 06:03:26 AM *
News: Latest Bitcoin Core release: 0.19.0.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Own Bitcoin-API  (Read 72 times)
Forna-Dev
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 09, 2020, 10:37:23 AM
 #1

Hello everyone,

I would like to create an own project where I will be able to check balances and transaction from the BTC blockchain. I would like to use my own infrastructure and I don't want to request other API services.
As far as I could read now the official BTC core installation supports RPC-Calls but you can get only the balance of your own accounts.

Does somebody know a simple way how I can run my own BTC node and request from it balances from BTC addresses and Details of Transactions with python, ideally as REST-API?
It would be great if there is already a docker container available :-)

Thanks for your help!

Forna-Dev
1581919406
Hero Member
*
Offline Offline

Posts: 1581919406

View Profile Personal Message (Offline)

Ignore
1581919406
Reply with quote  #2

1581919406
Report to moderator
1581919406
Hero Member
*
Offline Offline

Posts: 1581919406

View Profile Personal Message (Offline)

Ignore
1581919406
Reply with quote  #2

1581919406
Report to moderator
1581919406
Hero Member
*
Offline Offline

Posts: 1581919406

View Profile Personal Message (Offline)

Ignore
1581919406
Reply with quote  #2

1581919406
Report to moderator
Bitcoin Poker 3.0
The Largest Bitcoin Poker Site
Bad Beat Jackpot Available
No Limit Texas Hold'em Cash Games And Tournaments
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1581919406
Hero Member
*
Offline Offline

Posts: 1581919406

View Profile Personal Message (Offline)

Ignore
1581919406
Reply with quote  #2

1581919406
Report to moderator
1581919406
Hero Member
*
Offline Offline

Posts: 1581919406

View Profile Personal Message (Offline)

Ignore
1581919406
Reply with quote  #2

1581919406
Report to moderator
ETFbitcoin
Legendary
*
Offline Offline

Activity: 1918
Merit: 2202

Use SegWit and enjoy lower fees.


View Profile WWW
January 09, 2020, 11:05:04 AM
Merited by pooya87 (1)
 #2

You could try looking for open-source Bitcoin blockexplorer project, example https://github.com/janoside/btc-rpc-explorer

I never try it, so i've no idea if it has all features you're looking for.

pooya87
Legendary
*
Offline Offline

Activity: 1918
Merit: 2339


Remember tonight for it's the beginning of forever


View Profile
January 09, 2020, 11:07:09 AM
 #3

Does somebody know a simple way how I can run my own BTC node and request from it balances from BTC addresses and Details of Transactions with python, ideally as REST-API?

take a look at ElectrumX implementation projects: https://github.com/kyuupichan/electrumx that are the Electrum server implementations based on the protocol used by Electrum software (this is in python). or any of the block explorers on github that are open source.
basically you have to do what block explorers do, add an additional index on top of your blockchain so that you can enable searching based on any arbitrary address. obviously that would take an additional space on your disk.

darosior
Sr. Member
****
Offline Offline

Activity: 247
Merit: 373



View Profile WWW
January 09, 2020, 11:10:09 AM
 #4

Hi,

Details of Transactions with python, ideally as REST-API?
Esplora is exactly what you're looking for (but beware of the storage requirements Smiley ). I tested it earlier and it's really great.

nc50lc
Hero Member
*****
Offline Offline

Activity: 868
Merit: 968


Self-proclaimed Genius ㊙️


View Profile WWW
January 09, 2020, 12:00:20 PM
 #5

As far as I could read now the official BTC core installation supports RPC-Calls but you can get only the balance of your own accounts.
For transactions, you can use the RPC command -getrawtransaction "TXID" true for any transaction as long as you add -txindex in the config which will require additional space.
You might also need to add/start with -reindex if it's the first time you start with txindex.

For addresses' balance, you need something like the above posts.

Forna-Dev
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 09, 2020, 12:38:02 PM
 #6

This sounds already very good, exactly what I was looking for.
I will have a look on the mentioned tools. Thank you very much !
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!