filecoin boost GraphQL API 查询

查询示例

查询失败交易

cpp 复制代码
curl -X POST \
-H "Content-Type: application/json" \
-d '{"query":"query { deals(limit: 10, query: \"failed to get size of imported\") { deals { ID CreatedAt Message } } }"}' \
http://localhost:8080/graphql/query | jq

查询 取消交易

cpp 复制代码
curl -X POST \
-H "Content-Type: application/json" \
-d '{"query":"mutation { dealCancel(id: \"ab12345c-5678-90de-12f3-45a6b78cd9ef\") }"}' \
http://localhost:8080/graphql/query | jq

查询 订单状态 Adding to Sector

cpp 复制代码
curl -X POST \
-H "Content-Type: application/json" \
-d '{"query":"query { deals(limit: 2000) { deals { ID CreatedAt Message } } }"}' \
http://localhost:8080/graphql/query | jq | grep "Adding to Sector" | wc -l

参考

  1. GraphQL API
相关推荐
whoamiZQ4 天前
GraphQL-Client 使用教程与常见问题处理
java·graphql
桂月二二14 天前
使用 SurrealDB 构建高效的 GraphQL 后端
后端·graphql
大梦百万秋14 天前
探索 GraphQL:API 设计的未来趋势
后端·graphql
老大白菜25 天前
使用 Go 和 gqlgen 实现 GraphQL API:实战指南
开发语言·golang·graphql
老大白菜25 天前
Egg.js GraphQL 完整指南
开发语言·javascript·graphql
老大白菜25 天前
GraphQL 教程
后端·graphql
Мартин.1 个月前
[Meachines] [Easy] Help HelpDeskZ-SQLI+NODE.JS-GraphQL未授权访问+Kernel<4.4.0权限提升
后端·node.js·graphql
阿珊和她的猫1 个月前
GraphQL:强大的API查询语言
后端·graphql
码农客栈1 个月前
ARM交叉编译Boost库
boost
易板2 个月前
微源SOT23-6封装LED背光驱动LP3302
boost·led驱动·背光驱动