Pages:
Author

Topic: Bitcoin address balance checker. (Read 403 times)

legendary
Activity: 3696
Merit: 2219
💲🏎️💨🚓
July 30, 2021, 10:47:02 AM
#30
I didn't see this thread when it came out, however, I'd just like to make mention of one tool I use for posting the price of bitcoin or the amount of bitcoin in terms of a given fiat as exampled in this quote from my Lightning Loans thread:

Mainnet LN loans are also down to BTC 0.00002 and BTC 0.0000202 repayment if more than 24 hours lent.

At one point in the past, the images stopped working.  I was able to get them going by adding an "S" to the http at the beginning of the URL i.e. https

The above are configurable either on the website https://youmeandbtc.com/bitcoin-converter or tweeking the code.

(and yes, it doesn't check balances, but it can complement your project never-the-less)
legendary
Activity: 2758
Merit: 6830
July 26, 2021, 01:19:36 AM
#29
@TryNinja: is this no longer working? I mean: can you fix it? Cheesy
Sorry, it went down when my VPS shit the bed and I totally forgot to put it back online. Grin
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
July 26, 2021, 12:53:51 AM
#28
@TryNinja: is this no longer working? I mean: can you fix it? Cheesy
legendary
Activity: 2464
Merit: 3878
Hire Bitcointalk Camp. Manager @ r7promotions.com
May 20, 2020, 09:39:45 AM
#27
It works, finally. But it seems only to an incoming transaction. I tested with sending BTC and there aren't notifications. I think the problem is here.

Excuse my fat finger :-p
In my case I received notification for both incoming and outgoing tx. Strange things are happening in your side :-D

I have not tested it with any other coin though.
legendary
Activity: 3444
Merit: 3469
Crypto Swap Exchange
May 20, 2020, 09:23:06 AM
#26
It works, finally. But it seems only to an incoming transaction. I tested with sending BTC and there aren't notifications. I think the problem is here.
I must confirm one great stuff here, I receive some tokens on my ETH address and notifications working with them. It is better than Etherscan, which have options only for Ethereum.
legendary
Activity: 2464
Merit: 3878
Hire Bitcointalk Camp. Manager @ r7promotions.com
May 19, 2020, 02:58:34 PM
#25
Is it your address segwit?
Yes, it this one: 3Covid19s5zLNzQHGGLBeqkizwApUb19bj
An hour ago there was another TX and I got notified too. Not sure what is going on in your side.

Edit:

One thing I noticed is that it gives more than one notification for some tx. I am still new and may be need more time to figure it out.
copper member
Activity: 1652
Merit: 1901
Amazon Prime Member #7
May 19, 2020, 02:18:00 PM
#24
Are you using a block explorer API to obtain the balance? Or do you have a DB with each address’ balance?

I would think you would hit your 5k request/month limit fairly quickly considering that each time this page is viewed, it is querying your site 6 times.

I was discussing creating an API for someone who wanted to be able to query the balance of any address a few months ago. He ended up ghosting me (and I strongly suspect creating additional accounts asking for help with various aspects of this project) before we could arrange for escrow to hold payment. I had created basic pseudo code for importing address balances into a DB. Querying a DB shouldn’t be difficult and it shouldn’t be difficult to monitor the bitcoin price on an ongoing basis.
The limit is only to grab the value in USD of an address or the amount in BTC worth of a certain amount (/price/ endpoint). All of these features use BitcoinAverage's API which is limited. I could easily cache the price, like Loyce said, which is what I will probably do soon.

For the balance, there is no limit. And no, I don't save any balance of the addresses. When the image is generated, my server pings Blockstream's explorer API and get the balance of the address (where there is no visible limit).
Most major exchanges have API endpoints that you could connect to that display the “last” price on their exchange. I also believe futures exchanges have endpoints that return the reference index price. I wouldn’t think they would have limits you would reasonably hit.
legendary
Activity: 2758
Merit: 6830
May 19, 2020, 01:47:35 PM
#23
Are you using a block explorer API to obtain the balance? Or do you have a DB with each address’ balance?

I would think you would hit your 5k request/month limit fairly quickly considering that each time this page is viewed, it is querying your site 6 times.

I was discussing creating an API for someone who wanted to be able to query the balance of any address a few months ago. He ended up ghosting me (and I strongly suspect creating additional accounts asking for help with various aspects of this project) before we could arrange for escrow to hold payment. I had created basic pseudo code for importing address balances into a DB. Querying a DB shouldn’t be difficult and it shouldn’t be difficult to monitor the bitcoin price on an ongoing basis.
The limit is only to grab the value in USD of an address or the amount in BTC worth of a certain amount (/price/ endpoint). All of these features use BitcoinAverage's API which is limited. I could easily cache the price, like Loyce said, which is what I will probably do soon.

For the balance, there is no limit. And no, I don't save any balance of the addresses. When the image is generated, my server pings Blockstream's explorer API and get the balance of the address (where there is no visible limit).
copper member
Activity: 1652
Merit: 1901
Amazon Prime Member #7
May 19, 2020, 01:25:07 PM
#22

And again, it will be limited to 5k requests/month until/unless people get more interest in this and I try to find a different solution.
Are you using a block explorer API to obtain the balance? Or do you have a DB with each address’ balance?

I would think you would hit your 5k request/month limit fairly quickly considering that each time this page is viewed, it is querying your site 6 times.

I was discussing creating an API for someone who wanted to be able to query the balance of any address a few months ago. He ended up ghosting me (and I strongly suspect creating additional accounts asking for help with various aspects of this project) before we could arrange for escrow to hold payment. I had created basic pseudo code for importing address balances into a DB. Querying a DB shouldn’t be difficult and it shouldn’t be difficult to monitor the bitcoin price on an ongoing basis.
legendary
Activity: 3444
Merit: 3469
Crypto Swap Exchange
May 19, 2020, 12:42:04 PM
#21
Well, I am surprised, there is an option for many major currencies.
It seems does not work for me. I just send some BTC, but I did not receive any notification.
The bot also does not read my regular balances on the added address.
First you need to give them the address and then they will ask you to chose which coin and you chose Bitcoin to activate the notifications. Mine s working fine. Reveived three notificaions for two tx. My guess is one tx was rebroadcased because the fees was low or I would have two notifications for two tx.

I guess remove the bot and then add it again. Hopefully it will work.

Of course, I know that I need to add address and connected them with the proper coin. Done it all, but nothing after the first transaction.
I added some other coins, I will follow how it works with them.
Is it your address segwit?
legendary
Activity: 2464
Merit: 3878
Hire Bitcointalk Camp. Manager @ r7promotions.com
May 19, 2020, 12:32:34 PM
#20
Well, I am surprised, there is an option for many major currencies.
It seems does not work for me. I just send some BTC, but I did not receive any notification.
The bot also does not read my regular balances on the added address.
First you need to give them the address and then they will ask you to chose which coin and you chose Bitcoin to activate the notifications. Mine s working fine. Reveived three notificaions for two tx. My guess is one tx was rebroadcased because the fees was low or I would have two notifications for two tx.

I guess remove the bot and then add it again. Hopefully it will work.
legendary
Activity: 3444
Merit: 3469
Crypto Swap Exchange
May 19, 2020, 05:22:02 AM
#19


There are. Not from me, though.

I always used @MagnumNotifierBot (Telegram) for that. They support a lot of coins and send you a notification every time you have an incoming or outgoing transaction from a tracked address.
Something that caught my attention now. So how do I set up this bot with the specific address I want. I need it to observe the Covid-19 project donation address.

Edit: I am feeling stupid now lol
I just added the address with the bot and it was super easy lol

Well, I am surprised, there is an option for many major currencies.
It seems does not work for me. I just send some BTC, but I did not receive any notification.
The bot also does not read my regular balances on the added address.
legendary
Activity: 2464
Merit: 3878
Hire Bitcointalk Camp. Manager @ r7promotions.com
May 18, 2020, 11:05:57 PM
#18


There are. Not from me, though.

I always used @MagnumNotifierBot (Telegram) for that. They support a lot of coins and send you a notification every time you have an incoming or outgoing transaction from a tracked address.
Something that caught my attention now. So how do I set up this bot with the specific address I want. I need it to observe the Covid-19 project donation address.

Edit: I am feeling stupid now lol
I just added the address with the bot and it was super easy lol
legendary
Activity: 2758
Merit: 6830
May 18, 2020, 04:02:51 PM
#17
I need to expand the story a bit.
Are there any tools with transaction notifications? Email, Telegram or whatever notification when balance changed?
I use something on Etherscan for Ethereum changes, but it will be fine if there any tools for Bitcoin addresses.
There are. Not from me, though.

I always used @MagnumNotifierBot (Telegram) for that. They support a lot of coins and send you a notification every time you have an incoming or outgoing transaction from a tracked address.
legendary
Activity: 3444
Merit: 3469
Crypto Swap Exchange
May 18, 2020, 03:58:52 PM
#16
I need to expand the story a bit.
Are there any tools with transaction notifications? Email, Telegram or whatever notification when balance changed?
I use something on Etherscan for Ethereum changes, but it will be fine if there any tools for Bitcoin addresses.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
May 17, 2020, 02:28:34 AM
#15
And again, it will be limited to 5k requests/month until/unless people get more interest in this and I try to find a different solution.
If you cache the price data and update no more than once every 10 minutes, you'll never hit the limit.

Thanks for the tool! I've bookmarked your post.
legendary
Activity: 2464
Merit: 3878
Hire Bitcointalk Camp. Manager @ r7promotions.com
May 16, 2020, 02:26:01 PM
#14
Good to know. I think we don't need both to be in the same image. Separate will make the life easier for me :-o
Done! It's the same format as the /balance/ endpoint but with /price/ instead.

Format: https://btc.ninjastic.space/price/ADDRESS/COLOR?size=X


https://btc.ninjastic.space/price/3Covid19s5zLNzQHGGLBeqkizwApUb19bj/ff0000?size=16
This is great man and quick.

Cheers,
legendary
Activity: 2758
Merit: 6830
May 16, 2020, 11:52:32 AM
#13
Good to know. I think we don't need both to be in the same image. Separate will make the life easier for me :-o
Done! It's the same format as the /balance/ endpoint but with /price/ instead.

Format: https://btc.ninjastic.space/price/ADDRESS/COLOR?size=X


https://btc.ninjastic.space/price/3Covid19s5zLNzQHGGLBeqkizwApUb19bj/ff0000?size=16
legendary
Activity: 2464
Merit: 3878
Hire Bitcointalk Camp. Manager @ r7promotions.com
May 16, 2020, 11:33:47 AM
#12
I think there is a misunderstanding in my expectations. I want the USD value of a given address.

So if the address has 1 BTC balance then we will see USD value of that 1 BTC.
Ohh... I see. I can implement that as well. Smiley

You want it in a different endpoint/image so you can put one right the other (amount in BTC and price) or both in the same image, e.g 1 BTC ($9385)?

Good to know. I think we don't need both to be in the same image. Separate will make the life easier for me :-o
legendary
Activity: 2758
Merit: 6830
May 16, 2020, 11:21:42 AM
#11
I think there is a misunderstanding in my expectations. I want the USD value of a given address.

So if the address has 1 BTC balance then we will see USD value of that 1 BTC.
Ohh... I see. I can implement that as well. Smiley

You want it in a different endpoint/image so you can put one right the other (amount in BTC and price) or both in the same image, e.g 1 BTC ($9385)?
Pages:
Jump to: