返回顶部
q

query-artblocks-data查询艺术区块数据

Query Art Blocks on-chain data using the artblocks-mcp GraphQL tools. Use when fetching projects, tokens, artists, sales, traits, or any Art Blocks on-chain data via graphql_query, build_query, explore_table, graphql_introspection, validate_fields, or query_optimizer. These are advanced escape-hatch tools — prefer domain-specific tools (discover_projects, get_project, get_artist, get_wallet_tokens, get_token_metadata) when they cover the use case.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
128
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

query-artblocks-data

查询 Art Blocks 数据

何时使用 GraphQL 与领域工具

领域特定工具覆盖了大多数用例,且更易于使用:

需求工具
浏览/搜索项目discoverprojects
完整项目详情
getproject |
| 艺术家作品集 | get_artist |
| 投资组合概览 | getwalletsummary |
| 收藏家代币 | getwallettokens |
| 代币详情 | gettokenmetadata |
| 实时铸造 | discoverlivemints |
| 即将发布 | discoverupcomingreleases |
| 铸造资格 | checkallowlisteligibility |

将以下 GraphQL 工具作为应急出口,用于上述工具未覆盖的自定义查询——如销售历史、聚合统计、复杂关联查询,或没有专用工具的数据表。

资源:artblocks://about

获取此资源以了解平台上下文——包括词汇表、垂直领域、链、标签、用户画像,以及各工具功能指南。

工具层级

按此顺序使用工具——可跳过不需要的步骤:

  1. 1. 发现模式 → exploretable(单表字段+关系)或 graphqlintrospection(完整模式)
  2. 构建验证查询 → buildquery(验证字段、添加建议、自动按链过滤)
  3. 优化 → queryoptimizer(重写为更优表,如用 projectsmetadata 替代 projects)
  4. 执行 → graphqlquery

如果已知模式结构,可直接使用 buildquery → graphqlquery。

工具:explore_table

对于已知表(projectsmetadata、tokensmetadata),返回按类别(身份、状态、媒体、市场等)组织的最常用字段精选列表,以及带建议子字段的关键关系。传入 showAllFields: true 可查看完整模式转储。

参数必填说明
tableName要探索的表
showAllFields
— | true 显示完整模式转储(默认:精选列表)|

推荐表

始终使用 _metadata 变体——它们包含更丰富的关联数据:

使用此表非此表
projectsmetadataprojects
tokensmetadata
tokens |
| contracts_metadata | contracts |

query_optimizer 会自动重写使用错误表的查询。

链 ID

ID
以太坊主网1(默认)
Arbitrum
42161 | | Base | 8453 |

向 graphql_query 传入 chainId,使 $chainId 可作为查询中的变量使用。

常见查询模式

以下示例展示了需要原始 GraphQL 的查询——即领域工具无法实现的功能。

近期销售(无领域工具覆盖购买记录)

graphql query { purchases_metadata( orderby: { blocktimestamp: desc } limit: 20 where: { chainid: { eq: 1 } } ) { token_id priceineth block_timestamp buyer_address seller_address } }

按所有者统计项目代币数量

graphql query { tokensmetadataaggregate( where: { projectid: { eq: 0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270-78 } } distincton: owneraddress ) { aggregate { count } } }

项目的所有代币(领域工具仅返回按钱包查询)

graphql query { tokens_metadata( where: { projectid: { eq: 0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270-0 } } order_by: { invocation: asc } limit: 50 ) { token_id invocation owner_address features } }

具有特定链上属性的项目

graphql query { projects_metadata( where: { scripttypeandversion: { ilike: %three% } chainid: { eq: 1 } complete: { _eq: false } } limit: 20 ) { id name artist_name scripttypeand_version invocations max_invocations } }

提示

  • - 在编写查询前使用 exploretable 了解字段和关系——精选视图比完整模式转储更易浏览
  • buildquery 是最安全的起点——它验证字段并告知可用内容
  • 查询多链数据时始终传入 chainId,以避免跨链干扰
  • 对于未知字段,validate_fields 比完整内省查询更快

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 query-artblocks-data-1776083641 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 query-artblocks-data-1776083641 技能

通过命令行安装

skillhub install query-artblocks-data-1776083641

下载

⬇ 下载 query-artblocks-data v1.0.0(免费)

文件大小: 2.71 KB | 发布时间: 2026-4-17 15:53

v1.0.0 最新 2026-4-17 15:53
- Initial release of the Art Blocks GraphQL query skill.
- Enables advanced querying of Art Blocks on-chain data using GraphQL tools.
- Provides both domain-specific and flexible escape-hatch tools for custom data needs.
- Includes schema exploration, query building, optimization, and execution features.
- Prefers enriched `_metadata` tables for comprehensive data.
- Supports multi-chain querying, with clear chain ID documentation and patterns.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部