Request for API Usage Limits and Error Documentation

未关闭
#519 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
领域
api, documentation

调研方向

首先检查现有的 API 文档和 /address/:address 端点。记录 API 的速率限制或配额、端点可能返回的错误响应,以及无效地址或不存在地址对应的错误;当开发者可以使用这些信息进行验证和错误处理时,工作就完成了。

由索引模型根据 Issue 内容生成。

描述

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
主要语言
JavaScript
星标
1.3k
派生
527
平均合并
2 天 5 小时
30 天内合并 PR
4

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Blockstream/esplora 的其他 Issue

查看 Blockstream/esplora 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。