How to receive USDT TRC-20 through an API, with webhooks
Accept USDT on TRON in your app: a wallet per user, deposit events, 19 confirmations, crediting once and paying for energy with TRX.
USDT on TRON (TRC-20) is the most common way people send stablecoins between wallets and exchanges. If your app needs to accept it, you need four things: an address per user, a way to learn that coins arrived, a rule for when a deposit is final, and a way to move the funds later. This guide builds all four with the kryptr.io API.
1. Create a wallet per user
One wallet per customer keeps the accounting trivial: whatever arrives on that wallet's TRON address belongs to that customer. Use your own user id as external_id, so a retried request returns the same wallet instead of creating a second one.
POST /api/v1/wallets
{"name": "Customer 42", "external_id": "user-42", "callback_url": "https://api.example.com/kryptr/callback"}
The response contains one address per network. The TRON entry looks like this:
{
"network": "tron",
"address": "TEcjzW2joBQo4t7Ek23TXDeCTLZzsqZK7o",
"derivation_path": "m/44'/195'/0'/0/0",
"assets": ["TRX.tron", "USDT.tron"]
}
Show the user that T… address and say clearly that it is for USDT on TRON. The same wallet also has an EVM address for USDT on Ethereum, BNB Smart Chain and Polygon; a user who picks the wrong network on their side sends coins to a different chain, so name the network next to every address you display.
Every request is signed; the wallet API guide has the signing code.
2. Learn about the deposit from a webhook
kryptr watches every live wallet's addresses. When a USDT transfer to the TRON address shows up on chain, it sends deposit.detected to your webhook endpoints and to the wallet's callback_url:
{
"id": "6f1c…",
"type": "deposit.detected",
"created_at": "2026-11-30T10:21:07Z",
"data": {
"wallet_id": "…",
"external_id": "user-42",
"asset_id": "USDT.tron",
"network": "tron",
"tx_hash": "…",
"from_address": "T…",
"to_address": "TEcjzW2joBQo4t7Ek23TXDeCTLZzsqZK7o",
"amount": "50",
"confirmations": 1,
"confirmations_required": 19,
"status": "detected"
}
}
external_id is echoed back, so you can find the user without a lookup table. Show the deposit as "incoming" in your UI at this point, but do not credit it yet.
3. Credit on confirmation, exactly once
When the transaction reaches 19 confirmations (TRON's solidified block), kryptr sends deposit.confirmed with the same deposit fields and status: "confirmed". That is the moment to credit the user.
Three rules make crediting safe:
- Verify the signature of every delivery before you trust it (
X-CryptoEqu-Signature, an HMAC-SHA256 of the timestamp and the body). - Deduplicate by the deposit id. A delivery that timed out on your side is retried, up to 12 times with exponential backoff, and the event keeps its
id. Store the deposit id with a unique constraint and credit inside the same database transaction. - Check the asset. Credit
USDT.tronas USDT andTRX.tronas TRX; never assume the asset from the address alone.
The webhooks guide has verification code in Node.js and Python.
If you missed events, for example during an outage longer than the retry window, you can read the history at any time:
GET /api/v1/wallets/{id}/deposits?network=tron
Each deposit carries its status (detected, confirmed or failed), so reconciling is a loop over that list.
4. Move the funds out: TRX pays for energy
Funds stay on the user's own wallet address; nothing is swept to a pooled account. When you want to move USDT, order a transfer from that wallet:
POST /api/v1/wallets/{id}/transfers
Idempotency-Key: payout-2026-11-30-0001
{"asset_id": "USDT.tron", "to_address": "T…", "amount": "50"}
On TRON a token transfer consumes energy and bandwidth. A wallet that has no staked TRX pays for them by burning TRX from its own balance. The amount depends on the network's current prices and on whether the recipient already holds USDT; in one of our own transfers in November 2026, sending USDT burned 130,285 energy, about 13 TRX. So before a wallet can send USDT, it needs TRX on the same address. Keep a TRX float on wallets you plan to send from, or send TRX to the address first.
Two more TRON specifics:
- A brand-new TRON address is not "activated" until it receives TRX or a token; sending TRX to an unused address costs a small activation fee paid by the sender.
- A sent TRON transaction that is not included on chain within 15 minutes is marked
failedwith the reason "not included on chain before it expired", so a stuck transfer never stays pending forever.
Summary
| Step | API |
|---|---|
| Address per user | POST /api/v1/wallets with external_id |
| Deposit seen | deposit.detected event |
| Deposit final | deposit.confirmed after 19 confirmations |
| Reconcile | GET /api/v1/wallets/{id}/deposits?network=tron |
| Send out | POST /api/v1/wallets/{id}/transfers with Idempotency-Key, TRX on the address for energy |
The same flow works for USDT and USDC on Ethereum, BNB Smart Chain and Polygon; only the confirmation counts (12, 15 and 20) and the fee coin (ETH, BNB, POL) change. The USDT networks comparison helps you decide which networks to offer.