← 返回
未分类 中文

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...
使用 artblocks-mcp GraphQL 工具查询 Art Blocks 链上数据。在获取项目、代币、艺术家、销售、特征或任何 Art Blocks 链上信息时使用。
ryley-o ryley-o 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 393
下载
💾 0
安装
1
版本
#latest

概述

Querying Art Blocks Data

When to Use GraphQL vs Domain Tools

The domain-specific tools cover most use cases and are easier to use:

NeedTool
------------
Browse/search projectsdiscover_projects
Full project detailsget_project
Artist's body of workget_artist
Portfolio overviewget_wallet_summary
Collector's tokensget_wallet_tokens
Token detailsget_token_metadata
Live mintsdiscover_live_mints
Upcoming dropsdiscover_upcoming_releases
Mint eligibilitycheck_allowlist_eligibility

Use the GraphQL tools below as an escape hatch for custom queries not covered above — sales history, aggregations, complex joins, or tables without a dedicated tool.

Resource: artblocks://about

Fetch this resource for platform context — vocabulary, verticals, chains, tags, user profiles, and a guide to which tool handles what.

Tool Hierarchy

Use tools in this order — skip steps you don't need:

  1. Discover schemaexplore_table (single table with fields + relationships) or graphql_introspection (full schema)
  2. Build a validated querybuild_query (validates fields, adds suggestions, auto-filters by chain)
  3. Optimizequery_optimizer (rewrites to preferred tables, e.g. projects_metadata over projects)
  4. Executegraphql_query

If you already know the schema, go straight to build_querygraphql_query.

Tool: explore_table

For well-known tables (projects_metadata, tokens_metadata), returns a curated shortlist of the most useful fields organized by category (Identity, Status, Media, Market, etc.) plus key relationships with suggested subfields. Pass showAllFields: true to see the full schema dump instead.

ParamRequiredNotes
-----------------------------------------------------------------------------
tableNameyesTable to explore
showAllFieldstrue for full schema dump (default: curated shortlist)

Preferred Tables

Always use the _metadata variants — they include richer joined data:

Use thisNot this
------------------------------------
projects_metadataprojects
tokens_metadatatokens
contracts_metadatacontracts

query_optimizer will automatically rewrite queries that use the wrong table.

Chain IDs

ChainID
---------------------------
Ethereum mainnet1 (default)
Arbitrum42161
Base8453

Pass chainId to graphql_query to make $chainId available as a variable in your query.

Common Query Patterns

These examples show queries that require raw GraphQL — things the domain tools can't do.

Recent sales (no domain tool covers purchases)

query {
  purchases_metadata(
    order_by: { block_timestamp: desc }
    limit: 20
    where: { chain_id: { _eq: 1 } }
  ) {
    token_id
    price_in_eth
    block_timestamp
    buyer_address
    seller_address
  }
}

Aggregate token count by owner for a project

query {
  tokens_metadata_aggregate(
    where: { project_id: { _eq: "0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270-78" } }
    distinct_on: owner_address
  ) {
    aggregate { count }
  }
}

All tokens for a project (domain tools only return per-wallet)

query {
  tokens_metadata(
    where: { project_id: { _eq: "0xa7d8d9ef8d8ce8992df33d8b8cf4aebabd5bd270-0" } }
    order_by: { invocation: asc }
    limit: 50
  ) {
    token_id
    invocation
    owner_address
    features
  }
}

Projects with specific on-chain attributes

query {
  projects_metadata(
    where: {
      script_type_and_version: { _ilike: "%three%" }
      chain_id: { _eq: 1 }
      complete: { _eq: false }
    }
    limit: 20
  ) {
    id
    name
    artist_name
    script_type_and_version
    invocations
    max_invocations
  }
}

Tips

  • Use explore_table to understand fields and relationships before writing a query — the curated view is much easier to scan than the full schema dump
  • build_query is the safest way to start — it validates fields and tells you what's available
  • Always pass chainId when querying multi-chain data to avoid cross-chain noise
  • For unknown fields, validate_fields is faster than a full introspection

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 02:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Tavily 搜索

jacky1n7
通过 Tavily API 进行网页搜索(Brave 替代方案)。当用户要求搜索网页、查找来源或链接,且 Brave 网页搜索不可用时使用。
★ 278 📥 101,422
data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 298 📥 142,773
knowledge-management

Get Artist

ryley-o
使用 artblocks-mcp 查询 Art Blocks 艺术家及其作品集。用于查找艺术家、浏览项目或探索作品集。
★ 0 📥 470