Bitcoin Stack Change is a query and reply website for Bitcoin crypto-currency lovers. It solely takes a minute to enroll.
Anyone can ask a query
Anyone can reply
The perfect solutions are voted up and rise to the highest
Requested
Considered
136 occasions
I’m prepared to write down Python script to verify for some public addresses balances. I perceive that I must entry API of identified exchanges (Coinbase, Binance). I additionally know that there can be restrict of requests despatched in time.
So far as I can see there’s risk to verify for pockets balances. However what about checking some public BTC addresses?
You can entry an API and be restricted by their ToS however you do not have to.
All transactions (TX
) and BTC addresses (pubKey
) are public on the blockchain with the excellence that every one TX are recorded, however pubKeys
present up solely as soon as talked about in a TX
.
Assuming you are speaking about bitcoin and never one thing else you need to run bitcoind
in your machine and question it regionally with out limitations.
bitcoin-cli getbalance
1
You should utilize providers like blockchain.com, blockchair.com or tokenview.io to discover crypto addresses. It’ll present you steadiness, a listing of transactions, date and time and a few more information.
As on your script, you should utilize requests
library to ship requests to API and obtain JSON knowledge or scrape the web-sites immediately utilizing requests
and beautifulsoup
.