Why Does a DEX Swap Expire on TRON? Two Clocks
A DEX swap can expire before TRON includes it or revert after its router deadline; learn how to identify the clock and resubmit the trade correctly.
By Web3 Hub Newsroom3 min read
A DEX swap fails with “transaction expired” when TRON rejects it after the network expiration or the router sees its deadline pass. Both limits stop a stale trade from executing at an old price, but they fail at different stages and have different costs.
Start with transaction expiry
If the transaction never lands in a block, start with its network expiration. java-tron sets a default expiration 60 seconds after the reference block; signing slowly or broadcasting late can use up that window before inclusion.
A transaction rejected after expiration does not execute and costs nothing. Submit a fresh swap so the wallet builds a current transaction, then sign and broadcast promptly. Do not rely on resending the expired transaction.
TaPoS can cause a similar pre-inclusion rejection. TRON transactions carry ref_block_bytes and ref_block_hash, which tie them to a recent block; a lagging node or a fork may leave the receiving node unable to recognize that reference. Try again through a current node or wallet connection.
Then check the router deadline
An included transaction that reverts points to the router’s deadline. The contract checks that timestamp when the swap executes, so a delayed transaction or a device clock running behind can make the deadline already past by execution time.
This failure did reach the chain: the reverted swap still burns Energy. On TRONSCAN, inspect the transaction result or receipt. A failed, included transaction indicates an on-chain revert; a transaction rejected before inclusion has no executed swap. For the wallet sequence on SunSwap, see how to make a TRX swap with SunSwap.
Set the device clock automatically, then submit a new swap with a reasonable deadline if the wallet exposes that setting. Contact the wallet or exchange support team if fresh transactions keep failing, or if TRONSCAN’s result does not match the error shown in the wallet. Include the transaction ID and the approximate submission time.
Questions readers ask next
Why do some aggregators set very short swap deadlines?
Short deadlines limit how long a quoted trade can wait before execution. That reduces the chance of a stale price, though a slow broadcast can make the swap revert.
Can the same signed swap be rebroadcast after it expires?
No. Once its network expiration passes, create and sign a new transaction. A router deadline that has passed also requires a new swap submission.
How does TRON’s 3-second block time affect expiry margins?
Blocks arrive about every three seconds, but inclusion is not guaranteed within a set number of blocks. Leave time for signing and broadcast within java-tron’s default 60-second network window.
Do Ethereum DEXs enforce expiry the same way?
Ethereum transactions also have network inclusion rules, while DEX routers may check a separate deadline. The two checks are distinct there too, though their transaction fields and timing rules differ.