Blockchain Data APIs
Bitquery provides the most comprehensive blockchain data platform, offering real-time and historical access to data across 40+ blockchains including Bitcoin, Ethereum, Solana, BSC, Arbitrum, Base, Polygon, Tron, and more. Our platform serves as the backbone for thousands of developers building DeFi applications, trading tools, analytics dashboards, and blockchain infrastructure.
Why Choose Bitquery's Blockchain Data APIs?
Unlike traditional blockchain RPC providers that offer raw node data, Bitquery provides pre-indexed, enriched, and analytics-ready blockchain data through multiple interfaces:
- Real-time Streaming: Live data via GraphQL subscriptions, gRPC and Kafka streams
- Pre-computed Analytics: Real-time OHLC with 1-second aggregation, moving averages, volume metrics, and more
- Cross-chain Aggregation: Unified view of tokens and currencies across chains
- High Performance: Sub-second response times for complex queries
- Developer-Friendly: GraphQL interface with comprehensive documentation
Supported Blockchains
Supported blockchains & networks (V1, V2, Kafka, gRPC, ClickHouse, cloud) → — See a single matrix of which chains are covered per interface (GraphQL versions, Kafka, CoreCast, ClickHouse warehouse, Parquet/datashares).
Bitquery provides comprehensive blockchain data across 40+ blockchains through two active API versions:
V2 APIs
Our V2 API version with enhanced features and real-time streaming:
EVM-Compatible Chains:
Non-EVM Chains:
V1 APIs
Our comprehensive V1 API supporting 40+ blockchains with historical data:
Supported Blockchains: Bitcoin, Ethereum, Solana, BSC, Polygon, Bitcoin Cash, Litecoin, Bitcoin SV, Dash, Zcash, Avalanche, Klaytn, Celo, Moonbeam, Fantom, Cronos, Cosmos, Hedera, Flow, EOS, Ripple (XRP), Stellar, Algorand, Cardano, Filecoin, and more.
Documentation:
- Supported chains by interface — Coverage matrix: V1/V2, Kafka, gRPC, ClickHouse, cloud
- V2 Documentation - Latest APIs with real-time streaming
- V1 Documentation - Comprehensive APIs with 40+ blockchain support
Bitquery's Core Blockchain Data Capabilities
Popular APIs: Solana API (DEX trades, Pump.fun, Raydium) · Polymarket API · BSC API · Base API · DEX API · Crypto Price API
Crypto Price API - Real-Time Multi-Chain Price Data
Bitquery's dedicated Crypto Price API provides real-time, aggregated cryptocurrency price data with ultra-low latency across multiple blockchains. This specialized API is designed specifically for trading applications, DeFi protocols, and financial analytics.
Key Features:
- Real-time Streaming: 1-second granularity via GraphQL subscriptions and Kafka streams
- Pre-aggregated Data: OHLC, SMA, WMA, EMA, and mean prices calculated automatically
- Multi-chain Support: Ethereum, Solana, BSC, Arbitrum, Base, Optimism, Polygon, and more
- Clean Data: Automatic filtering of low-quality trades and outliers
- Cross-chain Aggregation: Unified view of token prices across multiple ecosystems
- Three Data Cubes: Tokens (chain-specific), Currencies (cross-chain), and Pairs (market-specific)
- TradingView Integration: Ready-to-chart SDK for real-time price feeds
Available Endpoints:
- Streaming Endpoint: Real-time data via WebSocket subscriptions
- Kafka Topic:
trading.pricesfor high-volume streaming applications
Trading & DeFi Data
- DEX Trades: Real-time and historical trading data across all major DEXs
- Price Data: Real-time OHLC, moving averages, volume metrics with 1-second aggregation that updates consistently as trades come in
- Liquidity Events: Pool creation, liquidity additions/removals
- Cross-chain Arbitrage: Price differences across chains and DEXs
Token & Balance Data
- Token Transfers: ERC-20, ERC-721, ERC-1155, SPL, TRC-20 transfers
- Balance Updates: Real-time wallet balance changes
- Token Holders: Distribution analysis and holder tracking
- Token Supply: Circulating supply, total supply, and burn events
Smart Contract Data
- Contract Events: Decoded smart contract events and logs
- Contract Calls: Detailed contract interaction data
- Contract Creation: New contract deployments
- Gas Analytics: Fee analysis and optimization insights
Block & Transaction Data
- Block Information: Headers, timestamps, gas usage, miner data
- Transaction Details: Complete transaction data with receipts
- Mempool Monitoring: Pending transactions and fee estimation
- Network Statistics: Block production, network health metrics
NFT Data
- NFT Transfers: Ownership changes and marketplace trades
- Collection Analytics: Floor prices, volume, holder distributions
- Metadata: Token attributes, images, and rarity information
- Marketplace Integration: OpenSea, LooksRare, and other platforms
Stablecoin APIs - Specialized Payment Infrastructure
Bitquery provides dedicated Stablecoin APIs for comprehensive stablecoin data across multiple blockchains, designed specifically for payment applications, compliance, and financial analytics.
Key Features:
- Real-time Price Monitoring: Track stablecoin price deviations and arbitrage opportunities
- Payment Detection: Instant identification of incoming stablecoin transfers
- Multi-chain Support: USDT, USDC, DAI, and other stablecoins across all supported chains
- Compliance Tools: AML/KYC support with transaction monitoring
- Cross-chain Analytics: Unified view of stablecoin movements across ecosystems
Available APIs:
- Stablecoin Price API - Real-time price tracking and deviation monitoring
- Stablecoin Payments API - Payment detection and compliance tools
- Stablecoin Trades API - Trading data and volume analytics
- USDT API - Specialized Tether data across all chains
Mempool Monitoring - Pre-Confirmation Data
Access real-time data from the mempool before transactions are confirmed, enabling advanced trading strategies and MEV detection.
Key Features:
- Pre-confirmation Visibility: See transactions before they're included in blocks
- MEV Detection: Identify arbitrage opportunities and sandwich attacks
- Fee Estimation: Real-time gas price recommendations and market analysis
- Transaction Simulation: Test transaction success before broadcasting
- Cross-chain Mempool: Monitor pending transactions across multiple chains
Available Endpoints:
- Ethereum Mempool: Real-time pending transactions and events
- BSC Mempool: High-speed mempool monitoring for Binance Smart Chain
- Tron Mempool: TRX network pending transaction tracking
- Kafka Mempool Streams: Ultra-low latency mempool data via Protocol Buffers
Learn More: Mempool Subscriptions
Advanced Features & Enterprise Capabilities
Backfilling & Historical Data Recovery:
- Gap-free Data: Automatic backfilling of missing data during connection interruptions
- Historical Recovery: Retrieve data from any point in blockchain history
- Seamless Integration: Combine historical and real-time data in single applications
Connection Management:
- Silent Disconnect/Reconnect: Automatic connection recovery for production applications
- Connection Pooling: Efficient resource management for high-volume applications
- Load Balancing: Automatic traffic distribution across multiple endpoints
Advanced Analytics:
- Custom Aggregations: Build sophisticated analytics with custom time windows and metrics
- Cross-chain Analytics: Unified analytics across multiple blockchain ecosystems
Learn More: Advanced Features
Developer Interfaces
GraphQL API
Our primary interface for querying blockchain data with powerful filtering, aggregation, and real-time capabilities. The GraphQL API provides a flexible, type-safe way to query exactly the data you need.
Key Features:
- Type-safe queries with comprehensive schema documentation
- Powerful filtering with complex where clauses and nested conditions
- Aggregation support for time-series data and statistical analysis
- Join capabilities across different data types (transactions, events, transfers)
- Pagination with cursor-based and offset-based options
- Field selection - request only the data you need to optimize performance
Chains from the Early Access Program (EAP) have moved to v2.
- Existing customers: You can continue using the EAP endpoint without making any changes.
- New users: You must use the v2 endpoint for all blockchains.
Endpoints:
- V2 Primary Endpoint:
https://streaming.bitquery.io/graphql - V1 Endpoint:
https://graphql.bitquery.io/(for comprehensive blockchain support)
{
EVM(network: eth) {
DEXTrades(
where: {
Block: {Time: {after: "2024-01-01"}}
Trade: {Amount: {gt: "1000"}}
}
limit: {count: 10}
orderBy: {descending: Block_Time}
) {
Block {
Time
Number
}
Transaction {
Hash
From
To
}
Trade {
Amount
Price
BuyAmount
SellAmount
}
Protocol {
Name
Type
}
Currency {
Symbol
Name
}
}
}
}
Advanced Query Features:
- Nested filtering: Filter by multiple criteria across related entities
- Time-based queries: Query by specific time ranges, intervals, or relative periods
- Cross-chain queries: Query data across multiple blockchains in a single request
- Expression support: Use mathematical expressions and calculations in queries
- Custom aggregations: Group and aggregate data by any field or time interval
Real-time Subscriptions (WebSocket)
Convert any query to a live stream by changing query to subscription. Our WebSocket implementation provides real-time blockchain data with sub-second latency.
Learn More: WebSocket Subscriptions
WebSocket Features:
- Protocol Support: Both
graphql-wsandsubscriptions-transport-wsprotocols - Automatic Reconnection: Built-in reconnection logic with exponential backoff
- Connection Management: Handle multiple subscriptions on a single connection
- Error Handling: Comprehensive error reporting and recovery mechanisms
- Authentication: Secure token-based authentication for WebSocket connections
Trigger Options:
trigger_on: head: Receive data as soon as new blocks are minedtrigger_on: block: Trigger on specific block conditions- Custom triggers: Set up triggers based on specific data conditions
WebSocket Endpoint: wss://streaming.bitquery.io/graphql
subscription {
EVM(network: eth, trigger_on: head) {
DEXTrades(
where: {
Trade: {Amount: {gt: "10000"}}
Protocol: {Name: {in: ["Uniswap", "SushiSwap"]}}
}
) {
Block {
Time
Number
}
Transaction {
Hash
From
To
}
Trade {
Amount
Price
BuyAmount
SellAmount
}
Protocol {
Name
Type
}
Currency {
Symbol
Name
}
}
}
}
WebSocket Connection Example (JavaScript):
import { createClient } from 'graphql-ws';
const client = createClient({
url: 'wss://streaming.bitquery.io/graphql',
connectionParams: {
Authorization: 'Bearer YOUR_ACCESS_TOKEN',
},
});
const unsubscribe = client.subscribe(
{
query: `
subscription {
EVM(network: eth, trigger_on: head) {
DEXTrades {
Block { Time }
Trade { Amount }
Protocol { Name }
}
}
}
`,
},
{
next: (data) => console.log('Received:', data),
error: (err) => console.error('Error:', err),
complete: () => console.log('Subscription completed'),
}
);
Use Cases:
- Real-time trading bots: Monitor live DEX trades and price movements
- Portfolio tracking: Track wallet balance changes in real-time
- MEV detection: Monitor mempool for arbitrage opportunities
- DeFi monitoring: Track liquidity events and protocol interactions
- Alert systems: Set up notifications for specific blockchain events
Kafka Streaming
High-throughput streaming for enterprise applications with pre-parsed Protocol Buffers. Our Kafka infrastructure provides enterprise-grade data streaming with guaranteed delivery and horizontal scalability.
Learn More: Kafka Streaming Concepts
Kafka Infrastructure:
- Broker:
streaming.bitquery.io:9092 - Protocol: Apache Kafka with Protocol Buffers serialization
- Latency: Sub-second data delivery with guaranteed ordering
- Reliability: Built-in replication, failover, and data retention policies
- Scalability: Auto-scaling consumer groups and partition management
Available Topics by Blockchain:
Ethereum Topics:
eth.dextrades.proto- DEX trading data across all Ethereum DEXseth.transactions.proto- Complete transaction data with receiptseth.tokens.proto- Token transfers and balance updateseth.blocks.proto- Block headers and metadataeth.events.proto- Smart contract events and logseth.calls.proto- Smart contract function calls
Solana Topics:
solana.dextrades.proto- DEX trading data (Raydium, Orca, Jupiter, etc.)solana.transactions.proto- Transaction data with instruction detailssolana.tokens.proto- SPL token transfers and balance updatessolana.instructions.proto- Individual instruction datasolana.blocks.proto- Block data and slot information
BSC Topics:
bsc.dextrades.proto- PancakeSwap and other BSC DEX databsc.transactions.proto- BSC transaction databsc.tokens.proto- BEP-20 token transfers
Other Chains:
arbitrum.dextrades.proto,base.dextrades.proto,polygon.dextrades.prototron.dextrades.proto,tron.transactions.proto
Kafka Consumer Example (Python):
from kafka import KafkaConsumer
import bitquery_pb2
# Initialize consumer
consumer = KafkaConsumer(
'eth.dextrades.proto',
bootstrap_servers=['streaming.bitquery.io:9092'],
security_protocol='SASL_SSL',
sasl_mechanism='PLAIN',
sasl_plain_username='YOUR_USERNAME',
sasl_plain_password='YOUR_PASSWORD',
value_deserializer=lambda m: bitquery_pb2.DEXTrade().ParseFromString(m)
)
# Consume messages
for message in consumer:
trade = message.value
print(f"Trade: {trade.amount} {trade.currency.symbol} on {trade.protocol.name}")
print(f"Price: ${trade.price_usd}")
print(f"Block: {trade.block.number}")
Kafka Features:
- Schema Evolution: Backward and forward compatible Protocol Buffer schemas
- Consumer Groups: Scale horizontally with multiple consumers
- Offset Management: Automatic and manual offset management options
- Dead Letter Queues: Handle failed message processing
- Monitoring: Comprehensive metrics and alerting
- Data Retention: Configurable retention policies (7 days to 1 year)
Enterprise Features:
- Dedicated Clusters: Isolated Kafka clusters for high-volume customers
- Custom Topics: Create custom topics for specific data requirements
- Priority Support: Dedicated support for Kafka infrastructure issues
- SLA Guarantees: 99.9% uptime with performance SLAs
- Silent Disconnect/Reconnect: Automatic connection management for production applications
Cloud Data Storage & Data Export
Raw and processed data available in cloud storage for machine learning, deep analysis, and data export capabilities.
Cloud Storage Features:
- AWS S3 Integration: Direct access to optimized data formats
- Historical Data: Complete blockchain history since genesis
- Multiple Formats: JSON, Parquet, Protocol Buffers, and CSV
- Partitioned Data: Optimized for time-based and blockchain-based queries
- Compression: Efficient storage with gzip and snappy compression
Data Export Capabilities:
1. Bulk Data Export
- Time Range Exports: Export data for specific date ranges
- Blockchain Selection: Choose specific blockchains or all chains
- Data Type Filtering: Export specific data types (trades, transfers, events)
- Format Options: JSON, CSV, Parquet, or Protocol Buffers
- Compression: Optional compression for large exports
Data Formats Available:
JSON Format: A human-readable, nested format ideal for development, debugging, and small to medium datasets.
Parquet Format: A columnar, highly compressed format optimized for analytics and fast queries, perfect for data science and machine learning.
CSV Format: A simple tabular format compatible with spreadsheets and BI tools, suitable for reporting and visualization.
Protocol Buffers: A compact binary format with schema evolution, offering minimal storage and fast serialization for high-performance applications.
Use Cases for Data Export:
- Machine Learning: Train models on historical blockchain data
- Business Intelligence: Create dashboards and reports
- Compliance: Generate audit reports and regulatory filings
- Research: Academic research and blockchain analysis
- Backup: Create local backups of critical data
- Migration: Move data to other systems or databases
Getting Started
1. Create Your Account
- Visit Bitquery IDE to get started
- Free Trial: 10,000 API points for 1 month, no credit card required
- Access to all blockchain data and real-time streaming
2. Generate API Key
- Navigate to Applications
- Create an application and generate your access token
- Use OAuth2 for secure, programmatic access
3. Run Your First Query
- Try our starter queries for common use cases
- Use the IDE's autocomplete (Ctrl+Space) for query building
- Convert queries to subscriptions for real-time data
4. Explore Blockchain-Specific APIs
- Ethereum APIs - Complete EVM ecosystem data
- Solana APIs - High-speed blockchain analytics
- BSC APIs - Binance Smart Chain data
- Trading APIs - Real-time price and trading data
Use Cases & Applications
DeFi Applications
- DEX Aggregators: Best price discovery across multiple DEXs
- Yield Farming: Track liquidity positions and rewards
- Lending Protocols: Monitor collateral ratios and liquidations
- Cross-chain Bridges: Track asset movements between chains
Trading & Analytics
- Trading Bots: Real-time price feeds with 1-second aggregation and market data via Crypto Price API
- Portfolio Trackers: Multi-chain wallet monitoring
- Market Analytics: Volume, liquidity, and price analysis
- Arbitrage Detection: Cross-chain and cross-DEX opportunities
- Charting Applications: TradingView integration with real-time OHLC data
Enterprise Solutions
- Compliance Tools: Transaction monitoring and reporting
- Risk Management: Real-time exposure tracking
- Business Intelligence: Custom dashboards and KPIs
- Audit & Forensics: Complete transaction history analysis
- MEV Detection: Identify arbitrage opportunities and sandwich attacks
- Stablecoin Payments: Real-time payment detection and compliance monitoring
Consumer Applications
- Wallet Apps: Balance tracking and transaction history
- NFT Marketplaces: Collection analytics and trading data
- Block Explorers: Enhanced blockchain data presentation
- Gaming: In-game asset tracking and trading
- Payment Apps: Real-time stablecoin payment processing
- MEV Tools: Advanced trading strategies and arbitrage detection
Data Quality & Reliability
Data Processing Pipeline
- Real-time Ingestion: Direct from blockchain nodes
- Quality Filtering: Automatic removal of low-quality trades and outliers
- Enrichment: USD values, protocol identification, and metadata
- Aggregation: Pre-computed metrics and time-series data
- Distribution: Multiple interfaces for different use cases
Enterprise-Grade Infrastructure
- 99.9% Uptime SLA: Redundant systems with automatic failover
- Enterprise Support: Dedicated support with guaranteed response times
- Scalable Architecture: Auto-scaling infrastructure that grows with your needs
- Data Retention: Complete historical data archive for comprehensive analysis
Support & Community
Documentation & Resources
- Complete API Documentation - Comprehensive guides for all features
- Code Examples - Real-world implementation examples
- Video Tutorials - Step-by-step guides
- Postman Collection - Ready-to-use API examples
Community Support
- Telegram - Quick questions and community help
- Community Forum - Feature requests and technical discussions
- Support Desk - Technical issues and data problems
Learning Resources
- Learning Path - Structured learning from beginner to advanced
- Starter Queries - Pre-built queries for common use cases
- GraphQL Guide - Complete GraphQL reference
- Integration Examples - Real-world application examples
Next Steps
Ready to start building with blockchain data? Here's your path forward:
- Create Your Account - Get instant access to our platform
- Run Your First Query - Learn the basics in 5 minutes
- Explore Blockchain APIs - Dive into specific blockchain data
- Build Real-time Applications - Set up live data streams
- Join Our Community - Get help and share your projects
Frequently Asked Questions
What is Bitquery and how is it different from an RPC node?
Bitquery pre-indexes and enriches blockchain data across 40+ chains. You get GraphQL, subscriptions, and Kafka — not raw JSON-RPC responses you parse yourself.
Which blockchains does Bitquery support?
Ethereum, Solana, BSC, Base, Arbitrum, Polygon, Tron, Bitcoin, and many more. See the supported chains page for coverage by interface (GraphQL, Kafka, gRPC, cloud).
Should I use GraphQL, WebSocket subscriptions, or Kafka?
GraphQL for flexible queries and dashboards. Subscriptions for live apps and bots. Kafka for high-volume pipelines and enterprise throughput.
How do I get crypto prices, trades, and OHLC?
Use the Trading cube — Crypto Trades API and Crypto Price API for recent cross-chain data. Use chain-level DEXTrades or cloud Parquet exports for deep history.
How do I get historical data in bulk?
Order Parquet exports to S3, GCS, Snowflake, or BigQuery via the cloud datasets program — better than paginating GraphQL for full-chain backfills.
How do I authenticate?
Create a free account, generate an OAuth token at account.bitquery.io, and pass it as Authorization Bearer in API requests.
Start building the future of blockchain applications today with Bitquery's comprehensive multi-chain data platform.