Skip to main content
Webhooks deliver real-time POST notifications to your server when blockchain events occur. The SDK provides a low-level client for webhook CRUD and a high-level dispatcher with decorator-based event handling.
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:
See Guide for the full client API, dispatcher options, and aiohttp integration.
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 Pydantic BaseModel subclasses.
All webhook events are finalized — there is no pending/confirmed distinction unlike streaming mempool events.