Skip to content

Continuing the Integration of Bitget Wallet Lite

Based on previous documentation, the DApp has completed the integration of Bitget Wallet. Next, we will introduce how to continue integrating Bitget Wallet Lite for the DApp.

Bitget Wallet Lite

1. Introduction

  • Bitget Wallet Lite: A secure and user-friendly Telegram mini app wallet launched for Telegram users by Bitget Wallet. By integrating Bitget Wallet Lite, DApp developers can provide seamless on-chain interactions and trading experiences for Telegram users.
  • Supported Chains:
    • Evm
    • Ton
    • Solana
  • Supported DApp Linking Methods:
  • Resource:

2. Applicable Scenarios

1. Telegram Mini App

For DApps developed using Telegram Mini App, Bitget Wallet Lite naturally meets the needs of such DApps. By integrating Bitget Wallet Lite:

  • No Download Required: Users no longer need to download a wallet application; they can create and link their wallets with one click using Bitget Wallet Lite.
  • Closed Interaction Loop: Users can complete a series of actions such as wallet linking and signing within Telegram, making the interaction process more complete.

2. Web DApp

For Web DApps that do not have a Telegram Mini App, integrating Bitget Wallet Lite and registering in the Bitget Wallet DApp center will also display the DApp in the Bitget Wallet Lite DApp center, allowing Telegram users to directly access the DApp without needing a Telegram Mini App, enabling quick access for Telegram users.

Integration Guide

1. Integrating the Wallet

The integration method for Bitget Wallet Lite is compatible with the previous integration of Bitget Wallet. Refer to the following documents to complete the integration:

2. Distinguishing Display of Bitget Wallet and Bitget Wallet Lite Entry Points

In general, it is recommended that DApps integrating Bitget Wallet Lite adjust their wallet linking strategies based on user access scenarios:

  • When users access the DApp through the Bitget Wallet DApp Center, PC browsers, and mobile browsers, only the Bitget Wallet entry point should be available to them.
  • When users access the DApp through the Bitget Wallet Lite DApp Center, Telegram Mini APP, and Telegram browser, only the Bitget Wallet Lite entry point should be available to them.

The specific approach is to determine whether the application is opened in a Telegram environment and adjust the logic for displaying wallet entry points accordingly:

js
import {
  isTelegramEnvironment,
} from "@bitget-wallet/omni-connect";

const isTMA = await isTelegramEnvironment(); // Returns whether it is opened in Telegram, true for yes, false for no.

if(isTMA){ 
  // True means it is in Telegram, only open the Bitget Wallet Lite entry
}else{
  // False means it is in a non-Telegram environment, only open the Bitget Wallet entry
}
import {
  isTelegramEnvironment,
} from "@bitget-wallet/omni-connect";

const isTMA = await isTelegramEnvironment(); // Returns whether it is opened in Telegram, true for yes, false for no.

if(isTMA){ 
  // True means it is in Telegram, only open the Bitget Wallet Lite entry
}else{
  // False means it is in a non-Telegram environment, only open the Bitget Wallet entry
}
  1. Classic Adaptor For DApps that have integrated Bitget Wallet using the classic Adaptor, Bitget Wallet Lite also supports the same integration method. Refer to the Classic Adaptor Quick Integration Guide to complete the integration.