Pages:
Author

Topic: [TOOL] Bitcoin data API to use in bitcointalk as images - page 2. (Read 642 times)

legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
The reason is that some users just make the forum background black. Those users will simple don't see the image if who posted uses ?color=black in the endpoint.

This is also true.

So I suggest using the green color as the standard color.
It is similar to what happens in the cinema area, which uses the green screen to adapt to any background that may be placed.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
I agree black is better, however I need a color that will fit all users, and some of them use a dark background (even in the forum).

Maybe endpoints could include text color option. This would allow anyone who wants to change to another color.

I even implemented this solution,  but I decoded to rollback.

The reason is that some users just make the forum background black. Those users will simple don't see the image if who posted uses ?color=black in the endpoint.
legendary
Activity: 1722
Merit: 4711
**In BTC since 2013**
Fantastic tool. Saved.  Wink


I agree black is better, however I need a color that will fit all users, and some of them use a dark background (even in the forum).

Maybe endpoints could include text color option. This would allow anyone who wants to change to another color.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
I tested it by converting one of the PNGs to GIF, and it was smaller. Using less colors doesn't matter for the quality of those images.

Converted to gif
I will study how to make animations in a few days.

Is it just me or the font color of the text in the image is actually blurry. I mean we have to pay more attention to it to see it clearly.
It would have been more easier if the font color was black rather than grey.

I agree black is better, however I need a color that will fit all users, and some of them use a dark background (even in the forum).
hero member
Activity: 2702
Merit: 716
Nothing lasts forever
Is it just me or the font color of the text in the image is actually blurry. I mean we have to pay more attention to it to see it clearly.
It would have been more easier if the font color was black rather than grey.
If @bitmover could do this change it would be great.

Great efforts though. Congratulations.

legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
I researched about png x gif, and saw this:

Quote
PNG files almost always offer better compression and a reduced file size compared to GIF. The PNG format also supports variable transparency and millions of colors while GIF only supports 256 colors and does not offer alpha channels. For online use, the only scenario where GIF files are appropriate instead of PNG is animations.
https://www.diffen.com/difference/GIF_vs_PNG
I tested it by converting one of the PNGs to GIF, and it was smaller. Using less colors doesn't matter for the quality of those images.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
I'm happy with the effort you're making to make things simpler, but manual editing means I need to bookmark this page and come back to it whenever I need code, so using some scripts like the one below would be very helpful.

Although this looks useful, I don't know how many people would use it. It has a total of 4 downloads..

Personally,  I think add-ons and extensions a bit invasive and I don't like to install them  only when need such as an adblock.
I will think about your suggestion.

I had to test this for a large transaction:

You always make good stress tests, but I was ready now.  I tested with chipmixer campaign transactions.

Nice tool. This could make discussion about specific TXID/address easier. But IMO it'd be better if BBcode generated by your page lead to web page of the source data (e.g. to mempool.space/tx/64_CHARACTER_HEX).

As I want to somehow promote the documentation page, an animated gif would be a nice fix.
I will try to do so and add mempool.space  website as the link when it is done.
legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
Nice tool. This could make discussion about specific TXID/address easier. But IMO it'd be better if BBcode generated by your page lead to web page of the source data (e.g. to mempool.space/tx/64_CHARACTER_HEX).



Test with transaction which makes Ordinal popular.

Default BB tag,


Replace url to mempool.space website,
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
I had to test this for a large transaction:

I'm not disappointed! Update: okay, a bit: the image doesn't always load. My guess: API-limits on mempool.space?

Suggestions:
  • Remove the empty space under the data.
  • Use GIF instead of PNG (it's slightly smaller)
  • Crazy idea: use animated gif, without infinite loop (so loop once). Show "Created by Bitcoindata.science" for a few seconds, then make it disappear until reloading
legendary
Activity: 1596
Merit: 1288
I'm happy with the effort you're making to make things simpler, but manual editing means I need to bookmark this page and come back to it whenever I need code, so using some scripts like the one below would be very helpful.



If the image here for input and output is in tabular form, it's easier to follow. like blockchair.com Wallet statement

Code:
[img]https://bitcoindata.science/api/transaction.php?id=15e10745f15593a899cef391191bdd3d7c12412cc4696b7bcb669d0feadc8521[/img]
legendary
Activity: 2352
Merit: 6089
bitcoindata.science
Bitcoin BlockData API to use in Bitcointalk as Images

I have been working in this API for a few weeks, and I believe it is now ready to share with you guys.
The documentation is here: https://bitcoindata.science/bitcointalk-api.html

Using blockchain data from mempool.space and price data from coingecko and exchange.host, it is now possible to share bitcoin data such as address balances and transactions as an image in bitcointalk.org or any other forum using our API. The data is always updated when reloaded.

I have made four endpoints.


Transaction Details endpoint

Instead of just posting the transaction ID, you can just use this end point to show all transaction details, including all inputs/outputs, confirmation status, block height, fee rate , etc

For example transaction id 15e10745f15593a899cef391191bdd3d7c12412cc4696b7bcb669d0feadc8521
Code:
[img]https://bitcoindata.science/api/transaction.php?id=15e10745f15593a899cef391191bdd3d7c12412cc4696b7bcb669d0feadc8521[/img]



Bitcoin Mempool Fees


Requesting the recommend fees (data from mempool.space).

Code:
https://bitcoindata.science/api/bitcoinfees.php




Address Balance endpoint

Post the updated balance of any address, in any currency you like.

Example: Requesting the balance of address 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNain EUR.

Code:
[img]https://bitcoindata.science/api/addressbalance.php?address=1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa¤cy=EUR[/img]




Bitcoin Price to local currency endpoint

Post the price of any amount of bitcoin in any fiat currency

Example: Requesting the price of 0.1 bitcoin in BRL.
Using bold and purple color, just and parameters &hex=872cc3 and &bold

Code:
[img]https://bitcoindata.science/api/localprice.php?coin=bitcoin&amount=0.1¤cy=BRL&hex=872cc3&bold[/img]




I hope those endpoints are useful for you. I believe the transaction endpoint is quite useful, as it has a lot of information which may be available without leaving the forum.

Please post suggestions or any bug you notice!
Pages:
Jump to: