Author

Topic: Does anyone know what this field in Blockchain.info API means? (Read 174 times)

legendary
Activity: 2352
Merit: 6089
bitcoindata.science
Have you tried mempool.space api? This is the one that I usee in all my projects.
The limits are ok imo
https://mempool.space/pt/docs/api/rest

Mempool.space API is actually just an Esplora instance, so I realized that I already have a client developed to access the Esplora API.

It's the same API that blockstream.info uses - that one has no rate limits, but I couldn't find any information about mempool.space's customized rate limits for anonymous usage - Do you happen to know about these limits by any chance?

I have hit the a few times using this tool:
https://bitcoindata.science/bitcoin-balance-check.html

Each address will make one request, and as they are nearly simultaneous you get the limit if you add many addresses (like dozens).

But you won`t get blocked, you will just receive a 429 error (too many requests). and it works again a few seconds later.

I just hit it now after 40+ requests in a minute
legendary
Activity: 2758
Merit: 6830
It's the same API that blockstream.info uses - that one has no rate limits, but I couldn't find any information about mempool.space's customized rate limits for anonymous usage - Do you happen to know about these limits by any chance?
Undisclosed: https://github.com/mempool/mempool/discussions/752#discussioncomment-1248907

Probably enough unless you are doing several simultaneous requests? I’ve never hit a limit, but I’m very conservative.
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
Have you tried mempool.space api? This is the one that I usee in all my projects.
The limits are ok imo
https://mempool.space/pt/docs/api/rest

Mempool.space API is actually just an Esplora instance, so I realized that I already have a client developed to access the Esplora API.

It's the same API that blockstream.info uses - that one has no rate limits, but I couldn't find any information about mempool.space's customized rate limits for anonymous usage - Do you happen to know about these limits by any chance?
legendary
Activity: 2450
Merit: 4415
🔐BitcoinMessage.Tools🔑
That's pretty weird, why would they return a value that has no practical use to users?
They might be using this API endpoint for some internal purposes which require adding weirdly looking entries. "tx_index" may correspond to the index in a database table containing all transactions in the blockchain. As a side note, transaction indexing allows for faster and optimal database queries and correspondingly a faster response from a server. Including database indexes in JSON response allows for more efficient filtering, sorting, and pagination of data, which might be helpful when developing applications because it helps organize data and present it in a more user-friendly format. Another solution would be creating private endpoints with all the neccessary data for development, but it would contain a lot of repetitive and confusing information.
legendary
Activity: 2352
Merit: 6089
bitcoindata.science

It's a shame though, the API seven only seems to support only Bitcoin mainnet, and legacy addresses at that (eg. It returns the size but not the vsize which uses vbytes).

I know that Blockchair supports both testnet and segwit addresses but the limits may not be the best. Have you looked into these alternatives?[1]

[1] https://bitcointalksearch.org/topic/bitcoin-blockchain-data-apis-5386348

Have you tried mempool.space api? This is the one that I usee in all my projects.
The limits are ok imo
https://mempool.space/pt/docs/api/rest
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
It's a shame though, the API seven only seems to support only Bitcoin mainnet, and legacy addresses at that (eg. It returns the size but not the vsize which uses vbytes).
At the very least, they've updated it to include the "weight" value which can be divided by 4 to get the vSize.
It shows whether there's witness data or none.
staff
Activity: 3500
Merit: 6152
That's pretty weird, why would they return a value that has no practical use to users?
-snip-

I would imagine it's because they also use that on their site.

It's a shame though, the API seven only seems to support only Bitcoin mainnet, and legacy addresses at that (eg. It returns the size but not the vsize which uses vbytes).

I know that Blockchair supports both testnet and segwit addresses but the limits may not be the best. Have you looked into these alternatives?[1]

[1] https://bitcointalksearch.org/topic/bitcoin-blockchain-data-apis-5386348
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
According to these answers[1] and assuming nothing has changed since then, it's just something they use internally, so you probably shouldn't be using that in your applications.

[1] https://bitcointalksearch.org/topic/origin-of-txindex-in-blockchaininfo-api-1467979

That's pretty weird, why would they return a value that has no practical use to users?

It's a shame though, the API seven only seems to support only Bitcoin mainnet, and legacy addresses at that (eg. It returns the size but not the vsize which uses vbytes).
staff
Activity: 3500
Merit: 6152
According to these answers[1] and assuming nothing has changed since then, it's just something they use internally, so you probably shouldn't be using that in your applications.

[1] https://bitcointalksearch.org/topic/origin-of-txindex-in-blockchaininfo-api-1467979
legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
Have a look, on this page: https://www.blockchain.com/explorer/api/blockchain_api

In the example for single transaction, there is a "tx_index" field for each input of the transaction. What is not clear to me is how I'm supposed to get the transaction ID for this, since the txid is not returned in this API call. There is also no "tx_index" number in Bitcoin Core's RPC output as well. So how do I make sense of this parameter?
Jump to: