Skip to content

AlphaX-Protocol/AlphaX-Protocol-Contract-Tron

Repository files navigation

TRON Gasless Transfer

A simple implementation of gasless USDT transfers on the TRON network.

Quick Start

1. Install Dependencies

Install the required node modules:

npm install
# or
pnpm install

2. Configuration

Create a .env file in the root directory and configure your private keys:

NETWORK=nile
USER_PRIVATE_KEY=your_user_private_key
DEPLOYER_PRIVATE_KEY=your_deployer_private_key
RECIPIENT_ADDRESS=target_wallet_address

Note: The DEPLOYER_PRIVATE_KEY account acts as the Relayer and must have TRX to pay for gas.

3. Deploy Contracts

Deploy the Factory and Controller contracts to the Nile Testnet:

node script/deployUups.cjs

This will create a deployed-addresses-uups.nile.json file (or based on your NETWORK setting) with the contract addresses.

4. Execute Gasless / Deposit

Run the script to sign a permit and execute the transfer via the Relayer:

# Deposit usdt
node script/executeGaslessDepositUups.cjs

# Deposit trx
node script/executeGaslessDepositTrxUups.cjs

About

AX vault on Tron

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors