# Bitquery Docs — full text: Getting started, authorization, GraphQL, cubes, streams, gRPC, Kafka, cloud, MCP and everything else (part 2 of 2) > 31 pages. All parts and the curated entry points: https://docs.bitquery.io/llms.txt ## Starter Subscriptions - Bitquery Real-Time Streams by Chain URL: https://docs.bitquery.io/docs/start/starter-subscriptions/ Curated, tested Bitquery GraphQL subscriptions organised by chain and data type — real-time trades, transfers, balances, prices and liquidity streams. # Starter Subscriptions Every subscription below is saved in the [Bitquery IDE](https://ide.bitquery.io) and was opened against the live WebSocket endpoint before publishing. Streams are always real time; for historical data see the [Starter Queries](/docs/start/starter-queries/). ## Table of Contents - [Arc Mainnet](#arc-mainnet) - [Bitcoin](#bitcoin) - [Solana](#solana) - [Robinhood Chain](#robinhood-chain) - [Polymarket](#polymarket) - [Perpetuals](#perpetuals) - [TRON](#tron) - [Cross-Chain](#cross-chain) - [Ethereum](#ethereum) - [BSC](#bsc) - [Base](#base) - [Arbitrum](#arbitrum) - [Optimism](#optimism) - [Polygon](#polygon) - [Trading API](#trading-api) - [Stablecoins](#stablecoins) - [NFTs](#nfts) - [x402](#x402) ## Arc Mainnet ### Trades #### Stream real-time trades on Arc One WebSocket delivers every swap on the network as blocks are indexed, with both sides, the protocol and the trader. ▶️ [Stream real-time trades on Arc](https://ide.bitquery.io/arc-mainnet-stream-dex-trades) ### Transfers #### Stream real-time transfers on Arc Every transfer on the network as it is indexed. Filter inside `where` to narrow the socket to a token, an address or a size floor. ▶️ [Stream real-time transfers on Arc](https://ide.bitquery.io/arc-mainnet-stream-transfers) ### Balances & Holders #### Stream balance changes on Arc Every balance change of a wallet as it happens. Widen the filter to a list of addresses or a single token to build alerts. ▶️ [Stream balance changes on Arc](https://ide.bitquery.io/arc-mainnet-docs-balances-stream-balance-changes) ### Supply & Market Cap #### Stream supply changes on Arc A new row arrives whenever a mint or burn changes the supply of the token. ▶️ [Stream supply changes on Arc](https://ide.bitquery.io/arc-mainnet-docs-balances-stream-supply-changes) ### Transactions #### Stream transactions on Arc Every transaction as blocks are indexed. Arc produces a block well under every second, so expect a steady feed. ▶️ [Stream transactions on Arc](https://ide.bitquery.io/arc-mainnet-stream-transactions) ### Events & Calls #### Stream calls to a contract on Arc Every call into the Uniswap v4 PoolManager, internal or top-level, as it happens. ▶️ [Stream calls to a contract on Arc](https://ide.bitquery.io/arc-mainnet-stream-calls-to-contract) #### Stream all events on Arc One socket, every event on the chain. Good for building an indexer; heavy for anything else, so use the filtered streams below in production. ▶️ [Stream all events on Arc](https://ide.bitquery.io/arc-mainnet-stream-all-events) ### Launchpads #### Stream launches on Arc Change nothing else to receive launches from all six platforms over one WebSocket. Add or remove contract and signature pairs as launchpads deploy new versions. ▶️ [Stream launches on Arc](https://ide.bitquery.io/arc-mainnet-docs-launchpads-stream-launches) ## Bitcoin ### Price & OHLC #### Latest Bitcoin Price You can stream Bitcoin price at 1-second interval using the [Crypto Price APIs](/docs/trading/crypto-price-api/). ▶️ [Latest Bitcoin Price](https://ide.bitquery.io/Stream-Bitcoin-Price-Across-Chains) ## Solana ### Trades #### Graduated Tokens This query gives you tokens which are graduated from Raydium Launchpad to Raydium. ▶️ [Graduated Tokens](https://ide.bitquery.io/Track-Token-Migrations-to-Raydium-DEX-and-Raydium-CPMM-in-realtime) #### Solana Trades Stream This subscription streams real-time Solana trades. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Solana Trades Stream](https://ide.bitquery.io/solana-trades-subscription_3) #### All Trade for Bags.fm tokens Get all trades of Bags FM tokens from Meteora and other DEXs. This Bags FM token trades WebSocket provides comprehensive trading data. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [All Trade for Bags.fm tokens](https://ide.bitquery.io/All-Trade-for-Bagsfm-tokens) #### CPMM trades In this section we will see how to get data on Raydium CPMM trades in real-time. You can check out our Pump Fun docs, Raydium v4 docs and Raydium LaunchPad docs too. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [CPMM trades](https://ide.bitquery.io/CPMM-trades) #### Large Token Buys and Sells on Solana DEX Streams Solana trades above $10,000, using the Trading cube's `AmountsInUsd` so the threshold is applied to a real USD value. ▶️ [Large Token Buys and Sells on Solana DEX](https://ide.bitquery.io/big-trades-on-solana) #### Specific Token Trades Stream This subscription stream uses DexTradeByTokens API to stream real-time specific token trades. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Specific Token Trades Stream](https://ide.bitquery.io/token-trades-subscription) #### Get Solana pair trades data Will subscribe to real-time trade transactions for a Solana pair, providing a continuous stream of data as new trades are processed and recorded. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Get Solana pair trades data](https://ide.bitquery.io/Get-Solana-pair-trades-data) #### Get Solana pair trades data just like dexcsreener Will subscribe to real-time trade transactions for a Solana pair, providing a continuous stream of data as new trades are processed and recorded. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Get Solana pair trades data just like dexcsreener](https://ide.bitquery.io/Get-Solana-pair-trades-data-just-like-dexcsreener) #### Get Solana pair trades data just like geckoTerminal Will subscribe to real-time trade transactions for a Solana pair, providing a continuous stream of data as new trades are processed and recorded. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Get Solana pair trades data just like geckoTerminal](https://ide.bitquery.io/Get-Solana-pair-trades-data-just-like-geckoTerminal_1) #### Latest Trades of TESLA onchain xStock Below query will give you realtime trades of Tesla xStock (TESLAx). Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Latest Trades of TESLA onchain xStock](https://ide.bitquery.io/Latest-Trades-of-TESLA-onchain-xStock_1) ### Transfers #### Token Transfers Stream This stream provides all token transfers on the Solana blockchain, including SOL transfers. ▶️ [Token Transfers Stream](https://ide.bitquery.io/Solana-transfers-stream_3) #### SPL transfers websocket One of the most common types of transfers on Solana are SPL token transfers. Let's see an example to get the latest SPL token transfers using our API. Today we are taking an example of JUPITER token transfers. ▶️ [SPL transfers websocket](https://ide.bitquery.io/SPL-transfers-websocket_1) #### Solana Websocket - Subscribe to all transfers of specific addresses in realtime Websockets are priced based on their running time, not the amount of data delivered. ▶️ [Solana Websocket - Subscribe to all transfers of specific addresses in realtime](https://ide.bitquery.io/Solana-Websocket---Subscribe-to-all-transfers-of-specific-addresses-in-realtime) #### Subscribe to the all transfers on Solana For monitoring the balance changes that result from these transfers, see our Solana Balance Updates API. ▶️ [Subscribe to the all transfers on Solana](https://ide.bitquery.io/Subscribe-to-the-all-transfers-on-Solana) #### Transfers of All Tip Payment Accounts on Solana Jito foundation has Tip Payment Program that allows users to transfer tips to a set of static public keys (compared to signing the transaction with the next N leaders) and ensure that the incentives are distributed to the correct block leader, while enabling… ▶️ [Transfers of All Tip Payment Accounts on Solana](https://ide.bitquery.io/Transfers-of-All-Tip-Payment-Accounts-on-Solana) #### Transfers of Tip Payment Accounts on Solana The subscription that provides you the transfer data of one of these addresses is. ▶️ [Transfers of Tip Payment Accounts on Solana](https://ide.bitquery.io/Transfers-of-Tip-Payment-Accounts-on-Solana_1) #### Transfers where sender is the specified address Transfers where sender is the specified address. Uses the `Transfers` cube. Replace the address in the `where` clause to use it. ▶️ [Transfers where sender is the specified address](https://ide.bitquery.io/transfers-where-sender-is-the-specified-address_1) ### Balances & Holders #### Balance Stream This stream provides all balance updates on the Solana blockchain. ▶️ [Balance Stream](https://ide.bitquery.io/solana-balance-update-stream_3) ### Price & OHLC #### Token price stream from top market (rank 1) Streams a Solana token's price from its top market, one-second intervals, quoted in USD. Prices the token from its single top market rather than blending every pool, which is what you want for one specific token. ▶️ [Token price stream from top market (rank 1)](https://ide.bitquery.io/Token-price-stream-from-top-market--rank-1) #### Real-Time Token Prices in USD on Solana Stream live OHLC (Open, High, Low, Close) price and volume data for all tokens on Solana, quoted directly in USD. Useful for dashboards, analytics, or bots that need stable fiat-based prices. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real-Time Token Prices in USD on Solana](https://ide.bitquery.io/Real-Time-usd-price-on-solana-chain) #### GoonFi Realtime OHLC, Price, Volume API - Crypto Price API Below API will give you realtime prices, OHLC, and volume data for all GoonFi trading pairs. We have selected `1` sec as the interval for the OHLC, volume or moving average calculation. ▶️ [GoonFi Realtime OHLC, Price, Volume API - Crypto Price API](https://ide.bitquery.io/GoonFi-Realtime-OHLC-Price-Volume-API---Crypto-Price-API_1) #### 1-Second OHLC Stream This subscription generates a real-time OHLC (Open, High, Low, Close) K-line chart for Solana in real-time, useful for Tradingview charting in real-time. ▶️ [1-Second OHLC Stream](https://ide.bitquery.io/1-second-OHLC-k-line-Solana) #### Byreal token live prices using trades api Lock onto one token with `Pair.Token.Id` (e.g. `bid:solana:`) and the Byreal program address. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Byreal token live prices using trades api](https://ide.bitquery.io/Byreal-token-live-prices-using-trades-api) #### Latest price for more than 1 markets on solana You can retrieve data from multiple Solana DEX markets using our APIs or streams. The. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Latest price for more than 1 markets on solana](https://ide.bitquery.io/latest-price-for-more-than-1-markets-on-solana_1) #### Latest price for more than 1 markets on solana for specific currencies Latest price for more than 1 markets on solana for specific currencies. Uses the Trading cube. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Latest price for more than 1 markets on solana for specific currencies](https://ide.bitquery.io/latest-price-for-more-than-1-markets-on-solana-for-specific-currencies) #### Real-time Token Prices on Solana This stream delivers real-time token prices on Solana based on the latest trades. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real-time Token Prices on Solana](https://ide.bitquery.io/Real-time-price-stream-for-specific-token-on-solana) #### Get Latest Price of SOL in USD Real-time Get Latest Price of SOL in USD Real-time. Uses the Trading cube. Change the token address in the `where` clause to use it. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Get Latest Price of SOL in USD Real-time](https://ide.bitquery.io/Get-Latest-Price-of-SOL-in--USD-Real-time) #### Get realtime Price of Apple xStock in USD Real-time You can use the following query to get the latest price of a Apple xStock on Solana. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Get realtime Price of Apple xStock in USD Real-time](https://ide.bitquery.io/Get-realtime-Price-of-Apple-xStock-in--USD-Real-time) #### Price of a Moonshot token Real-time price of a Moonshot token in USD, one row per trade. Moonshot is `token_launchpad` in the Trading cube, not `moonshot`. Change the token address in the `where` clause to use it. ▶️ [Price of a Moonshot token](https://ide.bitquery.io/Price-of-a-Moonshot-token) ### Supply & Market Cap #### Realtime heaven tokens with marketcap 10k Subscribe when the token is on Solana, `Market.Protocol` is `Heaven`, `Supply.MarketCap` > 10,000 (USD), and interval duration > 1 second. Adjust `gt` to change the threshold. ▶️ [Realtime heaven tokens with marketcap 10k](https://ide.bitquery.io/realtime-heaven-tokens-with-marketcap-10k) #### Solana tokens with market cap above $1 million (Trading API) Subscribe when **`Token.Id`** matches Solana and **`Supply.MarketCap`** > 1,000,000 USD. ▶️ [Solana tokens with market cap above $1 million (Trading API)](https://ide.bitquery.io/realtime-stream-solana-tokens-with-marketcap-above-1-million) #### All trades on Solana with Price, Marketcap, supply Stream all Solana DEX trades in real time with USD price, market cap, FDV, circulating supply, and transaction fee data. ▶️ [All trades on Solana with Price, Marketcap, supply](https://ide.bitquery.io/All-trades-on-Solana-with-Price-Marketcap-supply) #### Get All DEX Trades on DBC With Price, Market Cap, and Supply Stream all Meteora DBC DEX trades in real time with USD price, market cap, FDV, circulating supply, and transaction fee data. Filter by `Pair.Market.Protocol: dynamic_bonding_curve` to capture every swap across Meteora DBC in a single subscription. ▶️ [Get All DEX Trades on DBC With Price, Market Cap, and Supply](https://ide.bitquery.io/Get-All-DEX-Trades-on-DBC-With-Price-Market-Cap-and-Supply) #### Bags.fm token creation stream using Solana token supply updates Track Bags FM token creation using the Solana TokenSupply API. This endpoint provides Bags FM token data including supply information and creation timestamps. For the same API as a WebSocket stream. ▶️ [Bags.fm token creation stream using Solana token supply updates](https://ide.bitquery.io/Bagsfm-token-creation-stream-using-Solana-token-supply-updates) #### Get newly created Moonshot tokens with metadata Now you can track the newly created Moonit Tokens along with their metadata and supply. `PostBalance` will give you the current supply for the token. ▶️ [Get newly created Moonshot tokens with metadata](https://ide.bitquery.io/Get-newly-created-Moonshot-tokens-with-metadata) #### Newly created PF token, dev address, metadata Now you can track the newly created Pump Fun Tokens along with their dev address, metadata and supply. `PostBalance` will give you the current supply for the token. ▶️ [Newly created PF token, dev address, metadata](https://ide.bitquery.io/newly-created-PF-token-dev-address-metadata) ### Liquidity & Pools #### DEXPool Liquidity Changes This stream provides real time liquidity details for all pools on Solana. ▶️ [DEXPool Liquidity Changes](https://ide.bitquery.io/Solana-DEXPools-stream_2) #### Latest pools created on trends.fun stream Latest pools created on trends.fun stream. Uses the `Instructions` cube. Replace the address in the `where` clause to use it. ▶️ [Latest pools created on trends.fun stream](https://ide.bitquery.io/latest-pools-created-on-trendsfun-stream) #### Latest price based on liquidity Pool price of every WSOL pool as each pool event lands, from `Pool { Price }`. Uses the `DEXPools` cube. Replace the mint in the `where` clause to use it. ▶️ [Latest price based on liquidity](https://ide.bitquery.io/Solana-pool-prices-of-token-stream) #### Liquidity for a launchpad token pair stream Liquidity for a launchpad token pair stream. Uses the `DEXPools` cube. Replace the address in the `where` clause to use it. ▶️ [Liquidity for a launchpad token pair stream](https://ide.bitquery.io/liquidity-for-a-launchpad-token-pair-stream) #### Search tokens with liquidity over 1 million You can use the below query to get the tokens which are getting traded and have liquidity over 1 million USD. ▶️ [Search tokens with liquidity over 1 million](https://ide.bitquery.io/Search-tokens-with-liquidity-over-1-million) #### Trends fun tokens between 95 and 100 bonding curve progress Track Trends.fun tokens that are approaching graduation with high bonding curve progress percentages. Run the query. ▶️ [Trends fun tokens between 95 and 100 bonding curve progress](https://ide.bitquery.io/trends-fun-tokens-between-95-and-100-bonding-curve-progress) ### Transactions #### Realtime Solana Transactions The subscription query below fetches the most recent transactions on the Solana blockchain. ▶️ [Realtime Solana Transactions](https://ide.bitquery.io/Realtime-Solana-Transactions) ### Events & Calls #### ConsumeEvents instruction on OpenBook V2 We will use this subscription to listen to `consumeEvents` transactions on OpenBook v2. This instruction processes trade events and other activities such as order cancellations. ▶️ [ConsumeEvents instruction on OpenBook V2](https://ide.bitquery.io/consumeEvents-instruction-on-OpenBook-V2_3) ### Pump.fun #### PumpFun Token Creation This subscription tracks in real-time newly created Pumpfun tokens, including their metadata and associated developer addresses. ▶️ [PumpFun Token Creation](https://ide.bitquery.io/newly-created-PF-token-developer-address-metadata) #### PumpFun Trades Stream This stream returns the real time trades on Pumpfun platform. This stream could be modified to get real time trades for a particular token or trades by a particular trader. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [PumpFun Trades Stream](https://ide.bitquery.io/Pumpfun-DEX-Trades_1) #### Pumpswap Trades Stream This stream returns the real time trades on Pumpswap exchange. This stream could be modified to get real time trades for a particular token or trades by a particular trader. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Pumpswap Trades Stream](https://ide.bitquery.io/pumpswap-trades) #### Get All DEX Trades on Pumpfun With Price, Market Cap, and Supply Stream all PumpFun DEX trades in real time with USD price, market cap, FDV, circulating supply, and transaction fee data. Filter by `Pair.Market.ProtocolFamily: Pumpfun` to capture every swap across Pumpfun in a single subscription. ▶️ [Get All DEX Trades on Pumpfun With Price, Market Cap, and Supply](https://ide.bitquery.io/Get-All-DEX-Trades-on-Pumpfun-With-Price-Market-Cap-and-Supply) #### Latest Trades for a token on Pumpswap Subscribe to `Trading.Trades` with the PumpSwap protocol (`pump_amm`) and the token address. Each update is a new trade involving that token on PumpSwap—use this to stream per-token activity without polling. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Latest Trades for a token on Pumpswap](https://ide.bitquery.io/Latest-Trades-for-a-token-on-Pumpswap) #### Price of a pump fun token using price index in usd Live stream of token price updates on Pump.fun. ▶️ [Price of a pump fun token using price index in usd](https://ide.bitquery.io/Price-of-a-pump-fun-token-using-price-index-in-usd) #### Pump Fun Tokens between 95% and 100% bonding curve progress We can use above Bonding Curve formulae and get the Balance of the Pool needed to get to 95% and 100% Bonding Curve Progress range. And then track liquidity changes which result in `Base{PostAmount}` to fall in this range. ▶️ [Pump Fun Tokens between 95% and 100% bonding curve progress](https://ide.bitquery.io/Pump-Fun-Tokens-between-95-and-100-bonding-curve-progress_3) #### Pump fun token mcap monitoring In case PostAmountInUSD is 0 then, you need to pull price from our Crypto price API. Here is an example which gets both supply and Price. ▶️ [Pump fun token mcap monitoring](https://ide.bitquery.io/pump-fun-token-mcap-monitoring) #### PumpSwap new pools Stream Subscribe to `Instructions` where the program method is `create_pool` and the program address is the PumpSwap AMM ID above. Each event reflects a new pool on PumpSwap; use account and argument fields for pair and liquidity details. ▶️ [PumpSwap new pools Stream](https://ide.bitquery.io/pumpSwap-new-pools-Stream) #### Pumpfun DEX Trades stream Use a `Trading.Trades` subscription filtered by `ProtocolName: "pump"` to stream live Pump.fun trades including buy/sell sides, amounts, accounts, and methods. For gRPC or Kafka, see Pump.fun gRPC Streams. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Pumpfun DEX Trades stream](https://ide.bitquery.io/Pumpfun-DEX-Trades-stream) #### Pumpswap latest Trade for a trader stream Subscribe to `Trading.Trades` with the same `Signer` and PumpSwap `ProgramAddress` filters. New trades for that wallet on PumpSwap stream as they are confirmed. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Pumpswap latest Trade for a trader stream](https://ide.bitquery.io/Pumpswap-latest-Trade-for-a-trader-stream_1) #### Realtime price of a pumpswap token Subscribe to `Trading.Pairs` with the PumpSwap protocol (`pump_amm`) and the token address. Each event includes `Price` and `PriceInUSD` for the latest leg—use it as a live price feed for that token on PumpSwap. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Realtime price of a pumpswap token](https://ide.bitquery.io/realtime-price-of-a-pumpswap-token) #### Realtime stream of "King of the Hill" Pump.fun tokens (30K–35K market cap) Tokens in the $30K–$35K `Supply.MarketCap` band on Pumpfun (see Pump.fun on King of the Hill). Subscribe to Trading `Pairs` with `MarketCap` between 30,000 and 35,000 USD. ▶️ [Realtime stream of "King of the Hill" Pump.fun tokens (30K–35K market cap)](https://ide.bitquery.io/realtime-stream-of-King-of-the-Hill-Pumpfun-tokens-30K35K-market-cap) #### Realtime stream pumpfun tokens with marketcap above 10k marketcap Subscribe to Trading `Pairs` when the token is on Solana, `Market.ProtocolFamily` is Pumpfun, `Supply.MarketCap` > 10,000 (USD), and interval duration > 1 second. ▶️ [Realtime stream pumpfun tokens with marketcap above 10k marketcap](https://ide.bitquery.io/realtime-stream-pumpfun-tokens-with-marketcap-above-10k-marketcap) #### Track creator fee transfers on pumpfun amm Subscribe to `InstructionBalanceUpdates` with the same `collect_coin_creator_fee` method and PumpSwap program address filter. Each event streams a new creator fee collection as it happens—use this to monitor creator revenue on PumpSwap tokens in real time. ▶️ [Track creator fee transfers on pumpfun amm](https://ide.bitquery.io/track-creator-fee-transfers-on-pumpfun-amm) ### Raydium #### Latest Pools Created on Raydium This query returns the latest created pools on Raydium. You can set the limit here also. ▶️ [Latest Pools Created on Raydium](https://ide.bitquery.io/Latest-Radiyum-V4-pools-created_1) #### Latest Trades on Raydium This stream gives info about the real time trades on Raydium exchange. You can modify this query to monitor trades on Raydium for a particular token or by a particular trader. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Latest Trades on Raydium](https://ide.bitquery.io/Updated-Real-time-trades-on-Raydium-DEX-on-Solana_1) #### New Pool Creation on Raydium CLMM This stream gives info about the real time liquidity pool creation on Raydium CLMM. ▶️ [New Pool Creation on Raydium CLMM](https://ide.bitquery.io/Raydium-CLMM-Pool-Creation-stream) #### New Pool Creation on Raydium CPMM This stream gives info about the real time liquidity pool creation on Raydium CPMM. ▶️ [New Pool Creation on Raydium CPMM](https://ide.bitquery.io/CPMM-pools-creation-stream) #### New Pool Creation on Raydium Launchpad This stream gives info about the real time liquidity pool creation on Raydium Launchpad. ▶️ [New Pool Creation on Raydium Launchpad](https://ide.bitquery.io/Raydium-Launchpad-pool-creations_1) #### New Pool Creation on Raydium v4 This stream gives info about the real time liquidity pool creation on Raydium exchange. ▶️ [New Pool Creation on Raydium v4](https://ide.bitquery.io/Latest-Radiyum-V4-pools-created_5) #### Track Raydium Launchpad tokens above 95% Bonding Curve Progress in realtime Returns Raydium Launchpad tokens which have more than 95% bonding curve progress. ▶️ [Track Raydium Launchpad tokens above 95% Bonding Curve Progress in realtime](https://ide.bitquery.io/LetsBonkfun-Tokens-between-95-and-100-bonding-curve-progress_2) #### Newly launched token on PumpFun, Raydium Launchpad, Meteora DBC, Heaven DEX, Bags , Jupiter studio, Moonit Subscribe to newly launched tokens across multiple Solana launchpads and DEXs in a single subscription. ▶️ [Newly launched token on PumpFun, Raydium Launchpad, Meteora DBC, Heaven DEX, Bags , Jupiter studio, Moonit](https://ide.bitquery.io/newly-launched-token-on-PumpFun-Raydium-Launchpad-Meteora-DBC-Heaven-DEX-Bags--Jupiter-studio-Moonit) #### Raydium CLMM Trades Streams Raydium CLMM trades from the Trading cube, with USD price and trade size on every row. The Trading cube has no `AccountNames`; for the pool account list use the Raydium CLMM query on the Queries tab. ▶️ [Raydium CLMM Trades](https://ide.bitquery.io/Raydium-CLMM-DEX-Trades-with-AccountNames) #### Raydium AMM Trades Streams Raydium AMM trades from the Trading cube, with USD price and trade size on every row. Order-book context from OpenBook is not part of the Trading cube. ▶️ [Raydium AMM Trades](https://ide.bitquery.io/Raydium-dextrades-through-OpenBook-order-book) #### Realtime stream raydium launchpad tokens with marketcap above 10k marketcap Subscribe when the token is on Solana, `Market.Protocol` is `raydium_launchpad`, `Supply.MarketCap` > 10,000 (USD), and interval duration > 1 second. Adjust `gt` to change the threshold. ▶️ [Realtime stream raydium launchpad tokens with marketcap above 10k marketcap](https://ide.bitquery.io/realtime-stream-raydium-launchpad-tokens-with-marketcap-above-10k-marketcap) #### Track Add Liquidity Transactions on Solana Raydium DEX If you want to track latest liquidity additions in Raydium pools, you can use. ▶️ [Track Add Liquidity Transactions on Solana Raydium DEX](https://ide.bitquery.io/Track-Add-Liquidity-Transactions-on-Solana-Raydium-DEX) ### Meteora #### Jup studio token migrations from Meteora DBC to Meteors DEX We monitor Meteora DBC program address `dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN` for migration instructions including `migrate_meteora_damm` and `migration_damm_v2`. ▶️ [Jup studio token migrations from Meteora DBC to Meteors DEX](https://ide.bitquery.io/jup-studio-token-migrations-from-Meteora-DBC-to-Meteors-DEX_1) #### Liquidity addition for meteora In this section, we will discover data streams that provides us with the real time events of liquidity addition and liquidity removal for the Meteora DEX, which has `Meteora` as the Protocol Family. ▶️ [Liquidity addition for meteora](https://ide.bitquery.io/liquidity-addition-for-meteora_1) #### Liquidity removal for meteora Liquidity removal for meteora. Uses the `DEXPools` cube. ▶️ [Liquidity removal for meteora](https://ide.bitquery.io/liquidity-removal-for-meteora_1) #### Meteora DBC token migrations to Meteors DEX Below query will give you the latest migrated tokens Meteora DBC in realtime. ▶️ [Meteora DBC token migrations to Meteors DEX](https://ide.bitquery.io/meteora-DBC-token-migrations-to-Meteors-DEX) #### Real time trades on Meteora Dynamic Bonding Curve on Solana The below query gets real-time information whenever there's a new trade on the Meteora DBC including detailed information about the trade, including the buy and sell details, the block information, and the transaction specifics. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real time trades on Meteora Dynamic Bonding Curve on Solana](https://ide.bitquery.io/Real-time-trades-on-Meteora-Dynamic-Bonding-Curve-on-Solana) #### Real time trades on MeteoraDAMMv2 DEX on Solana This query subscribes to real-time trades on the Meteora DAMM v2 (Dynamic Automated Market Maker) on the Solana blockchain by filtering using the program address `cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG`. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real time trades on MeteoraDAMMv2 DEX on Solana](https://ide.bitquery.io/Real-time-trades-on-MeteoraDAMMv2-DEX-on-Solana) #### Real time trades on MeteoraDLMM DEX on Solana This query subscribes to real-time trades on the Meteora DLMM (Dynamic Liquidity Market Maker) on the Solana blockchain by filtering using the program address `LBUZKhRxPF3XUpBCjp4YzTKgLccjZhTSDM9YuVaPwxo`. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real time trades on MeteoraDLMM DEX on Solana](https://ide.bitquery.io/Real-time-trades-on-MeteoraDLMM-DEX-on-Solana) #### Real time trades on MeteoraDYN DEX on Solana The below query gets real-time information whenever there's a new trade on the Meteora DYN DEX including detailed information about the trade, including the buy and sell details, the block information, and the transaction specifics. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real time trades on MeteoraDYN DEX on Solana](https://ide.bitquery.io/Real-time-trades-on-MeteoraDYN-DEX-on-Solana) #### Realtime Price feed of a Token on Meteora DAMM v2 You can use the following subscription to get real-time price updates of a token on Meteora DAMM v2 on Solana. This provides live price data as new trades occur. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Realtime Price feed of a Token on Meteora DAMM v2](https://ide.bitquery.io/Realtime-Price-feed-of-a-Token-on-Meteora-DAMM-v2) #### Realtime Price feed of a Token on Meteora DLMM You can use the following subscription to get real-time price updates of a token on Meteora DLMM on Solana. This provides live price data as new trades occur. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Realtime Price feed of a Token on Meteora DLMM](https://ide.bitquery.io/Realtime-Price-feed-of-a-Token-on-Meteora-DLMM) ### Orca #### Latest pool created on Orca - Websocket For instance, Index 1 and 2 represent the tokens involved in the pool, while Index 4 is for the pool's address. Note that the indexing starts from 0. ▶️ [Latest pool created on Orca - Websocket](https://ide.bitquery.io/Latest-pool-created-on-Orca---Websocket_1) #### Liquidity addition for orca whirlpool In this section, we will discover data streams that provides us with the real time events of liquidity addition and liquidity removal for the Orca Whirlpool DEX, which has `whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc` as the Program Address. ▶️ [Liquidity addition for orca whirlpool](https://ide.bitquery.io/liquidity-addition-for-orca-whirlpool_1) #### Liquidity removal for orca whirlpool With Orca’s program and negative base change, stream liquidity removals from Whirlpool markets. ▶️ [Liquidity removal for orca whirlpool](https://ide.bitquery.io/liquidity-removal-for-orca-whirlpool_1) #### Orca DEX Trades Websocket To access a real-time stream of trades for Solana Orca DEX. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Orca DEX Trades Websocket](https://ide.bitquery.io/Orca-DEX-Trades-Websocket) #### Orca DEX Trades for a specific currency Websocket By setting the limit to 1, you will receive the most recent trade, which reflects the latest price of the token. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Orca DEX Trades for a specific currency Websocket](https://ide.bitquery.io/Orca-DEX-Trades-for-a-specific-currency-Websocket) #### Price of a token on Orca You can use the following query to get the latest price of a token, we have used WSOL address here in the below example. We are getting realtime price of WSOL on Orca DEX on Solana in different pools. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Price of a token on Orca](https://ide.bitquery.io/Price-of-a-token-on-Orca) ### Jupiter #### Latest Cancel Expired Order Transactions on Jupiter in realtime We track Jupiter's Limit Order program address `jupoNjAxXgZ4rjzxzPMP4oxduvQsQtZzyknqvzYNrNu` for `cancelExpiredOrder` instructions. The query returns transaction signatures, account details, and program arguments for expired order cancellations. ▶️ [Latest Cancel Expired Order Transactions on Jupiter in realtime](https://ide.bitquery.io/Latest-Cancel-Expired-Order-Transactions-on-Jupiter-in-realtime_1) #### Latest Cancel Limit Order Transactions on Jupiter in realtime We track Jupiter's Limit Order program address `jupoNjAxXgZ4rjzxzPMP4oxduvQsQtZzyknqvzYNrNu` for `cancelOrder` instructions. The query returns input mint addresses, maker addresses, reserve addresses, and cancellation details. ▶️ [Latest Cancel Limit Order Transactions on Jupiter in realtime](https://ide.bitquery.io/Latest-Cancel-Limit-Order-Transactions-on-Jupiter-in-realtime) #### Tokens involved in Jupiter swap, source address, destination address, DEX involved We monitor Jupiter's program address `JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4` for `sharedAccountsRoute` instructions to track swap activity. The query returns tokens involved in swaps, source and destination addresses, and routing information. ▶️ [Tokens involved in Jupiter swap, source address, destination address, DEX involved](https://ide.bitquery.io/Tokens-involved-in-Jupiter-swap-source-address-destination-address-DEX-involved_2) ## Robinhood Chain ### Trades #### Latest DEX Trades on Robinhood Chain Latest DEX trades on Robinhood Chain (chain id 4663) via the Trading API, with price and USD amounts. ▶️ [Latest DEX Trades on Robinhood Chain](https://ide.bitquery.io/Robinhood-Trades) #### Bags amm trade websocket Stream every Bags trade as it is indexed via a GraphQL `subscription` on `Trading.Trades`, scoped to the Bags protocol family on Robinhood. Includes side (buy/sell), trader, base/quote amounts (native and USD), market cap, and full transaction header. ▶️ [Bags amm trade websocket](https://ide.bitquery.io/bags-amm-trade-websocket) #### Robinhood Chain API - Trades for a Token Using this GraphQL stream you can get real-time trades for a specific token (example: AssetHood, `ASSETH`) with details such as trader address, token details, marketcap, FDV and transaction hash. ▶️ [Robinhood Chain API - Trades for a Token](https://ide.bitquery.io/Robinhood-Trades-for-a-token) #### Stream Robinhood Chain Trades in Real Time These are live examples — meme tokens go quiet over time, so swap in any token, pool, or trader you care about. ▶️ [Stream Robinhood Chain Trades in Real Time](https://ide.bitquery.io/stream-robinhood-chain-trades) #### Pools trade Stream new Crowd Launch auctions Every Crowd Launch deploys its auction through the auction factory `0x000000001f26a0044baa66024e7b6599c61963f8`, which emits `AuctionCreated(address,address,uint256,bytes)`. ▶️ [Pools trade Stream new Crowd Launch auctions](https://ide.bitquery.io/Pools-trade-Stream-new-Crowd-Launch-auctions) ### Transfers #### Ape.store Newly created tokens - Websocket Every transfer query on this page is identical except two values: the launchpad address in `Transaction.To` and the launch-mint `Amount`. ▶️ [Ape.store Newly created tokens - Websocket](https://ide.bitquery.io/Apestore-Newly-created-tokens---Websocket) #### Bags.fm Newly created tokens - Websocket Every transfer query on this page is identical except two values: the launchpad address in `Transaction.To` and the launch-mint `Amount`. ▶️ [Bags.fm Newly created tokens - Websocket](https://ide.bitquery.io/Bagsfm-Newly-created-tokens---Websocket) #### Bankr Bot Newly created tokens - Websocket Every transfer query on this page is identical except two values: the launchpad address in `Transaction.To` and the launch-mint `Amount`. ▶️ [Bankr Bot Newly created tokens - Websocket](https://ide.bitquery.io/Bankr-Bot-Newly-created-tokens---Websocket) #### Flap Sh Newly created tokens using transfer data - Websocket Track Flap.sh mints as transfers from the zero address with amount `1000000000` in transactions sent to the Flap.sh contract. ▶️ [Flap Sh Newly created tokens using transfer data - Websocket](https://ide.bitquery.io/Flap-Sh-Newly-created-tokens-using-transfer-data---Websocket) #### Hoodfun newly creaed tokens Websocket Every transfer query on this page is identical except two values: the launchpad address in `Transaction.To` and the launch-mint `Amount`. ▶️ [Hoodfun newly creaed tokens Websocket](https://ide.bitquery.io/hoodfun-newly-creaed-tokens---Websocket) #### Klik Finance Newly created tokens using transfers websocket Every transfer query on this page is identical except two values: the launchpad address in `Transaction.To` and the launch-mint `Amount`. ▶️ [Klik Finance Newly created tokens using transfers websocket](https://ide.bitquery.io/Klik-Finance-Newly-created-tokens-using-transfers-websocket) #### Launchpad newly creaed tokens Websocket Every transfer query on this page is identical except two values: the launchpad address in `Transaction.To` and the launch-mint `Amount`. ▶️ [Launchpad newly creaed tokens Websocket](https://ide.bitquery.io/launchpad-newly-creaed-tokens---Websocket) #### Pools trade Stream launches with token detail The transfer-based stream returns the token's name, symbol, decimals, and contract in the same payload — everything a sniping bot or listings feed needs, with no follow-up metadata call. It also carries the transaction's gas economics and success flag. ▶️ [Pools trade Stream launches with token detail](https://ide.bitquery.io/Pools-trade-Stream-launches-with-token-detail) #### Real time transfers on robinhood Stream live transfers for dashboards, bots, and alerting. ▶️ [Real time transfers on robinhood](https://ide.bitquery.io/real-time-transfers-on-robinhood) ### Price & OHLC #### Robinhood Chain OHLCV / Candlestick API for a Token Pair This GraphQL stream for 1 second OHLCV streams the USD normalised OHLC/K-line data for a token pair, and also contains info such as interval start and end time, marketcap, volume and token details for both base and quote tokens. ▶️ [Robinhood Chain OHLCV / Candlestick API for a Token Pair](https://ide.bitquery.io/OHLCV-stream-for-a-token-pair-on-robinhood) ### Liquidity & Pools #### Stream New pools.trade Token Launches Websocket subscription streaming every new pools.trade token launch on Robinhood Chain the moment it happens. ▶️ [Stream New pools.trade Token Launches](https://ide.bitquery.io/Pools-trade-Stream-new-launches) ### Events & Calls #### Flap sh Newly created tokens using logs (TokenCreated) - Websocket Filter Flap.sh `TokenCreated` events and decode argument values (token address, metadata fields, and related parameters). ▶️ [Flap sh Newly created tokens using logs (TokenCreated) - Websocket](https://ide.bitquery.io/Flap-sh-Newly-created-tokens-using-logs-TokenCreated---Websocket) #### Stream New Tokens on Robinhood Chain (All Launchpads) Follow the steps here: How to generate Bitquery API token ➤. ▶️ [Stream New Tokens on Robinhood Chain (All Launchpads)](https://ide.bitquery.io/stream-new-tokens-robinhood-chain) ## Polymarket ### Trades #### Real-Time Trades Stream Real-Time Trades Stream. ▶️ [Real-Time Trades Stream](https://ide.bitquery.io/prediction-market-trades-subscription) #### Trades for a Specific Market (Stream) Subscribe to trades for one market only by filtering on Question.MarketId. Replace the market ID in the query with your target market. ▶️ [Trades for a Specific Market (Stream)](https://ide.bitquery.io/subscribe-to-specific-market-trades) #### Bitcoin Up or Down Trades Stream Subscribe to live Polymarket trades for markets whose question title includes "Bitcoin Up or Down". ▶️ [Bitcoin Up or Down Trades Stream](https://ide.bitquery.io/Bitcoin-Up-or-Down-Trades-Stream) #### How do I track high-value or whale trades on Polymarket? Use a GraphQL subscription on `PredictionTrades` filtered by `CollateralAmountInUSD: { gt: "10000" }` and `ProtocolName: "polymarket"` to monitor trades exceeding $10,000 USD in real time. Ideal for detecting whale activity and large market movements. ▶️ [How do I track high-value or whale trades on Polymarket?](https://ide.bitquery.io/How-do-I-track-high-value-or-whale-trades-on-Polymarket) #### Large trades on polymarket Start by streaming large Polymarket trades. Each event gives you a buyer address to investigate. Change `subscription` to `query` for historical results. ▶️ [Large trades on polymarket](https://ide.bitquery.io/large-trades--on-polymarket) #### Monitoring specific wallets trades in realtime for Ethereum up or down market The same wallet-monitoring pattern works for every Polymarket Up or Down market — only the `Question.Title` filter changes. Open any of the pre-built IDE queries below to stream trades for the chain you care about. ▶️ [Monitoring specific wallets trades in realtime for Ethereum up or down market](https://ide.bitquery.io/monitoring-specific-wallets-trades-in-realtime-for-Ethereum-up-or-down-market) #### Monitoring specific wallets trades in realtime for XRP up or down market The same wallet-monitoring pattern works for every Polymarket Up or Down market — only the `Question.Title` filter changes. Open any of the pre-built IDE queries below to stream trades for the chain you care about. ▶️ [Monitoring specific wallets trades in realtime for XRP up or down market](https://ide.bitquery.io/monitoring-specific-wallets-trades-in-realtime-for-XRP-up-or-down-market) #### Polymarket AI whale trades stream Streams live AI-market trades above a USD threshold (here `$5,000`). This is ideal for whale-alert bots and detecting large, conviction bets. Filter with a `Question.Title` keyword, or swap it for a single-market `MarketId`. ▶️ [Polymarket AI whale trades stream](https://ide.bitquery.io/Polymarket-AI-whale-trades-stream) #### Polymarket whale trades alert Stream successful Polymarket trades whose collateral exceeds $10,000 USD. Adjust the threshold string as needed. ▶️ [Polymarket whale trades alert](https://ide.bitquery.io/polymarket-whale-trades-alert_1) ### Markets #### Real-Time Management Stream (Creations + Resolutions) Real-Time Management Stream (Creations + Resolutions). ▶️ [Real-Time Management Stream (Creations + Resolutions)](https://ide.bitquery.io/Prediction-Managements-subscription-resolutions-creations) #### Real-Time Market Creations Subscribe only to new market (Created) events. ▶️ [Real-Time Market Creations](https://ide.bitquery.io/track-realtime-new-polymarket-creations) #### Real-Time Market Resolutions Subscribe only to Resolved events. Winning outcome is in Prediction.Outcome; token details (e.g. AssetId) in Prediction.OutcomeToken. ▶️ [Real-Time Market Resolutions](https://ide.bitquery.io/track-realtime-polymarket-resolutions) ### Settlements #### Real-Time Settlement Stream Real-Time Settlement Stream. ▶️ [Real-Time Settlement Stream](https://ide.bitquery.io/realtime-predicion-market-settlements-stream) ## Perpetuals ### Hyperliquid #### Hyperliquid Real-time Trades Stream (WebSocket) Every fill on perp, spot, HIP-3 and outcome markets as blocks arrive. Each fill comes twice, for the taker (`IsAggressor: true`) and for the maker, sharing `Tid`. Liquidation fills are not in this stream; subscribe to `PerpLiquidations` for them. Add `Execution { Index }` for the fill's place in its block: `Tid` is an identifier, not an order. ▶️ [Hyperliquid Real-time Trades Stream (WebSocket)](https://ide.bitquery.io/hyperliquid-trades-stream) #### Hyperliquid Price Updates Stream (WebSocket) Oracle and mark prices that HIP-3 market deployers publish, one row per market and `Kind` (`mark`, `oracle`, `markInput`, `spotInput`, `extPerp`, `extPerpInput`). Native perps such as BTC are not in this feed. `UpdateTime` is in epoch nanoseconds and is 0 on the `*Input` kinds. ▶️ [Hyperliquid Price Updates Stream (WebSocket)](https://ide.bitquery.io/hyperliquid-price-updates-stream) #### Hyperliquid Real-time Candles Stream (WebSocket) On every block with fills in a market, the stream pushes that market's current, still-open bar for each interval (`Duration` of 60, 300, 900 and 3600 seconds), so one bar arrives many times as it fills; keep the last message per market, `Duration` and `Start`. Filter on `Market.CoinRaw` rather than `Symbol`, which HIP-3 markets can share (`hyna:BTC` also reads `BTC`). ▶️ [Hyperliquid Real-time Candles Stream (WebSocket)](https://ide.bitquery.io/hyperliquid-candles-stream) ### Phoenix #### Solana Perps Live Trades Stream (Phoenix Fills) Stream every stop-loss and take-profit placement as it happens. ▶️ [Solana Perps Live Trades Stream (Phoenix Fills)](https://ide.bitquery.io/solana-perps-live-trades-stream) #### Solana Perpetuals Mark Price Stream (Phoenix) Solana Perpetuals Mark Price Stream (Phoenix). ▶️ [Solana Perpetuals Mark Price Stream (Phoenix)](https://ide.bitquery.io/solana-perpetuals-mark-price-stream) #### Collateral deposits and withdrawals Live collateral deposits and withdrawals on Phoenix perpetuals - the money-in and money-out feed for the venue. ▶️ [Collateral deposits and withdrawals](https://ide.bitquery.io/Solana---Phoenix-collateral-deposits-and-withdrawals-live) ## TRON ### Trades #### Real-time Trades on Sunpump This stream returns all the real time DEX trades happening on Sunpump exchange on the Tron network. You can modify this stream to get the trades of a particular token or trades by a particular trader. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real-time Trades on Sunpump](https://ide.bitquery.io/real-time-sunswapTrades) #### Real-time Trades on Tron This stream returns all the real time DEX trades happening on the Tron network. You can modify this stream to get DEX trades on a particular DEX or trades of a particular token or trades by a particular trader. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real-time Trades on Tron](https://ide.bitquery.io/Latest-trades-on-Tron) #### Sunpump trades To subscribe to latest Sunpump trades you can use. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Sunpump trades](https://ide.bitquery.io/Sunpump-trades) #### USDT TRC20 DEX Trades Real-time DEX trades where USDT is the bought currency on Tron — protocol, buyer and seller, amounts and order IDs. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [USDT TRC20 DEX Trades](https://ide.bitquery.io/USDT-TRC20-DEX-Trades) ### Transfers #### Real-time Tether USDT Transfers This subscription streams the latest USDT (TRC20) transfers on the TRON network. You can modify the stream to monitor Transfers of USDT from or to a particular address. ▶️ [Real-time Tether USDT Transfers](https://ide.bitquery.io/usdt-trc20-transfers_1) #### Sender is particular address Sender is particular address. Uses the `Transfers` cube. ▶️ [Sender is particular address](https://ide.bitquery.io/Sender-is-particular-address) #### Whale transfers of USDT on Tron The subscription query below fetches the whale transactions on the Tron network. We have used USDT address `TThzxNRLrW2Brp9DcTQU8i4Wd9udCWEdZ3`. ▶️ [Whale transfers of USDT on Tron](https://ide.bitquery.io/Whale-transfers-of-USDT-on-Tron) ### Price & OHLC #### Track price of a tron token in realtime Provides real-time updates on price of token `TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t` in terms of USDT `TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t`, including details about the DEX. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Track price of a tron token in realtime](https://ide.bitquery.io/Track-price-of-a-tron-token-in-realtime) ### Supply & Market Cap #### Get All DEX Trades on Tron With Price, Market Cap, and Supply Crypto Trades API: one row per swap, with USD and supply. Filter `Pair.Market.Network: Tron`. When to use this vs chain DEX APIs. ▶️ [Get All DEX Trades on Tron With Price, Market Cap, and Supply](https://ide.bitquery.io/Get-All-DEX-Trades-on-Tron-With-Price-Market-Cap-and-Supply) ### Transactions #### Monitor TRX address transactions The subscription query below fetches the transactions on the Tron network for the wallet address `TDqSquXBgUCLYvYC4XZgrprLK589dkhSCf`. ▶️ [Monitor TRX address transactions](https://ide.bitquery.io/monitor-TRX-address-transactions) ### Events & Calls #### Latest Buy on SunPump You can use following stream to get latest buys on Sunpump. You can try. ▶️ [Latest Buy on SunPump](https://ide.bitquery.io/latest-Buy-on-SunPump) #### New tokens on sunpump Will subscribe to the latest created sun pump tokens. You will find the newly created token address in `Log { SmartContract }`. ▶️ [New tokens on sunpump](https://ide.bitquery.io/New-tokens-on-sunpump_1) #### Sunpump sell event You can use following stream to get latest sells on Sunpump. You can try. ▶️ [Sunpump sell event](https://ide.bitquery.io/sunpump-sell-event) #### Tron sunpump first time buy event You can use follow stream to get stream of first time buy event for any new token. ▶️ [Tron sunpump first time buy event](https://ide.bitquery.io/Tron-sunpump-first-time-buy-event_1) ### Mempool #### Events with argumens Events with argumens. Uses the `Events` cube. Replace the address in the `where` clause to use it. ▶️ [Events with argumens](https://ide.bitquery.io/Events-with-argumens) #### Sunpump trades mempool We simulate transactions in mempool, therefore you can also get trades directly from mempool using. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Sunpump trades mempool](https://ide.bitquery.io/Sunpump-trades-mempool) #### Tron mempool transfers Provides real-time data on token transfers happening in the TRON mempool including the value of the transferred amount in USD. ▶️ [Tron mempool transfers](https://ide.bitquery.io/Tron-mempool-transfers) ## Cross-Chain ### Price & OHLC #### Crypto Price Stream This subscription gives you 1-second OHLC, mean price, averages for all tokens across the 10 Trading API chains: Ethereum, BSC, Solana, Base, Arbitrum, Tron, Optimism, Polygon, Robinhood and Arc. ▶️ [Crypto Price Stream](https://ide.bitquery.io/1-second-crypto-price-stream-with-mcap) #### Stablecoin 1 sec Price Stream This subscription gives you 1-second OHLC, mean price, averages for all stablecoins including USDC, USDT, DAI, USDS etc. ▶️ [Stablecoin 1 sec Price Stream](https://ide.bitquery.io/stablecoin-1-second-price-stream) ## Ethereum ### Trades #### All DEX trades Every Ethereum DEX trade as it happens. Add a `where` filter to narrow to a token or protocol. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [All DEX trades](https://ide.bitquery.io/All-Ethereum-Trade-Stream_1) #### Trades of a specific trader of a specific token Crypto Trades API: filter `Pair.Market.Network: Ethereum` and `Trader.Address`. More examples: Trades API. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Trades of a specific trader of a specific token](https://ide.bitquery.io/trades-of-a-specific-trader-of-a-specific-token) #### All swap events Provides information on the latest real-time swap events on Ethereum. You can run it. ▶️ [All swap events](https://ide.bitquery.io/all-swap-events) #### Stream new position mints on Fluid DEX Vault Track new position mints on the Fluid DEX Vault Factory contract. This query monitors the `NewPositionMinted` event which is emitted when a new position is created on the vault factory. ▶️ [Stream new position mints on Fluid DEX Vault](https://ide.bitquery.io/stream-new-position-mints-on-Fluid-DEX-Vault) #### Latest token trades subscription Latest token trades subscription. Uses the Trading cube. Change the token address in the `where` clause to use it. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Latest token trades subscription](https://ide.bitquery.io/latest-token-trades-subscription) #### Real time trades of an ethereum address Real time trades of an ethereum address. Uses the Trading cube. Replace the address in the `where` clause to use it. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real time trades of an ethereum address](https://ide.bitquery.io/Real-time-trades-of-an-ethereum-address) #### Subscribe to dex trades on ethereum mainnet Will get the realtime DEX trades happening on Ethereum Mainnet. Open it in the GraphQL IDE using this. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Subscribe to dex trades on ethereum mainnet](https://ide.bitquery.io/subscribe-to-dex-trades-on-ethereum-mainnet_2) #### Get pair trades data just like dexcsreener Will subscribe to real-time trade transactions for a pair, providing a continuous stream of data as new trades are processed and recorded. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Get pair trades data just like dexcsreener](https://ide.bitquery.io/Get-pair-trades-data-just-like-dexcsreener) #### Get pair trades data just like geckoterminal Will subscribe to real-time trade transactions for a pair, providing a continuous stream of data as new trades are processed and recorded. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Get pair trades data just like geckoterminal](https://ide.bitquery.io/Get-pair-trades-data-just-like-geckoterminal) #### Pepe live trades stream Every PEPE DEX trade as it is confirmed on-chain in real time using Bitquery subscription. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Pepe live trades stream](https://ide.bitquery.io/pepe-live-trades-stream) ### Transfers #### Token transfers Live ERC-20 transfers. Change the token address to follow a different one. ▶️ [Token transfers](https://ide.bitquery.io/Subscribe-to-Latest-WETH-token-transfers_3) #### Pepe whale transfer stream Subscribe to PEPE transfers above 1 billion tokens the moment they hit the chain. ▶️ [Pepe whale transfer stream](https://ide.bitquery.io/pepe-whale-transfer-stream) #### Subscribe to Latest WETH token transfers This example subscribes to WETH (Wrapped Ethereum) token transfers. The contract address is 0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2. ▶️ [Subscribe to Latest WETH token transfers](https://ide.bitquery.io/Subscribe-to-Latest-WETH-token-transfers) #### Subscribe to latest Axie infinity token transfers You can open this API on our GraphQL IDE using this. ▶️ [Subscribe to latest Axie infinity token transfers](https://ide.bitquery.io/Subscribe-to-latest-Axie-infinity-token-transfers_1) ### Balances & Holders #### Balance of a specific address Live balance updates for one wallet. Replace the address. ▶️ [Balance of a specific address](https://ide.bitquery.io/Stream-Token-Balance-Updates-in-Real-Time) #### All transaction balances Every balance change on the chain — high volume, filter before using in production. ▶️ [All transaction balances](https://ide.bitquery.io/Subscribe-to-All-Transaction-Balances) #### Transaction balances for one address Balance changes scoped to a single wallet. ▶️ [Transaction balances for one address](https://ide.bitquery.io/Subscribe-to-Transaction-Balances-for-a-Specific-Address) #### Token balance changes by transaction Balance deltas for every token, transaction by transaction. ▶️ [Token balance changes by transaction](https://ide.bitquery.io/Track-Any-Token-Balance-Changes-by-Transaction-on-ETH) #### Balance update after transfer received from multiple addresses--stream Balance update after transfer received from multiple addresses--stream. Uses the `TransactionBalances` cube. ▶️ [Balance update after transfer received from multiple addresses--stream](https://ide.bitquery.io/Balance-update-after-transfer-received-from-multiple-addresses--stream) #### Balance update after transfer received--stream Balance update after transfer received--stream. Uses the `TransactionBalances` cube. Replace the address in the `where` clause to use it. ▶️ [Balance update after transfer received--stream](https://ide.bitquery.io/Balance-update-after-transfer-received--stream) #### Balance update after transfer sent from multiple addresses--stream Balance update after transfer sent from multiple addresses--stream. Uses the `TransactionBalances` cube. ▶️ [Balance update after transfer sent from multiple addresses--stream](https://ide.bitquery.io/Balance-update-after-transfer-sent-from-multiple-addresses--stream) #### Balance update after transfer sent--stream Balance update after transfer sent--stream. Uses the `TransactionBalances` cube. Replace the address in the `where` clause to use it. ▶️ [Balance update after transfer sent--stream](https://ide.bitquery.io/Balance-update-after-transfer-sent--stream_3) #### Balance update from transfer for an address--stream Balance update from transfer for an address--stream. Uses the `TransactionBalances` cube. Replace the address in the `where` clause to use it. ▶️ [Balance update from transfer for an address--stream](https://ide.bitquery.io/balance-update-from-transfer-for-an-address--stream) #### Balance update from transfer for multiple addresses--stream Balance update from transfer for multiple addresses--stream. Uses the `TransactionBalances` cube. ▶️ [Balance update from transfer for multiple addresses--stream](https://ide.bitquery.io/balance-update-from-transfer-for-multiple-addresses--stream) ### Price & OHLC #### 1-second OHLC candles Rolling one-second candles for charting. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [1-second OHLC candles](https://ide.bitquery.io/1-second-OHLC-k-line-Ethereum) #### 1 second crypto price stream For a live ticker, use the Crypto Price API stream. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [1 second crypto price stream](https://ide.bitquery.io/1-second-crypto-price-stream) #### Pepe-ohlcv-stream Stream live PEPE price data with 1-minute candles, moving averages, and USD volume. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Pepe-ohlcv-stream](https://ide.bitquery.io/pepe-ohlcv-stream) #### Token price stream Live USD price updates as trades land. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Token price stream](https://ide.bitquery.io/token-price-stream) ### Supply & Market Cap #### Token market cap stream Live market cap updates for Ethereum tokens. ▶️ [Token market cap stream](https://ide.bitquery.io/ethereum-token-marketcap-stream_1) #### Tokens crossing $1M market cap Only tokens above a market cap floor. Change the threshold in the `where` clause. ▶️ [Tokens crossing $1M market cap](https://ide.bitquery.io/realtime-stream-ethereum-tokens-with-marketcap-above-1-million) #### All trades on Ethereum with Price, Marketcap, supply Stream all Ethereum DEX trades in real time with USD price, market cap, FDV, circulating supply, and transaction fee data. Filter by `Pair.Market.Network: Ethereum` to capture every swap across all Ethereum DEXs in a single subscription. ▶️ [All trades on Ethereum with Price, Marketcap, supply](https://ide.bitquery.io/All-trades-on-Ethereum-with-Price-Marketcap-supply) #### Token supply changes Mints and burns as they change a token's supply. ▶️ [Token supply changes](https://ide.bitquery.io/latest-token-supply-on-eth-chain) ### Liquidity & Pools #### Realtime slippage monitoring Slippage on every trade as it happens, across all pools. ▶️ [Realtime slippage monitoring](https://ide.bitquery.io/realtime-slippage-on-ethereum) #### Realtime Liquidity Stream This subscription query returns real-time liquidity data for all DEX pools on Ethereum. You can monitor liquidity changes, pool reserves, and spot prices as trades and liquidity modifications occur across all pools. ▶️ [Realtime Liquidity Stream](https://ide.bitquery.io/Realtime-Liquidity-Stream_4) #### Realtime Liquidity Stream of a Specific Pool This subscription query monitors real-time liquidity changes for a specific DEX pool on Ethereum. Use this to track liquidity events, pool reserves, and spot prices for a particular pool as they occur. ▶️ [Realtime Liquidity Stream of a Specific Pool](https://ide.bitquery.io/Realtime-Liquidity-Stream-of-a-Specific-Pool_4) ### Transactions #### Get Transaction Hash In this section we will discuss how we can build eth_getTransactionByHash alternatives using Bitquery APIs. ▶️ [Get Transaction Hash](https://ide.bitquery.io/Get-Transaction-Hash) ### Events & Calls #### Stream pool and pair creation on ethereum Stream pool and pair creation on ethereum. Uses the `Events` cube. ▶️ [Stream pool and pair creation on ethereum](https://ide.bitquery.io/stream-pool-and-pair-creation-on-ethereum_1) #### Subscribe to the Same Event Across Multiple Contracts In the below query we listen for a specific event (Approval) across multiple smart contracts on the Ethereum (ETH) network. ▶️ [Subscribe to the Same Event Across Multiple Contracts](https://ide.bitquery.io/Subscribe-to-the-Same-Event-Across-Multiple-Contracts) ### Mempool #### Binance Mempool Transactions Mempool Transactions API provides real-time data from the Binance mempool. You can use it to build applications that require up-to-date information about transactions associated with a specific address. ▶️ [Binance Mempool Transactions](https://ide.bitquery.io/Binance-Mempool-Transactions_1) #### Eth subscribe("logs") You can subscribe to all incoming logs filtered by any of the fields including method signature, tx value,sender , receiver and so on. In the below example we are tracking only logs where the method name is `transfer`. You can run it. ▶️ [Eth subscribe("logs")](https://ide.bitquery.io/eth_subscribelogs) #### Eth subscribe(“pendingTransactions”) To subscribe to incoming pending transactions, use the below subscription. You can run it. ▶️ [Eth subscribe(“pendingTransactions”)](https://ide.bitquery.io/eth_subscribependingTransactions) #### Current mempool fees Gas prices being offered by pending transactions right now. ▶️ [Current mempool fees](https://ide.bitquery.io/Get-Mempool-Fees) #### Mempool event stream This query listens to real-time mempool events on the Ethereum (ETH) blockchain. The query is designed to capture details of transactions, logs, events, and arguments from the Ethereum Virtual Machine (EVM) before they are confirmed in a block. ▶️ [Mempool event stream](https://ide.bitquery.io/Mempool-event-stream) #### Pending DEX trades in the mempool Swaps sitting in the mempool — see trades before they confirm. ▶️ [Pending DEX trades in the mempool](https://ide.bitquery.io/mempool-token-trades_1) #### Pending transfers in the mempool Token transfers that are broadcast but not yet mined. ▶️ [Pending transfers in the mempool](https://ide.bitquery.io/mempool-transfers_1) #### New pairs being created, from the mempool Catches pool creation at broadcast time rather than after the block. ▶️ [New pairs being created, from the mempool](https://ide.bitquery.io/PairCreated-in-Mempool) #### Vrs signature The following subscription query retrieves real-time mempool transactions and includes key details such as the block time, block number, transaction hash, transaction cost, and the V, R, S components of the transaction signature. You can run it. ▶️ [Vrs signature](https://ide.bitquery.io/vrs-signature) ### Blocks & Validators #### Balance after gas fee burn Tracks an address's balance alongside the gas it burns. ▶️ [Balance after gas fee burn](https://ide.bitquery.io/Monitor-balance-and-gas-fee-paid-for-an-address-using-stream_1) #### Self-destruct balance events Balances released when a contract self-destructs. ▶️ [Self-destruct balance events](https://ide.bitquery.io/All-Self-Destruct-Event-Balances-Stream) #### Block mining rewards Reward paid out per block. ▶️ [Block mining rewards](https://ide.bitquery.io/Track-Block-Mining-Rewards) #### MEV-related balance changes Balance movements tied to MEV payouts and builder rewards. ▶️ [MEV-related balance changes](https://ide.bitquery.io/Track-MEV-Related-Balance-Updates) #### Miner balance changes Balance movements on block producers. ▶️ [Miner balance changes](https://ide.bitquery.io/Track-Miner-Balance-Updates) #### Validator balance changes Balance movements on validator addresses. ▶️ [Validator balance changes](https://ide.bitquery.io/Track-Validator-Balance-Updates) #### Validator rewards Rewards paid to validators, block by block. ▶️ [Validator rewards](https://ide.bitquery.io/Track-Validator-Rewards) #### Filter by MEV Bot or Builder Address Track balance changes for specific MEV bots or block builders. ▶️ [Filter by MEV Bot or Builder Address](https://ide.bitquery.io/Filter-by-MEV-Bot-or-Builder-Address) #### Filter by Miner Address Track balance changes for a specific miner address. ▶️ [Filter by Miner Address](https://ide.bitquery.io/Filter-by-Miner-Address) #### Filter by Validator Address Track balance changes for a specific validator address. ▶️ [Filter by Validator Address](https://ide.bitquery.io/Filter-by-Validator-Address) ### Uniswap #### New Uniswap v3 pools Pool creation events as they are mined — new pair detection. ▶️ [New Uniswap v3 pools](https://ide.bitquery.io/Latest-pools-created-Uniswap-v3_10_1) #### Slippage on Uniswap v4 pools Per-trade slippage for v4 pools. ▶️ [Slippage on Uniswap v4 pools](https://ide.bitquery.io/realtime-pair-slippage-on-ethereum-uniswap-v4) #### Uniswap trades Live trades on Uniswap only. ▶️ [Uniswap trades](https://ide.bitquery.io/All-Ethereum-Uniswap-Trade-Stream) #### Currency pair liquidity events stream If looking to monitor a currency pair across all virtual pools within Uniswap V4, then this subscription works the best. ▶️ [Currency pair liquidity events stream](https://ide.bitquery.io/currency-pair-liquidity-events-stream) #### Latest Liquidity Changes of Pools in a Specific DEX Protocol - Uniswap V4 This subscription query monitors real-time liquidity changes for all pools in a specific DEX protocol on Ethereum. Here we have taken example of Uniswap V4. ▶️ [Latest Liquidity Changes of Pools in a Specific DEX Protocol - Uniswap V4](https://ide.bitquery.io/Latest-Liquidity-Changes-of-Pools-in-a-Specific-DEX-Protocol---Uniswap-V4_6) #### Latest pools created Uniswap v3 Open this query on our GraphQL IDE using this. ▶️ [Latest pools created Uniswap v3](https://ide.bitquery.io/Latest-pools-created-Uniswap-v3_9) #### Real time trades on uniswap v4 -- subscription These swaps use the chain-specific the Trading cube via `EVM { the Trading cube }`: `Trade.PoolId`, pool-relative Buy/Sell (the Trading cube). USD can be thin on small pools—use live swaps above when you want the Trading row shape. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real time trades on uniswap v4 -- subscription](https://ide.bitquery.io/Real-time-trades-on-uniswap-v4----subscription) #### Stream all Uniswap Seconds OHLC Kline The Price Index Stream gives you token-level, pair-level, and market-level OHLC data for 1 sec interval( or higher), in real-time across all chains. These also includes trading metrics like SMA, EMA, VWAP, and more. ▶️ [Stream all Uniswap Seconds OHLC Kline](https://ide.bitquery.io/Stream-all-Uniswap-Seconds-OHLC-Kline_1) #### Uniswap all versions trades stream Track live trades across all Uniswap versions. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Uniswap all versions trades stream](https://ide.bitquery.io/uniswap-all-versions-trades-stream_1) #### Uniswap v3 pairs websocket Open this query on our GraphQL IDE using this. ▶️ [Uniswap v3 pairs websocket](https://ide.bitquery.io/uniswap-v3-pairs-websocket) ## BSC ### Trades #### All BNB Trade Stream Crypto Trades API: one row per swap, with USD and supply. Filter `Pair.Market.Network: Binance Smart Chain`. When to use this vs chain DEX APIs. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [All BNB Trade Stream](https://ide.bitquery.io/All-BNB-Trade-Stream) #### Real-time Trades on BSC This subscription returns the real-time trades happening on BSC Network. You can modify the stream to get real-time trades for a particular token, a particular token pair and even a particular trader. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real-time Trades on BSC](https://ide.bitquery.io/subscribe-to-dex-trades-on-BNB-mainnet) #### Subscribe to bsc dex trades This example uses the chain-specific the Trading cube via `EVM(network: bsc) { the Trading cube }` (pool-side Buy/Sell; see the Trading cube). USD fields can be empty on thin pools. For swap rows with trader + USD, use the stream at the top of this page. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Subscribe to bsc dex trades](https://ide.bitquery.io/subscribe-to-bsc-dex-trades) ### Transfers #### Transfers where sender is a particular address Transfers where sender is a particular address. Uses the `Transfers` cube. ▶️ [Transfers where sender is a particular address](https://ide.bitquery.io/Transfers-where-sender-is-a-particular-address) ### Balances & Holders #### Real-time Transaction Balance Update for a Wallet on BSC This stream provides real time transaction balance updates for a wallet on BSC. ▶️ [Real-time Transaction Balance Update for a Wallet on BSC](https://ide.bitquery.io/Subscribe-to-Transaction-Balances-for-a-Specific-Address-bsc) #### Balance update after transfer received from multiple addresses--stream bsc Balance update after transfer received from multiple addresses--stream bsc. Uses the `TransactionBalances` cube. ▶️ [Balance update after transfer received from multiple addresses--stream bsc](https://ide.bitquery.io/Balance-update-after-transfer-received-from-multiple-addresses--stream-bsc) #### Balance update after transfer received--stream bsc Balance update after transfer received--stream bsc. Uses the `TransactionBalances` cube. Replace the address in the `where` clause to use it. ▶️ [Balance update after transfer received--stream bsc](https://ide.bitquery.io/Balance-update-after-transfer-received--stream-bsc) #### Balance update after transfer sent from multiple addresses--stream bsc Balance update after transfer sent from multiple addresses--stream bsc. Uses the `TransactionBalances` cube. ▶️ [Balance update after transfer sent from multiple addresses--stream bsc](https://ide.bitquery.io/Balance-update-after-transfer-sent-from-multiple-addresses--stream-bsc) #### Balance update after transfer sent--stream bsc Balance update after transfer sent--stream bsc. Uses the `TransactionBalances` cube. Replace the address in the `where` clause to use it. ▶️ [Balance update after transfer sent--stream bsc](https://ide.bitquery.io/Balance-update-after-transfer-sent--stream-bsc) #### Balance update from transfer for an address--stream bsc Balance update from transfer for an address--stream bsc. Uses the `TransactionBalances` cube. Replace the address in the `where` clause to use it. ▶️ [Balance update from transfer for an address--stream bsc](https://ide.bitquery.io/balance-update-from-transfer-for-an-address--stream-bsc) #### Balance update from transfer for multiple addresses--stream bsc Balance update from transfer for multiple addresses--stream bsc. Uses the `TransactionBalances` cube. ▶️ [Balance update from transfer for multiple addresses--stream bsc](https://ide.bitquery.io/balance-update-from-transfer-for-multiple-addresses--stream-bsc) #### Monitor balance after unused gas fee returned for an address--stream bsc Monitor balance after unused gas fee returned for an address--stream bsc. Uses the `TransactionBalances` cube. Replace the address in the `where` clause to use it. ▶️ [Monitor balance after unused gas fee returned for an address--stream bsc](https://ide.bitquery.io/Monitor-balance-after-unused-gas-fee-returned--for-an-address--stream-bsc) #### Monitor balance after unused gas fee returned for multiple addresses--stream bsc Monitor balance after unused gas fee returned for multiple addresses--stream bsc. Uses the `TransactionBalances` cube. ▶️ [Monitor balance after unused gas fee returned for multiple addresses--stream bsc](https://ide.bitquery.io/Monitor-balance-after-unused-gas-fee-returned--for-multiple-addresses--stream-bsc) #### Monitor balance and gas fee paid for an address using stream bsc Monitor balance and gas fee paid for an address using stream bsc. Uses the `TransactionBalances` cube. Replace the address in the `where` clause to use it. ▶️ [Monitor balance and gas fee paid for an address using stream bsc](https://ide.bitquery.io/Monitor-balance-and-gas-fee-paid-for-an-address-using-stream-bsc) ### Price & OHLC #### Stream for latest prices for Flap.sh tokens Subscribe to real-time price updates for all Flap.sh tokens. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Stream for latest prices for Flap.sh tokens](https://ide.bitquery.io/Stream-for-latest-prices-for-Flapsh-tokens) #### Realtime price of a ETH in terms of WBNB Provides real-time updates on price of ETH `0x2170Ed0880ac9A755fd29B2688956BD959F933F8` in terms of WBNB `0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c`, including details about the DEX, market, and order specifics. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Realtime price of a ETH in terms of WBNB](https://ide.bitquery.io/realtime-price-of-a-ETH-in-terms-of-WBNB) ### Supply & Market Cap #### BSC tokens with market cap above $1 million (Trading API) Subscribe when **`Token.Id`** matches BSC and **`Supply.MarketCap`** > 1,000,000 USD. ▶️ [BSC tokens with market cap above $1 million (Trading API)](https://ide.bitquery.io/realtime-stream-bsc-tokens-with-marketcap-above-1-million_1) #### All trades on BSC with Price, Marketcap, supply Stream all BSC DEX trades in real time with USD price, market cap, FDV, circulating supply, and transaction fee data. Filter by `Pair.Market.Network: Binance Smart Chain` to capture every swap across all BSC DEXs in a single subscription. ▶️ [All trades on BSC with Price, Marketcap, supply](https://ide.bitquery.io/All-trades-on-BSC-with-Price-Marketcap-supply) #### Bsc token marketcap stream Subscribe to `Tokens` where currency id includes `bsc`, with interval duration greater than 1 (second). ▶️ [Bsc token marketcap stream](https://ide.bitquery.io/bsc-token-marketcap-stream) ### Liquidity & Pools #### Realtime Liquidity Stream of a Specific Pool This subscription query monitors real-time liquidity changes for a specific DEX pool on BSC. Use this to track liquidity events, pool reserves, and spot prices for a particular pool as they occur. ▶️ [Realtime Liquidity Stream of a Specific Pool](https://ide.bitquery.io/Realtime-Liquidity-Stream-of-a-Specific-Pool_1) #### Realtime Slippage Monitoring This subscription query returns real-time slippage data for all DEX pools on BSC. You can monitor price impact and liquidity depth as trades occur. ▶️ [Realtime Slippage Monitoring](https://ide.bitquery.io/realtime-slippage-on-bsc) #### Realtime Liquidity Stream This subscription query returns real-time liquidity data for all DEX pools on BSC. You can monitor liquidity changes, pool reserves, and spot prices as trades and liquidity modifications occur across all pools. ▶️ [Realtime Liquidity Stream](https://ide.bitquery.io/Realtime-Liquidity-Stream_2) ### Events & Calls #### Newly Created Tokens on BSC network This subscription websocket lets you track the newly created tokens on BSC network. You will find the newly created token contract address in the response under `Receipt: ContractAddress` field. ▶️ [Newly Created Tokens on BSC network](https://ide.bitquery.io/Newly-Created-Tokens-on-BSC-network_2) ### Mempool #### Bsc mempool txs Use a GraphQL `subscription` on the Bitquery streaming WebSocket `wss://streaming.bitquery.io/graphql` with root `EVM(network: bsc, mempool: true)`. ▶️ [Bsc mempool txs](https://ide.bitquery.io/bsc-mempool-txs) #### Monitor mempool trades bsc Stream all DEX trades happening in the BSC mempool in real-time. Monitor buy/sell activity, prices, volumes, and trading pairs across all DEXs before transactions are confirmed. ▶️ [Monitor mempool trades bsc](https://ide.bitquery.io/monitor-mempool-trades-bsc) ### Blocks & Validators #### Real-time Validator Rewards for BSC This stream provides the info on rewards received by validators on BSC in real time. ▶️ [Real-time Validator Rewards for BSC](https://ide.bitquery.io/Track-Validator-Balance-Updates-bsc_1) #### Track MEV Balance in Real Time for BSC This stream monitors MEV activities and Balance Updates on BSC in real time. ▶️ [Track MEV Balance in Real Time for BSC](https://ide.bitquery.io/Track-MEV-Related-Balance-Updates-bsc) #### All Self-Destruct Event Balances Stream bsc Monitor all contract self-destruct event balances in real-time using this GraphQL subscription. ▶️ [All Self-Destruct Event Balances Stream bsc](https://ide.bitquery.io/All-Self-Destruct-Event-Balances-Stream-bsc) #### Filter by MEV Bot or Builder Address bsc Track balance changes for specific MEV bots or block builders. ▶️ [Filter by MEV Bot or Builder Address bsc](https://ide.bitquery.io/Filter-by-MEV-Bot-or-Builder-Address-bsc) #### Filter by Miner Address bsc Track balance changes for a specific miner address. ▶️ [Filter by Miner Address bsc](https://ide.bitquery.io/Filter-by-Miner-Address-bsc) #### Filter by Validator Address bsc Track balance changes for a specific validator address. ▶️ [Filter by Validator Address bsc](https://ide.bitquery.io/Filter-by-Validator-Address-bsc_1) #### Track Block Mining Rewards bsc Track rewards received by miners for successfully mining blocks. ▶️ [Track Block Mining Rewards bsc](https://ide.bitquery.io/Track-Block-Mining-Rewards-bsc) #### Track Ephemeral MEV Contract Balance Changes bsc Monitor balance changes for short-lived contracts that are created and destroyed in the same transaction (typical pattern for MEV bots) using this subscription. ▶️ [Track Ephemeral MEV Contract Balance Changes bsc](https://ide.bitquery.io/Track-Ephemeral-MEV-Contract-Balance-Changes-bsc) #### Track Large MEV Transactions bsc Monitor large transaction fee rewards that may indicate significant MEV extraction. ▶️ [Track Large MEV Transactions bsc](https://ide.bitquery.io/Track-Large-MEV-Transactions-bsc) #### Track Large Self-Destruct Transaction Balances bsc Monitor significant self-destruct balance changes (e.g., > $1000 USD) using this subscription. ▶️ [Track Large Self-Destruct Transaction Balances bsc](https://ide.bitquery.io/Track-Large-Self-Destruct-Transaction-Balances-bsc) ### Four Meme #### Four Meme Token Creations Stream This stream returns the latest token creations on `Four Meme` on BSC Network in real time. ▶️ [Four Meme Token Creations Stream](https://ide.bitquery.io/track-Four-meme-token-creation-using-events_2) #### Four Meme Trades Stream This stream returns the latest trades happening on `Four Meme` on BSC Network in real time. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Four Meme Trades Stream](https://ide.bitquery.io/Latest-trades-on-fourmeme) #### Four Meme User Trades This stream helps in monitoring the trades of a Four Meme user in real time. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Four Meme User Trades](https://ide.bitquery.io/monitor-trades-of-a-trader-on-four-meme) #### Stream Real-time MarketCap of FourMeme Tokens Real-time market cap stream with OHLC for FourMeme tokens at 1-second intervals. Market cap is calculated from price using fixed 1 billion supply. ▶️ [Stream Real-time MarketCap of FourMeme Tokens](https://ide.bitquery.io/Real-Time-Marektcap-and-price-for-Four-meme-tokens) #### Four Meme bonding curve completion mempool Monitor tokens that are about to complete their bonding curve (near graduation) in the mempool. ▶️ [Four Meme bonding curve completion mempool](https://ide.bitquery.io/Four-Meme-bonding-curve-completion-mempool) #### Four Meme large buys mempool Monitor large buy orders in the mempool to detect whale activity and potential price pumps. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Four Meme large buys mempool](https://ide.bitquery.io/Four-Meme-large-buys-mempool) #### Four Meme liquidity add mempool Monitor when liquidity is being added to Four Meme tokens before confirmation. Important for detecting graduation events. ▶️ [Four Meme liquidity add mempool](https://ide.bitquery.io/Four-Meme-liquidity-add-mempool) #### Four Meme mempool trades Monitor Four Meme DEX trades in real-time as they appear in the mempool, before they are confirmed on-chain. This allows you to detect trading opportunities early and front-run or back-run trades. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Four Meme mempool trades](https://ide.bitquery.io/Four-Meme-mempool-trades) #### Four Meme migration mempool Track when Four Meme tokens are graduating to PancakeSwap before the migration completes. Critical for trading strategies. ▶️ [Four Meme migration mempool](https://ide.bitquery.io/Four-Meme-migration-mempool) #### Four Meme rug pull detection mempool Monitor for suspicious activity like developers selling large amounts in mempool. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Four Meme rug pull detection mempool](https://ide.bitquery.io/Four-Meme-rug-pull-detection-mempool) ### PancakeSwap #### Real-time Mempool Trades on Pancakeswap Get real time unconfirmed trades on Pancakeswap, using the given stream. ▶️ [Real-time Mempool Trades on Pancakeswap](https://ide.bitquery.io/Mempool---Latest-BSC-PancakeSwap-v3-dextrades---Stream) #### Track Four Meme Token migrations to PancakeSwap This query tracks four meme token migrations to Pancakeswap in realtime by monitoring transactions sent to the Four Meme factory address and filtering for `PairCreated` and `PoolCreated` events. These events are emitted when a token graduates from Four Meme and migrates to Pancakeswap. ▶️ [Track Four Meme Token migrations to PancakeSwap](https://ide.bitquery.io/four-meme-migration-to-pancakeswap) #### Binance meme rush migration to pancakeswap Tracks Binance Meme Rush token migrations to Pancakeswap in realtime by monitoring transactions sent to the Four Meme factory address (`0x5c952063c7fc8610ffdb798152d69f0b9550762b`) and filtering for `PairCreated` and `PoolCreated` events. ▶️ [Binance meme rush migration to pancakeswap](https://ide.bitquery.io/binance-meme-rush-migration-to-pancakeswap) #### Latest BSC PancakeSwap v3 dextrades - Stream Latest BSC PancakeSwap v3 dextrades - Stream. Uses the `DEXTrades` cube. ▶️ [Latest BSC PancakeSwap v3 dextrades - Stream](https://ide.bitquery.io/Latest-BSC-PancakeSwap-v3-dextrades---Stream_2) #### Mempool - Latest BSC PancakeSwap v3 dextrades - Stream Mempool - Latest BSC PancakeSwap v3 dextrades - Stream. Uses the `DEXTrades` cube. ▶️ [Mempool - Latest BSC PancakeSwap v3 dextrades - Stream](https://ide.bitquery.io/Mempool---Latest-BSC-PancakeSwap-v3-dextrades---Stream_1) #### Stream - BSC PancakeSwap v3 Trades for a token Stream - BSC PancakeSwap v3 Trades for a token. Uses the `DEXTradeByTokens` cube. Change the token address in the `where` clause to use it. ▶️ [Stream - BSC PancakeSwap v3 Trades for a token](https://ide.bitquery.io/Stream---BSC-PancakeSwap-v3-Trades-for-a-token) #### Stream - Liqiidity add for all tokens on PancakeSwap v3 Liquidity addition is an important event related to any liquidity pool. Using. ▶️ [Stream - Liqiidity add for all tokens on PancakeSwap v3](https://ide.bitquery.io/Stream---Liqiidity-add-for-all-tokens-on-PancakeSwap-v3) #### Stream - Liquidity remove for all tokens on PancakeSwap v3 Filter `Burn` signatures on the same PancakeSwap v3 manager to track liquidity withdrawals in real time. ▶️ [Stream - Liquidity remove for all tokens on PancakeSwap v3](https://ide.bitquery.io/Stream---Liquidity-remove-for-all-tokens-on-PancakeSwap-v3) ### Uniswap #### Latest Liquidity Changes of Pools in a Specific DEX Protocol - Uniswap V4 This subscription query monitors real-time liquidity changes for all pools in a specific DEX protocol on BSC. Here we have taken example of Uniswap V4. ▶️ [Latest Liquidity Changes of Pools in a Specific DEX Protocol - Uniswap V4](https://ide.bitquery.io/Latest-Liquidity-Changes-of-Pools-in-a-Specific-DEX-Protocol---Uniswap-V4) #### Newly Created Pools on Uniswap v3 on BSC network This subscription websocket lets you track the newly created pools on Uniswap V3 `0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7`. ▶️ [Newly Created Pools on Uniswap v3 on BSC network](https://ide.bitquery.io/Newly-Created-Pools-on-Uniswap-v3-on-BSC-network_3) #### Real time trades for uniswap v4 bsc The Uniswap v4 PoolManager contract emits all pool-related events, including pool initialization, swaps, and liquidity modifications, and serves as the single on-chain source of truth for Uniswap v4 activity on BSC. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real time trades for uniswap v4 bsc](https://ide.bitquery.io/Real-time-trades-for-uniswap-v4-bsc) #### Uniswap v4 pool liquidity bsc Stream live liquidity for all Uniswap v4 pools on BSC. ▶️ [Uniswap v4 pool liquidity bsc](https://ide.bitquery.io/uniswap-v4-pool-liquidity-bsc) #### Uniswap v4 pool liquidity by poolid bsc Liquidity for v4 pools is reconstructed by stepping through each price range where liquidity is concentrated , so `AmountCurrencyA` / `AmountCurrencyB` reflect the actual PoolManager balances for that `PoolId`. ▶️ [Uniswap v4 pool liquidity by poolid bsc](https://ide.bitquery.io/uniswap-v4-pool-liquidity-by-poolid-bsc) ## Base ### Trades #### All Base Trade Stream Crypto Trades API: one row per swap, with USD and supply. Filter `Pair.Market.Network: Base`. When to use this vs chain DEX APIs. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [All Base Trade Stream](https://ide.bitquery.io/All-Base-Trade-Stream) #### Base DEX Trades Stream This stream returns all the real time DEX trades happening on Base. You can modify this stream to get DEX trades on a particular DEX or trades of a particular token or trades by a particular trader. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Base DEX Trades Stream](https://ide.bitquery.io/subscribe-to-dex-trades-on-base_1) #### Subscribe to dex trades on base Read the Trading cube vs the Trading cube vs Trades cube to get a better understanding on when to use which cube. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Subscribe to dex trades on base](https://ide.bitquery.io/subscribe-to-dex-trades-on-base) #### Subscription for Latest Trades for AERO This example uses the AERO token; swap in any Base token address. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Subscription for Latest Trades for AERO](https://ide.bitquery.io/Subscription-for-Latest-Trades-for-AERO_1) ### Transfers #### Token Transfers Stream This stream lets you monitor all the token transfers for a particular token. You can modify this subscription to track and monitor token transfers for a particular token from or to a particular address. ▶️ [Token Transfers Stream](https://ide.bitquery.io/Subscribe-to-Latest-USDC-token-transfers) #### Newly created zora tokens stream You can also stream the latest tokens created in real-time using. ▶️ [Newly created zora tokens stream](https://ide.bitquery.io/Newly-created-zora-tokens-stream) #### Sender is a particular address Sender is a particular address. Uses the `Transfers` cube. ▶️ [Sender is a particular address](https://ide.bitquery.io/Sender-is-a-particular-address_3) #### Whale transfers of USDC on base The subscription query below fetches the whale transactions on the Base network. We have used USDC address `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`. ▶️ [Whale transfers of USDC on base](https://ide.bitquery.io/Whale-transfers-of-USDC-on-base) ### Balances & Holders #### Stream Token Balance of a Address in Real Time Subscribe to real-time token balance updates for a specific address and token. This subscription will notify you whenever the token balance changes. ▶️ [Stream Token Balance of a Address in Real Time](https://ide.bitquery.io/Stream-Token-Balance-Updates-in-Real-Time-on-base) #### Subscribe to All Transaction Balances This subscription provides real-time balance updates for all addresses involved in transactions on the Base network. ▶️ [Subscribe to All Transaction Balances](https://ide.bitquery.io/Subscribe-to-All-Transaction-Balances_1) #### Subscribe to Transaction Balances for a Specific Address This subscription filters transaction balances for a specific address in real-time. ▶️ [Subscribe to Transaction Balances for a Specific Address](https://ide.bitquery.io/Subscribe-to-Transaction-Balances-for-a-Specific-Address_1) #### Track Token Balance Changes Monitor token balance changes for a specific token across all transactions. This helps track token movements and transfers. ▶️ [Track Token Balance Changes](https://ide.bitquery.io/Track-Token-Balance-Changes-by-Transaction-on-base) #### Balance update from transfer for an address stream base Balance update from transfer for an address stream base. Uses the `TransactionBalances` cube. Replace the address in the `where` clause to use it. ▶️ [Balance update from transfer for an address stream base](https://ide.bitquery.io/balance-update-from-transfer-for-an-address--stream-base) #### Subscribe to All Transaction Balances base Provides real-time balance updates for all addresses involved in transactions on the Base network. ▶️ [Subscribe to All Transaction Balances base](https://ide.bitquery.io/Subscribe-to-All-Transaction-Balances-base) #### Subscribe to Transaction Balances for a Specific Address base This subscription filters transaction balances for a specific address. ▶️ [Subscribe to Transaction Balances for a Specific Address base](https://ide.bitquery.io/Subscribe-to-Transaction-Balances-for-a-Specific-Address-base) #### Track Block Builder Rewards base Monitor transaction fee rewards received by block builders (MEV extractors) ▶️ [Track Block Builder Rewards base](https://ide.bitquery.io/Track-Block-Builder-Rewards-base) #### Track Transaction Fee Rewards base Monitor transaction fee rewards received by miners. ▶️ [Track Transaction Fee Rewards base](https://ide.bitquery.io/Track-Transaction-Fee-Rewards-base) ### Price & OHLC #### Aerodrome dex - realtime prices, 1-sec ohlc, trading volumes Below API gives you instant access to live Aerodrome market data with pre-calculated OHLC, moving averages, and trading volumes updating every second—no complex calculations needed, just plug and play for your trading bots or analytics platform. ▶️ [Aerodrome dex - realtime prices, 1-sec ohlc, trading volumes](https://ide.bitquery.io/aerodrome-dex---realtime-prices-1-sec-ohlc-trading-volumes) #### Real-time 1 second OHLC This stream provides real time price and OHLC stream for all tokens on Base based on trades. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real-time 1 second OHLC](https://ide.bitquery.io/1-second-OHLC-k-line-Base) #### Price of USDC in terms of DAI on Base network Provides real-time updates on price of USDC `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913` in terms of DAI `0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb`, including details about the DEX, market, and order specifics. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Price of USDC in terms of DAI on Base network](https://ide.bitquery.io/Price-of-USDC-in-terms-of-DAI-on-Base-network) #### Token Price Stream This stream returns the real time trade price of a token against the token it is traded with and the price in USD. You could modify the stream to get the price of the token for a particular token pair or against a particular token. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Token Price Stream](https://ide.bitquery.io/token-price-stream_2) #### Get latest price of DAI in USD on Base Retrieves the USD price of a token on Base chain by setting `SmartContract: {is: "0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb"}` . Check the field `PriceInUSD` for the USD value. You can access the query. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Get latest price of DAI in USD on Base](https://ide.bitquery.io/Get-latest-price-of-DAI-in-USD-on-Base) ### Supply & Market Cap #### Base token market cap stream (Trading API) Subscribe to **`Tokens`** rows for assets whose currency id includes **`base`** (interval duration > 1s). ▶️ [Base token market cap stream (Trading API)](https://ide.bitquery.io/base-token-marketcap-stream) #### Base tokens with market cap above $1 million (Trading API) Subscribe when **`Token.Id`** matches Base and **`Supply.MarketCap`** > 1,000,000 USD. ▶️ [Base tokens with market cap above $1 million (Trading API)](https://ide.bitquery.io/realtime-stream-base-tokens-with-marketcap-above-1-million) #### All trades on Base with Price, Marketcap, supply Stream all Base DEX trades in real time with USD price, market cap, FDV, circulating supply, and transaction fee data. Filter by `Pair.Market.Network: Base` to capture every swap across all Base DEXs in a single subscription. ▶️ [All trades on Base with Price, Marketcap, supply](https://ide.bitquery.io/All-trades-on-Base-with-Price-Marketcap-supply) #### Bankr token realtime marketcap OHLC stream Subscribe to live 1-second OHLC + market cap updates for a specific Bankr token. ▶️ [Bankr token realtime marketcap OHLC stream](https://ide.bitquery.io/Bankr-token-realtime-marketcap-OHLC-stream) #### Base tokens above 100k marketcap stream Stream every Base token currently above $100k FDV. Useful as a high-mcap or "graduated by mcap" alert. ▶️ [Base tokens above 100k marketcap stream](https://ide.bitquery.io/Base-tokens-above-100k-marketcap-stream) ### Liquidity & Pools #### Realtime Slippage Monitoring This subscription query returns real-time slippage data for all DEX pools on Base. You can monitor price impact and liquidity depth as trades occur. ▶️ [Realtime Slippage Monitoring](https://ide.bitquery.io/realtime-slippage-on-base) #### Realtime Liquidity Stream This subscription query returns real-time liquidity data for all DEX pools on Base. You can monitor liquidity changes, pool reserves, and spot prices as trades and liquidity modifications occur across all pools. ▶️ [Realtime Liquidity Stream](https://ide.bitquery.io/Realtime-Liquidity-Stream_3) #### Realtime Liquidity Stream of a Specific Pool This subscription query monitors real-time liquidity changes for a specific DEX pool on Base. Use this to track liquidity events, pool reserves, and spot prices for a particular pool as they occur. ▶️ [Realtime Liquidity Stream of a Specific Pool](https://ide.bitquery.io/Realtime-Liquidity-Stream-of-a-Specific-Pool_3) ### Events & Calls #### Realtime stream Bankr launches Base Convert the above query into a subscription to be notified of every new token the moment it lands on Base. ▶️ [Realtime stream Bankr launches Base](https://ide.bitquery.io/Realtime-stream-Bankr-launches-Base) ### Blocks & Validators #### Monitoring Balance after Latest Gas Fee Burn Monitor the balance and gas fee burnt for a particular address in real-time. ▶️ [Monitoring Balance after Latest Gas Fee Burn](https://ide.bitquery.io/Monitor-balance-and-gas-fee-paid-for-an-address-using-stream_2) #### Track All Self-Destruct Event Balances Monitor all contract self-destruct event balances in real-time. ▶️ [Track All Self-Destruct Event Balances](https://ide.bitquery.io/All-Self-Destruct-Event-Balances-Stream-base_1) #### Track Block Mining Rewards Track rewards received by miners for successfully mining blocks in real-time. ▶️ [Track Block Mining Rewards](https://ide.bitquery.io/Track-Block-Mining-Rewards-base_1) #### Track MEV-Related Balance Updates Monitor balance changes related to MEV activities, including transaction fee rewards and block builder rewards. ▶️ [Track MEV-Related Balance Updates](https://ide.bitquery.io/Track-MEV-Related-Balance-Updates-base_1) #### Track Miner Balance Updates Monitor balance changes for Base miners, including block rewards, uncle block rewards, and transaction fee rewards. ▶️ [Track Miner Balance Updates](https://ide.bitquery.io/Track-Miner-Balance-Updates-BASE_1) #### Track Validator Rewards Track validator rewards and balance increases from staking activities in real-time. ▶️ [Track Validator Rewards](https://ide.bitquery.io/Track-Validator-Balance-Updates-on-base) #### All Self Destruct Event Balances Stream base Monitor all contract self-destruct event balances in real-time using this GraphQL subscription. ▶️ [All Self Destruct Event Balances Stream base](https://ide.bitquery.io/All-Self-Destruct-Event-Balances-Stream-base) #### Filter by MEV Bot or Builder Address base Track balance changes for specific MEV bots or block builders. ▶️ [Filter by MEV Bot or Builder Address base](https://ide.bitquery.io/Filter-by-MEV-Bot-or-Builder-Address-base) #### Filter by Miner Address base Track balance changes for a specific miner address. ▶️ [Filter by Miner Address base](https://ide.bitquery.io/Filter-by-Miner-Address-base) #### Track Block Mining Rewards base Track rewards received by miners for successfully mining blocks. ▶️ [Track Block Mining Rewards base](https://ide.bitquery.io/Track-Block-Mining-Rewards-base) ### Uniswap #### Pair Creation on Uniswap This stream returns the real time liquidity pools/token pairs created on Uniswap V3. You could modify the stream to monitor newly created pools on a different protocol. ▶️ [Pair Creation on Uniswap](https://ide.bitquery.io/Latest-pools-created-Uniswap-v3-Base) #### Uniswap v3 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders 1-second OHLC and volume stream for tokens traded on Uniswap v3 (Base). Great for bot trading strategies. ▶️ [Uniswap v3 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders](https://ide.bitquery.io/Uniswap-v3-DEX-tokens-1-second-price-stream-with-OHLC_1) #### Bankr token V4 swaps realtime Bankr trades clear on the Uniswap V4 singleton. Use the Crypto Trades API (`Trading.Trades`) to stream swap-level rows with USD price, market cap, supply, trader, and V4 pool id. ▶️ [Bankr token V4 swaps realtime](https://ide.bitquery.io/Bankr-token-V4-swaps-realtime) #### Latest Liquidity Changes of Pools in a Specific DEX Protocol - Uniswap V4 This subscription query monitors real-time liquidity changes for all pools in a specific DEX protocol on Base. Here we have taken example of Uniswap V4. ▶️ [Latest Liquidity Changes of Pools in a Specific DEX Protocol - Uniswap V4](https://ide.bitquery.io/Latest-Liquidity-Changes-of-Pools-in-a-Specific-DEX-Protocol---Uniswap-V4_5) #### Real time trades on uniswap v4 base The Uniswap v4 PoolManager contract emits all pool-related events, including pool initialization, swaps, and liquidity modifications, and serves as the single on-chain source of truth for Uniswap v4 activity on Base. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real time trades on uniswap v4 base](https://ide.bitquery.io/Real-time-trades-on-uniswap-v4-base) #### Uniswap v4 pool liquidity base Stream live liquidity for all Uniswap v4 pools on Base. ▶️ [Uniswap v4 pool liquidity base](https://ide.bitquery.io/uniswap-v4-pool-liquidity-base) #### Uniswap v4 pool liquidity by poolid base Liquidity for v4 pools is reconstructed by stepping through each price range where liquidity is concentrated , so `AmountCurrencyA` / `AmountCurrencyB` reflect the actual PoolManager balances for that `PoolId`. ▶️ [Uniswap v4 pool liquidity by poolid base](https://ide.bitquery.io/uniswap-v4-pool-liquidity-by-poolid-base) ## Arbitrum ### Trades #### Arbitrum Dextrades subscription This example uses the chain-specific the Trading cube via `EVM(network: arbitrum) { the Trading cube }` (pool-side Buy/Sell; see the Trading cube). USD can be weak on thin pools. For trader + USD swap rows, use the stream at the top. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Arbitrum Dextrades subscription](https://ide.bitquery.io/Arbitrum-Dextrades-subscription) ### Supply & Market Cap #### Arbitrum token marketcap stream Subscribe to `Tokens` where currency id includes `arbitrum`, with interval duration greater than 1 (second). You get token fields, block time, supply (MarketCap, FullyDilutedValuationUsd), price (OHLC and mean), and volume. ▶️ [Arbitrum token marketcap stream](https://ide.bitquery.io/arbitrum-token-marketcap-stream) #### Realtime stream arbitrum tokens with marketcap above 1 million Subscribe when `Token.Id` matches Arbitrum (`arbitrum`) and `Supply.MarketCap` > 1,000,000 (USD). ▶️ [Realtime stream arbitrum tokens with marketcap above 1 million](https://ide.bitquery.io/realtime-stream-arbitrum-tokens-with-marketcap-above-1-million) ### Liquidity & Pools #### Realtime liquidity stream This subscription query returns real-time liquidity data for all DEX pools on Arbitrum. You can monitor liquidity changes, pool reserves, and spot prices as trades and liquidity modifications occur across all pools. ▶️ [Realtime liquidity stream](https://ide.bitquery.io/realtime-liquidity-stream_1) #### Realtime liquidity stream of a specific pool This subscription query monitors real-time liquidity changes for a specific DEX pool on Arbitrum. Use this to track liquidity events, pool reserves, and spot prices for a particular pool as they occur. ▶️ [Realtime liquidity stream of a specific pool](https://ide.bitquery.io/realtime-liquidity-stream-of-a-specific-pool) #### Realtime slippage on arbitrum This subscription query returns real-time slippage data for all DEX pools on Arbitrum. You can monitor price impact and liquidity depth as trades occur. ▶️ [Realtime slippage on arbitrum](https://ide.bitquery.io/realtime-slippage-on-arbitrum) ### Transactions #### Arbitrum: Timeboost Auction Transactions in Realtime Use the following subscription in the Bitquery IDE to watch every TimeBoost auction interaction. The query filters on the auction contract address and surfaces both transaction context and decoded ABI arguments. ▶️ [Arbitrum: Timeboost Auction Transactions in Realtime](https://ide.bitquery.io/Arbitrum-Timeboost-Auction-Transactions-in-Realtime) ### Uniswap #### Latest liquidity changes in uniswap v4 pools This subscription query monitors real-time liquidity changes for all pools in a specific DEX protocol on Arbitrum. Here we have taken example of Uniswap V4. ▶️ [Latest liquidity changes in uniswap v4 pools](https://ide.bitquery.io/latest-liquidity-changes-in-uniswap-v4-pools) #### Real time trades for uniswap v4 arbitrum The Uniswap v4 PoolManager contract emits all pool-related events, including pool initialization, swaps, and liquidity modifications, and serves as the single on-chain source of truth for Uniswap v4 activity on Arbitrum. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real time trades for uniswap v4 arbitrum](https://ide.bitquery.io/Real-time-trades-for-uniswap-v4-arbitrum) ## Optimism ### Trades #### Real time trades for uniswap v4 optimism The Uniswap v4 PoolManager contract emits all pool-related events, including pool initialization, swaps, and liquidity modifications, and serves as the single on-chain source of truth for Uniswap v4 activity on Optimism. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real time trades for uniswap v4 optimism](https://ide.bitquery.io/Real-time-trades-for-uniswap-v4-optimism) #### Realtime optimism dex trades websocket This example uses the chain-specific the Trading cube via `EVM(network: optimism) { the Trading cube }` (pool-side Buy/Sell; see the Trading cube). USD can be weak on thin pools. For trader + USD swap rows, use the stream at the top. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Realtime optimism dex trades websocket](https://ide.bitquery.io/Realtime-optimism-dex-trades-websocket) ### Transfers #### Sender is a particular address Sender is a particular address. Uses the `Transfers` cube. ▶️ [Sender is a particular address](https://ide.bitquery.io/Sender-is-a-particular-address) #### Whale transfers of USDT on optimism The subscription query below fetches the whale transactions on the Optimism network. We have used USDT address `0x94b008aA00579c1307B0EF2c499aD98a8ce58e58` ▶️ [Whale transfers of USDT on optimism](https://ide.bitquery.io/Whale-transfers-of-USDT-on-optimism) ### Price & OHLC #### Price of WETH in terms of USDC on Optimism Provides real-time updates on price of WETH `0x4200000000000000000000000000000000000006` in terms of USD Coin `0x7f5c764cbc14f9669b88837ca1490cca17c31607`, including details about the DEX, market, and order specifics. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Price of WETH in terms of USDC on Optimism](https://ide.bitquery.io/Price-of-WETH-in-terms-of-USDC-on-Optimism) #### Get latest price of WBTC in USD on optimism Retrieves the USD price of a token on Optimism by setting `SmartContract: {is: "0x68f180fcCe6836688e9084f035309E29Bf0A2095"}` . Check the field `PriceInUSD` for the USD value. You can access the query. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Get latest price of WBTC in USD on optimism](https://ide.bitquery.io/Get-latest-price-of-WBTC-in-USD-on-optimism) ## Polygon ### Trades #### Real time trades for uniswap v4 matic The Uniswap v4 PoolManager contract emits all pool-related events, including pool initialization, swaps, and liquidity modifications, and serves as the single on-chain source of truth for Uniswap v4 activity on Matic. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real time trades for uniswap v4 matic](https://ide.bitquery.io/Real-time-trades-for-uniswap-v4-matic) #### Realtime matic dex trades websocket Read the Trading cube vs the Trading cube vs Trades cube to understand when to use which cube. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Realtime matic dex trades websocket](https://ide.bitquery.io/Realtime-matic-dex-trades-websocket) ### Transfers #### Sender is a particular address Sender is a particular address. Uses the `Transfers` cube. ▶️ [Sender is a particular address](https://ide.bitquery.io/Sender-is-a-particular-address_2) #### Whale transfers of USDC on matic The subscription query below fetches the whale transactions on the MATIC network. We have used USDC address `0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359`. ▶️ [Whale transfers of USDC on matic](https://ide.bitquery.io/Whale-transfers-of-USDC-on-matic) ### Supply & Market Cap #### All trades on Polygon with Price, Marketcap, supply Crypto Trades API: one row per swap, with USD and supply. For Polygon use `Pair.Market.Network: Matic`. When to use this vs chain DEX APIs. ▶️ [All trades on Polygon with Price, Marketcap, supply](https://ide.bitquery.io/All-trades-on-Polygon-with-Price-Marketcap-supply) #### Matic token marketcap stream Subscribe to `Tokens` where currency id includes `matic`, with interval duration greater than 1 (second). ▶️ [Matic token marketcap stream](https://ide.bitquery.io/matic-token-marketcap-stream) ### Liquidity & Pools #### Latest Liquidity Changes of Pools in a Specific DEX Protocol - Uniswap V4 This subscription query monitors real-time liquidity changes for all pools in a specific DEX protocol on Matic. Here we have taken example of Uniswap V4. ▶️ [Latest Liquidity Changes of Pools in a Specific DEX Protocol - Uniswap V4](https://ide.bitquery.io/Latest-Liquidity-Changes-of-Pools-in-a-Specific-DEX-Protocol---Uniswap-V4_7) #### Realtime Liquidity Stream This subscription query returns real-time liquidity data for all DEX pools on Matic. You can monitor liquidity changes, pool reserves, and spot prices as trades and liquidity modifications occur across all pools. ▶️ [Realtime Liquidity Stream](https://ide.bitquery.io/Realtime-Liquidity-Stream_5) #### Realtime Liquidity Stream of a Specific Pool This subscription query monitors real-time liquidity changes for a specific DEX pool on Matic. Use this to track liquidity events, pool reserves, and spot prices for a particular pool as they occur. ▶️ [Realtime Liquidity Stream of a Specific Pool](https://ide.bitquery.io/Realtime-Liquidity-Stream-of-a-Specific-Pool_5) #### Realtime slippage on matic This subscription query returns real-time slippage data for all DEX pools on Matic. You can monitor price impact and liquidity depth as trades occur. ▶️ [Realtime slippage on matic](https://ide.bitquery.io/realtime-slippage-on-matic) ## Trading API ### Trades #### All chains New Trades Stream - Solana, eth, bsc ,base , arbitrum, matic The same `NetworkBid` pattern applies on the Crypto Price API for `Token.NetworkBid` and `Market.NetworkBid` on Tokens and Pairs. ▶️ [All chains New Trades Stream - Solana, eth, bsc ,base , arbitrum, matic](https://ide.bitquery.io/all-chains-New-Trades-Stream---Solana-eth-bsc-base--arbitrum-matic_2) #### All trades of a trader All trades of a trader. Uses the `Trades` cube. Replace the address in the `where` clause to use it. ▶️ [All trades of a trader](https://ide.bitquery.io/All-trades-of-a-trader) #### All wsol Trade Stream All wsol Trade Stream. Uses the `Trades` cube. Replace the address in the `where` clause to use it. ▶️ [All wsol Trade Stream](https://ide.bitquery.io/All-wsol-Trade-Stream) #### How do I get a wallet's trades on a specific pair? Change the `Program` address to target different DEXs — e.g. `6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P` for Pump.fun. ▶️ [How do I get a wallet's trades on a specific pair?](https://ide.bitquery.io/How-do-I-get-a-wallets-trades-on-a-specific-pair) #### How do I monitor multiple wallets in one subscription? How do I monitor multiple wallets in one subscription?. Uses the `Trades` cube. ▶️ [How do I monitor multiple wallets in one subscription?](https://ide.bitquery.io/How-do-I-monitor-multiple-wallets-in-one-subscription) #### How do I monitor multiple wallets trading a specific token? How do I monitor multiple wallets trading a specific token?. Uses the `Trades` cube. ▶️ [How do I monitor multiple wallets trading a specific token?](https://ide.bitquery.io/How-do-I-monitor-multiple-wallets-trading-a-specific-token) #### How do I stream a wallet's trades on a specific DEX? How do I stream a wallet's trades on a specific DEX?. Uses the `Trades` cube. Replace the address in the `where` clause to use it. ▶️ [How do I stream a wallet's trades on a specific DEX?](https://ide.bitquery.io/How-do-I-stream-a-wallets-trades-on-a-specific-DEX) #### How do I stream a wallet's trades on a specific chain? How do I stream a wallet's trades on a specific chain?. Uses the `Trades` cube. Replace the address in the `where` clause to use it. ▶️ [How do I stream a wallet's trades on a specific chain?](https://ide.bitquery.io/How-do-I-stream-a-wallets-trades-on-a-specific-chain) #### How do I stream whale trades for a specific wallet? Adjust the `gt` threshold — e.g. `10000` for $10K+, `1000000` for $1M+ trades. ▶️ [How do I stream whale trades for a specific wallet?](https://ide.bitquery.io/How-do-I-stream-whale-trades-for-a-specific-wallet) #### How do I track trades for multiple tokens in one subscription? There are two ways to track multiple tokens. You can specify token IDs using the `any` combinator to match trades where your tokens appear on either side of the pair. ▶️ [How do I track trades for multiple tokens in one subscription?](https://ide.bitquery.io/How-do-I-track-trades-for-multiple-tokens-in-one-subscription) ### Price & OHLC #### Token price stream from top market (rank 1) Streams the price of one token from its top market, one-second intervals, quoted in USD. Prices the token from its single top market rather than blending every pool, which is what you want for one specific token. ▶️ [Token price stream from top market (rank 1)](https://ide.bitquery.io/Token-price-stream-from-top-market--rank-1) #### FourMeme 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders Track token activity (OHLC, price, volume) every 1 second on FourMeme DEX (BSC). ▶️ [FourMeme 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders](https://ide.bitquery.io/FourMeme-DEX-tokens-1-second-price-stream-with-OHLC) #### PumpAMM 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders PumpAMM 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders. Uses the `Pairs` cube. ▶️ [PumpAMM 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders](https://ide.bitquery.io/PumpAMM-tokens-1-second-price-stream-with-OHLC_1) #### Raydium Launchlab 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders Raydium Launchlab 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders. Uses the `Pairs` cube. ▶️ [Raydium Launchlab 1-second Price, OHLC, Volume, SMA, EMA Stream for Traders](https://ide.bitquery.io/Raydium-Launchpad-DEX-tokens-1-second-price-stream-with-OHLC) #### Heaven DEX tokens 1 second price stream with OHLC Real-time (1s) stream of prices, OHLC, and volumes for tokens traded on Heaven DEX (Solana). ▶️ [Heaven DEX tokens 1 second price stream with OHLC](https://ide.bitquery.io/Heaven-DEX-tokens-1-second-price-stream-with-OHLC) #### Meteora DBC DEX tokens 1 second price stream with OHLC Meteora DBC DEX tokens 1 second price stream with OHLC. Uses the `Pairs` cube. ▶️ [Meteora DBC DEX tokens 1 second price stream with OHLC](https://ide.bitquery.io/Meteora-DBC-DEX-tokens-1-second-price-stream-with-OHLC) #### Real Time USD price on solana chain Real Time USD price on solana chain. Uses the `Pairs` cube. ▶️ [Real Time USD price on solana chain](https://ide.bitquery.io/Real-Time-USD-price-on-solana-chain_2) #### 5 minute price change api on solana 5 minute price change api on solana. Uses the `Tokens` cube. ▶️ [5 minute price change api on solana](https://ide.bitquery.io/5-minute-price-change-api-on-solana_6) #### Bitcoin currency price stream Get real-time Bitcoin OHLC data across all chains. ▶️ [Bitcoin currency price stream](https://ide.bitquery.io/bitcoin-currency-price-stream) ### Supply & Market Cap #### All trades of a specific Ethereum token with Price, Marketcap, supply All trades of a specific Ethereum token with Price, Marketcap, supply. Uses the `Trades` cube. ▶️ [All trades of a specific Ethereum token with Price, Marketcap, supply](https://ide.bitquery.io/All-trades-of-a-specific-Ethereum-token-with-Price-Marketcap-supply_1) ### Liquidity & Pools #### Liquidity addition for radium Subscribe to `Solana.DEXPools` with Raydium’s program and positive base change to detect new liquidity deposited into Raydium pools. ▶️ [Liquidity addition for radium](https://ide.bitquery.io/liquidity-addition-for-radium_1) #### Liquidity removal for radium Use the same Raydium program filter with negative `ChangeAmount` on the base side to stream liquidity withdrawals. ▶️ [Liquidity removal for radium](https://ide.bitquery.io/liquidity-removal-for-radium_1) ### Pump.fun #### All Pumpswap Trade Stream All Pumpswap Trade Stream. Uses the `Trades` cube. ▶️ [All Pumpswap Trade Stream](https://ide.bitquery.io/All-Pumpswap-Trade-Stream) #### All pumpfun Trade Stream All pumpfun Trade Stream. Uses the `Trades` cube. ▶️ [All pumpfun Trade Stream](https://ide.bitquery.io/All-pumpfun-Trade-Stream_2) #### Pump fun token live prices using trades api Pump fun token live prices using trades api. Uses the `Trades` cube. ▶️ [Pump fun token live prices using trades api](https://ide.bitquery.io/pump-fun-token-live-prices-using-trades-api_1) ### PancakeSwap #### Real-time Trades on Pancakeswap Streams PancakeSwap v3 trades on BSC from the Trading cube, with USD price and trade size on every row. Filters on `pancake_swap_v3`. ▶️ [Real-time Trades on Pancakeswap](https://ide.bitquery.io/Latest-BSC-PancakeSwap-v3-dextrades---Stream) #### PancakeSwap v3 DEX tokens 1 second price stream with OHLC PancakeSwap v3 DEX tokens 1 second price stream with OHLC. Uses the `Pairs` cube. Replace the address in the `where` clause to use it. ▶️ [PancakeSwap v3 DEX tokens 1 second price stream with OHLC](https://ide.bitquery.io/PancakeSwap-v3-DEX-tokens-1-second-price-stream-with-OHLC) ### Uniswap #### 1-second price, OHLC, volume, SMA and EMA — Uniswap v3 One-second candles with moving averages for Uniswap v3 tokens, built for trading front-ends. ▶️ [1-second price, OHLC, volume, SMA and EMA — Uniswap v3](https://ide.bitquery.io/Uniswap-v3-DEX-tokens-1-second-price-stream-with-OHLC) #### Stream all Uniswap Seconds OHLC Kline Subscribe to `Trading.Pairs` filtered by Uniswap protocols and 1s interval to power sub-minute charts and HFT analytics. ▶️ [Stream all Uniswap Seconds OHLC Kline](https://ide.bitquery.io/Stream-all-Uniswap-Seconds-OHLC-Kline) #### Uniswap all versions trades stream Filter the Trading cube with `ProtocolName` in `uniswap_v3`, `uniswap_v2`, `uniswap_v1` to stream only Uniswap family pools on mainnet. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Uniswap all versions trades stream](https://ide.bitquery.io/uniswap-all-versions-trades-stream) ## Stablecoins ### Trades #### Solana trades subscription Streams Solana trades quoted in USDT. USDT is the quote side on Solana, so it is filtered with `Pair.QuoteToken`, not `Pair.Token`. ▶️ [Solana trades subscription](https://ide.bitquery.io/solana-trades-subscription_10_1) #### Stablecoin trades for etheruem Stablecoin trades for etheruem. Uses the `DEXTrades` cube. Change the token address in the `where` clause to use it. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. ▶️ [Stablecoin trades for etheruem](https://ide.bitquery.io/Stablecoin-trades-for-etheruem) #### Stablecoin trades for tron Stablecoin trades for tron. Uses the Trading cube. Change the token address in the `where` clause to use it. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Stablecoin trades for tron](https://ide.bitquery.io/Stablecoin-trades-for-tron) #### Stablecoin Depeg tracking Stream for evm Stablecoin Depeg tracking Stream for evm. Uses the `DEXTradeByTokens` cube. Change the token address in the `where` clause to use it. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. ▶️ [Stablecoin Depeg tracking Stream for evm](https://ide.bitquery.io/Stablecoin-Depeg-tracking-Stream-for-evm) #### Stablecoin Depeg tracking Stream for tron Stablecoin Depeg tracking Stream for tron. Uses the Trading cube. Change the token address in the `where` clause to use it. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Stablecoin Depeg tracking Stream for tron](https://ide.bitquery.io/Stablecoin-Depeg-tracking-Stream-for-tron) #### Stablecoin depeg tracking stream for USDC Below stream will be able to track specific Stablecoin depeg. In this query example, we are tracking depeg for the stablecoin `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` which has a symbol `USDC`. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Stablecoin depeg tracking stream for USDC](https://ide.bitquery.io/stablecoin-depeg-tracking-stream-for-USDC) ### Transfers #### Latest Tron USDT Transfers stream Listen to stablecoin payments across all major blockchains. The Mempool option lets you detect a payment *before* it is confirmed — useful for instant merchant UX. ▶️ [Latest Tron USDT Transfers stream](https://ide.bitquery.io/Latest-Tron-USDT-Transfers-stream) #### Latest USDT/USDC Transfer Stream on BSC Listen to stablecoin payments across all major blockchains. The Mempool option lets you detect a payment *before* it is confirmed — useful for instant merchant UX. ▶️ [Latest USDT/USDC Transfer Stream on BSC](https://ide.bitquery.io/Latest-USDTUSDC-Transfer-Stream-on-BSC) #### Latest USDT/USDC Transfer stream on base Listen to stablecoin payments across all major blockchains. The Mempool option lets you detect a payment *before* it is confirmed — useful for instant merchant UX. ▶️ [Latest USDT/USDC Transfer stream on base](https://ide.bitquery.io/Latest-USDTUSDC-Transfer-stream-on-base) #### Latest USDT/USDC Transfer stream on ethereum Listen to stablecoin payments across all major blockchains. The Mempool option lets you detect a payment *before* it is confirmed — useful for instant merchant UX. ▶️ [Latest USDT/USDC Transfer stream on ethereum](https://ide.bitquery.io/Latest-USDTUSDC-Transfer-stream-on-ethereum) #### Listening to All USDT and USDC Payments on Solana - stream Listening to All USDT and USDC Payments on Solana - stream. Uses the `Transfers` cube. Change the token address in the `where` clause to use it. ▶️ [Listening to All USDT and USDC Payments on Solana - stream](https://ide.bitquery.io/Listening-to-All-USDT-and-USDC-Payments-on-Solana---stream) #### Listening to stablecoin Transfers for Specific Addresse on tron Listen to USDT sent or received by address `TUTQj7VJ1QjR3t2GJByvrP25yZNFcj38VJ`. This is the canonical "merchant/treasury wallet monitor" pattern — fan-out one subscription per wallet and route hits to your payments backend. ▶️ [Listening to stablecoin Transfers for Specific Addresse on tron](https://ide.bitquery.io/Listening-to-stablecoin-Transfers-for-Specific-Addresse-on-tron) #### Stablecoin Realtime Payments Stream on Eth Mainnet Stablecoin Realtime Payments Stream on Eth Mainnet. Uses the `Transfers` cube. Change the token address in the `where` clause to use it. ▶️ [Stablecoin Realtime Payments Stream on Eth Mainnet](https://ide.bitquery.io/Stablecoin-Realtime-Payments-Stream-on-Eth-Mainnet) #### Stablecoin Realtime Transfers Stream on tron Stablecoin Realtime Transfers Stream on tron. Uses the `Transfers` cube. Change the token address in the `where` clause to use it. ▶️ [Stablecoin Realtime Transfers Stream on tron](https://ide.bitquery.io/Stablecoin-Realtime-Transfers-Stream-on-tron) #### Stablecoin transfers websocket Stablecoin transfers websocket. Uses the `Transfers` cube. Change the token address in the `where` clause to use it. ▶️ [Stablecoin transfers websocket](https://ide.bitquery.io/stablecoin-transfers-websocket) #### USDT and USDC token Transfers stream on solana USDT and USDC token Transfers stream on solana. Uses the `Transfers` cube. ▶️ [USDT and USDC token Transfers stream on solana](https://ide.bitquery.io/USDT-and-USDC-token-Transfers-stream-on-solana) ### Balances & Holders #### Real time stablecoin portfolio Below stream will provide you the realtime portfolio updates for a particular address for a specific Stablecoin. In this query example, we are tracking portfolio updates for the address `3i51cKbLbaKAqvRJdCUaq9hsnvf9kqCfMujNgFj7nRKt` and for stablecoin `USDC`. Trading cube - MEV-filtered trades with USD prices on every row. ▶️ [Real time stablecoin portfolio](https://ide.bitquery.io/real-time-stablecoin-portfolio_2) ### Price & OHLC #### Stablecoin 1 sec Price Stream This subscription gives you 1-second OHLC, mean price, averages for all stablecoins including USDC, USDT, DAI, USDS etc. ▶️ [Stablecoin 1 sec Price Stream](https://ide.bitquery.io/stablecoin-1-second-price-stream) #### Stablecoin price stream of USDT Get real-time and historical USDT prices, OHLCV, and moving averages across supported networks and markets. ▶️ [Stablecoin price stream of USDT](https://ide.bitquery.io/stablecoin-price-stream-of-USDT_2) ### Supply & Market Cap #### USDT Stablecoin reserves on Solana USDT Stablecoin reserves on Solana. Uses the `TokenSupplyUpdates` cube. Change the token address in the `where` clause to use it. ▶️ [USDT Stablecoin reserves on Solana](https://ide.bitquery.io/USDT-Stablecoin-reserves-on-Solana) ### Mempool #### Latest Tron USDT Transfers stream in Mempool Listen to stablecoin payments across all major blockchains. The Mempool option lets you detect a payment *before* it is confirmed — useful for instant merchant UX. ▶️ [Latest Tron USDT Transfers stream in Mempool](https://ide.bitquery.io/Latest-Tron-USDT-Transfers-stream-in-Mempool) #### Latest USDT/USDC Transfer Stream on BSC on Mempool Listen to stablecoin payments across all major blockchains. The Mempool option lets you detect a payment *before* it is confirmed — useful for instant merchant UX. ▶️ [Latest USDT/USDC Transfer Stream on BSC on Mempool](https://ide.bitquery.io/Latest-USDTUSDC-Transfer-Stream-on-BSC-on-Mempool) #### Latest USDT/USDC Transfer stream on ethereum in Mempool Listen to stablecoin payments across all major blockchains. The Mempool option lets you detect a payment *before* it is confirmed — useful for instant merchant UX. ▶️ [Latest USDT/USDC Transfer stream on ethereum in Mempool](https://ide.bitquery.io/Latest-USDTUSDC-Transfer-stream-on-ethereum-in-Mempool) ## NFTs ### Trades #### NFT Trades on Opensea This stream allows you to monitor real time NFT trades on OpenSea. It could also be modified to get trades of a particular NFT collection or NFTs traded by a particular trader. Built from raw DEX trades, so it carries per-swap detail the Trading cube normalises away. For a clean USD price feed prefer the Trading cube entries at the top of this section. ▶️ [NFT Trades on Opensea](https://ide.bitquery.io/Latests-OpenSea-Trades--stream) #### Latest Solana NFT Trades Streams the latest Solana NFT trades from the Trading cube, with USD price and trade size on every row. ▶️ [Latest Solana NFT Trades](https://ide.bitquery.io/Latest-Solana-NFT-Trades) ### Transfers #### ERC-721 (NFT) transfers NFT transfers as they are mined, with token IDs. ▶️ [ERC-721 (NFT) transfers](https://ide.bitquery.io/ERC721-token-transfers) #### Subscription WebSocket - Latest NFT Transfers Using Streaming APIs, you can subscribe to real-time changes on blockchains. We use a GraphQL subscription,which function similarly to WebSockets. ▶️ [Subscription WebSocket - Latest NFT Transfers](https://ide.bitquery.io/Subscription-WebSocket---Latest-NFT-Transfers) #### Subscribe to the latest NFT transfers on Solana Let's see an example of NFT token transfers using GraphQL Subscription (Webhook). In the following API, we will be subscribing to all NFT token transfers. ▶️ [Subscribe to the latest NFT transfers on Solana](https://ide.bitquery.io/Subscribe-to-the-latest-NFT-transfers-on-Solana) #### NFT Token Transfers API NFT Token Transfers API. ▶️ [NFT Token Transfers API](https://ide.bitquery.io/NFT-Token-Transfers-API_4) #### Transfers of a particular NFT This query subscribes you to the real time transfers of a specific non-fungible token (NFT) on the Base network. ▶️ [Transfers of a particular NFT](https://ide.bitquery.io/Transfers-of-a-particular-NFT_1) #### Track realtime NFT Transfers of a specific NFT on BSC chain This query subscribes you to the real time non-fungible token (NFT) transfers of a specific nft contract on the BSC network. ▶️ [Track realtime NFT Transfers of a specific NFT on BSC chain](https://ide.bitquery.io/Track-realtime-NFT-Transfers-of-a-specific-NFT-on-BSC-chain) #### Track realtime NFT Transfers on BSC chain Track realtime NFT Transfers on BSC chain. ▶️ [Track realtime NFT Transfers on BSC chain](https://ide.bitquery.io/Track-realtime-NFT-Transfers-on-BSC-chain) #### Websocket for tracking Transfers of a particular NFT websocket This query subscribes you to the real time transfers of a specific non-fungible token (NFT) on the Tron network. ▶️ [Websocket for tracking Transfers of a particular NFT websocket](https://ide.bitquery.io/Websocket-for-tracking-Transfers-of-a-particular-NFT-websocket) #### Real-time-transfer-websocket-for-NFT-token on matic This query subscribes you to the real time transfers of a specific non-fungible token (NFT) on the Matic network. ▶️ [Real-time-transfer-websocket-for-NFT-token on matic](https://ide.bitquery.io/Real-time-transfer-websocket-for-NFT-token-on-matic) ### Balances & Holders #### Stream NFT Balance Updates in Real Time Subscribe to real-time NFT balance updates for a specific address and collection. This subscription will notify you whenever NFT ownership changes. ▶️ [Stream NFT Balance Updates in Real Time](https://ide.bitquery.io/Stream-NFT-Balance-Updates-in-Real-Time) #### Track Specific NFT Balance Changes Monitor NFT transfers for a specific collection across all transactions. This helps track NFT movements and ownership changes. ▶️ [Track Specific NFT Balance Changes](https://ide.bitquery.io/Track-specific-NFTs-Balance-Changes) ## x402 ### Transfers #### Real-Time Payment Monitoring for x402 Server Real-Time Payment Monitoring for x402 Server. Uses the `Transfers` cube. ▶️ [Real-Time Payment Monitoring for x402 Server](https://ide.bitquery.io/Monitoring-the-latest-payment-to-the-specific-X402-server) #### Real-Time Payment Monitoring for x402 Server on Solana Real-Time Payment Monitoring for x402 Server on Solana. Uses the `Transfers` cube. Replace the address in the `where` clause to use it. ▶️ [Real-Time Payment Monitoring for x402 Server on Solana](https://ide.bitquery.io/Real-Time---Solana-transfers-stream) --- ## Stellar Data - Snowflake, AWS S3, BigQuery URL: https://docs.bitquery.io/docs/cloud/stellar/ Stellar Data - Snowflake, AWS S3, BigQuery from Bitquery cloud datasets using Parquet historical exports for S3, BigQuery, and Snowflake. # Stellar Data Bitquery provides **Stellar blockchain data** as **Parquet exports** from the [Bitquery Data Store](https://bitquery.io/datastore), designed for large-scale analytics, historical backfills, and data lake integrations. These datasets can be hosted directly in your own cloud storage (for example, **AWS S3**) and queried using engines like **Snowflake, BigQuery, Athena, Spark, etc**. Stellar data is modelled around **ledgers → transactions → operations → effects**, so most topics carry the transaction and operation context alongside the topic-specific fields. ## Available Stellar Topics For Stellar, Bitquery currently provides the following datasets: - **Blocks** – Ledger-level metadata (protocol version, base fee, base reserve, fee pool, total coins) - **Transactions** – Full transaction-level data with fee account, memo, sequence, and time bounds - **Operations** – Operation-level records with source account and operation details - **Payments** – Payment and path-payment operations, including source and destination assets - **Transfers** – Native XLM and issued-asset transfers with sender, receiver, and direction - **Effects** – Ledger effects produced by operations - **Effect Arguments** – Key/value arguments attached to each effect - **Balance Effects** – Account balance changes per asset - **Trade Effects** – DEX trades on the Stellar order book, with buy/sell assets and price - **Claimable Balance Effects** – Claimable balance creation and claiming, with claimant and sponsor - **Liquidity Pool Effects** – Liquidity pool deposits, withdrawals, and share changes - **Liquidity Pool Trade Effects** – Trades executed against liquidity pools ## Sample Stellar Cloud Dataset You can explore schemas and validate your tooling using the **public Stellar sample datasets**: **GitHub reference (schemas & examples)** [https://github.com/bitquery/blockchain-cloud-data-dump-sample/tree/main/Stellar](https://github.com/bitquery/blockchain-cloud-data-dump-sample/tree/main/Stellar) **Example Parquet file (public S3)** ``` https://bitquery-blockchain-dataset.s3.us-east-1.amazonaws.com/stellar/payments_tx/.parquet ``` **Sample Parquet downloads (public S3)** - **Blocks** – [Download](https://bitquery-blockchain-dataset.s3.us-east-1.amazonaws.com/stellar/blocks/55080300_55080349.parquet) - **Transactions** – [Download](https://bitquery-blockchain-dataset.s3.us-east-1.amazonaws.com/stellar/transactions/55080300_55080349.parquet) - **Operations** – [Download](https://bitquery-blockchain-dataset.s3.us-east-1.amazonaws.com/stellar/operations_tx/55080300_55080349.parquet) - **Payments** – [Download](https://bitquery-blockchain-dataset.s3.us-east-1.amazonaws.com/stellar/payments_tx/55080300_55080349.parquet) - **Transfers** – [Download](https://bitquery-blockchain-dataset.s3.us-east-1.amazonaws.com/stellar/transfers_tx/55080300_55080349.parquet) - **Trade Effects** – [Download](https://bitquery-blockchain-dataset.s3.us-east-1.amazonaws.com/stellar/trade_effects_tx/55080300_55080349.parquet) ## Stellar Dataset Directory Structure ```text bitquery-blockchain-dataset/ └── stellar/ ├── balance_effects_tx/ │ ├── _.parquet │ └── ... ├── blocks/ │ ├── _.parquet │ └── ... ├── claimable_balance_effects/ │ ├── _.parquet │ └── ... ├── effect_arguments_tx/ │ ├── _.parquet │ └── ... ├── effects_tx/ │ ├── _.parquet │ └── ... ├── liquidity_pool_effects/ │ ├── _.parquet │ └── ... ├── liquidity_pool_trade_effects/ │ ├── _.parquet │ └── ... ├── operations_tx/ │ ├── _.parquet │ └── ... ├── payments_tx/ │ ├── _.parquet │ └── ... ├── trade_effects_tx/ │ ├── _.parquet │ └── ... ├── transactions/ │ ├── _.parquet │ └── ... └── transfers_tx/ ├── _.parquet └── ... ``` ### Block Range Naming Convention Each Parquet file name follows this format: ``` _.parquet ``` Example: ``` 55080300_55080349.parquet ``` Here `block` is the Stellar **ledger sequence number**. ### Common Fields Most Stellar topics share the same transaction and operation context columns, which makes joining across topics straightforward: - `block`, `tx_date`, `tx_time` – ledger sequence, date partition, and ledger close time - `tx_hash`, `tx_hash_bin`, `tx_index`, `transaction_index` – transaction identity - `operation`, `op_index`, `operation_index`, `operation_name`, `op_source_account` – operation identity - `effect`, `effect_index`, `order` – effect identity on the effect-based topics - `*_annotation` fields – Bitquery address labels, empty when the address is unlabelled - Asset columns are prefixed per role: `currency_from_*` / `currency_to_*` on payments and transfers, `buy_currency_*` / `sell_currency_*` on trade effects ## Get Full Access [Buy on the Data Store](https://bitquery.io/datastore/datasets) or email **sales@bitquery.io** for custom ranges. A Data Store purchase is downloaded from a Requester Pays S3 bucket or a Cloudflare R2 bucket, chosen at checkout. Custom exports can be delivered into your own S3, GCS or R2 bucket, or as a Snowflake or BigQuery share. To trial it first, [fill the API form](https://bitquery.io/forms/api). ## Reading Files with DuckDB No key, no client library — point DuckDB at the public sample directly: ```sql SELECT * FROM read_parquet('https://bitquery-blockchain-dataset.s3.us-east-1.amazonaws.com/stellar/blocks/55080300_55080349.parquet') LIMIT 10; ``` ## Reading Files in Python ```python df = pd.read_parquet("https://bitquery-blockchain-dataset.s3.us-east-1.amazonaws.com/stellar/blocks/55080300_55080349.parquet") print(df.info()) df.head() ``` ## Real-Time vs Batch Data Access Data Store exports are optimized for **batch analytics and historical workloads**. If you require **low-latency or streaming Stellar data**, Bitquery also provides: - [**Kafka streams**](/docs/streams/kafka-streaming-concepts/) - **GraphQL subscriptions** --- ## Stream Solana Transactions with gRPC | Bitquery CoreCast URL: https://docs.bitquery.io/docs/grpc/solana/topics/transactions/ Stream Solana transactions over gRPC with Bitquery CoreCast: filter by program or signer and get IDL-parsed instructions, logs and balance changes in protobuf. # Stream Solana Transactions with gRPC (Bitquery CoreCast) To stream Solana transactions over gRPC, open a `transactions` stream on Bitquery CoreCast at `corecast.bitquery.io` with your Bitquery API token and at least one filter: a program address or a signer. Each message is one transaction with its signature, status, fee, balance changes, logs and IDL-parsed instructions, sent as protobuf. --- ## Overview Subscribe to live Solana transactions with filtering by program or signer. Each event includes parsed instructions (IDL), balance updates, program logs, and execution status. Data is in **protobuf format**; use `bitquery-corecast-proto` to parse it. Yellowstone gRPC sends the same transactions with instruction data as raw bytes for your client to decode; see [how CoreCast differs from Yellowstone gRPC](/docs/grpc/solana/introduction/#corecast-vs-yellowstone-grpc). ## Configuration To subscribe to transactions, configure your stream as follows. At least one filter is required. ```yaml server: address: "corecast.bitquery.io" authorization: "" insecure: false stream: type: "transactions" filters: programs: - "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P" # Pump.fun ``` ## Available Data The transactions stream provides comprehensive transaction information including: - **Transaction details**: Slot, signature, status, fees (in native and USD) - **Account information**: Signers, accounts, program IDs - **Balance updates**: Pre/post balances for all accounts - **Parsed instructions**: IDL-parsed program calls with arguments and logs - **Program execution**: Success/failure status and error messages ## Sample Data Structure Here's an example of the data structure you'll receive: ```json { "Block": { "Slot": 370030401 }, "Transaction": { "Index": 455, "Signature": "2gyW9NtqCRwsGGWoeJkGGQNPrQfcDT2dBQxUKXXVcC7QQbNBey9DtQLNkCRn7yU5N1H8YcFQESTC6KbQ7n1HyTwj", "Status": { "Success": true, "ErrorMessage": "" }, "Header": { ... ], "Accounts": [ ... ] }, "FeeInUsd": 0.00075, "TotalBalanceUpdates": [ { "PreBalance": 82844277367, "PostBalance": 82844272367, "AccountIndex": 0 }, ... ], "ParsedIdlInstructions": [ { "Index": 0, "Depth": 0, "CallerIndex": -1, "ExternalSeqNumber": 1, "InternalSeqNumber": 0, "Program": { "Address": "Vote111111111111111111111111111111111111111", "Parsed": true, "Name": "vote", "Method": "TowerSync", ... }, "Accounts": [ { "Address": "C616NHpqpaiYpqVAv619QL73vEqKJs1mjsJLtAuCzMX6", "IsSigner": false, "IsWritable": true }, { "Address": "ETcW7iuVraMKLMJayNCCsr9bLvKrJPDczy1CMVMPmXTc", "IsSigner": true, "IsWritable": true } ], "Logs": [ "Program Vote111111111111111111111111111111111111111 invoke [1]", "Program Vote111111111111111111111111111111111111111 success" ], "Data": ... } ] } } ``` ## Key Points - **Named arguments**: Each parsed instruction carries its arguments and account names, so you do not decode bytes - **Balance tracking**: Balances before and after the transaction for every account it touched - **Logs**: Execution logs show each invocation and whether it succeeded - **Whole chain**: The stream covers every Solana program, not only DEXs ## Filtering Options The filter options are defined in the `request.proto` file. You can filter transactions using the following filters: ```protobuf message SubscribeTransactionsRequest { AddressFilter program; AddressFilter signer; } ``` Available filters: - **program**: Filter by program address (e.g., Vote, Token, System) - **signer**: Filter by signer's address ### Calls versus account references {#program-filter-rule} A `program` filter returns a transaction when at least one instruction calls that address, at the top level or as an inner (CPI) instruction. Failed transactions are included. A transaction that only lists the address as an account, without calling it, is not returned. Yellowstone gRPC's `account_include` filter matches any account a transaction uses. The same address can therefore return more transactions there. ## Schema Reference - **Protobuf Schema**: [parsed_idl_block_message.proto](https://github.com/bitquery/streaming_protobuf/blob/main/solana/parsed_idl_block_message.proto) - **Sample Data**: [solana_transaction.json](https://github.com/bitquery/grpc-code-samples/blob/main/data-sample/solana_tx.json) ## Python Installation For Python development, install the protobuf package: ```bash pip install bitquery-corecast-proto ``` ## NPM Package ```bash npm install bitquery-corecast-proto ``` This package includes all necessary protobuf definitions without requiring manual downloads. --- ## Related - [CoreCast Introduction](/docs/grpc/solana/introduction/): Topics and concepts - [DEX Trades gRPC](/docs/grpc/solana/topics/dextrades/): DEX swap stream - [Authorization](/docs/grpc/solana/authorization/): Token setup --- ## Subscribe to Real-Time Blockchain Data URL: https://docs.bitquery.io/docs/start/getting-updates/ Subscribe to Real-Time Blockchain Data: practical Bitquery setup guidance with examples for authentication, endpoints, and first queries. # Subscribing to Real-Time Data After you have created and successfully run [your first query](/docs/start/first-query), it is time to get updates on the new data coming. It is just as easy as replacing "query" with "subscription" on the first line in the editor. Here, we will edit the query to use the BSC network so that it will now read as: ```graphql subscription RealTimeBlocks { EVM(network: bsc) { Blocks { Block { Number } } } } ``` The run button now again becomes green. But now, when you press it, you will not immediately get results, as it will wait for a new block to be formed. In the BSC network, blocks typically come in 3-4 seconds. Hence, you will see this sequence after some time on the result panel: > Query used: [Real Time Blocks Subscription | BSC](https://ide.bitquery.io/Real-Time-Blocks-Subscription--BSC) To stop updates, press the run button again. :::caution Resources usage Please note that as long as data is being received, the box on the right will continue to populate, which has no text limit, so make sure you don't waste your resources! ::: Read more about subscriptions and creating websockets [here](/docs/subscriptions/subscription/) --- ## Subscribing to Mempool Updates URL: https://docs.bitquery.io/docs/subscriptions/mempool-subscriptions/ Subscribing to Mempool Updates using Bitquery GraphQL subscriptions over WebSocket for live multi-chain blockchain monitoring. # Subscribing to Mempool Updates The Mempool API allows you to access real-time data from the mempool for EVM chains including Ethereum, and BNB chains. You can use this API to monitor transactions, token trades, transfers, and any data stored in the mempool. Check examples [in this page](/docs/blockchain/Ethereum/mempool/mempool-api/). ## Understanding Mempool Queries When querying the mempool using the parameter `mempool: true`, it's important to know that the results do not directly reflect the live state of the mempool. Instead, this query returns transactions that have been broadcasted but may already be included in confirmed blocks. Therefore, use subscription to get Mempool data. ## What distinguishes mempool from standard on-chain data subscription Mempool subscriptions differ from regular subscriptions. This subscription involves a stream of broadcasted transactions, differing from standard on-chain data subscriptions in various aspects: - Transactions arrive in a random sequence. - Each transaction appears only once, even if the transaction has been broadcasted multiple times. - The `mempool:true` query showcases broadcasted transactions upto past hour and not earlier than that. - When using TX time (transaction time), remember it's exclusive to mempool queries, not standard ones. ### Advanced Query Strategies To distinguish between pending and confirmed transactions, use a two-step approach combining `mempool: true` for unconfirmed transactions and `mempool: false` for confirmed ones. ```graphql subscription { confirmed: EVM(mempool: false) { Transactions { Block { Time Number } Transaction { Hash Cost To From } } } } ``` Mempool Transactions ```graphql subscription { mempool_transactions: EVM(mempool: true) { Transactions { Block { Time Number } Transaction { Hash Cost To From } } } } ``` --- ## Subscription on Aggregated Metrics URL: https://docs.bitquery.io/docs/graphql/capabilities/subscription_aggregates/ Subscription on Aggregated Metrics in Bitquery GraphQL with clear syntax, examples, and tips for fast blockchain queries and streams. # Subscription on Aggregated Metrics It is a subscription to the results of [Query Aggregated Metrics](/docs/graphql/capabilities/aggregated_metrics). Query can be converted to subscription by replacing ```query``` word with ```subscription```. With every new block the aggregate will be calculated over the new data and **update** to the aggregates will be sent as a result. Note that in this case you will not get the re-calculation of the whole query, but the update to the previously calculated aggregate. This subscription is appropriate when: 1. application is not capable to process raw stream of the data; 2. the new data is used to be displayed or used inside the application in an aggregated form. --- ## Subscription on Facts URL: https://docs.bitquery.io/docs/graphql/capabilities/subscription_facts/ Subscription on Facts in Bitquery GraphQL with clear syntax, examples, and tips for fast blockchain queries and streams. # Subscription on Facts It is a subscription to the results of [Query Fact Records](/docs/graphql/capabilities/query_fact_records). Query can be converted to subscription by replacing ```query``` word with ```subscription```. Every new block on the blockchain will send the data to this subscription if it contains the data for the query. It can be one or more records. If the block does not contain data that you query, it will not trigger the results. This subscription is appropriate when: 1. application is capable to process raw stream of the data; 2. minimum delay required between the data in the blockchain and the application; 3. notification is required on trigger, defined on some specific conditions. --- ## Token Holders and Wallet Balances on the Bitquery MCP URL: https://docs.bitquery.io/docs/mcp/holders-balances/ Export every holder of a token or coin, or check the current balance of wallets you already have, on Tron, Ethereum, BSC, Base, Arbitrum, Optimism, Polygon, Robinhood Chain and Arc through the Bitquery MCP server. # Token Holders and Wallet Balances Two tools on the [Bitquery MCP server](/docs/mcp/mcp-server/) answer balance questions for a whole chain. They exist on nine chains under the chain's prefix: `tron_`, `eth_`, `bsc_`, `base_`, `arbitrum_`, `optimism_`, `matic_` (Polygon), `robinhood_` and `arc_`. | Tool | Use it when | Comes back as | | --- | --- | --- | | `_token_holders` | You need the addresses that hold an asset and do not have them yet | One row per holder with its current balance | | `_native_balances` | You already have up to 50 addresses and want each one's current native coin balance | One row per address | Balances are in the asset's own units, never USD. `Decimals` gives the scale. Pass the holder addresses to `labels_for_addresses` to see which are exchanges, bridges or known entities. ## Export the holders of an asset Ask for the asset by contract address, or by the native coin's name. The agent pages through the list and can write each page to a file. _"Export every Tron address holding at least 1 TRX. Use tron_token_holders with limit 10000, follow Next_Cursor until it is empty, and write each page to holders.csv."_ ### Tron `tron_token_holders` takes `token` (a TRC-20 contract address starting with `T`, or `TRX` for the native coin), `min_amount` (default 1), `limit` (up to 10,000 per page) and `cursor`. Each row carries `Holder`, `Balance`, `Decimals`, `Symbol`, `Status` and `Next_Cursor`. - TRC-20 holders come back largest balance first. - Native TRX holders come back in address order, not ranked. The native holder set is too large to rank. `min_amount` is the filter that matters: the default `1` returns holders of 1 TRX or more, and `0` returns every funded address, which is very many pages. - Pass `Next_Cursor` from one page into `cursor` on the next call, keeping the same `token`, `min_amount` and `limit`. An empty page that still has a `Next_Cursor` means keep going. An empty `Next_Cursor` means the list is complete. - A holder never appears on two pages, so the pages joined together are the full list. - A row with an empty `Holder` is a status row. Read `Status`: `OK`, `EMPTY_WINDOW`, `TOO_LARGE`, `NO_HOLDERS` or `BAD_CURSOR`. A token with a very long balance history, such as USDT, returns `TOO_LARGE`. - TRC-10 assets are not supported. A first page for native TRX with `limit: 3` looks like this: | Holder | Balance | Symbol | Status | Next_Cursor | | --- | --- | --- | --- | --- | | T9yD14Nj9j7xAB4dbGeiX9h8unkKLxmGkn | 541.821241 | TRX | OK | T9yD14Nj9j7xAB4dbGeiX9h8unkP29JXHW | | T9yD14Nj9j7xAB4dbGeiX9h8unkKT76qbH | 3.915384 | TRX | OK | T9yD14Nj9j7xAB4dbGeiX9h8unkP29JXHW | | T9yD14Nj9j7xAB4dbGeiX9h8unkP29JXHW | 88.11091 | TRX | OK | T9yD14Nj9j7xAB4dbGeiX9h8unkP29JXHW | ### EVM chains `_token_holders` takes a token contract address and ranks holders largest first, up to 1,000 per page. `min_amount` and `max_amount` bound the balances returned; `max_amount` is how you look past a burn address that holds most of the supply. - `days: 0` (the default) ranks every holder over the token's whole history. A very widely held token, such as a major stablecoin, has too much history for that and answers with one `TOO_LARGE` status row instead of timing out. - Then pass `days: 30` (or `7`). The page ranks the holders whose balance changed in that window, with exact current balances. Holders who did not move the token in the window are absent, so the page is the top of the active holders. - `Next_Cursor` is a date. Pass it as `cursor` to get the next older window of the same length. No holder appears on two pages, so the top N of all pages merged is the global top N. `Window_From` and `Window_To` say which dates a page covers. - Holders with a negative recorded balance are dropped and counted in `Negative_Balances_Excluded`. A balance far above the token's supply is a data artifact, not a whale: check it with `token_supply` before reporting it. - `Symbol_NonAscii = 1` flags a symbol with non-ASCII letters. That is normal for CJK or emoji names, and also how a scam token imitates a major one. ## Check balances of wallets you already have _"Here are 50 Tron addresses. Give me each one's current TRX balance and keep only those above 100 TRX."_ Pass the addresses in one string separated by `|`, up to 50 per call. Addresses after the 50th distinct one are ignored, so compare `Addresses_Requested` with `Addresses_Used` and split a longer list into several calls. Each row carries `Address`, `Native_Balance`, `Native_Balance_Raw` (the exact integer, in sun or wei) and `Balance_As_Of`. ### Tron `tron_native_balances` sums each address's whole balance history, so a funded wallet that has not moved in years still gets a row. `Balance_Inconsistent = 1` marks a rare negative sum, usually a missing or doubled delta in the log; treat that balance as suspect. A set that includes a very busy wallet may be refused on the row budget; split it. | Address | Native_Balance | Native_Balance_Raw | Balance_As_Of | | --- | --- | --- | --- | | T9yD14Nj9j7xAB4dbGeiX9h8unkKLxmGkn | 541.821241 | 541821241 | 2026-08-05T13:57:24Z | | T9yD14Nj9j7xAB4dbGeiX9h8unkP29JXHW | 88.11091 | 88110910 | 2022-09-26T10:03:45Z | ### EVM chains `_native_balances` reads only balances updated in the last `since_days` days (default 2, up to 30). A wallet that has not moved its native coin in that window returns no row. Use the same window you used to find the wallets, for example the window of `eth_token_senders`: an active wallet's balance is always fresh there, and a wider window costs more for no gain. ## Large exports - For a file export, pass `limit: 10000` on Tron and `format: "columnar"`. Columnar returns the column names once and each row as a list of values, so the same data takes less room. - Run the paging loop from a script, or ask the agent to write each page to a file. A chat client may cut off a long result shown inline. - Where a GraphQL query is the better fit, for example the top 100 holders of one token with no paging, see the [Tron balance API](/docs/blockchain/Tron/tron-balance-updates/) and the [Ethereum token holders API](/docs/blockchain/Ethereum/token-holders/token-holder-api/). --- ## Tools & SDKs Directory URL: https://docs.bitquery.io/docs/tools-directory/ Bitquery tools and SDKs: live apps and dashboards, open-source GitHub apps, charting and trading tools, OpenClaw agent skills, and npm packages. # Tools & SDKs Directory Explore **sample applications**, **dashboards**, and **SDKs** built with Bitquery blockchain data. Use these tools to analyze tokens, monitor liquidity, score DeFi portfolios, build charts, or integrate real-time crypto data into your own apps. Each entry includes source code (GitHub), documentation, and—where available—a live demo you can try. For a complete list of step-by-step tutorials (bots, snipers, dashboards, wash trading, NFT tools), see the [How-To Guides index](/docs/category/how-to-guides/). --- ## Apps & Dashboards (UI-based) Ready-to-use web apps and dashboards powered by Bitquery APIs. Many include a live demo, GitHub repository, and a step-by-step how-to guide in our docs. ### Try live & documented | Tool | Description | Try it | How-to guide | Source | | -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- | --------------------------------------------------------- | ----------------------------------------------------------------------------- | | **PolyBit — Polymarket Alerts Telegram Bot** | Telegram bot that pushes alerts to you based on your set trade size, share price, trader wallet, or specific market. You can set multiple alerts. | [Add on Telegram](https://t.me/PolyBit_Polymarket_Bot) | [Guide](/docs/usecases/polymarket-tg-alerts-bot) | [GitHub](https://github.com/Akshat-cs/PolyBit-Polymarket-Alerts-Telegram-Bot) | | **Pump.fun Token Sniffer** | Analyze Pump.fun (Solana) token metrics: holder distribution, transfer vs purchase patterns, top holders, bonding curve. | [Open app](https://pumpfun-token-sniffer.vercel.app/) | [Guide](/docs/usecases/pumpfun-token-sniffer) | [GitHub](https://github.com/Akshat-cs/pumpfun-token-sniffer) | | **DeFi Portfolio Scorer** | Calculate a DeFi Strategy Score (25–100) for any Ethereum address using transaction count, protocol usage, and asset diversity. | [Open app](https://ethereum-wallet-defi-score.vercel.app/) | — | [GitHub](https://github.com/Akshat-cs/Defi-Portfolio-Profiler) | | **Realtime Liquidity Drain Detector** | Monitor DEX pools in real time via Kafka; detect significant liquidity drops and get alerts on a web dashboard. | — | [Guide](/docs/usecases/realtime-liquidity-drain-detector) | [GitHub](https://github.com/Akshat-cs/realtime-liquidity-drain-detector) | ### Open-source apps (GitHub) | Tool | Description | Source | | -------------------------------- | -------------------------------------------------------- | -------------------------------------------------------------------- | | **Wash Trading Detector** | Detect wash trades on Solana using Bitquery data and ML. | [GitHub](https://github.com/Kshitij0O7/wash-trading-detector) | | **Staking Tax Report Generator** | Generate staking tax reports from blockchain data. | [GitHub](https://github.com/Kshitij0O7/staking-tax-report-generator) | | **Staking Dashboard** | Dashboard for staking activity and metrics. | [GitHub](https://github.com/Kshitij0O7/staking-dashboard) | | **Validator Data Dashboard** | Monitor and visualize validator data. | [GitHub](https://github.com/Kshitij0O7/validator-data-dashboard) | | **EVM Sniper** | EVM-based sniper tool using Bitquery data. | [GitHub](https://github.com/Kshitij0O7/evm-sniper) | | **Sentinel Crypto Watch** | Crypto monitoring and alerting. | [GitHub](https://github.com/Kshitij0O7/sentinel-crypto-watch) | --- ## Charting & trading | Tool | Description | Source | Docs | | -------------------------------------------- | ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | | **TradingView with Realtime Data** | TradingView charts with real-time OHLCV via Bitquery subscriptions. | [GitHub](https://github.com/bitquery/tradingview-subscription-realtime/tree/main) | [TradingView Realtime guide](/docs/usecases/tradingview-subscription-realtime/getting-started) | | **AI Crypto Trader All-in-One** | AI-driven crypto trading sample using Bitquery data. | [GitHub](https://github.com/divyasshree-BQ/AI-crypto-trader-all-in-one) | — | | **AI Crypto Trader All-in-One (CoW Intent)** | CoW Intent–based variant of the AI crypto trader. | [GitHub](https://github.com/divyasshree-BQ/AI-crypto-trader-all-in-one-CoW-Intent) | — | | **Best Route Trader on Uniswap** | Finds the most efficient swap route on Uniswap using on-chain liquidity and pricing data. | [GitHub](https://github.com/Divyn/best-route-trader-Uniswap) | — | | | **Live Demo:** [Try it](https://best-route-trader-uniswap.vercel.app/) | | | --- ## OpenClaw Agent Skills **[OpenClaw](https://openclaw.ai/)** skills stream live data from the **Bitquery WebSocket API** into an agent workspace. Install published skills with **[ClawHub](https://clawhub.ai/)** (`clawhub install …`); the full skill list, source folders, prerequisites, and `BITQUERY_API_KEY` setup are in the **[openclaw-skills-master](https://github.com/bitquery/openclaw-skills-master)** README. See also **[ClawHub CLI docs](https://docs.openclaw.ai/tools/clawhub)**. | `clawhub install` | Description | | ----------------------------- | -------------------------------------------------------------------------------------------------------------- | | `bitcoin-price-feed` | Real-time Bitcoin OHLC, volume, moving averages, and % change over WebSocket. | | `crypto-chart-usd` | Multi-token 1s OHLC with USD pricing, volume, and moving averages (Trading.Tokens API). | | `pumpfun-usd-price-stream` | Real-time Pump.fun tokens on Solana with USD OHLC, volume, moving averages, and tick-to-tick % change. | | `polymarket-real-time-trades` | Polymarket outcome trades on Polygon: buyer/seller, USD collateral, market question, tx details. | | `stablecoin-payments` | Solana USDC/USDT SPL transfers (mint filter; excludes swap-like program methods), amounts, USD, parties, fees. | --- ## SDKs & npm Packages Install these packages to fetch crypto prices, staking rewards, prediction market data, or to work with Bitquery Kafka protobuf schemas and TON. | Package | Description | npm | | ---------------------------- | --------------------------------------------------------------------- | -------------------------------------------------------------- | | **bitquery-tradingview-sdk** | Easy TradingView Charting via Bitquery | [npm](https://www.npmjs.com/package/@bitquery/tradingview-sdk) | | **bitquery-crypto-price** | Crypto price data via Bitquery APIs. | [npm](https://www.npmjs.com/package/bitquery-crypto-price) | | **staking-rewards-api** | Staking rewards and validator data. | [npm](https://www.npmjs.com/package/staking-rewards-api) | | **polymarket-api** | Polymarket prediction market data. | [npm](https://www.npmjs.com/package/polymarket-api) | | **bitquery-protobuf-schema** | Protobuf schemas for Bitquery Kafka streams (e.g. DEX pools, trades). | [npm](https://www.npmjs.com/package/bitquery-protobuf-schema) | | **bitquery-ton-sdk** | Bitquery SDK for TON blockchain data. | [npm](https://www.npmjs.com/package/bitquery-ton-sdk) | --- ## How to use this directory - **Try an app** — Use the “Try it” / “Open app” links to run demos in your browser. - **Build it yourself** — Follow the “How-to guide” links for installation, configuration, and code walkthroughs. - **Extend or fork** — Clone the GitHub repos to customize logic, add features, or integrate with your stack. - **Integrate via SDK** — Use the npm packages in Node.js or TypeScript projects for prices, staking, Polymarket, Kafka protobuf, or TON. For more step-by-step tutorials (Discord/Telegram bots, dashboards, snipers, wash trading, NFT tools), see [How-To Guides](/docs/category/how-to-guides/). --- ## Trace In and Trace Out - Follow Funds Deeper in MoneyFlow Lite URL: https://docs.bitquery.io/docs/moneyflow-lite/trace-in-and-trace-out/ Use Trace In to find where funds came from and Trace Out to find where they went. Each trace adds one depth level and a new version to the MoneyFlow, with full version history. # Trace In and Trace Out A new MoneyFlow shows one hop in each direction. The **Tracing** buttons in the top-right corner extend it one hop at a time. ## Select a node, then trace 1. Click a node in the chart, or a row in the address list, to select it. 2. Click **Trace Out** to find where that node sent funds. Click **Trace In** to find where it received funds from. 3. Wait while the new hop is computed. The chart redraws with the extra depth level. If no node is selected the buttons stay inactive. The trace always extends from the selected node, not from the whole chart, so pick the node you want to follow. Use **Trace In** when you need the **source of funds**: who funded this address. Use **Trace Out** when you need the **destination of funds**: where the money ended up, for example an exchange deposit address. ## Versions Every trace creates a new **version** of the MoneyFlow. The badge next to the title shows the version and the depth, for example **V2.0 | In:1 – Out:2** after one Trace Out. Click the badge to open **Version history**. ![Version history of a MoneyFlow](/img/moneyflow-lite/version-history.jpg) Each entry shows: - the version number and whether it is the current version, - the **tracingID** of that computation, - what created it, such as `Initial data` or `Tracing outbound 2`, - the depth after that step, - the timestamp. Each version has its own URL, so you can link to a specific stage of an investigation. ## Depth Depth is measured from the origin. An address at `in-1` sent directly to the origin. An address at `out-1` received directly from the origin. Each Trace In or Trace Out adds one level on that side. ## Tracing amount versus transaction amount When you trace beyond the first hop, the **Tracing Amount** of a transfer is the part of that transfer that still belongs to the origin's funds. The **Txn Amount** is the full size of the on-chain transaction. A large exchange sweep of 59 BTC may carry only 0.003 BTC that came from the origin. See [transactions table](/docs/moneyflow-lite/transactions-table) for the columns. ## Tracing method The summary popup (the **i** icon in the toolbar) shows the **Tracing Method** used for the MoneyFlow. For Bitcoin traces this is **First-in, First-out**. How amounts are attributed on each chain type is explained in [Coinpath Explained](/docs/moneyflow-lite/coinpath-explained/overview). --- ## Trace the Source of Bitcoin Funds Held by a Wallet URL: https://docs.bitquery.io/docs/moneyflow-lite/video-tutorials/trace-source-of-bitcoin-funds/ Video tutorial: use Trace In in MoneyFlow Lite to find where the Bitcoin held by a wallet came from, hop by hop. # Trace the Source of Bitcoin Funds Held by a Wallet This video shows how to work backwards from a wallet with **Trace In** to find the addresses that funded it. Read [Trace In and Trace Out](/docs/moneyflow-lite/trace-in-and-trace-out) for the steps in text. --- ## Tracing MCP - What You Can Do With It URL: https://docs.bitquery.io/docs/mcp/Tracing/overview/ Tracing MCP - What You Can Do With It with Bitquery MCP for AI tools like Claude and Cursor to analyze on-chain data in plain English. # Tracing MCP - What You Can Do With It These are the patterns we see most often when teams plug the [Bitquery MCP server](https://mcp.bitquery.io) into Claude, Cursor, ChatGPT, or Claude Code. **You don't write SQL** - you ask in plain English, the agent does the rest. Each pattern below shows the kind of question that works and what comes back. For the full product, see [AI Investigations](https://bitquery.io/solutions/ai-investigations). The same server also covers trading data, [Polymarket](/docs/mcp/polymarket/) and the [Hyperliquid exchange](/docs/mcp/hyperliquid/) (perpetuals and spot markets). See the [MCP server overview](/docs/mcp/mcp-server/). --- ## 1. AML/KYC Risk Scoring > _"Score wallet 0x742d35Cc6634C0532925a3b844Bc9e7595f42cfe for AML risk. Check wallet age, transaction frequency, mixing signals, and any compliance flags."_ Score an incoming deposit or withdrawal using wallet age, transaction patterns, mixing signals, and known-entity labels. The agent returns a risk score (0-100) and flags suspicious patterns automatically. ## 2. Payment Tracing (Source to Destination) > _"Trace $500K USDT from Binance hot wallet 0x1234... to wallet 0x5678.... Show every hop, intermediate wallets, timing, and the final destination."_ Trace the full path of a single payment from source to final destination across one or more hops. The agent maps every intermediate wallet, any DEX swaps or bridge activity, and identifies if funds reached a CEX or high-risk address. ## 3. Phishing and Fraud Investigation > _"A user was phished on March 15 and 2 ETH were stolen from wallet 0xvictim. The attacker transferred to 0xattacker. Trace where that 2 ETH went. Show all hops, DEX swaps, bridges, and final deposits."_ Map the spread of stolen funds from a phishing attack or scam across wallets, DEXs, and chains. Identify if funds were consolidated, swapped, or deposited to an exchange, and cluster related attacker wallets. ## 4. Wallet Clustering for Compliance > _"Wallet 0x123... received funds from multiple sources. Identify all wallets that have sent to or received from this address, and cluster them by likely control."_ Identify related wallets using common-input-output heuristics, behavioral patterns, and timing analysis. The agent clusters wallets likely controlled by the same entity - useful for detecting account farming and money laundering rings. ## 5. Stablecoin Movement Monitoring > _"Show me all USDT movements from Tron to Ethereum in the last 24 hours. Flag transactions over $5M, any bridge activity, and final destinations."_ Real-time or historical tracking of USDC, USDT, BUSD, and other stablecoins across chains and wallets. Useful for treasury monitoring, flow analysis, and detecting unusual liquidity movement patterns. ## 6. Money Laundering Pattern Detection > _"Analyze wallet 0x... for layering patterns. Check for rapid mixing, frequent DEX swaps, cross-chain bridging, and rapid consolidation. Score likelihood of layering."_ Identify common money laundering stages (placement, layering, integration) in fund flow patterns. The agent scores layering likelihood based on rapid mixing, frequent swaps, bridge activity, and consolidation velocity. ## 7. Cross-Chain Bridge Activity > _"Trace 1000 USDC from Ethereum through any bridge to Solana, then back to Ethereum. Show all bridges used, timing, and final destination."_ Track when and where assets move across chain bridges (Wormhole, Stargate, LayerZero, etc.). Identify bridge concentration risk and detect round-tripping patterns that may indicate arbitrage or evasion. ## 8. CEX Deposit Clustering > _"Four wallets all deposited to Binance hot wallet within the same hour. Are these wallets related? Analyze creation dates, sources, and transaction patterns."_ Identify related wallets by finding addresses that all deposit to the same exchange hot wallets. The agent analyzes wallet age, common sources, interaction history, and synchronized deposits to score likelihood of same controller. ## 9. Sanctions and OFAC Compliance > _"Screen wallet 0x... against OFAC SDN list, FATF guidance, and known DeFi hack wallets. Flag any matches, sanctioned entity references, or high-risk signals."_ Screen wallets and transactions against sanctions lists and known-risk entity databases. The agent flags direct matches, cluster associations, and previous sanctions history. ## 10. Regulatory Reporting and Forensic Documentation > _"Generate a forensic report on wallet 0x... for SAR filing. Include creation date, transaction history, entity labels, risk flags, timeline of suspicious activity, and chain of custody."_ Generate comprehensive forensic reports with transaction chains, entity identification, and risk scoring for regulatory submission. Export with clickable block explorer links, exact timestamps, and audit trails. ## 11. Recovery and Law Enforcement Support > _"Law enforcement is investigating theft of 100 USDC on Solana reported on March 10. Trace all movements, identify exchanges involved, cluster related wallets, and flag final destinations."_ Support law enforcement and recovery efforts by identifying where stolen or fraudulent assets ended up and who may control them. The agent preserves chain of custody for legal proceedings and coordinates with exchanges for account freeze requests. --- ## Best Practices for Prompting You don't need to know SQL or the schema - but a few prompt habits make the agent's answers dramatically better. ### 1. Be explicit about the time window The tracing dataset is comprehensive. Always tell the agent the window you care about: _"in the last 24 hours"_, _"yesterday vs the day before"_, _"since March 1"_. Without it, the agent may scan unnecessary data. ### 2. Name the chain (or "all chains") Bitcoin, Ethereum, Solana, Tron, BSC, Base, Arbitrum, Optimism, Polygon, and 30+ more are all in the dataset. _"on Ethereum"_ or _"across all chains"_ keeps the agent's filter clean. ### 3. Include exact amounts and tokens Specify the token and amount: _"$500K USDT"_, _"2 ETH"_, _"1000 USDC"_. This helps disambiguate on shared addresses and tracks value precisely. ### 4. Ask for entity identification Request the agent identify counterparties: _"is this wallet an exchange, bridge, or risk entity?"_, _"compare against OFAC lists"_. The agent will enrich wallets with known-entity labels automatically. For one wallet's full labelled counterparty list in USD, or the share of its flow by label type, see [Counterparties](/docs/mcp/counterparties/). ### 5. Request risk scoring For compliance work, ask for scoring: _"score for AML risk"_, _"flag suspicious patterns"_, _"highlight probable entity matches"_. The agent applies behavioral analysis automatically. ### 6. Include investigation context Provide background: _"this is a phishing investigation"_, _"we're preparing a SAR filing"_, _"law enforcement requested this"_. Context helps the agent prioritize relevant data. ### 7. Ask for the data shape you want _"Give me a markdown table I can paste"_, _"return JSON for my script"_, _"format for a regulatory report"_ - the agent will adapt. For forensic output: _"include block explorer links, exact timestamps, and transaction hashes"_. ### 8. Trust the read-only sandbox The MCP only allows reads. The agent **cannot** delete, insert, drop, or modify anything - even if you ask it to. Explore freely. --- ## When MCP, When GraphQL, When Kafka? | Need | Best fit | | ------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | | Conversational forensic analysis, ad-hoc investigations, agent loops | **MCP** (this server) | | Compliance backend, subscription monitoring, mempool data | [**GraphQL API**](/docs/graphql/query/) and [WebSocket subscriptions](/docs/subscriptions/websockets/) | | Lowest-latency, highest-throughput streaming for real-time investigations | [**Kafka streams**](/docs/streams/kafka-streaming-concepts/) (any supported chain) and [**gRPC streams**](/docs/grpc/solana/introduction/) (Solana only) | | Transaction forensics, entity matching, AML risk scoring APIs | [**Coinpath API**](/docs/blockchain/Bitcoin/bitcoin-coinpath-api/) (GraphQL-based) | The MCP and the GraphQL API read the **same dataset**, so anything you discover via MCP is reproducible in GraphQL or your production compliance stream. ## Video Tutorial | Can Bitcoin Be Traced? One Payment Followed Hop by Hop --- ## Trading Data on the Bitquery MCP — Overview URL: https://docs.bitquery.io/docs/mcp/trading/overview/ Trading Data on the Bitquery MCP — Overview with Bitquery MCP for AI tools like Claude and Cursor to analyze on-chain data in plain English. # Trading Data on the Bitquery MCP The [Bitquery MCP server](/docs/mcp/mcp-server/) plugs your AI agent directly into Bitquery's **trading dataset** — the same data that powers the [Crypto Trades API](/docs/trading/crypto-trades-api/trades-api/), [Crypto Price API](/docs/trading/crypto-price-api/), [TradingView feeds](/docs/usecases/tradingview-subscription-realtime/getting-started/), and our GraphQL endpoints. Ask in plain English, get clean rows back. No SQL required. ## At a Glance | | | |---|---| | **Endpoint** | [`https://mcp.bitquery.io`](https://mcp.bitquery.io) | | **Chains** | Solana, Ethereum, BSC, Base, Arbitrum, Optimism, Polygon (Matic), Tron, Robinhood, Arc | | **Also on the MCP** | [Polymarket](/docs/mcp/polymarket/) prediction markets and the [Hyperliquid exchange](/docs/mcp/hyperliquid/) (perpetuals and spot markets), each with its own tools | | **Granularity** | Per-trade rows + pre-aggregated 1m / 5m / 1h / 1d cubes | | **Outlier filter** | Built in — just say "skip wash-traded pools" in your prompt | | **Latency** | Near real-time, updates as blocks land | | **Coverage** | Years of history on every supported chain | ## Chains and DEX Protocols Live on the MCP today: | Network | DEXs / venues exposed | |---|---| | **Solana** | Raydium, Pumpfun, PumpSwap, Meteora (DLMM, DAMM v2, Dynamic Bonding Curve), Orca Whirlpool, BonkSwap, Lifinity, Phoenix, OpenBook, Manifest, MagicEden, Moonshot, Believe, LetsBonk, Heaven, Goonfi, Bags.fm, Trends.fun, Jupiter Studio, Boop.fun, Aldrin, SolFi, Orbic, xStocks, Jupiter Z (RFQ), Tessera V, HumidiFi, QuantumAMM, Scorch, … | | **Ethereum** | Uniswap (v2/v3/v4), PancakeSwap, Curve, Balancer, 1inch, Bancor, KyberNetwork, Mooniswap, Magpie, Seaport, … | | **Binance Smart Chain** | PancakeSwap (incl. Infinity), Uniswap, FourMeme, Flap, Magpie, Aerodrome, Bancor, Balancer, 1inch, … | | **Base** | Aerodrome, Uniswap (incl. v4), PancakeSwap, Zora, Magpie, Apestore, Clanker, JumpBase, Seaport, … | | **Arbitrum** | Uniswap, PancakeSwap, Curve, Balancer, Magpie, GMX, esGMX, … | | **Optimism** | Uniswap, Aerodrome, Balancer, PancakeSwap, … | | **Polygon (Matic)** | Uniswap, PancakeSwap, Balancer, Polymarket, Seaport, … | | **Tron** | SunSwap, SunPump | | **Robinhood** | Uniswap (v2/v3/v4), PancakeSwap, Balancer, Aerodrome, Curve, Flap, Bags.fm, … | | **Arc** | Uniswap (v2/v3/v4), … | Per-chain coverage details live in the [Blockchains section](/docs/blockchain/introduction/). ## What's on Every Trade For each swap, the agent can pull: - **When** — block date and time, down to the millisecond. - **What** — the base token (network, contract, name, symbol) and the quote token (USDC, WETH, SOL, …). - **Where** — the DEX (Meteora, Pumpswap, Raydium, Uniswap, …) and the specific pool address. - **How much** — base and quote amounts, both in USD; the realised price; whether it was a buy or a sell. - **Who** — the trader's wallet, the transaction hash, the fee payer. - **Token economics at the moment of the trade** — total, circulating, and max supply; market cap; fully diluted valuation. - **A quality score** — Bitquery's outlier ranking, so you can tell real liquidity from wash-traded noise in one filter. ## Two Levels of Granularity The dataset gives you two views of the same trades: 1. **Per-trade rows** — one row per swap. Best for replays, audits, wallet PnL, sniping research, and any trader-level breakdown. 2. **Pre-built candles** at 1-minute, 5-minute, hourly, and daily intervals — with OHLC, multiple price averages, USD volume, and a supply snapshot on every row. Best for charts, dashboards, and trends. When you ask the agent for "candles", "OHLC", "hourly volume", or "trend", it picks the candle view. When you ask for "trades", "swaps", "wallet history", or "the last 100 buys", it picks the per-trade view. You don't have to think about it. ## Outlier Filtering Is Built In Every row carries a quality score from Bitquery's [price-index ranking](/docs/trading/crypto-price-api/price-index-algorithm/). Pools with low scores are noisy, wash-traded, or thinly liquid. To activate it, just say *"skip wash-traded pools"* or *"only clean volume"* in your prompt — the agent applies the filter automatically. Companion read: [How to filter anomaly prices](/docs/usecases/how-to-filter-anomaly-prices/). ## Where to Go Next - [**Worked examples with charts**](/docs/mcp/trading/examples/) — six self-contained trader workflows with prompts and real-data charts: - [Hottest Solana Tokens](/docs/mcp/trading/examples/top-tokens-discovery/) - [Cross-Chain DEX Snapshot](/docs/mcp/trading/examples/cross-chain-snapshot/) - [Build an OHLC Candle Chart](/docs/mcp/trading/examples/token-ohlc-chart/) - [Solana DEX Market Share Battle](/docs/mcp/trading/examples/solana-dex-market-share/) - [Pump.fun Launch Pulse](/docs/mcp/trading/examples/pumpfun-launch-pulse/) - [Decode a Whale Wallet](/docs/mcp/trading/examples/whale-wallet-decode/) - [**What you can do with it**](/docs/mcp/trading/use-cases/) — eleven common patterns with the natural-language prompts that trigger them, plus best practices for prompting. - [**Hyperliquid on the MCP**](/docs/mcp/hyperliquid/) — perpetuals and spot markets: funding, open interest, liquidations, top wallets and positions. - [**MCP server landing**](/docs/mcp/mcp-server/) — install, OAuth, architecture. - [**Crypto Price Index Algorithm**](/docs/trading/crypto-price-api/price-index-algorithm/) — how outlier filtering and ranking are computed. - [**Supply fields**](/docs/trading/crypto-price-api/supply-fields/) — what `MarketCap`, `FDV`, `CirculatingSupply` mean and how they are derived. --- ## Trading MCP Examples — Real Data, Real Charts URL: https://docs.bitquery.io/docs/mcp/trading/examples/ Trading MCP Examples — Real Data, Real Charts with Bitquery MCP for AI tools like Claude and Cursor to analyze on-chain data in plain English. # Trading MCP Examples Six worked examples of what your AI agent can do once the [Bitquery MCP server](/docs/mcp/mcp-server/) is connected. Each page is **self-contained** and includes: - The trader question in plain language - The exact prompt to paste into Claude / Cursor / ChatGPT - A chart of the live result (built from real production data, snapshot **2026-04-23**) - A "What this tells a trader" insight section - A "trader playbook" with conversational tweaks the agent will handle - One-sentence variations the agent will handle without further prompting | # | Example | What it shows | |---|---|---| | 1 | [**Hottest Solana Tokens**](/docs/mcp/trading/examples/top-tokens-discovery/) | Top 10 Solana tokens by clean 24h USD volume — your morning watchlist. | | 2 | [**Cross-Chain DEX Snapshot**](/docs/mcp/trading/examples/cross-chain-snapshot/) | 24h USD volume, trade count, and unique traders for every trading chain in one query. | | 3 | [**Build an OHLC Candle Chart**](/docs/mcp/trading/examples/token-ohlc-chart/) | 24h hourly candlesticks for any token on any chain, ready for TradingView. | | 4 | [**Solana DEX Market Share Battle**](/docs/mcp/trading/examples/solana-dex-market-share/) | Meteora vs Pumpswap vs Raydium vs Orca and the long tail. | | 5 | [**Pump.fun Launch Pulse**](/docs/mcp/trading/examples/pumpfun-launch-pulse/) | New tokens launched per hour — diurnal patterns and meta cooldowns. | | 6 | [**Decode a Whale Wallet**](/docs/mcp/trading/examples/whale-wallet-decode/) | Per-token buy / sell / net flow for a single wallet; spot bots vs humans. | > **Reproducibility:** every chart in this section is rendered from a live query you can re-run via the MCP yourself. The numbers will move; the patterns and the prompts will not. --- ## Trading MCP — What You Can Do With It URL: https://docs.bitquery.io/docs/mcp/trading/use-cases/ Trading MCP — What You Can Do With It with Bitquery MCP for AI tools like Claude and Cursor to analyze on-chain data in plain English. # Trading MCP — What You Can Do With It These are the patterns we see most often when teams plug the [Bitquery MCP server](/docs/mcp/mcp-server/) into Claude, Cursor, ChatGPT, or Claude Code. **You don't write SQL** — you ask in plain English, the agent does the rest. Each pattern below shows the kind of question that works and what comes back. For end-to-end worked answers — including the live data table and a chart — see the [examples section](/docs/mcp/trading/examples/). --- ## 1. Token Discovery and Trending > *"What are the top 10 Solana tokens by USD volume in the last 24 hours? Skip wash-traded pools."* You get a clean, ranked list of the most-traded tokens for any chain — your daily watchlist generator. The agent automatically applies Bitquery's outlier filter so the noise is already gone. **See it live:** [Hottest Solana Tokens](/docs/mcp/trading/examples/top-tokens-discovery/). ## 2. Trader Analytics and Realized PnL > *"Pull every trade for wallet `7xKX…` in the last 7 days. Compute realized PnL per token in USD."* Wallet-centric breakdown — token by token, with bought, sold, and net flow in USD. Same idea works for any wallet on any supported chain. For a GraphQL equivalent see the [Traders API](/docs/trading/crypto-trades-api/traders-api/). **See it live:** [Decode a Whale Wallet](/docs/mcp/trading/examples/whale-wallet-decode/). ## 3. OHLC Charts for Any Pool or Token > *"Give me 1-minute OHLC for the WIF/USDC pool on Raydium for the last 6 hours."* Pre-aggregated candles at any interval — 1m, 5m, 1h, daily — for any pool, token, or currency. Ready to drop into [TradingView](/docs/usecases/tradingview-subscription-realtime/getting-started/) or your bot. **See it live:** [Build an OHLC Candle Chart](/docs/mcp/trading/examples/token-ohlc-chart/). ## 4. Market Cap and FDV Monitoring > *"Which Base tokens crossed $10M market cap in the last 24 hours?"* Every token aggregate row carries the latest market cap and fully diluted valuation. Background on the math: [Supply fields](/docs/trading/crypto-price-api/supply-fields/). ## 5. Wash-Trade and Outlier Filtering > *"Show me 24h volume per chain, but only counting clean (non-wash-traded) flow."* Bitquery's price-index ranking is baked into every row. A simple "skip the noisy pools" instruction in your prompt is enough — no model to train, no list to maintain. Companion read: [How to filter anomaly prices](/docs/usecases/how-to-filter-anomaly-prices/) and the [price-index algorithm](/docs/trading/crypto-price-api/price-index-algorithm/). ## 6. New Token / Launch Monitoring > *"How many new tokens launched on Pump.fun in the last hour? How does that compare to the 24h average?"* Track launchpad activity in real time across **Pump.fun**, **LetsBonk**, **FourMeme**, **Boop**, **Bags**, **Believe**, **Heaven**, **Goonfi**, **Trends.fun**, **Meteora Dynamic Bonding Curve**, and more. Spot meta cooldowns and frenzy hours. **See it live:** [Pump.fun Launch Pulse](/docs/mcp/trading/examples/pumpfun-launch-pulse/). Per-launchpad GraphQL coverage: [Pump.fun](/docs/blockchain/Solana/Pumpfun/Pump-Fun-API/), [LetsBonk](/docs/blockchain/Solana/letsbonk-api/), [FourMeme](/docs/blockchain/BSC/four-meme-api/), [Meteora DBC](/docs/blockchain/Solana/meteora-dynamic-bonding-curve-api/). ## 7. Cross-Chain Market Overview > *"For each chain, show 24h DEX volume, number of trades, and number of unique traders."* A single sentence gets you a chain-by-chain comparison — no per-chain GraphQL juggling. Useful for spotting chain rotations and weighing where to deploy capital next. **See it live:** [Cross-Chain DEX Snapshot](/docs/mcp/trading/examples/cross-chain-snapshot/). ## 8. DEX Market Share Battles > *"Which Solana DEX is winning today's volume? Meteora vs Pumpswap vs Raydium vs Orca."* The agent ranks DEXs (Meteora, Pumpswap, Raydium, Uniswap, PancakeSwap, …) by 24h volume. The same pattern answers *"which DEX is the cheapest for this pair?"*, *"which DEX is the most retail-driven?"*, or *"which DEX has the most active market-makers?"* **See it live:** [Solana DEX Market Share](/docs/mcp/trading/examples/solana-dex-market-share/). ## 9. Sniping and Copy-Trading Research > *"Find Solana wallets that bought any token in the first 60 seconds of its first Pumpfun trade in the last 24 hours, then sold within 10 minutes for a positive USD PnL."* The same data behind production bots — [Solana sniper](/docs/usecases/solana-sniper-bot/), [Base sniper](/docs/usecases/base-sniper-bot/), [Arbitrum sniper](/docs/usecases/arbitrum-sniper-bot/), [copy-trading bot](/docs/usecases/copy-trading-bot/) — is queryable conversationally. Perfect for prototyping signals before you commit to a Kafka stream. ## 10. Slippage and Liquidity Inspection > *"For pool `0xabc…` on the last 100 trades, compute realized slippage relative to the volume-weighted price."* Every trade row carries price, USD amount, and side — enough to derive realised slippage and effective depth. Conceptual companion docs: [Ethereum slippage](/docs/blockchain/Ethereum/dextrades/ethereum-slippage-api/), [Base slippage](/docs/blockchain/Base/base-slippage-api/), [BSC slippage](/docs/blockchain/BSC/bsc-slippage-api/). ## 11. AI Agents and Trading Copilots The MCP is also the data layer for autonomous trading workflows: - **In a chat assistant** — Claude, Cursor, or ChatGPT answers ad-hoc data questions without context-switching to a separate IDE. - **In a coding agent** — Claude Code or Cursor generates ready-to-run analyses, charts, and alerts grounded in real on-chain data. - **In a custom agent loop** — pipe MCP tool calls into your own agent skill or trading bot. See the [AI Agent on Solana data](/docs/blockchain/Solana/ai-agent-solana-data/) and [AI Agent on Base data](/docs/blockchain/Base/ai-agent-base-data/) walkthroughs. --- ## Best Practices for Prompting You don't need to know SQL or the schema — but a few prompt habits make the agent's answers dramatically better. ### 1. Be explicit about the time window The trading dataset is huge. Always tell the agent the window you care about: *"in the last 24 hours"*, *"yesterday vs the day before"*, *"since 09:00 UTC today"*. Without it, the agent may scan more data than it needs to (slow) or pick a default that doesn't match what you wanted. ### 2. Name the chain (or "all chains") Solana, Ethereum, BNB Smart Chain, Base, Arbitrum, Optimism, Polygon, and Tron are all in the same dataset. *"on Solana"* or *"across all chains"* keeps the agent's filter clean. ### 3. Ask for clean (non-wash-traded) data when relevant Just say *"skip wash-traded pools"* or *"only clean volume"*. The agent will apply Bitquery's outlier filter automatically. Use this for token discovery, market-cap rankings, and any time you want a "real" view of the market. ### 4. Pin the granularity for charts For OHLC and trend questions, name the bucket size: *"1-minute candles"*, *"hourly volume"*, *"daily for the last 30 days"*. Otherwise the agent guesses. ### 5. Give it the address if you have one If you know a token contract, pool address, or wallet, **paste it**. Address-based lookups are the fastest the MCP can do, and they avoid symbol collisions (there are dozens of tokens called "PEPE"). ### 6. Ask for the data shape you want *"Give me a markdown table I can paste"*, *"return JSON for my script"*, *"format it for a Telegram message"* — the agent will adapt. For chart-ready output: *"return rows with timestamp, open, high, low, close, volume"*. ### 7. Iterate, don't restart Once you've built a good question, refine it instead of starting over: *"same query, but for Base"*, *"same chart, but only memecoins"*, *"same wallet, but for the last 7 days"*. The agent keeps context. ### 8. Trust the read-only sandbox The MCP only allows reads. The agent **cannot** delete, insert, drop, or modify anything — even if you ask it to. Explore freely. --- ## When MCP, When GraphQL, When Kafka? | Need | Best fit | |---|---| | Conversational analysis, ad-hoc questions, agent loops | **MCP** (this server) | | Application backend, predictable contract, subscriptions, mempool | [**GraphQL API**](/docs/intro/) and [WebSocket subscriptions](/docs/subscriptions/websockets/) | | Lowest-latency, highest-throughput streaming for production bots | [**Kafka streams**](/docs/streams/kafka-streaming-concepts/) (any supported chain) and [**gRPC streams**](/docs/grpc/solana/introduction/) (Solana only) | | Pre-built OHLC, market cap, token metadata over GraphQL | [**Crypto Price API**](/docs/trading/crypto-price-api/) | The MCP and the GraphQL API read the **same dataset**, so anything you discover via MCP is reproducible in GraphQL or your production stream. --- ## Transaction Cube URL: https://docs.bitquery.io/docs/cubes/transaction-cube/ Transaction cube reference: filter blockchain transactions by fields such as sender, receiver and hash, and compute metrics over them with GraphQL examples. # Transaction Cube Transaction Cube provides comprehensive information about transactions, blocks, receipts, fees, transaction status, signatures, and more. You can check all the fields in [this query](https://ide.bitquery.io/transaction-cube-with-all-fields). ![Transaction Cube Fields](/img/cubes/transactionCubeFields.png) ## Filtering in Transaction Cube Efficient blockchain filtering is one of the main strengths of our infrastructure. All cubes offer the ability to filter by any field available in the result. For example, if you can retrieve the transaction hash in the result, you can filter transactions based on it. Therefore, Transaction Cube can filter transactions based on transaction hash, value, fee, status, transaction sender, receiver, block details, receipt, signature, etc. By default all filters are `AND` operator. We will see example of `Or` operator later in examples. ### Transaction Filtering Examples Using the `From` filter in Transaction Cube, you can get all transactions sent by a specific address. Check [this query](https://ide.bitquery.io/Transactions-of-an-address) for an example. You can use one or multiple filters based on your requirements. Check [this example](https://ide.bitquery.io/Multiple-filters) to see how multiple filters can be applied. Additionally, you can use the OR operator among your filters. For example, check [this query](https://ide.bitquery.io/transactions-sent-or-received-by-an-address) where we retrieve all transactions sent or received by an address. ## Metrics Metrics allow you to perform mathematical functions such as `sum`, `count`, `average`, `median`, `maximum`, `minimum`, etc. Let's understand this with a few examples. Check [this query](https://ide.bitquery.io/transactions-on-ethereum-in-may) where we get the count of transactions in a given month. Now, see [this API example](https://ide.bitquery.io/total-ethereum-transaction-value-in-april) where we get the sum of ETH transferred in a given month. In the same way, you can use metrics and filters to obtain analytical metrics from blockchains. --- ## Transactions Table - Filter and Sort the Evidence Behind a Trace URL: https://docs.bitquery.io/docs/moneyflow-lite/transactions-table/ Column reference, filters, sorting and status for the transactions table in MoneyFlow Lite, including the difference between transaction amount and tracing amount. # Transactions Table The table at the bottom of the trace page lists the transfers behind the chart. Its title tells you what it is scoped to: - **Transactions of origin** when nothing is selected. - **Transactions of <address>** when a node is selected. - **Transactions of Flow** when an edge is selected. ![Transactions table in MoneyFlow Lite](/img/moneyflow-lite/transactions-table.jpg) ## Tabs **All**, **Inbound** and **Outbound** switch between every transfer, transfers received by the selected node, and transfers sent by it. ## Columns | Column | Meaning | | --- | --- | | **Time** | Block time of the transaction. | | **Depth** | Position relative to the origin. `in-1` sent directly to the origin. `out-1` received directly from the origin. | | **Txn hash** | Shortened transaction hash with a copy icon. Click it to open the transaction in the Bitquery Explorer. | | **Sender** | Shortened sender address with a copy icon and any address labels. | | **Receiver** | Shortened receiver address with a copy icon and any address labels. | | **Txn Amount** | Full amount of the transaction in the traced currency and in USD. | | **Tracing Amount** | The part of the transaction that belongs to the origin's funds, in the traced currency and in USD. | | **Currency** | The traced currency. | | **Status** | `Included` or `Excluded`. Excluded transfers are not counted in the chart. | ### Transaction amount versus tracing amount At depth 1 the two amounts are usually equal. Deeper in the trace they diverge. If the origin sends 0.012 BTC to an exchange hot wallet, and that wallet later sweeps 59 BTC onward, the sweep has a **Txn Amount** of 59 BTC and a **Tracing Amount** of 0.012 BTC. Only the traced part is drawn in the chart. ## Address labels in the table Known addresses show a label under the shortened address, for example `bitmex-proof-of-reserves`. A **+2** badge means the address has more labels. Hover it to see them all. ![Address labels shown in the transactions table](/img/moneyflow-lite/labels-in-table.png) See [Address labels and tags](/docs/moneyflow-lite/address-labels) for how labels are assigned. ## Sort The **Sort by** dropdown offers: - Tracing Amount, descending or ascending - Txn Amount, descending or ascending - Time, descending or ascending ![Sort options](/img/moneyflow-lite/sort-options.png) ## Filters Click **Filters** to open the filter dialog. The left column lists the filter groups. Set the ones you need and click **Apply**. **Clear** resets one group. **Reset** clears all. ![Filters dialog](/img/moneyflow-lite/transactions-filters.jpg) | Filter | What it does | | --- | --- | | **Time Range** | Quick ranges (Today, Last 7, 14, 30, 90 Days) or a custom start and end date. | | **Transactions** | Pick individual transaction hashes. A search box finds a hash. | | **From Address** | Pick sender addresses. **All** or `origin` shortcuts at the top. | | **To Address** | Pick receiver addresses. | | **Token** | Pick the currency. On Bitcoin there is one entry, Bitcoin (BTC). On account-based chains the list has every token in the trace, with an A to Z index. | | **USD Value** | A **From** and **To** range in USD. | | **Status** | `Included & Excluded`, `Included` only, or `Excluded` only. | ![Status filter](/img/moneyflow-lite/status-filter.png) Active filters appear as chips above the table. Click the **x** on a chip to remove it. ## Pagination The footer shows the total row count and page numbers. The page size selector changes how many rows load at once. ## Get API **Get API** in the table header opens the Coinpath® query that produced these rows in the Bitquery IDE. See [Get API](/docs/moneyflow-lite/get-api-coinpath-query). --- ## Transfers Cube URL: https://docs.bitquery.io/docs/cubes/transfers-cube/ Transfers cube explained: filter token transfers by sender, receiver, currency and amount, read transfer types, and compute metrics like sums and counts. # Transfer Cube > **Before you start**: Not sure when to use Transfers vs Events vs Calls vs DexTrades? Read our [Mental Model guide](/docs/start/mental-model-transfers-events-calls) to understand which primitive to use for your use case. The Transfer cube provides details on asset transfers, blocks, contract calls, fees, event logs, receipts, transaction details, and transaction status. ![Transfers Fields](/img/cubes/transfers-cube.png) ### Filters in Transfer Cube The Transfer cube allows filtering by any field available in the result fields. By default, all filters use the `AND` operator. We will see an example of the `OR` operator later. For example, check the [transfers for the Tether token](https://ide.bitquery.io/Transfers-of-USDT-token-in-real-time-db). ### More Transfer Cube Filter Examples Let's explore more examples of filtering in the Transfer cube. Check [this query](https://ide.bitquery.io/transfers-over-100-eth-in-a-given-month), where we retrieve transfers over 100 ETH in a given month. Another example is [this query](https://ide.bitquery.io/Only-wallet-to-wallet-eth-transfers-on-ethereum), where we filter to get only wallet-to-wallet ETH transfers using `Transfer_Type` filter. For an example of the `OR` operator, see [this query](https://ide.bitquery.io/all-transfers-of-a-address), which retrieves all transfers of a given address. ## Transfer Type Every EVM chain transfer has **`Transfer_Type`** property, which provides insights about the type of transfer taking place. The three values classify **native** vs **token** transfers and whether native value moved at the **top level** or **inside a contract call** as shown in the table below. | Value | Meaning | Native? | `Call.CallPath` | | ----- | ------- | ------- | --------------- | | **`transaction`** | Native transfer from the **transaction signer** at the **root** of the transaction (external send). Not ERC-20. | Yes | Empty `[]` | | **`call`** | Native transfer as **`value` on an internal contract call** (contract forwards ETH during execution). | Yes | Non-empty | | **`token`** | **ERC-20** (or other token standard) transfer from contract execution. Never native. | No (`Currency.Native: false`) | Any | **Examples:** - ERC-20 Token Transfer: `Transfer: { Type: { is: token } }`. [Run this Example](https://ide.bitquery.io/Only-token-transfers-on-ethereum) - Wallet to Wallet ETH Transfer: `Type: { is: transaction }`. [Run this Example](https://ide.bitquery.io/Only-wallet-to-wallet-eth-transfers-on-ethereum) - Internal Transfer → `Type: { is: call }`. [Run this Example](https://ide.bitquery.io/internal-transfers-on-ethereum) ## Metrics in Transfer Metrics allow you to perform mathematical functions such as `sum`, `count`, `average`, `median`, `maximum`, `minimum`, etc. Let's understand this with a few examples. Check [this example](https://ide.bitquery.io/biggest-transfer-on-a-given-date), where we get the biggest ETH transfer on a given date. Another way to write this query is by sorting based on amount, as shown [here](https://ide.bitquery.io/biggest-transfer-on-a-given-date-using-sorting). See [this query](https://ide.bitquery.io/total-shiba-transferred-on-a-given-date_2) to learn how to get the token transfer volume and count of SHIB tokens on a given date. --- ## Transfers vs Events vs Calls vs DexTrades URL: https://docs.bitquery.io/docs/start/mental-model-transfers-events-calls/ Transfers vs Events vs Calls vs DexTrades: practical Bitquery setup guidance with examples for authentication, endpoints, and first queries. # Mental Model: Transfers, Events, Calls, and DexTrades Understanding when to use **Transfers**, **Events**, **Calls**, or **DexTrades** is one of the decisions you'll make when querying blockchain data. This guide explains the conceptual differences and helps you choose the right primitive for your use case. **Chain scope:** The primitives below are described for **EVM chains** (Ethereum, BSC, Base, Arbitrum, etc.). **Solana** and **Tron** share the same high-level ideas (Transfers, DexTrades) but use different cubes where the chain model differs. See [Applying this model across chains](#applying-this-model-across-chains) for Solana, Tron, and other non-EVM chains. ## The Core Question: What Are You Really Looking For? Before writing a query, ask yourself: 1. **Do I need DEX swap/trade data or aggregated price/OHLC data?** → For **real-time + the last ~30 days**, use the curated **`Trading`** cube — [`Trading.Trades`](/docs/trading/crypto-trades-api/trades-api) for swap-level rows or [`Trading.Tokens` / `Pairs` / `Currencies`](/docs/trading/crypto-price-api/) for pre-aggregated OHLC. For **historical** data older than ~30 days, use chain-level **`DexTrades`** / **`DexTradesByTokens`**. See the [**Trading Data Overview**](/docs/trading/trading-data-overview) for the full decision matrix. 2. **Do I need token movements?** → Consider `Transfers` or `Calls` 3. **Do I need smart contract state changes?** → Consider `Events` 4. **Do I need function execution details?** → Consider `Calls` ## Understanding Each Primitive ### Transfers **What it represents:** Token movements between addresses (ERC-20, ERC-721, native tokens like ETH, BNB, SOL). **Key characteristics:** - Captures **all token movements** including native tokens - Includes both direct transfers and transfers that happen as part of contract calls - Can include "noise" from native token transfers (ETH, BNB, SOL) that you might not want **When to use:** - Tracking token balances and movements - Wallet-to-wallet transfers - Token distribution analysis - Tax/accounting use cases **When NOT to use:** - Filtering for specific token contract addresses (you'll get native tokens mixed in) - Tracking smart contract function calls - Monitoring specific contract events **Common pitfall:** ```graphql # This returns BNB transfers too, not just your token! EVM { Transfers(where: {Currency: {SmartContract: {is: "0x..."}}}) { # You'll see native BNB transfers mixed with token transfers } } ``` **Solution:** Filter by `Currency { Native: false }` or use `Calls` instead. --- ### Events **What it represents:** Log entries emitted by smart contracts (e.g., `Transfer`, `Approval`, `Swap`, `Mint`). **Key characteristics:** - Only includes **logged events** from smart contracts - Requires the contract to explicitly emit the event - More precise than Transfers for contract-specific activities - Can be empty if the event doesn't exist or wasn't emitted **When to use:** - Monitoring specific contract events (e.g., `Swap` events from a DEX) - Tracking contract state changes (e.g., `Approval`, `Mint`) - Real-time event monitoring via subscriptions - When you know the exact event signature **When NOT to use:** - You don't know what events exist (use event discovery first) - You need function call details, not just logs - You need native token transfers (events don't capture these) **Common pitfall:** ```graphql # Returns empty if event doesn't exist or wasn't emitted EVM { Events(where: {Log: {Signature: {Name: {is: "EVENTSIGNATURNAME"}}}}) { # Empty result - why? } } ``` **Solution:** First discover what events exist, then query them. --- ### Calls **What it represents:** Function calls to smart contracts, including internal calls and their execution details. **Key characteristics:** - Captures **all function executions** (external and internal) - Includes function parameters and return values - Can filter by specific contracts and functions - Most precise for contract interactions - **Best choice for token contract interactions** (avoids native token noise) **When to use:** - Tracking smart contract function calls - Filtering token transfers by contract address (avoids native token noise) - Monitoring specific contract interactions - Getting function call parameters and return values - Internal transaction tracking **When NOT to use:** - Simple wallet-to-wallet native token transfers - When you only need event logs, not function details **Why Calls is often the right choice:** ```graphql # This gives you ONLY token transfers from the contract, no native tokens EVM { Calls( where: { To: {is: "0xTokenContract"}, Signature: {Name: {is: "transfer"}} } ) { # Clean token transfers, no BNB/ETH noise } } ``` --- ### DexTrades and DexTradesByTokens **What they represent:** Pre-parsed, normalized DEX swap data—every swap on supported DEXs (Uniswap, PancakeSwap, etc.) with buy/sell sides, prices, pools, and protocols. **Key characteristics:** - **DexTrades**: One record per swap, from the **pool's perspective** (`Buy` = what the pool bought, `Sell` = what the pool sold). Best for protocol-level queries (trade count by DEX, gas on trades, dynamics over time). - **DexTradesByTokens**: Same swaps but **token-centric**—each swap appears as **two records** (one per token). Uses `Trade` + `Side` instead of `Buy`/`Sell`. Best for token-level queries (price of a token, OHLC by token, every pair a token is in). **When to use DexTrades:** - Swap counts by protocol or smart contract - Gas spending on trades - DEX usage over time - One record per swap, pool-centric **When to use DexTradesByTokens:** - Price of a token across DEXs - OHLC (candles) for a token or pair - "Every pair this token is involved in" - Queries by token or pair of tokens **When NOT to use DexTrades/DexTradesByTokens:** - Raw event logs (use **Events**) - Non-DEX token transfers (use **Transfers** or **Calls**) - Orderbook / open orders (data is swap-level, not order-level) **DexTrades vs Events for swaps:** For DEX swap monitoring, **DexTrades** is usually better than querying raw `Swap` events: you get normalized buy/sell amounts, prices, pool, and protocol without parsing logs. Use **Events** only when you need raw log data or a DEX that isn’t fully supported in DexTrades. **Important:** DexTradesByTokens has **twice as many records** per swap (one per token). Always filter by token (or pair) to get correct counts and avoid double-counting. --- ### Trading (Crypto Price) cube **What it represents:** Pre-aggregated price and volume data across chains—OHLC, moving averages (SMA, WMA, EMA), mean price, and volume, at configurable intervals (e.g. 1s, 1m). Uses the root `Trading { Tokens | Currencies | Pairs(...) }` and is **multi-chain** (EVM, Solana, Tron). **Key characteristics:** - **Pre-aggregated**: OHLC, SMA, WMA, EMA, mean price and volume are computed for you; no need to build OHLC from raw swaps. - **Real-time streaming**: 1-second granularity via GraphQL subscriptions (and Kafka). - **Three cubes**: **Tokens** (price per token per chain), **Currencies** (same asset across chains, e.g. BTC/WBTC/cbBTC), **Pairs** (price per pair per market, e.g. SOL/USDC on Raydium). - **Clean feed**: Low-quality and outlier trades are filtered automatically. **When to use the Trading cube:** - Real-time or historical **price feeds** and **charting** (OHLC, candles). - **Moving averages** and **mean price** over time. - **Cross-chain** or **cross-DEX** aggregated price for a token or currency. - Trading bots, DeFi oracles, and dashboards that need **price index** data, not per-swap detail. **When NOT to use the Trading cube:** - Per-swap detail (who traded, which pool, tx hash) → use **DexTrades** or **DexTradesByTokens**. - Raw trade-level analytics (e.g. swap count by pool) → use **DexTrades**. - Token movements or balance changes → use **Transfers**, **Calls**, **Balances** / **Holders** (EVM, Tron), or **BalanceUpdates** (Solana). **Trading vs DexTrades:** Use **Trading** when you need **aggregated price/OHLC/volume** for charting or feeds. Use **DexTrades** when you need **individual swaps**, protocol/pool breakdown, or trade-level fields (buyer, seller, tx, block). Docs: [Crypto Price API (Trading)](/docs/trading/crypto-price-api/), [Tokens / Currencies / Pairs](/docs/trading/crypto-price-api/tokens), [OHLC & candles](/docs/trading/crypto-price-api/crypto-ohlc-candle-k-line-api). --- ## Applying this model across chains The concepts above apply to **EVM** (Ethereum, BSC, Base, Arbitrum, Matic, Optimism, etc.). Other chains expose the same ideas under different cube names and with chain-specific primitives. ### EVM chains (Ethereum, BSC, Base, Arbitrum, etc.) - **Transfers** – Token movements (including native ETH/BNB/etc.). - **Events** – Smart contract log entries (e.g. `Swap`, `Transfer`, `Approval`). - **Calls** – Function executions (external and internal). - **DexTrades / DexTradesByTokens** – Normalized DEX swap data (Buy/Sell, Trade/Side). Use the root `EVM(network: eth | bsc | base | ...)` in your query. ### Solana - **Transfers** – SPL token and SOL movements. Same idea as EVM Transfers; use `Solana { Transfers(...) }`. - **DexTrades / DEXTradeByTokens** – DEX swap data (Buy/Sell, Trade/Side). Same idea as EVM; use `Solana { DEXTrades(...) }` or `Solana { DEXTradeByTokens(...) }`. - **Instructions** – Execution units (program calls). Closest to EVM **Calls** + execution context; use when you need “what program ran” and call paths, not raw logs. - **BalanceUpdates** – Balance deltas per account. Use for balance history and “who gained/lost what” rather than full transfer history. - **DEXOrders** – Order-level data (open/unfilled orders, orderbook-style). Use when you need orders, not only filled swaps. Solana does **not** have EVM-style **Events** or **Calls**; use **Instructions** and **Logs** (inside Instructions) for program activity. Docs: [Solana Builder Terms](/docs/cubes/solana), [Solana DEX Trades](/docs/blockchain/Solana/solana-dextrades), [Solana Transfers](/docs/blockchain/Solana/solana-transfers), [Solana Instructions](/docs/blockchain/Solana/solana-instructions), [Solana Balance Updates](/docs/blockchain/Solana/solana-balance-updates). ### Tron - **Transfers** – TRC-20 and native TRX movements. Same idea as EVM Transfers; use `Tron { Transfers(...) }`. - **DEXTrades** – DEX swap data (e.g. SunSwap). Same idea as EVM; use `Tron { DEXTrades(...) }`. Tron’s model is close to EVM (TVM); Transfers and DEXTrades map directly. For logs and contract calls, see the [Tron API docs](/docs/blockchain/Tron/). Docs: [Tron API](/docs/blockchain/Tron/), [Tron DEX Trades](/docs/blockchain/Tron/tron-dextrades), [Tron Transfers](/docs/blockchain/Tron/tron-transfers). ### Quick mapping | Concept | EVM | Solana | Tron | |--------------------|--------------------------|--------------------------------|-------------------| | Token movements | Transfers, Calls | Transfers | Transfers | | DEX swaps | DexTrades, DexTradesByTokens | DEXTrades, DEXTradeByTokens | DEXTrades | | Execution / “calls”| Calls | Instructions | (see Tron docs) | | Contract “events” | Events | (Instructions + Logs) | (see Tron docs) | | Current balances | Balances, Holders | (from BalanceUpdates) | Balances, Holders | | Balance deltas | TransactionBalances | BalanceUpdates | (from Transfers) | | Orderbook / orders | (swap-level only) | DEXOrders | (see Tron docs) | --- ## Decision Tree The tree below is **EVM-oriented**. For Solana, use **Instructions** where it says Events/Calls; for Tron, use **Transfers** and **DEXTrades** (see [chain mapping](#applying-this-model-across-chains)). ``` Start: What do you need? ├─ Price / OHLC / charting (aggregated)? │ └─ Pre-aggregated OHLC, SMA, volume, 1s+ intervals? → Trading cube (Tokens / Currencies / Pairs) │ ├─ DEX swap/trade data (per-swap)? │ ├─ By protocol, pool, or one record per swap? → DexTrades (EVM/Solana/Tron) │ └─ By token, OHLC from swaps, or "pairs for this token"? → DexTradesByTokens (EVM/Solana; filter by token!) │ ├─ Token movements? │ ├─ Need native tokens (ETH, BNB, SOL, TRX)? → Transfers │ └─ EVM only: only specific token contracts? → Calls (better) or Transfers + filter │ ├─ EVM: Smart contract events/logs? │ └─ Know the event name? → Events │ └─ Don't know what exists? → Discover events first, then query │ ├─ Solana: Program execution / call path? │ └─ Use Instructions (and Logs inside Instructions) │ └─ EVM: Function execution details? └─ Need parameters/return values? → Calls └─ Need internal calls? → Calls ``` ## Real-World Examples ### Example 1: Tracking Token Transfers **Goal:** Get all USDT transfers on BSC, excluding native BNB. **Wrong approach (Transfers):** ```graphql EVM(network: bsc) { Transfers( where: {Currency: {SmartContract: {is: "0x55d398326f99059fF775485246999027B3197955"}}} ) { # Problem: Might include BNB transfers if not filtered } } ``` **Better approach (Calls):** ```graphql EVM(network: bsc) { Calls( where: { To: {is: "0x55d398326f99059fF775485246999027B3197955"}, Signature: {Name: {is: "transfer"}} } ) { # Clean USDT transfers only, no BNB noise } } ``` **Alternative (Transfers with filter):** ```graphql EVM(network: bsc) { Transfers( where: { Currency: { SmartContract: {is: "0x55d398326f99059fF775485246999027B3197955"}, Native: false # Exclude native tokens } } ) { # USDT transfers only } } ``` ### Example 2: Monitoring DEX Swaps **Goal:** Track all swaps on a DEX (prices, amounts, buyer/seller, pool). **Best approach (DexTrades):** ```graphql EVM(network: eth) { DEXTrades( where: {Trade: {Dex: {ProtocolName: {is: "uniswap_v2"}}}}} limit: {count: 10} orderBy: {descending: Block_Time} ) { Block { Time Number } Transaction { Hash From } Trade { Buy { Amount Price Currency { Symbol } Buyer Seller } Sell { Amount Price Currency { Symbol } Buyer Seller } Dex { ProtocolName Pair { SmartContract } } } } } ``` **Why DexTrades?** You get normalized buy/sell amounts, prices, pool, and protocol without parsing raw logs. Use **DexTradesByTokens** when you need token-centric data (e.g. "all pairs for this token", OHLC by token)—and always filter by token to avoid double-counting. **Alternative (Events):** Use **Events** when you need raw `Swap` log data or a DEX not fully supported in DexTrades. ### Example 3: Tracking Contract Function Calls **Goal:** Monitor when users call `approve()` on a token contract. **Best approach (Calls):** ```graphql EVM(network: eth) { Calls( where: { To: {is: "0xTokenContract"}, Signature: {Name: {is: "approve"}} } ) { Call { Arguments { Name Value { ... on EVM_ABI_Address_Value_Arg { address } ... on EVM_ABI_Integer_Value_Arg { integer } } } } } } ``` **Why Calls?** You need the function parameters (who approved, how much), which Calls provides. --- ## Common Confusion Points ### "Why does my Transfers query return BNB instead of my token?" **Answer:** Transfers includes native tokens. Use `Currency { Native: false }` filter or switch to `Calls`. ### "Why is my Events query returning empty?" **Possible reasons:** 1. The event doesn't exist at that contract 2. The event wasn't emitted in your time range 3. Wrong event signature name 4. Wrong contract address **Solution:** First discover what events exist: ```graphql EVM { Events(where: {LogHeader: {Address: {is: "0xContract"}}}) { Log { Signature { Name } } } } ``` ### "Should I use Transfers or Calls for token transfers?" **Answer:** - Use **Calls** if you want to filter by contract and avoid native token noise - Use **Transfers** if you need all token movements including native tokens, or for simple wallet-to-wallet transfers ### "DexTrades or DexTradesByTokens?" **Answer:** - **DexTrades**: One record per swap, pool perspective (`Buy`/`Sell`). Use for protocol-level stats (trade count by DEX, gas, time series). - **DexTradesByTokens**: Two records per swap (one per token), token perspective (`Trade`/`Side`). Use for token price, OHLC, "every pair this token is in". **Always filter by token** so counts and volumes are correct. ### "DEX swaps: DexTrades or Events?" **Answer:** Prefer **DexTrades** (or **DexTradesByTokens**) for swap monitoring—you get normalized prices, amounts, and protocol. Use **Events** when you need raw log data or a DEX not covered by DexTrades. --- ## How do I identify which exchange a wallet belongs to (e.g., Binance)? Bitquery exposes **on-chain** activity (transfers, trades, calls)—not centralized-exchange **KYC or account labels**. To say “this is Binance,” combine Bitquery flows with a **third-party labeling API** or a curated list of **known deposit / hot wallets**, then detect when user funds move to or from those addresses. Bitquery is ideal for measuring **timing and amounts**; attribution is your mapping layer. However, Bitquery has some limited attribution data in [V1 apis](https://docs.bitquery.io/v1/docs/Examples/coinpath/money-flow-api). ## Quick Reference | Use Case | Recommended Primitive | Why | |----------|---------------------|-----| | Aggregated price / OHLC / charting | **Trading** (Tokens/Currencies/Pairs) | Pre-aggregated OHLC, SMA, volume; multi-chain | | DEX swaps (by protocol/pool) | **DexTrades** | One record per swap, normalized | | DEX swaps (by token, OHLC from swaps, pairs) | **DexTradesByTokens** | Token-centric; filter by token | | Token transfers (specific contract) | **Calls** | Avoids native token noise | | All token movements (including native) | **Transfers** | Captures everything | | Smart contract events | **Events** | Direct event logs | | Function call details | **Calls** | Includes parameters | | Internal transactions | **Calls** | Tracks call depth | | Wallet balance tracking | **Transfers** | Complete transfer history | | Contract interaction analytics | **Calls** | Full execution context | --- ## Next Steps Now that you understand the mental model: **Price / OHLC / charting (all chains):** 1. **[Crypto Price API (Trading)](/docs/trading/crypto-price-api/)** - Pre-aggregated OHLC, SMA, volume; Tokens, Currencies, Pairs cubes **EVM (Ethereum, BSC, Base, etc.):** 2. **[Explore Transfers API](/docs/blockchain/Ethereum/transfers/erc20-token-transfer-api)** - Learn Transfers in detail 3. **[Explore Events API](/docs/blockchain/Ethereum/events/events-api)** - Learn Events in detail 4. **[Explore Calls API](/docs/blockchain/Ethereum/calls/smartcontract)** - Learn Calls in detail 5. **[DEXTrades Cube](/docs/cubes/dextrades)** - Pool perspective, one record per swap 6. **[DEXTradesByTokens Cube](/docs/cubes/dextradesbyTokens)** - Token perspective, filter by token 7. **[Ethereum DEX API](/docs/blockchain/Ethereum/dextrades/dex-api)** - DEX trading examples **Solana:** 8. **[Solana Builder Terms](/docs/cubes/solana)** - Transfers, DEXTrades, Instructions, BalanceUpdates, DEXOrders 9. **[Solana DEX Trades](/docs/blockchain/Solana/solana-dextrades)** - DEX swap data 10. **[Solana Transfers](/docs/blockchain/Solana/solana-transfers)** - Token movements 11. **[Solana Instructions](/docs/blockchain/Solana/solana-instructions)** - Program execution (Calls-like) **Tron:** 12. **[Tron API](/docs/blockchain/Tron/)** - Overview 13. **[Tron DEX Trades](/docs/blockchain/Tron/tron-dextrades)** - DEX swap data 14. **[Tron Transfers](/docs/blockchain/Tron/tron-transfers)** - Token movements **General:** 16. **[Build Your First Query](/docs/start/first-query)** - Put it into practice --- ## Summary - **Transfers** = Token movements (includes native tokens). Available on EVM, Solana, Tron. - **Events** = Contract log entries (EVM only; requires events to be emitted). - **Calls** = Function executions (EVM only; most precise for contract interactions). - **DexTrades** = DEX swaps, pool perspective, one record per swap. Available on EVM, Solana, Tron. - **DexTradesByTokens** = DEX swaps, token perspective, two records per swap (EVM, Solana)—always filter by token. - **Trading (Crypto Price)** = Pre-aggregated price/OHLC/volume (Tokens, Currencies, Pairs). Multi-chain; use for charting, feeds, moving averages—not per-swap detail. - **Solana:** **Instructions** (execution units), **BalanceUpdates** (balance deltas), **DEXOrders** (orderbook). No Events/Calls; use Instructions + Logs for program activity. - **Tron:** Transfers and DEXTrades map directly; see Tron docs for logs/calls. --- ## Tron Data - Snowflake, AWS S3, BigQuery URL: https://docs.bitquery.io/docs/cloud/tron/ Tron blocks, transactions, TRX and token transfers, balance updates and DEX trades as Parquet, with a free sample and DuckDB and Python examples. # Tron Data Bitquery provides **Tron blockchain data** as **Parquet exports** from the [Bitquery Data Store](https://bitquery.io/datastore), designed for large-scale analytics, historical backfills, and data lake integrations. These datasets can be hosted directly in your own cloud storage (for example, **AWS S3**) and queried using engines like **Snowflake, BigQuery, Athena, Spark, etc**. ## Available Tron Topics For Tron, Bitquery currently provides the following datasets: - **Blocks** – Block-level metadata - **Transactions** – Full transaction-level data - **Transfers** – Native TRX and token transfers - **Balance Updates** – Account balance changes per block - **DEX Trades** – Executed trades on Tron DEXs ## Sample Tron Cloud Dataset You can explore schemas and validate your tooling using the **public Tron sample datasets**: **GitHub reference (schemas & examples)** [https://github.com/bitquery/blockchain-cloud-data-dump-sample/tree/main/tron](https://github.com/bitquery/blockchain-cloud-data-dump-sample/tree/main/tron) **Example Parquet file (public S3)** ``` https://bitquery-blockchain-dataset.s3.us-east-1.amazonaws.com/tron/balance_updates/.parquet ``` ## Tron Dataset Directory Structure ```text bitquery-blockchain-dataset/ └── tron/ ├── balance_updates/ │ ├── _.parquet │ ├── _.parquet │ └── ... ├── blocks/ │ ├── _.parquet │ ├── _.parquet │ └── ... ├── dex_trades/ │ ├── _.parquet │ └── ... ├── transactions/ │ ├── _.parquet │ └── ... └── transfers/ ├── _.parquet └── ... ``` ### Block Range Naming Convention Each Parquet file name follows this format: ``` _.parquet ``` Example: ``` 78861100_78861149.parquet ``` ## Get Full Access [Buy on the Data Store](https://bitquery.io/datastore/datasets?network=tron) or email **sales@bitquery.io** for custom ranges. A Data Store purchase is downloaded from a Requester Pays S3 bucket or a Cloudflare R2 bucket, chosen at checkout. Custom exports can be delivered into your own S3, GCS or R2 bucket, or as a Snowflake or BigQuery share. To trial it first, [fill the API form](https://bitquery.io/forms/api). Datasets you can buy on the Data Store: - [TRON Transfers](https://bitquery.io/datastore/datasets/tron-transfers) — every TRX, TRC-10 and TRC-20 transfer since mainnet launch, valued in USD where a price exists This listing is not the full catalogue. Other topics, chains and date ranges are available on request from **sales@bitquery.io**. ## Reading Files with DuckDB No key, no client library — point DuckDB at the public sample directly: ```sql SELECT * FROM read_parquet('https://bitquery-blockchain-dataset.s3.us-east-1.amazonaws.com/tron/transactions/78861100_78861149.parquet') LIMIT 10; ``` ## Reading Files in Python ```python df = pd.read_parquet("https://bitquery-blockchain-dataset.s3.us-east-1.amazonaws.com/tron/transactions/78861100_78861149.parquet") print(df.info()) df.head() ``` ## Real-Time vs Batch Data Access Data Store exports are optimized for **batch analytics and historical workloads**. If you require **low-latency or streaming Tron data**, Bitquery also provides: - [**Kafka streams**](/docs/streams/kafka-streaming-concepts/) - **GraphQL subscriptions** --- ## Tron Kafka Protobuf Streams URL: https://docs.bitquery.io/docs/streams/protobuf/chains/Tron-protobuf/ Tron Protobuf with Bitquery Kafka and protobuf streams for low-latency blockchain ingestion in trading systems. Run it in the IDE, then ship in your app. # TRON Streams You can find the schema [here](https://github.com/bitquery/streaming_protobuf/tree/main/tron). TRON produces blocks approximately every 3 seconds, offering high throughput for transactions and smart contracts. :::info USD Values All amounts in the TRON protobuf streams now include USD equivalents — token transfer amounts, DEX trade sides, and transaction fees each carry an `...InUSD` field (e.g. `AmountInUSD`, `TransactionFeeInUSD`). These are populated in real time on the streams. ::: ## Structure of On-Chain Data The TRON Protobuf Streams provide three main message types for different use cases: - `BlockMessage`: Full blocks with detailed transaction information - `TokenBlockMessage`: Focused on token transfers - `DexBlockMessage`: Specialized for DEX (Decentralized Exchange) trading activity ### Block-Level Data Each block in the stream includes a `BlockHeader` with fields such as: - `Number`: Block height in the chain - `Hash`: The unique identifier of the block - `Timestamp`: When the block was produced - `ParentHash`: Hash of the previous block - `TxTrieRoot`: Merkle root of transactions - `AccountStateRoot`: State root hash - `TransactionsCount`: Number of transactions in this block The `BlockMessage` also includes: - `Chain`: Information about the blockchain - `Witness`: Details about the block producer (Super Representative) - `Address`: The witness account address - `Id`: Witness identifier - `Signature`: Block signature ### Transaction-Level Data Transactions include: - `TransactionHeader`: Core transaction data - `Hash`: Transaction hash - `Fee`: Transaction fee - `Index`: Position in the block - `Expiration`: When the transaction expires - `FeeLimit`: Maximum fee allowed - `Signatures`: Transaction signatures - `FeePayer`: Account that pays the fee - `Result`: Execution outcome - `Status`: Transaction status - `Success`: Whether transaction succeeded - `Message`: Error message if failed - `Receipt`: Resource consumption details - `EnergyUsageTotal`: Total energy consumed - `EnergyFee`: Fee paid for energy - `NetUsage`: Bandwidth used - `NetFee`: Fee paid for bandwidth ### Contract Data The `Contract` section contains detailed information about smart contract interactions: - `Address`: Contract address - `Type`: Contract type (e.g., "TransferContract", "TriggerSmartContract") - `TypeUrl`: Protocol buffer type URL - `Arguments`: Contract-specific arguments - `InternalTransactions`: Sub-transactions created during execution - `CallerAddress`: Initiator address - `TransferToAddress`: Recipient address - `CallValues`: Assets transferred - `Note`: Additional information - `Logs`: Event logs emitted by the contract - `Trace`: Detailed execution trace (similar to EVM) - `RewardWithdraw`: Information about reward distribution ### Token Data The `TokenBlockMessage` stream provides information about token transfers: - `TokenTransfer`: Records token movements with: - `Sender`: Address sending tokens - `Receiver`: Address receiving tokens - `Amount`: Amount of tokens transferred - `Currency`: Detailed token information - `Success`: Whether the transfer succeeded - `AmountInUSD`: USD value of the transferred amount TRON supports multiple token standards: - TRC10: Native TRON tokens identified by TokenId - TRC20: Similar to ERC20 on Ethereum - TRC721/TRC1155: Non-fungible tokens ### DEX (Decentralized Exchange) Data The `DexBlockMessage` stream is specialized for DEX trading activity: - `DexTrade`: Records of trades executed on DEXs (TRON reuses the EVM `DexTrade` message) - `Buy`/`Sell`: Both sides of the trade, each with an `AmountInUSD` field giving the USD value of that side - `Dex`: Information about the exchange - `Success`: Whether the trade succeeded - `Fees`: Trading fees paid - `TransactionFeeInUSD`: USD value of the transaction fee ### TRON-Specific Features TRON has several unique features compared to other blockchain protocols: - **Energy and Bandwidth Model**: Instead of a simple gas model, TRON uses Energy for smart contract execution and Bandwidth (Net) for transaction size - **Witness System**: Block producers are called Witnesses or Super Representatives - **Contract Types**: TRON has predefined contract types for common operations - **TRC10 Tokens**: Native token support without smart contracts, referenced by TokenId - **Resource Delegation**: Users can delegate resources to each other ### Using This Stream in Python, JavaScript, and Go Python, JavaScript, and Go code samples can be used with these streams by changing the topic to one of: - `tron.raw.proto` (for raw block data) - `tron.transactions.proto` - `tron.tokens.proto` - `tron.dextrades.proto` - `tron.broadcasted.raw.proto` (for raw broadcasted block data) - `tron.broadcasted.transactions.proto` (for broadcasted transactions) - `tron.broadcasted.tokens.proto` (for broadcasted token transfers) - `tron.broadcasted.dextrades.proto` (for broadcasted DEX trades) The Python package [bitquery-pb2-kafka-package](https://pypi.org/project/bitquery-pb2-kafka-package/) includes all schema and is up to date so you don't have to manually install schema files. --- ## Understanding Bitquery Cubes: Which Cube Answers Which Question URL: https://docs.bitquery.io/docs/category/understanding-cubes/ One GraphQL root per data type: trades, transfers, balances, calls, events, blocks. The EVM, Solana and Trading cube families, datasets, and which cube to pick. # Understanding Bitquery Cubes: Which Cube Answers Which Question A cube is one GraphQL root per kind of on-chain fact. `DEXTrades` holds swaps, `Transfers` holds token movements, `Balances` holds what an address owns now, `Calls` and `Events` hold decoded contract activity, `Blocks` and `Transactions` hold the chain itself. Every cube takes the same `where`, `orderBy` and `limit` arguments, supports aggregates such as `count`, `sum` and `uniq`, and runs as a query or, with the keyword changed, as a WebSocket subscription. Cubes come in three families: chain-level EVM cubes under `EVM(network: ...)`, chain-level Solana cubes under `Solana`, and the cross-chain `Trading` cubes that carry USD prices for ten chains in one schema. The `dataset` argument decides how far back a chain-level cube reaches. ## The three families | Family | Root | Cubes | What it is for | |---|---|---|---| | EVM | `EVM(network: eth)` and the other EVM chains | DEXTrades, DEXTradeByTokens, DEXPools, Transfers, Balances, Holders, TransactionBalances, Transactions, Calls, Events, Blocks, MinerRewards | Anything on Ethereum, BNB Chain, Base, Arbitrum, Optimism, Polygon, Robinhood Chain or Arc, from a single swap to decoded contract logs | | Solana | `Solana` | DEXTrades, DEXTradeByTokens, DEXOrders, DEXPools, Transfers, BalanceUpdates, Instructions, Transactions, Blocks, Rewards, TokenSupplyUpdates | Solana at instruction level, including launchpads and program calls | | Trading | `Trading` | Trades, Tokens, Pairs, Currencies | Prices, OHLC, market cap and supply across ten chains with one schema and USD on every row | ## Which cube answers which question | Question | Cube | |---|---| | Every swap on a DEX, with both sides and the trader | `DEXTrades` | | Volume, OHLC, buyers and sellers for one token over time | `DEXTradeByTokens` | | Pool creation and liquidity changes | `DEXPools` | | Who sent what to whom | `Transfers` | | What an address holds right now, or who holds a token | `Balances` and `Holders` | | Every balance change, per transaction | `TransactionBalances` on EVM, `BalanceUpdates` on Solana | | Method calls, internal transactions, reverts | `Calls` | | Decoded contract logs, an `eth_getLogs` replacement | `Events` | | Receipts, gas, status | `Transactions` | | A token's price on any chain, market cap, candles | `Trading.Tokens`, `Trading.Pairs`, `Trading.Currencies` | The comparison page [DEXTrades vs DEXTradeByTokens vs Trades](/docs/cubes/dextrades-dextradebytokens-trading-trades) settles the most common choice: swap rows, per-token aggregates, or cross-chain USD prices. ## Datasets decide depth Chain-level cubes accept `dataset: realtime`, `archive` or `combined`. Realtime is the freshest and shortest window (hours to days depending on the cube), archive is the history, combined stitches both. Leaving the argument out means realtime, which is the usual reason a query "works" but returns nothing for last month. The Trading cubes take no dataset argument and hold roughly the last 30 days. Per-cube windows are on [data coverage and retention](/docs/graphql/data-coverage-retention). ## A first cube query The latest three DEX trades on Ethereum. Run it in the [Bitquery IDE](https://ide.bitquery.io) on a free account, then change the network, the cube or the filter. ```graphql { EVM(network: eth) { DEXTrades(limit: { count: 3 }, orderBy: { descending: Block_Time }) { Block { Time } Trade { Dex { ProtocolName } Buy { Currency { Symbol } Amount } Sell { Currency { Symbol } Amount } } } } } ``` ## Pages in this section | Page | Read it for | |---|---| | [EVM builder terms](/docs/cubes/EVM) | Every argument and field name across the EVM cubes, in one place | | [Solana builder terms](/docs/cubes/solana) | The same for Solana | | [DEX Trades cube](/docs/cubes/dextrades) | Swap-level rows with filters and aggregates | | [DEXTradeByTokens cube](/docs/cubes/dextradesbyTokens) | Per-token aggregates, OHLC and stats | | [DEXTrades vs DEXTradeByTokens vs Trades](/docs/cubes/dextrades-dextradebytokens-trading-trades) | Picking between the three trade cubes | | [DEXPools cube on EVM](/docs/cubes/evm-dexpool) | Pools, reserves and liquidity events | | [Transaction cube](/docs/cubes/transaction-cube) | Transactions and receipts | | [Balances and Holders cubes](/docs/cubes/balances-cube) | Current balances and holder rankings | | [Balance Updates cube](/docs/cubes/balance-updates-cube) | Per-change balance history | | [Transfers cube](/docs/cubes/transfers-cube) | Token and native transfers | | [EVM token holders schema](/docs/schema/evm/token-holders) | Field reference for holders | ## Related pages - [Building GraphQL queries](/docs/category/building-queries) - [GraphQL query capabilities](/docs/category/capabilities) - [Data coverage and retention](/docs/graphql/data-coverage-retention) - [Crypto Price API (Trading cubes)](/docs/trading/crypto-price-api/) --- ## Usage API - Track Billing and Quota Programmatically URL: https://docs.bitquery.io/docs/authorization/usage-api/ Usage API - Track Billing and Quota Programmatically in Bitquery docs with practical setup steps, examples, and guidance for secure API access. # Usage API The **Usage API** exposes OAuth2-authenticated endpoints on [account.bitquery.io](https://account.bitquery.io/) so you can **programmatically track billing period status, plan limits, and consumption** for your Bitquery account. Open the interactive reference and copy a bearer token from **[Authorization → Usage API](https://account.bitquery.io/user/api)**. To create or manage tokens, see [How to Generate a Token](/docs/authorization/how-to-generate/). :::caution Keep your token secret Authenticate every request with your account bearer token in the `Authorization` header. The token identifies your account — do not expose it in client-side code, public repos, or logs. ::: ## Authentication Send your account bearer token on every request: ```bash curl -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ https://account.bitquery.io/api/usage ``` Replace `YOUR_ACCESS_TOKEN` with a token from [Access tokens](https://account.bitquery.io/user/api_v2/access_tokens) or the token shown on the [Usage API](https://account.bitquery.io/user/api) page. Token format is typically `ory_at_...` with an expiration date. ## Billing plan usage **`GET /api/usage`** Returns your **current billing period** — its plan, limits, usage recorded against them, and an overall status. - **Team members** receive their **team manager's** billing period (`payer_id` is the manager's account id). - When no period is active, the **most recent** period is returned instead. ### Period status | Status | Description | | --- | --- | | **`active`** | The period currently covers the present time. | | **`grace`** | The period ended but is still within the grace window. | | **`blocked`** | The period or account is blocked. | | **`expired`** | The period ended and the grace window has passed. | ### Response fields | Field | Type | Description | | --- | --- | --- | | `account_id` | integer | Your account id. | | `payer_id` | integer | Account that owns the billing period — the team manager for team members, otherwise the same as `account_id`. | | `status` | string | `active`, `grace`, `blocked`, or `expired` (see above). | | `billing_period.started_at` | datetime | Period start (ISO 8601, UTC). | | `billing_period.ended_at` | datetime | Period end (ISO 8601, UTC). | | `billing_period.plan_name` | string | Display name of the plan. | | `billing_period.product` | object \| null | Linked product as `{ "name": "..." }`, or `null` when the period has no product (e.g. free plans). Use `plan_name` for a label that is always present. | | `billing_period.limits` | object | Plan limits: `points_limit`, `rate_limit`, `session_limit`, `subscription_limit`, `time_sec_limit`, `traffic_bytes_limit`, `team_slots_limit`. | | `billing_period.usage` | object | Usage so far this period: `points_usage`, `requests_usage`, `time_sec_usage`, `traffic_bytes_usage`. | | `billing_period.description` | object | Full raw period description (all plan attributes). | ### Example response ```json { "account_id": 12345, "payer_id": 12345, "status": "active", "billing_period": { "started_at": "2026-06-24T00:00:00Z", "ended_at": "2026-07-23T23:59:59Z", "plan_name": "Paid plan", "product": null, "limits": { "points_limit": 100000000000, "rate_limit": 10000, "session_limit": 1000, "subscription_limit": 1000, "time_sec_limit": 0, "traffic_bytes_limit": 0, "team_slots_limit": 5 }, "usage": { "points_usage": 4458, "requests_usage": 184, "time_sec_usage": 301, "traffic_bytes_usage": 3763747 }, "description": { "points_limit": 100000000000, "rate_limit": 10000, "session_limit": 1000, "subscription_limit": 1000 } } } ``` ## Example: Python ```python ACCESS_TOKEN = "YOUR_ACCESS_TOKEN" response = requests.get( "https://account.bitquery.io/api/usage", headers={"Authorization": f"Bearer {ACCESS_TOKEN}"}, ) response.raise_for_status() data = response.json() period = data["billing_period"] print(f"Status: {data['status']}") print(f"Plan: {period['plan_name']}") print(f"Points used: {period['usage']['points_usage']} / {period['limits']['points_limit']}") print(f"Requests: {period['usage']['requests_usage']}") ``` --- ## Use Bitquery MCP in Cursor URL: https://docs.bitquery.io/docs/mcp/cursor/ Use Bitquery MCP in Cursor with Bitquery MCP for AI tools like Claude and Cursor to analyze on-chain data in plain English. # Use Bitquery MCP in Cursor Add Bitquery to Cursor so the AI can query live and historical DEX trades, OHLC, market cap, wallet data, Polymarket and Hyperliquid perpetuals via [`https://mcp.bitquery.io`](https://mcp.bitquery.io). ## Setup via Cursor settings 1. Open **Cursor Settings** → **MCP** (or **Features → MCP Servers**). 2. Add a new MCP server. 3. URL: `https://mcp.bitquery.io` 4. Reload MCP configuration or restart Cursor. 5. Approve Bitquery when prompted and sign in with your Bitquery account. ## Setup via config file Add to `.cursor/mcp.json` in your project (or global Cursor config): ```json { "mcpServers": { "bitquery": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.bitquery.io/mcp"] } } } ``` Restart Cursor so the server is picked up. On first tool call, complete OAuth in the browser. ## Example prompts - *"Which Base tokens crossed $10M market cap in the last 24h?"* - *"Pull Pump.fun trades for mint `…` in the last hour."* - *"Compare 24h volume on Raydium vs Orca for SOL pairs."* More detail: [MCP server overview](/docs/mcp/mcp-server/). --- ## Use Bitquery MCP in Windsurf URL: https://docs.bitquery.io/docs/mcp/windsurf/ Use Bitquery MCP in Windsurf with Bitquery MCP for AI tools like Claude and Cursor to analyze on-chain data in plain English. # Use Bitquery MCP in Windsurf Connect Windsurf to Bitquery's hosted MCP endpoint at [`https://mcp.bitquery.io`](https://mcp.bitquery.io) to query DEX trades, prices, liquidity, wallet history, Polymarket and Hyperliquid perpetuals while you build trading tools and dashboards. ## Setup 1. Open **Windsurf** → **Settings** → **MCP** (or the MCP / Cascade connectors panel). 2. Add a **custom MCP server**. 3. Server URL: `https://mcp.bitquery.io` 4. Save and reload the MCP configuration. 5. On first use, sign in with your Bitquery account when OAuth opens in the browser. If Windsurf expects a JSON config, use the same `mcp-remote` pattern as Cursor: ```json { "mcpServers": { "bitquery": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.bitquery.io/mcp"] } } } ``` ## Example prompts - *"Latest Raydium pool creations on Solana in the last 2 hours."* - *"OHLC 5m candles for ETH/USDC on Uniswap v3 today."* - *"Wallet PnL summary for `0x…` on Ethereum last 30 days."* See [MCP server overview](/docs/mcp/mcp-server/) for full coverage and auth options. --- ## Using Bitquery Subscriptions to Load On-chain Data into S3 URL: https://docs.bitquery.io/docs/subscriptions/aws/s3_tutorial/ Using Bitquery Subscriptions to Load On-chain Data into S3 using Bitquery GraphQL subscriptions over WebSocket for live multi-chain blockchain monitoring. # Using Bitquery Subscriptions to Load On-chain Data into S3 In this tutorial we will use Bitquery Subscription queries to fetch latest Pumpfun information on Solana upload it to an S3 Bucket. ![Uploading streamed data to AWS S3](/img/aws/upload.png) #### **1. Prerequisites** Before diving into the tutorial, ensure you have: 1. **AWS Account**: With access to an S3 bucket and all permissions configured for Write Access. 2. **Bitquery Account**: For generating a token to access the Streaming APIs. Follow [this link](/docs/authorization/how-to-generate/) for token generation. 3. **Python Environment**: With required libraries installed. Install required libraries if not already done: ```bash pip install asyncio websockets boto3 ``` #### **2. Setting Up AWS S3 Configuration** The code initializes the AWS S3 client to upload JSON data: ```python # AWS S3 configuration s3_client = boto3.client( 's3', aws_access_key_id='your_aws_access_key', aws_secret_access_key='your_aws_secret_key', region_name='your_aws_region' ) bucket_name = 'your_s3_bucket_name' ``` - Replace `your_aws_access_key`, `your_aws_secret_key`, `your_aws_region`, and `your_s3_bucket_name` with your AWS credentials and bucket name. #### **3. Setting Up the WebSocket Connection** The WebSocket connection is established with the Bitquery API: ```python # Bitquery WebSocket API details url = "wss://streaming.bitquery.io/graphql?token=your_bitquery_token" ``` - Replace `your_bitquery_token` with the token generated from Bitquery ([guide](/docs/authorization/how-to-generate/)). #### **4. Writing the Subscription Query** The subscription query gets real-time Pumpfun DEX trades : ```python query = """ subscription MyQuery { Solana { DEXTrades( where: { Trade: { Dex: { ProtocolName: { is: "pump" } } } Transaction: { Result: { Success: true } } } ) { Trade { Dex { ProtocolFamily ProtocolName } Buy { Amount Account { Address } } Sell { Amount Account { Address } } } Transaction { Signature } } } } """ ``` You can find more queries here: [Solana Pump Fun API](/docs/blockchain/Solana/Pumpfun/Pump-Fun-API/). #### **5. Fetching and Uploading Data** The `fetch_and_upload` function manages the WebSocket connection, listens for messages, and uploads them to S3. ##### **a. Initialize Connection** ```python await websocket.send(json.dumps({"type": "connection_init"})) ``` The WebSocket connection is initialized by sending a `connection_init` message. It waits for an acknowledgment (`connection_ack`). ##### **b. Send Subscription Query** ```python await websocket.send(json.dumps({"type": "start", "id": "1", "payload": {"query": query}})) ``` After acknowledgment, the subscription query is sent. ##### **c. Listen for Messages** ```python while True: response = await websocket.recv() data = json.loads(response) if data.get("type") == "data" and "payload" in data: trades = data['payload']['data'].get('Solana', {}).get('DEXTrades', []) ``` The WebSocket listens continuously for messages and processes subscription data. ##### **d. Upload Data to S3** ```python def upload_to_s3(data): s3_key = f"data/{data['transaction_signature']}.json" s3_client.put_object(Body=json.dumps(data), Bucket=bucket_name, Key=s3_key) print(f"Uploaded message to S3: {s3_key}") ``` For each message, a JSON file is created with a unique key (`transaction_signature`) and uploaded to S3. #### **6. Error Handling** The code includes error handling for the WebSocket and S3 uploads: ```python try: await fetch_and_upload() except Exception as e: print(f"Error occurred: {e}") ``` This ensures the program continues running even if an error occurs. #### **7. Running the Script** The `asyncio.run(main())` function starts the asynchronous process: ```python async def main(): try: await fetch_and_upload() except Exception as e: print(f"Error occurred: {e}") asyncio.run(main()) ``` ### **Execution Steps** 1. Replace placeholder values (`your_aws_access_key`, `your_bitquery_token`, etc.) with your credentials. 2. Save the script as `bitquery_s3_upload.py`. 3. Run the script: ```bash python bitquery_s3_upload.py ``` 4. Check your S3 bucket for uploaded JSON files. --- ## What Does Not Survive Streaming URL: https://docs.bitquery.io/docs/subscriptions/what-does-not-survive-streaming/ Query features that are unavailable or silently degraded in Bitquery GraphQL subscriptions, including selectWhere, if, statistical metrics, intervals and calculate expressions. # What Does Not Survive Streaming Most queries convert to a subscription by replacing `query` with `subscription`. **Trading cube queries are the exception.** Subscriptions are served by a separate, reduced type tree (`Trading__Stream_Cube`), so a query that works over HTTP can fail — or worse, silently return `null` — as a stream. The five rules below are what actually differs. ## 1. `selectWhere` and `if` do not exist on the stream `selectWhere` is absent from **280** field positions across the four Trading cubes, and `if` from **264**. Both produce a hard schema error in a subscription rather than being ignored. The practical consequence: **live threshold alerting is not expressible on a Trading stream.** You cannot say "notify me when a wallet's buy volume crosses $1M" in the subscription itself. Stream the rows and apply the threshold in your client, or poll a query on an interval. ## 2. Eighteen statistical metrics are query-only Streams keep `average`, `calculate`, `count`, `sum` and `uniq`. Everything else in the metric family — `correlation`, `covariance`, `rank_correlation`, `contingency`, `cramers`, `cramers_bias_corrected`, `theils_corrected`, `nakamoto`, `gini`, `theil_index`, `entropy`, `quantile`, `median`, `skew`, `kurtosis`, `dispersion` and the rest — is unavailable. ## 3. `interval:` is accepted and is a silent no-op The field-level `interval:` argument is accepted by the subscription schema and has **no effect**. It does not error, so a stream that looks like it is emitting 4-hour buckets is emitting whatever the underlying grain is. Do the bucketing client-side. ## 4. `calculate` needs a `$` on every field reference, and has no functions In a subscription, every field reference inside an expression must carry the `$` sigil. A single unsigiled token makes the whole expression return `null` — silently. A mixed expression fails just as completely as a fully bare one: ```graphql # null — bare names calculate(expression: "Price_Ohlc_Close - Price_Ohlc_Open") # null — one bare term is enough to poison it calculate(expression: "$Price_Ohlc_Close - Price_Ohlc_Open") # works calculate(expression: "$Price_Ohlc_Close - $Price_Ohlc_Open") ``` Subscriptions also support **arithmetic operators only**. Function calls — `round()`, `floor()`, `abs()`, `plus()`, `greatest()` — return `null` in a stream while working normally in a query. Drop them from the expression and round in your client. Aliased results can still be referenced and chained: `diff: calculate(...)` then `change: calculate(expression: "$diff / $Price_Ohlc_Open * 100")`. Queries are unaffected by all of this — bare names and functions both work there. ## 5. The Trading subscription root takes no arguments `RootSubscription.Trading` accepts no arguments, so `dataset:` and `aggregates:` are unavailable. `trigger_on` and mempool subscriptions are likewise not part of the Trading stream surface. ## Before you convert a query 1. Remove `selectWhere` and `if`. 2. Replace any statistical metric outside `average` / `calculate` / `count` / `sum` / `uniq`. 3. Drop `interval:` and bucket client-side. 4. Add `$` to every field reference inside `calculate`, and remove function calls. 5. Check the result for `null` computed fields before trusting the stream. ## Related - [Subscriptions](/docs/subscriptions/subscription/) - [Which cubes stream](/docs/subscriptions/which-cubes-stream/) - [Expressions](/docs/graphql/capabilities/expression/) - [Select by metric (`selectWhere`)](/docs/graphql/metrics/selectWhere/) --- ## What triggers a subscription update URL: https://docs.bitquery.io/docs/subscriptions/trigger/ How Bitquery GraphQL subscriptions deliver new block data over WebSocket, how abandoned blocks show up in a stream, and what the trigger_on argument does. # What triggers a subscription update A subscription receives new data as each block's data arrives in the stream, when the data matches the conditions of the query. Subscriptions are not re-queried from the database, and they are not delayed to wait for the chain to decide on a block. ## Abandoned blocks in subscriptions A subscription delivers a block as soon as it is produced, before the chain has decided on it. A block of a fork that is later abandoned is delivered like any other, and the message is not recalled. This affects a small share of rows on chains such as Solana and Ethereum. If your application must process only blocks that stay on the chain: - treat recent data as provisional for a few seconds; or - on Solana, re-check with a query on the real-time dataset: `select_blocks: branches` lists the abandoned blocks, and `select_blocks: trunk` leaves them out (see [Select Blocks](/docs/graphql/dataset/select-blocks/)). ## trigger_on The `trigger_on` argument (`all`, `head`, `head_updates`, `branches_updates`) is accepted for compatibility. It does not change which messages a subscription delivers: every value delivers every block. Leave it out. Checked on 7 November 2026 against `wss://streaming.bitquery.io/graphql`: six Ethereum `Blocks` subscriptions run side by side, one without the argument and one for each value, received the same blocks in the same order. Any other value, such as `block`, is rejected. The argument exists only on subscriptions; a `query` with `trigger_on` is rejected with `Unknown argument "trigger_on"`. --- ## Which Cubes Support Subscriptions URL: https://docs.bitquery.io/docs/subscriptions/which-cubes-stream/ Every Bitquery cube accepts a subscription, but not every cube pushes data. Which cubes stream, which are query-only, and which need a filter. # Which cubes support subscriptions Every cube on `EVM`, `Solana`, `Trading` and `Tron` appears on the subscription schema. A subscription against any of them is a valid document and the server accepts it. That does not mean every cube pushes data. :::danger A valid subscription is not a working subscription Three cubes accept your subscription and then disconnect you under load. Five accept it and never send a single message. In both cases you get no error from the schema, no rejection at subscribe time, and nothing in your logs except silence. This page tells you which is which. ::: --- ## The three behaviours | Behaviour | What you see | What to do | |---|---|---| | **Streams** | Messages arrive within seconds | Nothing, it works | | **Needs a filter** | Some messages, then the socket closes with code `1013` | Add a `where` filter, consume asynchronously | | **Query-only** | Socket stays open, no message ever arrives | Use a query, or stream a different cube | --- ## Matrix Relative volume is a rough guide to what your consumer has to keep up with, not a throughput guarantee. ### Solana | Cube | Subscription | Volume | |---|---|---| | `Blocks` | Streams | High | | `Transactions` | Streams | High | | `Transfers` | Streams | High | | `TokenSupplyUpdates` | Streams | High | | `DEXPools` | Streams | High | | `DEXTrades` | Streams | Moderate | | `DEXTradeByTokens` | Streams | Moderate | | `Rewards` | Streams | Moderate | | `DEXOrders` | Streams | Low | | `PerpetualOrders` | Streams | Moderate | | `PerpetualFills` | Streams | Low | | `PerpetualPositions` | Streams | Low | | `PerpetualPrices` | Streams | Low | | `PerpetualMarketSummaries` | Streams | Low | | `Instructions` | **Filter required** | Very high | | `BalanceUpdates` | **Filter required** | Very high | | `InstructionBalanceUpdates` | **Filter required** | Very high | ### EVM | Cube | Subscription | Volume | |---|---|---| | `MinerRewards` | Streams | High | | `Events` | Streams | Moderate | | `Transactions` | Streams | Moderate | | `Transfers` | Streams | Moderate | | `Blocks` | Streams | Low (block cadence) | | `Calls` | Streams | Low | | `DEXTrades` | Streams | Low | | `DEXTradeByTokens` | Streams | Low | | `DEXPoolEvents` | Streams | Low | | `DEXPoolSlippages` | Streams | Low | | `TransactionBalances` | Streams | Low | | `PredictionTrades` | Streams (`network: matic`) | Moderate | | `PredictionSettlements` | Streams (`network: matic`) | Moderate | | `PredictionManagements` | Streams (`network: matic`) | Low | | `Balances` | **Query-only** | — | | `Holders` | **Query-only** | — | | `Uncles` | **Query-only** | — | ### Trading | Cube | Subscription | Volume | |---|---|---| | `Trades` | Streams | Very high | | `Pairs` | Streams | Very high | | `Currencies` | Streams | Very high | | `Tokens` | Streams | Very high | All four Trading cubes are among the busiest streams on the platform. Filter them. ### Tron | Cube | Subscription | Volume | |---|---|---| | `Transfers` | Streams | Moderate | | `Transactions` | Streams | Moderate | | `DEXTradeByTokens` | Streams | Low | | `Events` | Streams | Low | | `Blocks` | Streams | Low (block cadence) | | `Calls` | Streams | Low | | `DEXTrades` | Streams | Low | | `Balances` | **Query-only** | — | | `Holders` | **Query-only** | — | --- ## Filter-required cubes and close code 1013 `Solana.Instructions`, `Solana.BalanceUpdates` and `Solana.InstructionBalanceUpdates` carry every instruction and every balance change on Solana. Subscribing without a filter asks for the entire firehose, and when your client cannot drain the socket fast enough the server closes it: ``` close code 1013 — client is not consuming messages fast enough ``` `1013` is "Try Again Later" in the WebSocket spec. Nothing is wrong with your query. The server is shedding a consumer that fell behind. The failure is worse than a clean error because it is **load-dependent**. The same unfiltered subscription can run fine during a quiet minute and get dropped during a busy one, so it passes in development and fails in production. ### The fix Add a `where` filter so the server sends you only what you need. An unfiltered `BalanceUpdates` subscription is dropped; the same subscription narrowed to a single token runs cleanly: ```graphql subscription { Solana { BalanceUpdates( where: { BalanceUpdate: { Currency: { MintAddress: { is: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" } } } } ) { BalanceUpdate { Amount Currency { Symbol } Account { Address } } } } } ``` The same applies to `Instructions`. Filter by program: ```graphql subscription { Solana { Instructions( where: { Instruction: { Program: { Address: { is: "675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8" } } } } ) { Block { Time } Transaction { Signature } Instruction { Program { Method } } } } } ``` Filtering is not only a throughput fix. It is also cheaper, since you are not paying to receive rows you discard. ### Also drain the socket asynchronously A filter reduces the rate; it does not make a blocking consumer safe. Push each message onto a queue and process it elsewhere, so parsing or database writes never stall the read loop. See [Reconnect automatically after disconnect](/docs/subscriptions/silent-disconnect-reconnect/) for a working consumer and reconnect loop. --- ## Query-only cubes These accept a subscription and never emit, and the reason is structural. `Balances` and `Holders` are backed by **aggregate-state tables** (`balances_by_address` and `balances_by_currency`) holding **daily** balance aggregates rather than individual changes. A daily grain has no per-event row to push, so there is nothing for a subscription to deliver. That is also what makes them fast to query and what gives them `combined` support, so the trade-off is deliberate rather than a gap. :::info Stream the changes, query the state For a live view, stream `Transfers` (or `TransactionBalances` on EVM) and apply the deltas yourself. Use `Balances` and `Holders` for the starting state and for periodic checks. ::: | Cube | Use instead | |---|---| | `EVM.Balances` | Query it on a schedule, or stream `EVM.TransactionBalances` / `EVM.Transfers` and apply deltas | | `EVM.Holders` | Query it on a schedule; stream `EVM.Transfers` for the token to know when to refresh | | `Tron.Balances` | Query on a schedule, or stream `Tron.Transfers` | | `Tron.Holders` | Query on a schedule, or stream `Tron.Transfers` | | `EVM.Uncles` | Query with `dataset: archive`. Ethereum has produced no uncles since the Merge | The pattern for a live balance is to read the balance once, then keep it current from the transfer stream, rather than polling the balance cube in a loop. --- ## Cubes that need a specific network or dataset Some cubes exist on the `EVM` root but only carry data on one network or one dataset. The error message is the only place this is stated today, so it is worth listing: | Cube | Requirement | |---|---| | `EVM.PredictionTrades` | `network: matic` | | `EVM.PredictionManagements` | `network: matic` | | `EVM.PredictionSettlements` | `network: matic` | | `EVM.Uncles` | `dataset: archive` | | `EVM.TransactionBalances` | realtime only, no archive tables | Querying `EVM.PredictionTrades` on `network: eth` returns `no data available yet to query dataset realtime eth for PredictionTrade`, which reads like an outage but is a routing mistake. --- ## How this was measured Every row was tested against `wss://streaming.bitquery.io/graphql` with the `graphql-ws` subprotocol, one socket per cube, using a minimal selection set generated from schema introspection. Cubes that produced nothing in the first pass were retried on a longer window, because some low-frequency cubes take longer than 20 seconds to deliver their first message. Classification rules: - **Streams** — at least one message on a socket held open long enough for the cube's cadence. - **Filter required** — reproducibly closed with `1013` when unfiltered, and delivered normally once a `where` clause was added. - **Query-only** — no message and no error across repeated runs, while control subscriptions on the same chain in the same session delivered normally. The controls matter: a chain-level failure would have shown up as every cube on that chain going quiet, and that did not happen. --- ## Related - [Reconnect automatically after disconnect](/docs/subscriptions/silent-disconnect-reconnect/) - [Subscriptions overview](/docs/subscriptions/subscription/) - [WebSocket authorization](/docs/authorization/websocket/) - [Backfilling a subscription](/docs/subscriptions/backfilling-subscription/) --- ## Your First Bitquery GraphQL Query URL: https://docs.bitquery.io/docs/start/first-query/ Run your first Bitquery GraphQL query in minutes with IDE setup, authentication basics, and a simple starter example you can reuse. # Your First Query Create and run your first query on Bitquery IDE by visiting [https://ide.bitquery.io/](https://ide.bitquery.io/). ## Create an account To continue, you must first [register](https://account.bitquery.io/auth/signup) an account to access the IDE window. **Registration Process**: - Navigate to the Bitquery GraphQL IDE by visiting [https://ide.bitquery.io/](https://ide.bitquery.io/). - If you are not registered, click on the "Not registered" link. - You will need to provide your Email, Password, Password Confirmation, Name, and Company Name in the designated fields. - Complete the CAPTCHA challenge and click the Submit button to proceed. - After submitting your registration form, check your email for a confirmation message. Click the link within this email to verify your account. Once your email is successfully verified, you will receive a notification, confirming your account creation is complete. If IDE points to the default endpoint https://graphql.bitquery.io, use the dropdown to change it to the new endpoint https://streaming.bitquery.io/graphql which is labelled as "V2". If you do everything correctly, you will see the grey triangle in the middle of the screen to run the query. The query editor is in the center of the screen, and you can use handy Ctrl-Space key combination to see all possible options that you can enter at the edit point. On the empty editor, it will show the drop-down list: ![IDE context menu](/img/ide/context_menu.png) So you can type the query using hints from IDE. For example, you can query the latest 10 blocks on the ETH network: ```graphql { EVM(network: eth) { Blocks(limit: { count: 10 }) { Block { Number Time } } } } ``` After you create a query, the run triangle button will appear to be green, and you can press it now to see the results: ![IDE query execution](/img/ide/query_execution.png) ## Selecting the Dataset When choosing a dataset from the dropdown menu, you have three options: "realtime," "archive," and "combined." Based on your needs, pick an option. - `realtime`: provides data in real-time as it is published onchain, usually used for data obtained through subscriptions. - `archive`: contains non-real-time data. - `combined`: includes both types of data, but it's advisable not to use it for complex queries. For example, ```graphql { EVM(network: eth, dataset: archive) { Blocks(limit: { count: 10 }) { Block { Number Time } } } } ``` ## Next Steps Now that you've created your first query, learn which data primitives to use: - **[Mental Model: Transfers, Events, Calls, and DexTrades](/docs/start/mental-model-transfers-events-calls)** - Understand when to use Transfers, Events, Calls, or DexTrades for your queries - **[Starter Queries](/docs/start/starter-queries)** - Try pre-built queries for common use cases - **[Learning Path](/docs/start/learning-path)** - Follow a structured path from beginner to advanced --- ## 中文文档 (Chinese) URL: https://docs.bitquery.io/docs/chinese/ Bitquery 中文文档说明:如何用浏览器自动翻译阅读完整文档,以及中文支持渠道。 # Bitquery 中文文档 Bitquery 的完整文档目前以**英文**提供。您可以使用浏览器的自动翻译功能,用中文阅读所有页面。 ## 使用自动翻译 - **Chrome / Edge**:在任意文档页面右键单击 → 选择“翻译成中文”。 - **Safari**:点击地址栏中的翻译图标 → 选择中文。 翻译后即可浏览全部内容,包括代码示例。 ## 常用页面 - [快速开始(第一个查询)](/docs/start/first-query/) - [数据覆盖与保留时间](/docs/graphql/data-coverage-retention/) - [套餐、积分与限制](/docs/plans/how-billing-works/) - [Solana API](/docs/blockchain/Solana/) - [MCP 服务器(AI 代理)](/docs/mcp/mcp-server/) ## 中文支持 如需中文支持,请通过 [Telegram](https://t.me/Bloxy_info) 联系我们,或发送邮件至 [support@bitquery.io](mailto:support@bitquery.io)。