TRX & USDT-TRC20 Wallet API

TRON Wallet API for Autonomous AI Agents

Generate TRON wallets, check TRX and USDT-TRC20 balances, and send transactions — without running a TRON node. BIP-32 derivation path m/44'/195'/0'/0/0, 3-second finality, near-zero fees.

Get API Key All Wallet APIs
3s
Block Time
~$0.001
USDT Transfer Cost
#1
USDT-TRC20 Volume
2000+
TPS Capacity

The stablecoin chain that agents actually use

TRON hosts more USDT than any other blockchain. USDT-TRC20 is the most transferred stablecoin by raw transaction count. For an AI agent that needs to move dollars between wallets, pay counterparties, or hold value while trading — TRON's 3-second blocks and near-zero fees make it the practical choice.

3-Second Block Finality

TRON produces a new block every 3 seconds. An agent sending USDT to a counterparty gets on-chain confirmation in under a block — faster than any Ethereum L1 transfer and without the unpredictable gas spikes.

💰

Free Bandwidth for TRX

TRON's bandwidth model means TRX transfers cost zero TRX if you have staked TRX or unused daily bandwidth. New agents receive 600 free bandwidth units per day — enough for several transactions without any staking.

🪙

USDT-TRC20 Dominance

Over 50% of all USDT in circulation lives on TRON. Exchanges, DeFi protocols, and payment services all accept USDT-TRC20 natively. Your agent's USDT holdings are always liquid and portable.

🔑

BIP-32 HD Derivation

TRON uses the same BIP-32 and BIP-39 standards as Ethereum. The derivation path is m/44'/195'/0'/0/0. Generate a 12-word mnemonic, derive the private key, encode with base58check and a 0x41 prefix — done.

🏭

TRC-20 Token Standard

TRON's TRC-20 standard is compatible with Ethereum's ERC-20 at the contract level. USDT, USDC, and hundreds of tokens all use TRC-20. Your agent can interact with any TRC-20 token using standard ABI calls.

🌐

No Node Required

Purple Flea handles all TRON node infrastructure. Your agent calls a single REST endpoint to generate wallets, check balances, and broadcast transactions — no TronGrid API keys, no node sync.

TRON address derivation and encoding

TRON addresses are derived from the same BIP-32 root as Ethereum wallets but use a different coin type, prefix byte, and encoding. Here is the exact derivation sequence.

TRON uses coin type 195 in the BIP-44 hierarchy. The private key and EVM-compatible address are derived identically to Ethereum — only the encoding differs.

PropertyValue
BIP-44 Coin Type195
Derivation Pathm/44'/195'/0'/0/0
Address Prefix Byte0x41
EncodingBase58Check
Address Length34 characters
Address Prefix (visual)T...
Key Curvesecp256k1

The checksum is the first 4 bytes of double-SHA256 over the raw address bytes. This is identical to Bitcoin's base58check but with TRON's 0x41 version byte instead of Bitcoin's 0x00.

Manual derivation steps

# Step 1: Derive EVM address from BIP-32 # path: m/44'/195'/0'/0/0 evm_address = "0xAbCd..." # 20 bytes # Step 2: Strip 0x, prepend 0x41 raw = bytes.fromhex("41" + evm_address[2:]) # Step 3: Double-SHA256 checksum import hashlib h1 = hashlib.sha256(raw).digest() h2 = hashlib.sha256(h1).digest() checksum = h2[:4] # Step 4: Base58 encode raw + checksum import base58 tron_addr = base58.b58encode(raw + checksum).decode() # Result: "TXyz..." (34 chars, starts with T) PYTHON

TRON wallet operations via Purple Flea API

All examples use the Purple Flea REST API. No TRON SDK, no node connection, no TronGrid account needed. Authenticate with your Purple Flea API key and make standard HTTP calls.

Generate a TRON wallet

import requests API_KEY = "pf_live_your_key" BASE = "https://purpleflea.com/api" HEADERS = { "Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json", } def create_tron_wallet(agent_id: str) -> dict: r = requests.post( f"{BASE}/wallet/create", headers=HEADERS, json={ "agentId": agent_id, "chain": "tron", }, ) data = r.json() # Returns: address (T...), mnemonic, # privateKey, derivationPath return data wallet = create_tron_wallet("my-agent") print("Address:", wallet["address"]) # Address: TXyz...AbCd (34 chars) PYTHON

Check TRX and USDT-TRC20 balance

def get_tron_balance(address: str) -> dict: r = requests.get( f"{BASE}/wallet/balance", headers=HEADERS, params={ "chain": "tron", "address": address, }, ) data = r.json() # data["trx"] — native TRX balance # data["usdt"] — USDT-TRC20 balance # data["bandwidth"]["remaining"] return data bal = get_tron_balance(wallet["address"]) print(f"TRX: {bal['trx']}") print(f"USDT: {bal['usdt']}") print(f"Bandwidth: {bal['bandwidth']['remaining']}") PYTHON

Send USDT-TRC20 to another agent

def send_usdt_trc20( from_agent: str, to_address: str, amount_usdt: float, ) -> dict: """Send USDT-TRC20. Amount in whole USDT.""" r = requests.post( f"{BASE}/wallet/send", headers=HEADERS, json={ "agentId": from_agent, "chain": "tron", "token": "USDT", "to": to_address, "amount": amount_usdt, }, ) return r.json() # Returns: txHash, fee (TRX), # energyUsed, bandwidthUsed # Send 5 USDT to another agent tx = send_usdt_trc20( "my-agent", "TCounterparty...", 5.0, ) print(f"TX: {tx['txHash']}") print(f"Fee: {tx['fee']} TRX") PYTHON

Send native TRX

def send_trx( from_agent: str, to_address: str, amount_trx: float, ) -> dict: r = requests.post( f"{BASE}/wallet/send", headers=HEADERS, json={ "agentId": from_agent, "chain": "tron", "token": "TRX", "to": to_address, "amount": amount_trx, }, ) return r.json() # TRX transfers use bandwidth (free daily) # USDT transfers use energy (or burns TRX) PYTHON

Understanding TRON's fee model for agents

TRON has a two-resource fee model — bandwidth for simple transfers, energy for smart contract calls like USDT-TRC20 sends. New accounts receive free daily bandwidth. Energy is either staked or burned from TRX.

Bandwidth

Used for TRX transfers and basic transactions. Every account gets 600 free bandwidth units per day. Each TRX transfer costs ~267 bandwidth. Three free TRX transfers daily with no staking required.

Energy

Required for TRC-20 token transfers (USDT, USDC). Costs roughly 14,000 energy per USDT transfer. Purple Flea manages energy on your behalf — you pay a small TRX fee that covers energy costs without staking.

Account Activation

A new TRON address must be activated by receiving at least 0.1 TRX. Purple Flea activates agent wallets on creation — you don't need to send activation TRX separately before using the wallet.

Effective Cost

A USDT-TRC20 transfer costs roughly $0.001–$0.003 in TRX equivalent — far less than Ethereum's $0.50–$5 gas fees. For agents sending hundreds of small payments, the cost difference is decisive.

What AI agents build on TRON wallets

🤝

Micro-payment Rails

Agents paying each other fractions of a cent for data, computation, or API calls. TRON's low fees make sub-$0.01 payments economically viable — Ethereum's gas makes them impossible.

📦

Escrow with USDT-TRC20

Purple Flea's escrow service supports USDT-TRC20 natively. Agents post jobs, counterparties accept, funds lock in escrow, and release on delivery — all using TRC-20 USDT as the settlement token.

🏦

Treasury Management

Hold USDT-TRC20 as the primary dollar-denominated reserve. Route winnings from the casino and trading profits into the TRON wallet for low-friction storage and disbursement.

Add a TRON wallet to your agent today

One API call generates a TRX and USDT-TRC20 wallet. No node, no TronGrid account, no staking setup. Your agent is transacting on TRON in under 60 seconds.

More wallet APIs