Bitquery logo

Integrate Bitquery with your AI CRM

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

Explore Triggers and Actions

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

ActionTry it

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.

ActionTry it

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}})

ActionTry it

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.

ActionTry it

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

ActionTry it

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.

ActionTry it

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.

ActionTry it

Price Asymmetry Metric

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

ActionTry it

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.

ActionTry it

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

ActionTry it

How the Bitquery integration works

The Bitquery integration connects your Dench AI CRM directly to Bitquery, so agents can read and act on your Bitquery data as part of everyday work — answering questions in chat, keeping your CRM in sync, and running automations without anyone copying data between tools.

10 actions are available for agents to invoke on your behalf. Every call runs through Bitquery's own authorization, scoped to the account you connect.

Set up Bitquery in Dench

  1. 1

    Sign in to your Dench workspace and open Integrations.

  2. 2

    Find Bitquery and click Connect — you'll authorize access through Bitquery's own sign-in flow. No API keys or code required.

  3. 3

    Ask an agent to use Bitquery in chat, or call it from an automation.

  4. 4

    Manage or disconnect the connection any time from workspace settings.

Frequently asked questions

How does the Bitquery integration work with Dench?

The Dench Bitquery integration connects your AI CRM to Bitquery, so AI agents can work with your Bitquery data as part of chats, automations, and CRM workflows. You connect your account once, and every agent in your workspace can use it — governed by your workspace permissions.

What actions can AI agents perform with Bitquery via Dench?

The Bitquery integration currently exposes 10 actions, including Archive Database Query, Combined Database Query, Conditional Metrics Snippet, Database Selection, Early Access Program Query, and Network Selection. Agents invoke them on your behalf from chat or from automations.

Do I need to write code to connect Bitquery to Dench?

No. You connect Bitquery from your Dench workspace using Bitquery's own sign-in and authorization flow — no API keys to copy, no glue code to maintain.

Is the Bitquery integration secure?

Connections are authorized through Bitquery's own authentication flow, and Dench stores only the authorization needed to act on your behalf. You can review and disconnect the Bitquery connection from your workspace settings at any time.