Query Artblocks Data

v1.0.0

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...

0· 145·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for ryley-o/query-artblocks-data.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Query Artblocks Data" (ryley-o/query-artblocks-data) from ClawHub.
Skill page: https://clawhub.ai/ryley-o/query-artblocks-data
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install query-artblocks-data

ClawHub CLI

Package manager switcher

npx clawhub@latest install query-artblocks-data
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The name/description describe GraphQL access to Art Blocks on-chain data and the SKILL.md only documents use of GraphQL/domain-specific query tools (graphql_query, build_query, explore_table, etc.). There are no unrelated credential or binary requirements.
Instruction Scope
Instructions stay focused on query discovery, building, optimizing, and executing GraphQL against Art Blocks schema. They do not instruct the agent to read local files, access unrelated env vars, or transmit data to external endpoints beyond the described query endpoints. The only unusual item is the 'artblocks://about' resource reference—likely an internal platform resource for context.
Install Mechanism
No install spec and no code files — instruction-only skill with no archives or external downloads. This is the lowest-risk install profile.
Credentials
The skill declares no environment variables, credentials, or config paths. The documented queries operate on public on-chain data and do not require secrets or cloud credentials.
Persistence & Privilege
always:false and default model-invocation behaviour are appropriate. The skill does not request persistent system-wide changes or access to other skills' configs.
Assessment
This skill is coherent and low-risk: it only documents how to build and run GraphQL queries against Art Blocks data and requests no secrets or installs. Before installing, confirm (1) that the platform-provided tools referenced (graphql_query, build_query, explore_table, etc.) are the legitimate Art Blocks connectors you expect, and (2) what the 'artblocks://about' resource resolves to so you know what contextual data the skill will fetch. If you want to limit autonomous use, keep model-invocation disabled for agents or review invocations in your agent's audit logs, but that is optional since the skill itself doesn't request extra privileges.

Like a lobster shell, security has layers — review code before you run it.

latestvk97bp3cckts8b8w45p0r4ga7pd8369kw
145downloads
0stars
1versions
Updated 1mo ago
v1.0.0
MIT-0

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

Comments

Loading comments...