blockfrost Cardano
与 Cardano 主网及多个测试网交互
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- 分类
- 加密货币
- 文档 / URL
- https://blockfrost.io/
简介
Blockfrost 为 Cardano 区块链提供统一 API——区块、交易、地址、资产和质押池——无需运行 Cardano 节点。认证是免费项目 ID(无 ID 请求返回 403,已实测)。
快速开始
最新区块(替换 YOUR_KEY):
curl "https://cardano-mainnet.blockfrost.io/api/v0/blocks/latest" \
-H "project_id: YOUR_KEY"
{
"hash": "abc123...",
"height": 12345678,
"slot": 123456789,
"epoch": 456,
"time": 1724300000
}
地址详情:
curl "https://cardano-mainnet.blockfrost.io/api/v0/addresses/addr1..." \
-H "project_id: YOUR_KEY"
资产元数据:
curl "https://cardano-mainnet.blockfrost.io/api/v0/assets/{asset_id}" \
-H "project_id: YOUR_KEY"
认证方式
- 在 blockfrost.io 注册 → 创建项目 → 复制 Project ID。
- 通过
project_id请求头携带(缺失 → 403,已实测)。 - 主网和测试网主机不同(
cardano-mainnet、cardano-testnet)。
速率限制与注意事项
- 免费层:50,000 次请求/天(每项目)——很宽裕;付费档可扩展。
- 端点:
/blocks、/transactions、/addresses、/assets、/pools、/epochs等。 - 响应是 JSON,用
page/count查询参数分页。 - 还服务其他 Cardano 网络(preprod、preview),控制台有完整 API 浏览器。
常见问题
Blockfrost 免费吗? 免费层:每项目 50,000 次/天;更多需要付费。
如何获取项目 ID? 在 blockfrost.io 注册 → 创建项目 → 复制 Project ID。
只有主网吗? 主网 + 测试网都可用(不同主机)。
加密货币 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| 0x API for querying token and pool stats across various liquidity pools | No auth | Yes | Yes | ↗ |
| 1inch API for querying decentralize exchange | No auth | Yes | Unknown | ↗ |
| Alchemy Ethereum Ethereum Node-as-a-Service Provider | API Key | Yes | Yes | ↗ |
| Alpha (Mossland) Korean crypto channel stance + RAG Q&A + canonical entity/topic/event store | No auth | Yes | Yes | ↗ |
| Binance Exchange for Trading Cryptocurrencies based in China | API Key | Yes | Unknown | ↗ |