
How to accept TRX payments on TRON with Suawave
Accept native TRX payments on TRON with Suawave: create a deposit address, read live minimums and fee fields, show the QR and verify confirmed callbacks.
Published , updated
To accept TRX payments with Suawave, select the native trx ticker, read its current minimum and fee fields, and create a deposit address for your TRON payout wallet. Ask the buyer for a direct TRX transfer. Verify the signed confirmed callback, record it once and check the amount before fulfilling the order.
TRX is TRON’s native coin. USDT on TRON is a token and uses trc20/usdt. The network can be the same while the asset, transfer type and fee policy differ. A TRX payment gateway integration must keep that distinction in both the checkout screen and the stored order.
1. Choose native TRX and check availability
Use GET /trx/info/ before offering the route. Read minimum_transaction_coin, fee_percent, fee_fixed_coin and fee_network_coin. They describe the current deposit threshold and fee policy; don’t copy a rate or amount from an older integration.
| Integration detail | Native TRX | USDT on TRON |
|---|---|---|
| API ticker | trx |
trc20/usdt |
| Expected payment | Direct TRX TransferContract |
Supported USDT token transfer |
Callback coin |
trx |
trc20_usdt |
| Network resources | Bandwidth for the direct transfer | Bandwidth and Energy for contract execution |
| Service-fee policy | Native fee quote; no coupons, promotions or volume tiers | Token fee policy with applicable discounts |
The TRON resource model distinguishes transaction Bandwidth from smart-contract Energy. A direct native transfer doesn’t execute the USDT contract. That difference doesn’t make every TRX transfer free: the sending wallet still needs the applicable network resources or TRX to pay their cost.
Check the API response before displaying payment instructions. If info or create reports temporary unavailability, keep that route unavailable in checkout. A cached minimum doesn’t establish that a new payment address can be created now. The API reference defines the public responses.
2. Create the deposit address for the order
Prepare a TRON payout address you control and an HTTPS callback URL with a distinct order reference and an unguessable nonce. Call GET /trx/create/ with that payout address in address and the encoded callback URL in callback. Add pending=1 if you want a detection event for the waiting page.
Store the returned address_in, address_out, callback_url, expires_at and fee fields with the order. The buyer pays address_in; address_out is the forwarding destination. Keep the complete original callback URL on the server because logs use it to retrieve this order’s history.
The ticker and canonical callback pair is permanent. Repeating it returns its existing address and original options. It doesn’t refresh expiry or change the payout wallet. Create a distinct pair for an independent checkout attempt, especially after expiry.
The quickstart explains the shared create flow. Its USDT example uses a token ticker; for native TRX, the selected ticker and expected callback coin are both trx. Don’t carry the USDT coin label into your TRX handler.
Which TRX transfer should the buyer send?
Ask for a direct native TRX transfer on TRON. TRX sent through a smart contract or an internal contract transfer isn’t automatically credited and is held for operator review. Wrapped TRX on another network is a different route too.
Keep “TRX on TRON” beside the address after copying or scanning. If a customer wants to pay USDT instead, create the USDT order and display its deposit details. Changing only the screen label doesn’t change what the original order accepts.
3. Display the amount, minimum and QR together
Show the requested amount in TRX, the current deposit minimum, the network and the returned deposit address. Fetch GET /trx/qrcode/ with address equal to that address_in. The response contains the PNG data URI in qr_code and its encoded text in payment_uri.
For TRON, the QR encodes only the address. Supplying value doesn’t put an amount into that payload. Keep the amount visible as text and ask the buyer to enter it in their wallet. Neither the QR nor the browser’s return from a wallet proves the amount sent.
A buyer sending their entire TRX balance may leave too little for the sending transaction. Explain that the order amount and the wallet’s sending cost are separate. An exchange withdrawal can also deduct from the amount that reaches the deposit address; evaluate the received amount rather than the withdrawal form.
Respect expires_at on the waiting page. After expiry, remove the old payment instructions and start a new order if the customer continues. A late transfer can need manual review without producing a public callback. The underpayment and expiry guide explains that distinction.
4. Keep TRX fee rates tied to the native quote
Native TRX has a service fee with a minimum expressed through a fresh conversion quote, plus a separate network charge deducted in TRX. The info and create responses expose the applicable fee fields. Native responses also include fee_quote_expires_at, fee_profile_id and fee_policy_version; preserve them when recording the response.
If a required quote is stale or missing, new TRX orders are unavailable until a fresh one exists. Deposits that already have a fee snapshot continue under that snapshot. Don’t replace a failed quote with a guessed rate, or reuse USDT’s discount rules. Coupons, launch promotions and volume tiers don’t apply to native TRX.
The merchant receives the snapshotted net after service and network deductions. In a confirmed callback, value_coin is the deposit, fee_coin is the total deduction and value_forwarded_coin is the net payout. Don’t subtract the fee from the net again. Compare exact amounts using decimal arithmetic or integer SUN units.
Use the fees and minimums guide for the field meanings. The forwarding estimate is a configured native-coin ceiling; it doesn’t replace the native fee fields or guarantee the amount your merchant receives.
5. Verify and record the confirmed TRX payment
Verify x-ca-signature using the public key from GET /pubkey/. For GET, verify the exact full external URL. For POST, verify the untouched request body. The signature documentation provides the language examples.
Match the stored order reference, nonce, address_in and coin equal to trx. A pending callback shows detection. Only pending equal to "0" establishes confirmed forwarding, and the amount still has to satisfy your order policy. Payment finality explains why seeing a transfer in a wallet isn’t the same stage.
Persist the event UUID with the payment and order change. Retries keep the UUID, while pending and confirmed events use different UUIDs. Add confirmed amounts once, preserve confirmed state if a pending event arrives later, and guard fulfillment at order level when two genuine payments arrive together.
Return HTTP 200 with the plain body *ok* after durable acceptance. For an already processed valid event, skip the work and return the same acknowledgement. The callback guide describes retries and ordering.
What if a TRX payment is missing?
Check the asset, network, direct transfer type, minimum and payment window first. A held or ineligible transfer isn’t fixed by waiting for another callback. Retain the deposit address and transaction hash for support.
For eligible payments, call GET /trx/logs/ with the original callback URL. sent means forwarding confirmed but its callback wasn’t acknowledged; done means it was acknowledged. Reconcile through the same payment and order guards used by the webhook handler.
Should a shop offer TRX alongside USDT?
Offer TRX when customers can send direct native TRX and your payout wallet can receive it. Keep a separate route for USDT. The forwarding gateway guide connects both to the same order flow, and the USDT walkthrough covers the token path.