Bitquery graphql skill

From holon-run/uxc · View interactive version

Bitquery graphql skill is an AI agent skill from the GitHub repository holon-run/uxc. Use Bitquery GraphQL through UXC for onchain trades, transfers, token holder analysis, balances, and market structure queries across supported networks, with OAuth client_credentials authentication and query-first execution.

How to use this skill

Skill file

Bitquery GraphQL Skill

Use this skill to run Bitquery GraphQL API operations through uxc.

Reuse the uxc skill for discovery, GraphQL execution, OAuth lifecycle, and generic error handling.

Prerequisites

Authentication

Bitquery uses bearer access tokens. The most stable agent path is OAuth client_credentials, not a copied temporary token.

  1. Create a Bitquery application and note:
  1. Login once with OAuth client credentials:
  1. Bind the GraphQL endpoint:
  1. Verify auth mapping:

Core Workflow

  1. Use fixed link command by default:
  1. Discover available root operations:
  1. Inspect a specific operation:
  1. Execute with positional JSON and explicit GraphQL selection sets:
  1. Prefer query/* operations first.

Capability Map

Within those roots, Bitquery exposes entities for tasks such as:

Always inspect the current schema with -h and use the narrowest _select needed.

For subscriptions specifically:

Recommended Usage Pattern

  1. Inspect root arguments first:
  1. Start with a minimal query on one network:
  1. Add only the fields needed for the task:
  1. Narrow with GraphQL arguments inside _select:
  1. Treat large or realtime queries carefully:
  1. For live subscriptions, start with a known-good high-frequency shape:

Tested Real Scenario

The following authenticated Bitquery flow was verified successfully through uxc:

The verified query shape was:

{
  "network": "base",
  "dataset": "combined",
  "_select": "DEXTrades(limit: {count: 1}) { Block { Time } Transaction { Hash } Trade { Buy { Amount Buyer Currency { Symbol SmartContract } } Sell { Amount Seller Currency { Symbol SmartContract } } } }"
}

The verified subscription shape was:

{
  "network": "bsc",
  "mempool": true,
  "_select": "Transfers { Transaction { Hash From To } Transfer { Amount Type Currency { Name } } }"
}

Guardrails

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.