@exist is on PowPing!

PowPing is a place where you can earn Bitcoin simply by socializing, for FREE.
Never tried Bitcoin? It's OK! Just come, socialize, and earn Bitcoin.
Check out exist's activities

Build on Bitcoin

visit channel home
Total Economy: 0.33 USD
hi everyone, I am building an app and I would like to know wbat is the best way to estimate the fee for a transaction. thank you for all replies!
You can get "fee quotes" from miners (IE: https://developers.whatsonchain.com/#fee-quotes) However, after getting the quote, you would need to generate the tx and then do the fee calculations. Minercraft is a package intended to help with those requests. In JS - there is: https://github.com/interplanaria/minercraft In Go - there is: https://github.com/tonicpow/go-minercraft
exist tipped:
libs replied:
Further to that, TxForge is a tx builder that provides an estimate fee function that is implemented the same was as in Minercraft. It defaults to 0.5 sats per byte for both data and standard rates, but you can provide a rates object from minercraft to calculate using different rates. -> https://github.com/libitx/txforge
exist tipped:
mrz tipped:
exist replied:
@mrz and@libs thank you very much for the advice, I will investigate !
exist replied:
@libs i have integrated paypresto, does it support EUR or only USD?
libs replied:
@exist right now only USD. To clarify, invoices are always raised in satoshis. When rendered the widget displays the USD amount alongside the satoshi amount. I could make that an option you pass in when you embed the widget - eg you tell paypresto the currency your users wants to see.
exist replied:
@libs, it would be excellent if the ccy could be passed to the widget, my application is using EUR