TON API · GraphQL · Kafka · gRPC · Cloud export

The TON data API for Telegram-scale traffic.

You shouldn't have to run a validator just to read a swap. We run TON nodes and index every block, so STON.fi, DeDust and Megaton trades, Jetton transfers, balances and NFTs all live in one schema you can query — or stream in real time.

Trusted on TON byNansen0xLukka
ton.DEXTradesReal-time & historical swaps across every TON DEX.Docs
dex_trades.graphqlCopy
subscription {
  ton(network: ton) {
    DEXTrades(
      where: {Trade: {Dex:
        {ProtocolName: {is: "stonfi"}}}}
    ) {
      Trade {
        Buy { Price Amount
          Currency { Symbol } }
        Dex { ProtocolName }
      }
    }
  }
}
responseSTREAMING
Pair / DEXSidePriceAmount
200 · gRPC · 84msstreaming.bitquery.io
01 Forget the RPC

Most TON questions don't map to a single RPC call.

"What did this wallet trade?" sounds simple, but on raw RPC it turns into thousands of chained calls, instruction decoders you maintain yourself, and data that gets dropped exactly when volume spikes. We've already done that work, so you can skip to the answer.

What you're doing
Raw TON RPC
Bitquery TON API
One wallet's full trade history
Thousands of chained calls
A single GraphQL query
Reading STON.fi / DeDust trades
You write every parser
Decoded for every program
Peak DeDust volume
Dropped data & rate limits
No miss, sub-300ms streams
Historical depth
Pruned after ~2 days
Complete history on Enterprise
Infrastructure to run
Validators, RPC, reorgs
None — fully managed
02 Delivery channels

Four ways to get TON data — one schema underneath.

Model your query once in GraphQL and the same TON fields come back over GraphQL streams, Kafka, gRPC or a bulk cloud export. There's no second schema to learn; you just pick the channel that matches your latency and volume.

03DEX & program coverage

Every major TON venue, decoded into one feed.

A single DEXTrades query spans every venue below. Filter by mint, pair, market, wallet or program ID — and aggregate to OHLCV, top traders or pool volume.

VenueTypeWhat you get
RSTON.fi logoSTON.fiAMM · CLMMSwaps, new pools, OHLCV, LP events
PDeDust logoDeDustLaunchpadNew mints, market, graduations
JMegaton logoMegatonAggregatorRouted swaps across every market
OTonco logoToncoWhirlpoolsConcentrated-liquidity trades & pools
PhStorm logoStormOrder bookFills, book events, market data
MTONExchange logoTONExchangeDLMMDynamic-bin swaps & liquidity
+ every new program we add
04 Build it this weekend

The TON products people ship on us.

Each one is a filter on the same indexed data — subscribe over WebSocket or gRPC on self-service (fixed-cost Kafka on Enterprise) for bots, or query GraphQL for dashboards.

gRPC · Kafka

Snipe new DeDust mints

Stream token-creation events the instant they launch and filter by market cap or creator wallet.

subscribe TokenSupplyUpdates
  where: { MarketCap: { ge: 5000 } }
Read the docs
WebSocket

Copy-trade any wallet

Subscribe to a target wallet's swaps across every DEX and mirror them in real time for copy-trading or alerts.

ton.DEXTrades
  where: { Trade.Account: "<wallet>" }
Read the docs
GraphQL

Build OHLCV charts

Aggregate raw trades into candlesticks per pair and interval — the feed behind TradingView-style TON charts.

DEXTradeByTokens {
  Trade: { close: PriceInUSD ... }
} # 1m / 5m / 1h
Read the docs

What teams say about our TON data

"We did a thorough search of the market for the best onchain data. Bitquery came out on top — and now powers all live prices across Nansen. We don't think of them as a vendor. They're a partner."

A
Alexander Karsten
Nansen
157B+
TON rows indexed / week
<300ms
Kafka & gRPC stream latency
30×
Bigger than any other chain we serve
Also building on TON data0x3CommasLukkaNansen

Pricing

TON is available on Enterprise

TON is not included in our 9-chain self-service plans (Personal, Pro, Scale). Enterprise delivers complete history, unlimited streams and bulk delivery across 40+ chains — including TON.

Enterprise

Enterprise

Full history, unlimited streams and bulk delivery at a predictable flat platform fee — no metering surprises.

Custom platform fee

flat fee — modelled, not metered

◆ Committed envelope · S3 Parquet · Kafka · datashares
  • Complete history · 40+ chains full platform coverage
  • Unlimited WebSocket streaming no stream-min or GB limit
  • Custom points & rate limits
  • Kafka fixed-cost · S3 bulk export
  • Coinpath® money flow
  • SLA · SSO · dedicated support
Talk to sales →

Self-service covers 9 core chains

Personal ($49), Pro ($99) and Scale ($299) include real-time data on Solana, Ethereum, Tron, Base, Arbitrum, Optimism, BSC, Polygon and Robinhood. Need a smaller entry point on those chains?

See platform pricingCompare Personal, Pro, Scale & Enterprise side by side

Every paid self-service plan includes a 7-day free trial with full streaming — no card required.

06 FAQ

TON questions, answered.

How can I get TON blockchain data with Bitquery?
Bitquery provides historical and real-time TON data through GraphQL APIs, WebSocket subscriptions, Kafka streams and gRPC. We run our own TON validators, so you get sub-second latency on blocks, transactions, instructions, DEX trades and Jetton token transfers. This chain is available on Enterprise — talk to sales for a committed plan .
How do I query STON.fi, DeDust, Megaton and other DEX trades?
Use the TON DEXTrades query in our TON API to get trades from STON.fi, DeDust, Megaton, Tonco, Storm, TONExchange. Filter by token mint, pair, market, wallet or program ID and aggregate to OHLCV, top traders or volume per pool.
Can I track new DeDust token launches in real-time?
Yes. Subscribe to new token creation events on DeDust via GraphQL subscription or stream them in real time (WebSocket/gRPC on supported plans; fixed-cost Kafka on Enterprise). Filter by market-cap thresholds, new-pool / listing events on STON.fi, or specific creator wallets. See our DeDust API.
How do I stream TON data using Kafka or gRPC?
Bitquery operates TON validators that stream blocks, transactions, transfers and DEX trades into gRPC on supported plans and Kafka on Enterprise with sub-300ms latency. Ideal for trading bots, copy trading, sniping new tokens and high-frequency analytics.
Does Bitquery support Jetton tokens, NFTs and balance tracking?
Yes. We index every Jetton token transfer on TON with full holder, balance and price history. NFT and collectible transfers are indexed with mint, transfer and sale events where the chain supports them. Track wallet balances and PnL across thousands of Jetton tokens through a single GraphQL schema.
How do I monitor a TON wallet for copy trading or alerts?
Filter DEXTrades, Transfers or Instructionsqueries by wallet address to get a wallet's full TON history. Subscribe to GraphQL or Kafka streams for real-time alerts on a target wallet's swaps and transfers — ideal for copy-trading bots or whale-watching dashboards.

TON is available on Enterprise.

TON is not on Personal, Pro or Scale. Enterprise delivers complete history, unlimited streams and bulk delivery across 40+ chains — including TON. Talk to us for a committed plan.

Enterprise · Complete history · Custom committed pricing
40+ chains · one platform

Explore every blockchain Bitquery supports

Browse the full chain directory and coverage matrix — the same GraphQL schema, real-time streams and cloud datasets across every network we index.