Skip to content

About

A TRON wallet source code, supporting send/receive, staking, and swapping of TRX and USDT.

Topics

Resources

Stars

52 stars

Watchers

2 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MiaoWa Wallet

简体中文

MiaoWa Wallet is a Telegram Mini App for managing TRX and USDT on the TRON network. To try it, find @TuWalletBot on Telegram.

Features

  • 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.

Getting started

Backend

  1. Install Node.js, MySQL, and Redis.

  2. Set up a Telegram bot and obtain its token. Obtain a TronGrid API key if you use TronGrid as your TRON node provider.

  3. Configure backend/config/default.json with your database, Telegram bot, and TRON settings. Keep credentials private.

  4. Install dependencies and start the server:

    cd backend
    npm install
    npm start

Frontend

  1. Create a Telegram Mini App for your bot and set its URL to the address where you serve the frontend.

  2. Install dependencies and start the Vite development server:

    cd frontend
    npm install
    npm start

Open the Mini App in Telegram to access the wallet.

Why this project exists

This project was created to share a working example with developers building on TRON, especially those looking for guidance on integrating SunSwap.

Resources

License

This project is licensed under the MIT License.

About

A TRON wallet source code, supporting send/receive, staking, and swapping of TRX and USDT.

Topics

Resources

Stars

52 stars

Watchers

2 watching

Forks

Used by

Contributors

Languages