Ethereum: Blockchain.info API Request Limit
As a developer working with the Ethereum blockchain, you may have come across the request limit
on various APIs. Specifically, when using the [Blockchain.com]( API to retrieve unique blocks from the Ethereum network.
Here’s what I noticed:
GET /api/blockchain_api/v1/eth_blockchain/?block_hash=
The request is made with a maximum number of requests per hour. If you try to send multiple requests in one hour, it may lead to unexpected behavior or errors. The request limit
indicates the maximum number of times you can send an HTTP request to this API endpoint in a single hour.
To avoid hitting the request limit
, you need to make your own API call with a unique query parameter for each block. You can do this by appending a new query parameter, such as
, to the existing URL:
GET /api/blockchain_api/v1/eth_blockchain/?block_hash=&previous_hash=
By doing this, you are making your own API call with a unique block hash and previous block hash each time. This approach ensures that you will not hit the request limit
within an hour.
Note:
You can adjust this parameter as needed to meet your testing requirements. However, keep in mind that using a different query parameter for each request may not be optimal.
In summary, when making API calls to retrieve unique blocks from the Ethereum network using the Blockchain.com API, it is essential to respect the request limit
by appending a new query parameter to each block hash request. This ensures that you don’t hit the limit and maintains the integrity of your testing environment.
Ethereum Bitcoin Revenues Closed