NEW Workflow v2 · the multi-agent verification layer is live
All apps

Bitquery

analytics 10 tools available

Bitquery provides historical and real-time indexed data for over 40 blockchains through GraphQL APIs, Websockets, SQL, and cloud providers.

About this integration

Connect Bitquery to Definable to answer ad-hoc analytics questions, detect anomalies, auto-generate weekly summaries. Personas call Bitquery's 10 tools directly from chat or scheduled flows. Plug into a data-analysis persona to ask questions in plain English — the agent runs the queries.

Connect Bitquery to Definable and it becomes a set of typed tools your agents plan with — triggered by events, run on schedules, or invoked mid-conversation. Every write is checked by the verifier before it lands.

Auth OAuth2 · 2 clicks
Tools 10 exposed
Plans All, incl. Free
Data Never trained on

Bitquery · in workflows

What teams actually run.

Three patterns teams run with Bitquery on day one. Each one is a plain-English prompt — no canvas, no glue code — and you can remix them into anything.

01

Weekly anomaly digest

Query metrics from this tool
Compare against rolling baseline
Surface anomalies with reasoning
02

Funnel deep-dive

Pull funnel events for a date range
Compute drop-offs at each step
Generate a written analysis
03

Cohort answers on demand

User asks a question in chat
Agent translates it to a query
Returns numbers + a chart-ready summary

10 tools available

The Bitquery toolbox.

Every Bitquery capability your agents can call, each with a typed schema the planner reads. The router picks the right tool per step; the verifier checks the result.

Archive Database Query

Query the Bitquery Archive Database (V1 API) for historical blockchain data. The Archive Database provides complete historical blockchain data across 40+ blockchains including Bitcoin, Ethereum, BSC, Solana, and more. Data has a delay of tens of minutes to hours from real-time. For near-real-time data, use the Realtime Database Query instead. The V1 API uses blockchain-specific root types (bitcoin, ethereum, etc.) with fields like blocks, transactions, transfers, and trades. Queries support filtering, pagination with limit/offset, and sorting with orderBy. Example queries: - Bitcoin blocks: { bitcoin { blocks(limit: 5, orderBy: {descending: height}) { height } } } - Ethereum transactions: { ethereum { transactions(limit: 10) { hash value } } }

Combined Database Query

Query Bitquery's Combined Database (v2 API) for blockchain data across 40+ networks. Use this tool to fetch real-time and historical blockchain data including: - Blocks, transactions, and events - Token transfers and balances - DEX trades and liquidity data - Smart contract interactions - NFT data and metadata Supported networks include: Ethereum (eth), BSC (bsc), Polygon (matic), Solana, Tron, and more. The v2 API uses a different schema than v1 - use EVM(network: eth) instead of ethereum root field.

Conditional Metrics Snippet

Generate a Bitquery GraphQL metric snippet with conditional logic using the 'if:' attribute. This tool builds metric aggregation snippets (count, sum, avg, min, max) that can be embedded in Bitquery GraphQL queries. The 'if:' filter allows applying conditions directly to metric calculations, enabling conditional aggregation like counting only successful transactions. Output format examples: - count(if: {Block: {GasUsed: {gt: "0"}}}) - sum(of: Block_GasUsed if: {Block: {Time: {after: "2024-01-01"}}}) - myAlias: avg(of: Transaction_Value if: {Transaction: {Success: true}})

Database Selection

Tool to select the database (archive, realtime, combined) to query at the top level of a GraphQL request. Use after determining whether you need live, historical, or combined blockchain data.

Early Access Program Query

Execute GraphQL queries against the Bitquery Early Access Program (EAP) Streaming API. This tool queries the EAP endpoint (streaming.bitquery.io/eap) for real-time blockchain data. The EAP provides access to streaming data across various blockchain networks including Solana, EVM chains (Ethereum, Polygon, etc.), and others for evaluation purposes. Key features: - Real-time blockchain data with minimal latency - Supports both queries and subscriptions - Networks: Solana, Ethereum, Polygon (Matic), and other EVM-compatible chains Note: EAP is limited to real-time data only. For historical data, use the Archive Database Query. Existing users can continue using EAP; new users should prefer the V2 endpoint for most use cases. Example queries: - Get latest ETH blocks: { EVM(network: eth) { Blocks(limit: {count: 5}) { Block { Number Time } } } } - Solana DEX trades: subscription { Solana { DEXTrades { Block { Time } Trade { Price } } } }

Network Selection

Tool to select the blockchain network for GraphQL queries. Use before constructing dataset or metric queries to ensure the correct chain is targeted.

Options Query

Tool to fetch GraphQL dataset options via schema introspection. Use when you need to discover root-level query fields and their arguments before building queries. Dataset and token availability varies by Bitquery environment; verify available fields here before constructing complex queries that depend on specific datasets.

Price Asymmetry Metric

Tool to generate GraphQL PriceAsymmetry filter snippet. Use when you need to filter trades based on price asymmetry metric.

Realtime Database Query

Query the Bitquery Streaming (V2) API for realtime blockchain data. This tool accesses the Bitquery Streaming API at streaming.bitquery.io/graphql which provides real-time blockchain data with minimal latency. Use this for recent data (within minutes). For historical data, use the Archive Database Query. Supported query formats: - V2 EVM queries: { EVM(network: eth) { Blocks(limit: {count: 5}) { Block { Number Time } } } } - V2 Bitcoin queries: { bitcoin(network: bitcoin) { blocks(limit: {count: 5}) { height timestamp { time } } } } Note: Requires an active Bitquery subscription for streaming API access.

Select By Metric

Tool to generate a GraphQL metric snippet filtering by its value using selectWhere. Use when you need to include only metrics meeting specific value conditions (e.g., only positive sums).

See it run

One prompt, start to finish.

A real prompt, the Bitquery tools it calls, and what comes back. This is the whole interface — describe the outcome, agents handle the rest.

Run a real Bitquery task end-to-end — plan it, execute across the API, and hand back a verified result.

bitquery.archive_database_query Query the Bitquery Archive Database (V1 API) for historical blockchain data. The Archive D
bitquery.combined_database_query Query Bitquery's Combined Database (v2 API) for blockchain data across 40+ networks. Use t
bitquery.conditional_metrics_snippet Generate a Bitquery GraphQL metric snippet with conditional logic using the 'if:' attribut · verified
done

Done. Bitquery responded across 3 calls, the verifier signed off, and the result is logged with every payload.

FAQ · Bitquery

Questions, answered.

What teams ask before connecting Bitquery.

01 What can I automate with Bitquery on Definable?

Anything Bitquery exposes through its API. Common analytics workflows on Definable include answer ad-hoc analytics questions, detect anomalies, auto-generate weekly summaries. Personas can call any of the 10 Bitquery tools directly, then chain the result into another integration without you writing code.

02 How does Bitquery authentication work?

Bitquery uses API_KEY on Definable. You connect once from the integrations page, scoped to the permissions you choose, and from then on any persona that has the integration enabled can act on your behalf. Tokens are encrypted at rest and rotated automatically.

03 Is the Bitquery integration included in my Definable plan?

Yes — every Definable plan, including Starter, includes access to all 10 Bitquery tools. You only need a separate Bitquery subscription if Bitquery itself charges per seat or per API call.

04 Is using Bitquery through Definable secure?

Every call from a persona to Bitquery is logged with the user, persona, prompt, and response. Tokens never leave Definable's secrets vault, scopes are configurable per persona, and you can revoke access at any time from the integration page.

05 How do I get started with Bitquery on Definable?

Sign up for Definable, open the integrations page, find Bitquery, and connect via OAuth or API key. You can immediately attach Bitquery to any persona and start running workflows. The free Starter plan includes 5,000 credits/month.

06 What Bitquery actions does Definable expose?

Definable exposes all 10 Bitquery actions as callable tools — including `Archive Database Query`, `Combined Database Query`, `Conditional Metrics Snippet`, plus 7 more. Each tool gets a typed parameter schema so personas know exactly how to call it.

Put Bitquery to work tonight.

Connect in two clicks, describe an outcome, and your first workflow is live in minutes. Free plan included — no card required.

← All apps