bitquery_dex_trades

Pack: bitquery · Endpoint: https://gateway.pipeworx.io/bitquery/mcp

Recent DEX trades for a token — swaps involving an ERC-20 token across DEXs on an EVM chain (Bitquery). Returns trade time, DEX/protocol, buy & sell currency + amounts, price, tx hash, and maker. Example: bitquery_dex_trades({ token: “0xdAC17F958D2ee523a2206206994597C13D831ec7”, network: “eth”, limit: 20, _apiKey: “your-bitquery-token” })

Parameters

NameTypeRequiredDescription
tokenstringyesERC-20 token contract address (e.g. “0xdAC17F958D2ee523a2206206994597C13D831ec7”). Required.
networkstringnoEVM network enum (default “eth”). Options: eth, bsc, matic, arbitrum, base, optimism, avalanche, fantom, cronos, gnosis, klaytn, moonbeam, opbnb.
limitintegernoMax trades to return (default 20, max 50).
_apiKeystringyesBitquery OAuth access token (Bearer). Generate at bitquery.io (free Developer tier).

Example call

Arguments

{
  "token": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
  "network": "eth",
  "limit": 20,
  "_apiKey": "your-bitquery-token"
}

curl

curl -X POST https://gateway.pipeworx.io/bitquery/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"bitquery_dex_trades","arguments":{"token":"0xdAC17F958D2ee523a2206206994597C13D831ec7","network":"eth","limit":20,"_apiKey":"your-bitquery-token"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('bitquery_dex_trades', {
  "token": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
  "network": "eth",
  "limit": 20,
  "_apiKey": "your-bitquery-token"
});

More examples

{
  "token": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  "network": "matic",
  "_apiKey": "your-bitquery-token"
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "bitquery": {
      "url": "https://gateway.pipeworx.io/bitquery/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build August 22, 2026