Skip to main content
Subscribe to real-time blockchain events over SSE or WebSocket. Both transports use a decorator-based handler API and multiplex all subscriptions over a single connection.
API key is required — unauthenticated connections are rejected. Get a key from the @toncenter bot.

Endpoints

Quick Example

Event Models

All models are Pydantic BaseModel subclasses from toncenter.streaming.
AccountState fields: hash, balance, account_status, data_hash, code_hash.
JettonWallet fields: address, balance, owner, jetton, last_transaction_lt.
Fires when a previously delivered pending or confirmed trace becomes invalid. Discard cached data for that trace_external_hash_norm. No invalidation after finalized.
No invalidation for account_state_change or jettons_change. Use Finality.FINALIZED for irreversible balance data.

Action Types

For the raw wire protocol, see the Streaming API v2 specification.