API key is required — unauthenticated connections are rejected. Get a key from the @toncenter bot.
Endpoints
- SSE
- WebSocket
Quick Example
Event Models
All models are PydanticBaseModel subclasses from toncenter.streaming.
TransactionsNotification
TransactionsNotification
ActionsNotification
ActionsNotification
TraceNotification
TraceNotification
AccountStateNotification
AccountStateNotification
AccountState fields: hash, balance, account_status, data_hash, code_hash.JettonsNotification
JettonsNotification
JettonWallet fields: address, balance, owner, jetton, last_transaction_lt.TraceInvalidatedNotification
TraceInvalidatedNotification
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
All ActionType values (22)
All ActionType values (22)