Infura开发手册

在线工具推荐: Three.js AI纹理开发包 - YOLO合成数据生成器 - GLTF/GLB在线编辑 - 3D模型格式在线转换 - 可编程3D场景编辑器

ipfs - /api/v0/block/get

查询原始的IPFS数据块。

API请求

GET https://ipfs.infura.io:5001/api/v0/block/get?arg=<key>

请求参数:

  • arg:要查询的区块的base58哈希(Multihash)

示例代码

请求:

curl "https://ipfs.infura.io:5001/api/v0/block/get?arg=QmaYL7E4gDTPNfLxrCEEEcNJgcHBJ55NxxTnxpDKWqMtJ3"

响应结果:

This endpoint returns a `text/plain` response body.