TonConnect
TonConnect is an open protocol that connects wallets and DApps (Web3 applications). It uses a bridge (JS Bridge or Http Bridge) to establish a connection between two applications and/or devices and starts communication.
Bitget Wallet fully supports TonConnect.
Interaction Forms of TonConnect:
- When accessing the DApp through a desktop browser, you can choose to connect via a plugin or QR code. If the plugin wallet is not installed, it will redirect to the plugin wallet download page. You can also scan the QR code with the mobile wallet app to connect.
- When opening the DApp in the mobile wallet app, it will directly connect to the wallet if supported; otherwise, it will open the corresponding wallet download page.
- When opening the DApp in a non-wallet mobile app (including mobile browsers), it will use a deeplink to open the wallet app.
Install
#Add @tonconnect/ui package, up to latest npm i @tonconnect/ui
Development Example
There are two configuration methods to integrate Bitget Wallet
into the wallet connection options of Ton Connect
:
- By setting the value of
walletsListConfiguration.includeWallets
to add the custom wallet to the wallets-list. - The recommended method is to directly specify the connection to Bitget Wallet using await tonConnectUI.openSingleWalletModal(“bitgetTonWallet”), as shown in the image below:


Here is the code example:
Related Reading
Last updated on