Bitcoin Forum

Bitcoin => Project Development => Topic started by: TryNinja on March 20, 2023, 07:45:35 AM



Title: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: TryNinja on March 20, 2023, 07:45:35 AM
Talk with the bot to start:

@BitcoinFeesAlert_bot (https://t.me/BitcoinFeesAlert_bot)

https://talkimg.com/images/2023/05/13/blobd5af1b5d043240d6.png

Commands:

/alert X - where X is the amount in sats/vbyte that will trigger an alert (a.k.a when hour fees <= X, according to mempool.space (http://mempool.space)).
/fees - sends the current mempool fees (according to mempool.space (http://mempool.space)).
/tx XXXX - triggers a notification when your transaction of id XXXX gets a confirmation on the blockchain.

Every time you get a notification, you need to enable them again with the same /alert X command.

For example: I want to get notified when mempool hour fees <= 2 sats/vbyte, so I will send the command /alert 2. When hour fees <= 2 sats/vbyte, the bot will alert me only ONCE. If I want to get notified again, I will need to re-run the command. This is so you don't get spammed while fees stay below this number.


TODO:

- Let the user choose the "type" of fee he wants to get notified about (high priority, medium priority, hour fee, half-hour fee, etc...).
- ???


Title: Re: [Telegram Bot] Bitcoin Fees Alert
Post by: examplens on March 20, 2023, 12:18:10 PM
TODO:

- Let the user choose the "type" of fee he wants to get notified about (high priority, medium priority, hour fee, half-hour fee, etc...).
- ???

is there any chance to change the avatar image on this bot, to something recognizable and unique making it easier to recognize for those of us who have a large number of channels we follow?
it would be great because, for example, I have some contacts that look almost identical.
tx


Title: Re: [Telegram Bot] Bitcoin Fees Alert
Post by: moneystery on March 20, 2023, 03:38:33 PM
This is a very helpful bot, because with just a few commands we can get fees in real time which will reduce time compared to finding out about bitcoin fees on other websites or applications. However, it would be even more interesting if this bot could be developed by adding a number of commands such as a set alert price, a significant drop in bitcoin prices, or several commands that could help users. But this bot alone does a great job.


Title: Re: [Telegram Bot] Bitcoin Fees Alert
Post by: dzungmobile on March 21, 2023, 07:05:15 AM
is there any chance to change the avatar image on this bot, to something recognizable and unique making it easier to recognize
Let's check it. Not too good but have fun

When I am available to wear avatar, I will take the second one  :D
https://i.imgur.com/RPI440s.jpg  https://i.imgur.com/KQhp8Wu.jpg


Title: Re: [Telegram Bot] Bitcoin Fees Alert
Post by: TryNinja on March 22, 2023, 09:25:08 AM
I also liked the second one. Did you make them? Is it ok if I use it for the bot's avatar? ;D

edit: using, looks great! thanks.

https://talkimg.com/images/2023/05/13/blob30d0d3eee8afde81.png


Title: Re: [Telegram Bot] Bitcoin Fees Alert
Post by: dzungmobile on March 22, 2023, 09:28:42 AM
I also liked the second one. Did you make them? Is it ok if I use it for the bot's avatar? ;D
Sure you can.

I did not make it but ordered my friend to make it. From my idea, he made the first one which I don't like so I have to guide him more in details. Eventually we went to the second one.

That file matches perfectly with Telegram avatar which he designed for your bot avatar :)

I have to ask him to export an avatar-sized file for me. I self-resized and got a blurry one :p


Title: Re: [Telegram Bot] Bitcoin Fees Alert
Post by: TryNinja on March 31, 2023, 08:12:51 AM
Small update: I added a command to track and notify when a transaction gets a confirmation on the blockchain. The bot should check it every ~5 minutes.

/tx <transaction id>

https://talkimg.com/images/2023/05/13/blob1ed43a12fc41eb16.png


Title: Re: [Telegram Bot] Bitcoin Fees Alert
Post by: Synchronice on March 31, 2023, 10:08:30 AM
Good job, man! I'll definitely use it but I just immediately came up with this one idea. You made the bitcointalk supernotifier bot, so, what do you think about to include the average bitcoin fee at that moment on each reply/mention/merit notification? It will be a good to include bitcoin price too with that. Idk if that's possible or easy or something that users want but I think it's a cool idea.
Also, I think it will be good if we have possibility to configure bot to receive fee notifications either for Legacy Address or SegWit address.

Btw I sent you a pm, hope you won't miss it.


Title: Re: [Telegram Bot] Bitcoin Fees Alert
Post by: dzungmobile on April 04, 2023, 12:50:55 AM
I confirmed that the bot works well  :D

On Sunday, I received notification from the bot that "Economy fees have dropped below 3 sats/vbyte!". I expected to receive it since Saturday when I saw mempools started to clean up more.

Great bot, TriNinja!


Title: Re: [Telegram Bot] Bitcoin Fees Alert
Post by: blue Snow on April 05, 2023, 04:12:37 AM
Talk with the bot to start:
@BitcoinFeesAlert_bot (https://t.me/BitcoinFeesAlert_bot)

I tried it, and the bot begins (Mulai) with my local language, is there auto-language detection?

Quote
Hi! Welcome to the BitcoinFeesAlert bot.

Use the command /alert X, where X is the Bitcoin fee in vbyte that you want to be notified about (economy fees only, for now).

You can also use /tx XXXX, where XXXX is the id of the transaction you want to get notified about when its confirmed.

I tried also with /alert 1, I don't know when happen?, because until today it has never been below 1 satoshi, right?, or the same as and below than like this symbol (≤)?

About tx notification, when we received a notification?, is it after 1 confirmed or more than 1?


Title: Re: [Telegram Bot] Bitcoin Fees Alert
Post by: Cantsay on April 05, 2023, 10:18:37 AM
~~~
About tx notification, when we received a notification?, is it after 1 confirmed or more than 1?

You get notified as soon as your transaction has 1 confirmation.

I tried the bot with a tx from blockchair.com that has one confirmation already and I got "transaction already confirmed".


Title: Re: [Telegram Bot] Bitcoin Fees Alert
Post by: TryNinja on April 05, 2023, 01:46:37 PM
I tried it, and the bot begins (Mulai) with my local language, is there auto-language detection?
Probably related to Telegram itself? I've coded the bot entirely in english.

I tried also with /alert 1, I don't know when happen?, because until today it has never been below 1 satoshi, right?, or the same as and below than like this symbol (≤)?
Less or equal, yes. When "economy" fees <= 1.

About tx notification, when we received a notification?, is it after 1 confirmed or more than 1?
1 confirmation.


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: paid2 on April 05, 2023, 02:23:58 PM
@TryNinja

Thank you so much for having made this bot !

I was looking for exactly what you made, thank you!  https://bitcointalk.org/index.php?topic=5444515.msg61895401#msg61895401

Do you think you will include balance modification alert for X address in the future ?
Could be great to have an alert for incoming tx on a said address



Do you still have control of 1NinjabXd5znM5zgTcmxDVzH4w3nbaY16L ?


Title: Re: [Telegram Bot] Bitcoin Fees Alert
Post by: examplens on May 05, 2023, 08:45:23 AM
Less or equal, yes. When "economy" fees <= 1.

is there a possibility that the default result on /fee alert is not an "Economy" fee?
Such notification is often not usable because the economy fee is not enough to complete the transaction, especially lately when the network is overloaded.
For example, I set the alert to 10 sats/vbyte, and very quickly I received a notification that the fee was below that, but it is very far from reality. So if I'm waiting for a certain fee to make a transaction, information about the "hourly fee" status is more useful to me.

https://i.ibb.co/k69Ldmd/image.png (https://imgbb.com/)


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: TryNinja on May 05, 2023, 08:34:23 PM
Do you think you will include balance modification alert for X address in the future ?
Could be great to have an alert for incoming tx on a said address
Will do that, thanks for the suggestion! Sorry for the delay. :P

Do you still have control of 1NinjabXd5znM5zgTcmxDVzH4w3nbaY16L ?
I do.



is there a possibility that the default result on /fee alert is not an "Economy" fee?
Such notification is often not usable because the economy fee is not enough to complete the transaction, especially lately when the network is overloaded.
Yep, got an alert for <= 2 sat/vbyte, took a look at the fees and the minimum for next block was around 40 sat/vbyte. :P

I'll change the default and add the option to let the user choose between fastest, half-hour, hour, etc...


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: darkv0rt3x on May 08, 2023, 12:01:13 PM
There is one other bot in Telegram doing kind of the same. I am curious what would be the difference. I'll use the 2 and will try to check about the differences! It's @cheeserobot.


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: dzungmobile on May 08, 2023, 12:58:41 PM
I am back with my proposal.  :D

Would you mind adding a warning like "Your fee rate is very low that causes this transaction will probably be dropped off from mempools within next 14 days". It can be helpful for people don't know about risk of transaction dropped from mempools if it is broadcasted with very low fee rate.

A reminder like "Always use Replace-by-Fee (RBF) for your transaction."


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: darkv0rt3x on May 08, 2023, 01:30:29 PM
btw, is the code closed source? :)


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: TryNinja on May 08, 2023, 02:32:07 PM
Would you mind adding a warning like "Your fee rate is very low that causes this transaction will probably be dropped off from mempools within next 14 days". It can be helpful for people don't know about risk of transaction dropped from mempools if it is broadcasted with very low fee rate.
Noted, I'll see if it's viable.

btw, is the code closed source? :)
It's open source: https://github.com/ninjastic/BitcoinFeesAlert-bot



Btw, the bot is now using the "hour" fees by default. Other options will come as soon as I stop being lazy. 8)


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: Flexystar on May 08, 2023, 04:13:57 PM
https://i.ibb.co/PCkn5P3/feestracker.jpg

Yep, the bot works just fine.
@TryNinja, I think you should really pick your pace and start creating miraculous bot which will be able to do more than this.

I think you know very what you are doing, it's just that you are limiting yourself.  :P

I already forwarded the bot link to few friends as I know they will love to see a bot notifying them fees, transaction alerts etc. over notification such as telegram. This saves time by not going online and checking the blockhyper all the time.

Amazing. Good luck for the future developments. Hope you share more updates soon.


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: joker_josue on May 09, 2023, 08:18:56 PM
I have already used this bot and it works very well and was very useful. Thanks TryNinja.

By the way, me and my suggestions:  :P
You could make it possible to indicate our transaction and that way it indicates when it is confirmed. It would be a way of following the evolution of the transaction on the network.


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: paid2 on May 10, 2023, 07:08:00 AM
The bot is working great, I used it many times now.

I noticed that when a tx is confirmed, he is spamming the confirmation message.

For example if a tx is confirmed, he send me 4 ou 6 times the message saying "tx is confirmed etc..."

Nothing disturbing, the job is well done, but I am just curious if it is due of my version of Desktop Telegram not updated ?


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: TryNinja on May 10, 2023, 11:26:41 AM
For example if a tx is confirmed, he send me 4 ou 6 times the message saying "tx is confirmed etc..."
It is spamming or it was spamming? I supposedly already fixed this days ago. ???


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: paid2 on May 12, 2023, 06:21:14 PM
For example if a tx is confirmed, he send me 4 ou 6 times the message saying "tx is confirmed etc..."
It is spamming or it was spamming? I supposedly already fixed this days ago. ???

Sorry for late answer ! I had to wait until the fees decreased a little bit before being able to confirm it.

My bad, I did some tests with 3 transactions and I confirm it is 100% fixed !

Thank you dear!


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: Okayama on November 14, 2023, 12:17:28 PM
Is it possible to get continuous updates on the Fastest Fee, like every 10 minutes or maybe every hour through notifications? It might seem a bit spammy, but instead of regularly checking the mempool and sometimes missing the moments when the fee is quite low (even though it hasn't triggered the set alarm yet), I think it could be useful.

I want to buy a small amount of Bitcoin through p2p , but the transaction fees make me hesitate a bit right now. It's not really a rush, but getting it faster is not too bad.

If I find that the fee has dropped to a reasonable rate (even though it's still above the target), I might be able to make the decision if time is really more important than a little money.


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: logfiles on November 20, 2023, 09:25:20 PM
Is it possible to get continuous updates on the Fastest Fee, like every 10 minutes or maybe every hour through notifications? It might seem a bit spammy, but instead of regularly checking the mempool and sometimes missing the moments when the fee is quite low (even though it hasn't triggered the set alarm yet), I think it could be useful.

I want to buy a small amount of Bitcoin through p2p , but the transaction fees make me hesitate a bit right now. It's not really a rush, but getting it faster is not too bad.

If I find that the fee has dropped to a reasonable rate (even though it's still above the target), I might be able to make the decision if time is really more important than a little money.
The set fee alert feature should be able to solve this for you

Sending notifications every 10 minutes is no different from you setting a stop watch and checking mempool.space every 10 minutes to see if the fee has dropped. In the next few hours or days, you will get fed up and won't bother checking any more once the 10-minute notification comes on.


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: wallet4bitcoin on December 16, 2023, 11:58:30 PM
Its good to have a bot giving such details just like the forum notification bot. A bot that gives information about the fees for a transaction is priceless.

Most times we need these updates to guide our financial transactional decisions. For instance, I have no idea what the fee for a transaction is right now, so, if I am about to make payment to 10 accounts and the fees are high, I get an update from the fees tracker bot, I will likely opt out until its way lesser. Its needed even more now that the network fees are to the roof top.


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: Upgrade00 on March 22, 2024, 01:47:51 PM
Sorry (not so sorry) for the necro bumping, but I have been wishing for a tool like this, without knowing there already was one, for more than a year now. So this is a bump for any there user who wants to use this.

Thank you TryNinja for this and your other bots which makes the general experience that much better.


Title: Re: [Telegram Bot] Bitcoin Fees - fees and tx tracker
Post by: yhiaali3 on March 22, 2024, 09:57:26 PM
As usual TryNinja great job thank you

This type of bot is what I really needed, whether to know the appropriate fees for the transfer or whether to track the transaction confirmations, every time I opened several pages to find out the fees or transaction confirmations. These notifications will be useful to everyone.

For unconfirmed transactions, is there a possibility to add the approximate time the transaction could take in relation to the fees? I saw on some Bitcoin explorers that they give the number of transactions in the queue before your transaction.