Bitcoin Forum
April 24, 2024, 01:03:25 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Own Bitcoin-API  (Read 169 times)
Forna-Dev (OP)
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
1713920605
Hero Member
*
Offline Offline

Posts: 1713920605

View Profile Personal Message (Offline)

Ignore
1713920605
Reply with quote  #2

1713920605
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713920605
Hero Member
*
Offline Offline

Posts: 1713920605

View Profile Personal Message (Offline)

Ignore
1713920605
Reply with quote  #2

1713920605
Report to moderator
1713920605
Hero Member
*
Offline Offline

Posts: 1713920605

View Profile Personal Message (Offline)

Ignore
1713920605
Reply with quote  #2

1713920605
Report to moderator
ABCbits
Legendary
*
Offline Offline

Activity: 2856
Merit: 7403


Crypto Swap Exchange


View Profile
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.

█▀▀▀











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











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

Activity: 3430
Merit: 10495



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.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
darosior
Sr. Member
****
Offline Offline

Activity: 279
Merit: 435


View Profile
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
Legendary
*
Offline Offline

Activity: 2394
Merit: 5528


Self-proclaimed Genius


View Profile
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.

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

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

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

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

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

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











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











▄▄▄▄█
Forna-Dev (OP)
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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!