MiaoWa Wallet is a Telegram Mini App for managing TRX and USDT on the TRON network. To try it, find @TuWalletBot on Telegram.
- Create a wallet with a new recovery phrase or restore one from an existing phrase.
- Create multiple wallet accounts.
- Send and receive TRX and USDT.
- Stake and unstake TRX for TRON resources.
- Swap TRX and USDT through SunSwap V2.
- Enable a payment password, two-factor authentication, and device biometrics.
The repository contains the Node.js backend in backend/ and the Vue 3, Vite, and Vant frontend in frontend/. You can deploy the app on your own server and adapt the source code to your needs.
-
Install Node.js, MySQL, and Redis.
-
Set up a Telegram bot and obtain its token. Obtain a TronGrid API key if you use TronGrid as your TRON node provider.
-
Configure
backend/config/default.jsonwith your database, Telegram bot, and TRON settings. Keep credentials private. -
Install dependencies and start the server:
cd backend npm install npm start
-
Create a Telegram Mini App for your bot and set its URL to the address where you serve the frontend.
-
Install dependencies and start the Vite development server:
cd frontend npm install npm start
Open the Mini App in Telegram to access the wallet.
This project was created to share a working example with developers building on TRON, especially those looking for guidance on integrating SunSwap.
This project is licensed under the MIT License.