Toncenter API
812 subscribers
6 photos
40 links
Updates and announcements of https://toncenter.com — fast and reliable HTTP API for TON (The Open Network).

Bot @toncenter.

API is developed by the TON Core team @toncore.
Download Telegram
Get-methods IDs

Now, the /accountStates response returns a list of smart contract get method IDs. Based on the presence of certain get methods, you can determine the type of some smart contracts. Adding get method indexing has also improved the accuracy of our Actions API.
3
Streaming API - Websockets/SSE for Enterprise Plan

We’re excited to announce that Toncenter has launched a Streaming API! This API enables real-time updates about pending and committed transactions and actions, filtered by specified addresses. The API supports both Server-Sent Events (SSE) and WebSocket protocols, offering flexibility for integration.

Currently, the Streaming API is available exclusively to Enterprise clients. In particular, the non-custodial wallet MyTonWallet has already begun to implement this feature for instant display of incoming transactions.

The Streaming API will soon be available to everyone.

Documentation
5
Dear users of toncenter.com/api/index

This old version of indexer service is deprecated since December 31, 2024 and will be completely disabled after August 10, 2025. We kindly ask you to migrate to new indexer API v3: toncenter.com/api/v3.
👍1
Overview of New Features in the Toncenter API

The first half of this year was dedicated to expanding the Toncenter API with powerful new features that apps and services can leverage to deliver an exceptional user experience.

Actions API
The Actions API can detect patterns in sequences of blockchain transactions and return user-friendly data, such as “Exchange 1,000 USDt on DeDust DEX”, “Deposit TON into @stakee staking”, or “Bid in a Telegram Gift auction”.

Since its initial release, the API has undergone several updates using a convenient versioning system. With each version — v1, v2, and etc — the number of supported actions and services has continued to grow.

Pending API
This API allows you to track blockchain operations that are still in progress. Messages sent to the blockchain appear instantly in this API, along with their processing status.

Standardized Action IDs
Normalized extrernal message hash are now standardized, ensuring a reliable way to locate and track any sent message within the TON Blockchain. This is especially useful when monitoring pending actions.

Streaming API (WebSockets / SSE)
The Streaming API provides real-time updates on both pending and confirmed transactions and actions.

Emulation API
The Emulation API predicts what actions will occur before a message is sent to the blockchain, improving both user convenience and safety.

Metadata API Enhancements
This API allows retrieval of cached token metadata, including icons and additional descriptive information.

Traces API Enhancements
Transaction trace detection has been improved, with better recognition of related transaction series on the blockchain.

TON DNS Support

Get-method ID Support

Most of these features were not only introduced but also iterated on multiple times, with refinements improving their usability and accuracy.

We’re proud to equip developers with powerful new tools—and even prouder that leading TON products have already adopted them, driving a leap forward in UI and UX. More on this in the next post.
9🔥6🤝4
Decoded Message Bodies

Toncenter API now decodes message bodies using hundreds of known TLB schemes and returns the result in the Message.message_content.decoded field. Previously, only the text_comment type was recognized; the API now supports 800+ TLB schemes. This means responses may include new decoded types and richer structures. Update your parsers to read decoded defensively.

If your dApp’s smart contract uses a TLB scheme that isn’t decoded yet, please submit a pull request with the scheme definition.
👍9🔥64🍌2
Introducing Streaming API V2

The new Streaming API V2 allows you to create an even faster and smoother UX in your products. This innovation is part of the upcoming global “Sub-Second” update of the TON network.

Documentation »

The deprecation plan for Streaming API V1 will be announced later.
👍82🔥2
Cocoon AI smart contract actions are now supported

Starting with v1.2.6, the Toncenter Indexer supports the following Cocoon AI smart contract actions along with their decoded message bodies:

cocoon_worker_payout

cocoon_proxy_payout

cocoon_proxy_charge

cocoon_client_top_up

cocoon_register_proxy

cocoon_unregister_proxy

cocoon_client_register

cocoon_client_change_secret_hash

cocoon_client_request_refund

cocoon_grant_refund

cocoon_client_increase_stake

cocoon_client_withdraw

Use https://toncenter.com/api/v3/index.html#/actions with supported_action_types=latest.
8👍6🤡3🔥2🤩2😁1
The outage of toncenter.com services was fixed.
This problem was caused by issue in Cloudflare healthcheck of our infrastructure.
2👍1
Note: There are no changes to the Toncenter API following the renaming of the Toncoin to Gram.
😁8👍6💩1