On October 11, TON Connect 5.0.0 was released, a set of libraries that websites and mini apps use to connect TON wallets. In the wallet selection window, the built-in Telegram wallet is now listed first, with a separate "Connect Telegram" button. The former @wallet is now labeled Walt. For developers whose login relies on ton_proof signatures, the team recommends checking their server implementation against the documentation: many mini apps cannot verify the Telegram wallet's signature, preventing users from logging in with it.

The post on Telegram — @toncore
TON Connect 5.0.0 Announcement

What Developers Need to Do

Update Packages. @tonconnect/sdk, @tonconnect/ui, and @tonconnect/ui-react were published as version 5.0.0; by the evening of the same day, the UI packages received version 5.0.1. The change in the major version number does not signify rewritten code: according to the changelog, 5.0.0 is the same code as SDK 4.1.0 and UI 3.1.0; the numbers were simply aligned so that the three packages installed together share a single version. If you are using UI 3.0.x, upgrading to 5.0 is equivalent to upgrading to 3.1 with all its changes (detailed below).

Verify the ton_proof Server-Side Implementation. This is a signature used by the wallet to prove to the application server during connection that an address belongs to it: the server issues a one-time string, the wallet signs it with its key, and the server finds the wallet's public key and verifies the signature. A typical implementation searches for the key in walletStateInit, the initial contract state that the wallet sends along with the address: it recognizes a standard wallet (v3, v4, v5) by its code hash and reads the key from its data. For the Telegram wallet, this key parsing fails, and verification is rejected.

According to the updated documentation, a separate branch is needed for the Telegram wallet:

  1. Compare the code hash in walletStateInit with the hash of the WalletTg trampoline contract.
  2. Query the network for the account state and ensure it is active and the same trampoline is deployed there.
  3. Only then call the get_public_key get method on the contract and verify the signature with the returned key.

The documentation instructs to reject an inactive account, a mismatching code, or a failed call. It is specifically emphasized that the mere presence of a get_public_key method in a contract proves nothing: it can only be called on code that has been verified against a list of trusted implementations. If the SDK passed a key in account.publicKey, it must match the key found; if it did not, this is not a reason to reject a signature verified with a key from the network.

Account for an Inactive Wallet. An account in TON becomes active with its first outgoing transaction: before that, a balance might exist at the address, but no contract is deployed there. A Telegram wallet that received its first transfer from someone else and has not yet sent anything will not be able to log in via ton_proof according to the documentation rules. The error message at this point should be human-readable, not a generic "signature rejected."

Rebuild Error Handling. In SDK 4.1.0, the error.name for all library errors became the class name (UserRejectsError, etc.) instead of the previous "Error", and it is not distorted by minification. Error trackers that group by name and text will create new groups after the update. A wallet response with code 400 now arrives as a new MethodNotSupportedError, not UnknownError; an unclear response from the built-in wallet arrives as WalletTransportError with the original value in cause.

Consider the New Loading Address. In UI 5.0.1, a volumetric diamond appeared above the Telegram button on phones. The model weighs about 540 KB and is loaded not from the package, but from s.ton-connect.io; on a weak device, if the animation drops below 20 frames per second, a static image remains instead. Applications with a strict Content Security Policy (CSP) must allow this address or accept the static image.

What Changed in the Wallet Selection Window

The library does not store the list of wallets itself; instead, it loads it from the shared registry config.ton.org/wallets-v2.json each time it opens. The package only contains a backup copy in case the registry is unavailable. Therefore, the order of wallets changed on October 11 for all applications simultaneously, via a registry update, without any code updates. The new packages added to this layout: the Telegram wallet and Gram Wallet are moved to separate buttons above the general row of wallets, rather than appearing as tiles among others.

Registry PositionName in ListWhat it isWhere it leads
1Telegramwallet built into the messenger itselft.me/sendgrams, bridge tonbridge.telegram.org
2Gram Walletseparate app for iOS and Android from gramwallet.ioconnect.gramwallet.io
3Walt (ex. Wallet)bot of the former @wallett.me/walt
4Keeperformer Tonkeeperapp.tonkeeper.com

Before October 11, the @wallet bot was first in the registry, and the "Telegram" entry was added on September 15 at the very end of the list. Older UI versions rendered a hardcoded "Wallet in Telegram" button first, which led to the bot. In new versions, only the positions of the two buttons are fixed, while the name, icon, bridge, and link are taken from the registry, like any other wallet.

Names should be distinguished. In articles and conversations, the built-in Telegram wallet is often called Gram Wallet, and the TON Connect announcement also refers to "Gram Wallet in Telegram." However, in the TON Connect registry, the built-in wallet is listed as Telegram, while Gram Wallet refers to a separate mobile application with its own bridge. The "Connect Telegram" button leads to the built-in wallet, and the transparent button below it leads to the app.

The label "Walt (ex. Wallet)" is not a new renaming. The TOP wallet bot became Walt as early as September 28, and the registry changed the name on September 29. On October 11, the "ex. Wallet" note was added to the name, and the link was changed to t.me/walt: the same bot opens via @wallet. The new interface moves the parenthetical note to the second line of the tile, so the user sees "Walt" and "ex. Wallet" below it.

Incidentally, the link by which the interface opens the Telegram wallet has been corrected: for an address without a mini app name, like t.me/sendgrams, old versions would substitute the literal string appname=undefined into the link. This fix was included in UI 3.1.0, and thus in 5.0.

Why the Telegram Wallet Fails Old Verification

The Telegram wallet operates on the WalletTg contract, and it is structured differently from standard wallets. Each address does not contain the wallet itself, but a tiny, immutable trampoline: it forwards execution to the WalletTg code, which is stored in the network configuration at index −123 and can only be changed by validator voting. A new version of the wallet is thus delivered to all users simultaneously, without updating each individual contract.

This is why verification breaks. The walletStateInit of the Telegram wallet contains the trampoline's code, not the code of a v4 or v5 wallet known to the parser, so the version table does not find the key. Furthermore, WalletTg allows changing the signing key: the key is overwritten in the contract's storage, and the only source of the current key is the get_public_key get method on a live account. TON Connect documentation described this branch on October 12, the day after the packages were released.

The reference server from the SDK repository in the demo application is already structured this way: it first attempts to parse walletStateInit, and if the version is not recognized, it queries the network for the key. Applications whose server is written based on old examples with only the first half will reject the Telegram wallet's signature. It is precisely this violation of the specification that the announcement cites as the reason for failed logins.

How the built-in wallet receives application requests

TON Connect transmits requests between an application and a wallet via a bridge — a server through which encrypted messages travel. The Telegram wallet has its own bridge, tonbridge.telegram.org, and requests reach the client using Telegram's own protocol. In the MTProto layer 230 schema, the wallet has a set of methods wallet.tonConnect*: to create a session, get pending requests, retrieve a request for a single device, and send a response. An application request arrives at the client as a message with the application's name and subject, and TDLib describes it as messageTonConnectRequest. The same schema also includes wallet.getExistingWaltBalance; TDLib explains that this checks if the user has a balance in the t.me/walt bot.

Where the connection already works

By October 10, connecting the Telegram wallet was tested in Getgems, DeDust, STON.fi, Tonstakers, Tonnel, and TON DNS. The "Telegram" entry appears in the selection window from the registry, so it shows up in the list even for applications using older library versions. A separate button above the row of wallets and the corrected link are only available with ui 3.1.0 and newer; whether the login with a signature succeeds is decided by the application's server.

On October 24, Durov Promised a Fix Within 24 Hours or a Rejection of TON Connect

On October 24, a member of the closed holders' chat for the Plush Pepe collection showed a video: a transaction on Fragment could not be confirmed in the new Telegram wallet, and the TON Connect request ended with the errors "This TON Connect request is no longer available" and "Unable to complete this request. Please try again". Pavel Durov responded in the chat in Russian: "A fix will be within 24 hours, or we will switch to another standard instead of the eternally buggy TON Connect." The chat is closed, and the remark is known from screenshots: channels spread them during the day, and the collection's channel published a post in the evening. The post also stated that participants were already noticing improvements, but some problems remained; what exactly was changed was not reported.

The post on Telegram — @plushpepe
Pavel Durov's response in the Plush Pepe holders' chat

This is a different issue from the one described above: the transaction request opens in the wallet (screenshots show a debit of 0.10 GRAM), but it cannot be confirmed. On October 24, Fragment was loading @tonconnect/ui 5.0.1 with the embedded sdk 5.0.0, and the file had not changed since October 12. The only newer version, 5.0.2 from October 22, was released with a next tag, meaning a regular installation does not install it, and it only directs the Get a Wallet button to the Gram Wallet website.

An issue regarding the Telegram wallet has been open in the SDK tracker since October 11. The application and wallet exchange requests via a bridge, a proxy server: for the Telegram wallet, this is tonbridge.telegram.org, and for the Gram Wallet application, it's the MyTonWallet bridge. The built-in Telegram wallet identifies itself as gramwallet in the connection event, and when restoring a session, the library finds Gram Wallet by this name and overwrites the bridge address to its own. While the application is open, everything works, but after restarting the mini-app or reloading the page, requests go to the wrong bridge and do not reach the Telegram wallet. The same session restoration code is also present in the build that Fragment loads. A fix was proposed on October 22 and had not been accepted by the night of October 25. Neither Telegram, Fragment, nor the TON Connect team reported whether the complaint from the chat, where the request reached the wallet, was related to this error.