Short answer
DUP_TRANSACTION_ERROR ("Dup transaction." or "Transaction already exists.") means you broadcast a signed transaction the network already has, which usually means the first attempt went through, so look up the hash on Tronscan before sending anything again.
What the error means
A transaction's ID is the hash of its contents. Broadcasting the exact same signed transaction a second time gives the same ID, and the node refuses it with one of these messages:
{ "code": "DUP_TRANSACTION_ERROR", "message": "Dup transaction." }
{ "code": "DUP_TRANSACTION_ERROR", "message": "Transaction already exists." }"Transaction already exists." comes from the node's cache of transactions it has recently seen; "Dup transaction." from its check against transactions it has already recorded. Either way, the refusal is about the second copy. It says nothing bad about the first one.
How to fix it
- Don't resend yet
A new transaction has a new ID, so the network would accept it and you could pay twice.
- Look up the hash
Search the transaction ID on Tronscan, or check the receiver's balance and your wallet history.
- If it's confirmed, you're done
A successful result means the transfer went through. If the result is a failure, fix that cause first.
- If it's not found, wait out the expiration
Give it a minute or two. Once its expiration time has passed and it's still not on Tronscan, build and sign a fresh transaction.
- For scripts, make retries idempotent
Store the txid before broadcasting, treat this error as "already sent", and query
gettransactioninfobyidinstead of rebuilding.
Why it happens
- Pressing send twice. The wallet didn't show a confirmation fast enough, so it was tapped again.
- Automatic retries. A wallet, payment page or script timed out waiting for a response and re-broadcast the same signed transaction.
- Broadcasting to several nodes. Scripts that send to more than one node get this from every node after the first one that already relayed it.
- Reusing a signed transaction. Saving a signed transaction and broadcasting it again later.
Never assume this means failure. In most cases your transfer is already confirmed, and building a new one would send the money twice.
Check it on Tronscan first
Open https://tronscan.org/#/transaction/<txid> with the hash your wallet showed. You'll see one of three things:
- Confirmed, success: the transfer is done. Do nothing more.
- Confirmed, failed (for example
OUT_OF_ENERGYorREVERT): it reached the chain but failed. Fix that cause, then send a new transaction. - Not found: wait a minute and search again; it may still be propagating. If it's still missing after its expiration time, it won't confirm, and it's safe to send a fresh one.
Step by step: check a USDT transaction on Tronscan. To see what the confirmed one cost in energy and TRX, use the TXID fee checker.
Questions
Does DUP_TRANSACTION_ERROR mean my transfer failed?
No. It means the node already has that exact transaction. Usually the first copy went through; check the hash on Tronscan to be sure.
Can I be charged twice?
Not for the same signed transaction: a duplicate is refused before a block. You can be charged twice only if you build a new transaction while the first one also confirms.
Why did my wallet show an error if the transfer worked?
Usually the wallet retried after a timeout and the retry was refused as a duplicate. The original went through.
How long until I know the first one won't confirm?
Until its expiration time passes, 60 seconds by default for transactions a node builds, up to 24 hours if it was set longer. After that it can't be included.
Sources
Send USDT from about 1.82 TRX
Instead of burning 6.43 TRX. FeeBolt Router™ finds the best live price, and the energy usually lands within 1–2 minutes.
