API key is required for all webhook operations. Get one at tonconsole.com.
Architecture
Event Types
Endpoints
Quick Example
FastAPI integration with automatic webhook setup and event dispatch:Each webhook has a unique secret token. TON API sends it as
Authorization: Bearer {token} with every event delivery — use it to verify that incoming requests are genuine. The dispatcher verifies it automatically in process().Event Models
All models are PydanticBaseModel subclasses.
AccountTxEvent
AccountTxEvent
MempoolMsgEvent
MempoolMsgEvent
OpcodeMsgEvent
OpcodeMsgEvent
NewContractsEvent
NewContractsEvent
All webhook events are finalized — there is no pending/confirmed distinction unlike streaming mempool events.