浏览器 / 索引器 REST API
explorer.bout.network 上的 OXN 区块浏览器由一个 REST API 支撑。这个 API 驱动浏览器 UI,也可以直接用于索引器、分析面板、监控服务。
基础 URL
API 在:
https://explorer.bout.network/v1/
所有端点返回 JSON。
常见查询模式
端点路径与字段名可能演进。以下是典型端点形态;具体 schema 以线上 API 为准。
区块
curl https://explorer.bout.network/v1/blocks?limit=10
curl https://explorer.bout.network/v1/blocks/12345
返回区块元数据:高度、哈希、时间戳、交易数、消耗 gas。
交易
curl https://explorer.bout.network/v1/transactions?limit=25
curl https://explorer.bout.network/v1/transactions/0x{tx_hash}
交易字段:from、to、value、gas、status。加密交易的 data 字段存在但不透明(CBOR 信封字节)。
账户
curl https://explorer.bout.network/v1/accounts/0x{address}
返回余额、交易计数,以及(如果是合约)创建交易。
事件 / Allowances
领域相关的表——具体端点取决于索引器暴露了什么。标准表包括事件日志(加密交易的为加密)与 ERC-20 allowances。
分页
返回列表的端点支持分页:
?limit=25&offset=0
或基于游标:
?limit=25&after=<cursor>
跟随响应中的 Link header 或 next_cursor 字段继续。