Request for API Usage Limits and Error Documentation

Open
#519 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Domain
api, documentation

Research direction

Start by reviewing the existing API documentation and the /address/:address endpoint. Document the API's rate limits or quotas, possible endpoint error responses, and the errors for invalid or non-existent addresses; the work is done when developers can use this information for validation and error handling.

Written by the indexing model from the issue text.

Description

Request for API Usage Limits and Error Documentation

First of all, I want to express my appreciation for the Blockstream.info API. It's a fantastic resource for the Bitcoin community, and the fact that it's provided for free is truly commendable.

However, I've noticed that the current documentation lacks information on API usage limits and potential error responses. This information would be incredibly valuable for developers to ensure we're using the API responsibly and handling errors correctly.

Specifically, I would appreciate clarity on:

  1. Are there any rate limits or usage quotas for the API?
  2. What are the possible error responses for different endpoints?
  3. For the /address/:address endpoint, what specific errors might be returned for an invalid or non-existent address?

Having this information would allow developers to implement proper error handling and avoid unnecessary API calls. For instance, if we knew the exact error response for an invalid Bitcoin address, we could perform a local validation before making an API request, thus reducing unnecessary load on your servers.

As an example of how this could be useful, my use case involves verifying payments, with an expected volume of around 50 calls per month. Knowing how to properly validate addresses and handle potential errors would help me use your API more efficiently.

Thank you for considering this request. Any additional documentation on these aspects would greatly benefit the developer community using your API.

Summary

  • Request: Documentation on API usage limits and error responses
  • Key Points:
    • Rate limits and usage quotas
    • Possible error responses for different endpoints
    • Specific errors for invalid addresses in /address/:address endpoint
  • Use Case: Payment verification (~50 calls/month)
  • Benefit: Improved error handling and API efficiency for developers
Dominant language
JavaScript
Stars
1.3k
Forks
527
Avg merge
2d 5h
Merged PRs (30d)
4

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Blockstream/esplora

All issues in Blockstream/esplora

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.