Nexus

Algorand "transaction already in ledger" error

Short answer: This exact signed transaction was already confirmed. Resubmitting identical bytes is rejected; the earlier one succeeded.

What the node printed

Pattern:

transaction already in ledger: <TXID>

Captured verbatim from a testnet node on 2026-12-03:

transaction already in ledger: AJRE6DCADN6E6XWJ5GOQV3ZU5C2JPCCGR5ANLVU22IVHYRAU4FGQ

Why it happens

The capture confirmed a self-payment and then sent the same signed bytes again. The node replied "transaction already in ledger: " and named the transaction id, so a retry after a timeout is safe to treat as success if the id matches the one you built.

How to fix it

try { await algod.sendRawTransaction(stxn).do(); } catch (e) { if (!String(e).includes('already in ledger')) throw e; /* already confirmed */ }

Method: this message was produced on purpose against a live testnet node (https://testnet-api.algonode.cloud) on 2026-12-03. Message wording can change between node versions. All errors: index · errors.json.