Payments3 min read

USDT on Tron (TRC-20) via API: the payments workhorse

Read USDT-TRC20 balances, poll for incoming payments and broadcast transfers signed by your own wallet.

cryptoapi team
Payments
On this page

USDT on Tron (TRC-20) is the quiet workhorse of crypto payments: low fees, fast confirmations, and the deepest stablecoin liquidity on the network. Create a receive address in your wallet and use CryptoAPI to read balances, watch for incoming deposits and broadcast signed transfers.

Every example below hits the real base URL https://api.cryptoapi.so and needs an API key (key header). The TRC-20 USDT contract is TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t with 6 decimals; TRX is the native gas coin, also 6 decimals.

Prepare a Tron receive address

Create or import a Tron wallet using your own signing software. Keep its recovery material there and store the public receive address with your invoice or customer ID. Put that public address in the balance and history requests.

Read the USDT-TRC20 balance (with USD value)

Pass the USDT contract in the tokens array. You get the native TRX balance plus each requested token, and usdValue is already computed for you — no separate price call needed.

bash
curl -X POST https://api.cryptoapi.so/api/wallet/balance \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "network": "tron",
    "address": "TXYZ...receiveAddress",
    "tokens": [{
      "address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
      "name": "Tether USD",
      "symbol": "USDT",
      "decimals": 6,
      "type": "STABLECOIN",
      "tag": "tether"
    }]
  }'
json
{
  "success": true,
  "data": [
    {
      "name": "TRON",
      "symbol": "TRX",
      "balance": "12.500000",
      "decimals": 6,
      "isToken": false,
      "usdValue": 1.51
    },
    {
      "name": "Tether USD",
      "symbol": "USDT",
      "balance": "250.000000",
      "decimals": 6,
      "isToken": true,
      "usdValue": 250.0
    }
  ]
}

You can request up to 20 tokens per call alongside the native coin.

Detect incoming USDT payments

CryptoAPI has no webhooks or streaming — you poll the indexed history endpoint on an interval. Filter by your receive address and tokenSymbol=USDT to catch deposits.

bash
curl "https://api.cryptoapi.so/api/blockchain/transactions?network=tron&toAddress=TXYZ...receiveAddress&tokenSymbol=USDT&sortBy=timestamp&sortOrder=desc&limit=50" \
  -H "key: YOUR_API_KEY"

Each row includes hash, fromAddress, toAddress, valueDecimal, feeDecimal, timestamp, and status. Track the latest seen hash (or startDate) between polls to process only new payments. Note: this endpoint serves the live ClickHouse window of up to 30 days. For an older or specific hash, use the single-transaction lookup, which depends on the configured provider’s history coverage:

bash
curl "https://api.cryptoapi.so/api/blockchain/transaction?network=tron&transactionId=TX_HASH" \
  -H "key: YOUR_API_KEY"

Send USDT out (non-custodial)

CryptoAPI never signs for you and never sees your private key. The flow is: fetch metadata, build and sign the transfer client-side, then broadcast the raw transaction.

bash
# 1) metadata to build the tx
curl "https://api.cryptoapi.so/api/blockchain/transaction-meta?network=tron&address=TXYZ...senderAddress" \
  -H "key: YOUR_API_KEY"

Save the transaction object that your Tron wallet signed as signed-transaction.json. Send its JSON text as the string rawTx.

bash
jq -n --arg rawTx "$(cat signed-transaction.json)" \
  '{network: "tron", rawTx: $rawTx}' |
  curl --request POST "https://api.cryptoapi.so/api/wallet/send" \
    --header "key: $CRYPTOAPI_KEY" \
    --header "Content-Type: application/json" \
    --data @-
json
{ "txid": "abcdef0123...tronTxHash" }

Keep a little TRX in the sending wallet — it pays the gas (bandwidth and energy) for TRC-20 transfers.

Ship it

That is a complete deposit-and-withdraw loop for USDT on Tron: non-custodial, multi-chain, and node-free. Grab an API key in the dashboard and read the full reference at https://api.cryptoapi.so/api/doc.

Read it, then ship it

Copy the code above and run it today.

Every snippet in this guide works on the free plan. Grab a key and make your first call in a minute.