Failover and the Write Path
Your eth_sendRawTransaction call returns a timeout. The signed bytes have left the client, and by the time you read the error they may have reached more than one upstream: default routing spreads requests across the healthy nodes for a chain [1]. Your only record of what happened is the transaction hash — derived from the signed bytes, so you had it before you sent anything.
Three things decide whether that gap costs money: whether your retry re-sends the same signed bytes or signs a new transaction with a bumped nonce, what the service does with a send across upstreams, and how you confirm what happened. This is not a comparison of failover strategies — ordered, weighted and quorum failover compared is a different piece — and it is not a retry-code reference.
A timeout is not a failure
A read that times out is a read you can repeat. A write that times out is a write whose outcome you do not know, and the two need opposite responses: the read wants another attempt, the write wants a lookup.
The send response is not the record of what happened. The chain is. SwiftNodes describes the client's position plainly, in its own account of the service in the customer portal on 29 November 2026: after a timeout, or after routing attempts are exhausted and a 502 Backend node error comes back, the client has not been told the transaction was rejected. The docs list 502 as an unreachable upstream and tell callers to check the JSON-RPC response for an error object even when the HTTP status is 200 [1].
Whether an error deserves a second attempt is a separate question, and which JSON-RPC errors are worth retrying covers it. The narrower point: a timeout or a 502 leaves the outcome unknown, and unknown is not failed.
Re-sending is not re-signing, and only one of them is safe
Re-sending broadcasts the same signed bytes again. The hash is derived from those bytes, so the second broadcast carries the same hash and nonce as the first, and the chain can include it once. A duplicate broadcast is a duplicate at the network level, not a second spend. This is standard, correct practice.
Re-signing builds a new transaction. The signature differs, and if the nonce is bumped the transfer itself differs. That is the path to two transfers where you intended one, and the only one of the two operations that can cost you money.
Send the same bytes twice and a pool already holding them rejects the second copy. geth's check is keyed on the transaction hash — if pool.all.Get(hash) != nil, where hash := tx.Hash() [2] — and the execution-apis specification lists error code 1000, "Already known transaction", among the method's expected errors, alongside code 1 "Nonce too low" and code 2 "Nonce too high" [3]. Consensus agrees: a transaction is includable only when its nonce equals the sender's account nonce exactly, so two transactions with the same nonce cannot both land [4].
None of this is stated as a rule. The JSON-RPC 2.0 specification defines no methods at all [5], and the execution-apis method page documents the result and error codes without saying anything about retries [3]. What you can check is the mechanism: the hash binding and the nonce equality.
The string is a convention, not a protocol guarantee. All four clients we checked use the same string, though their internal names differ:
| Client | Internal name | String returned | Source |
|---|---|---|---|
| geth | ErrAlreadyKnown |
already known |
[6] [2] |
| Nethermind | AcceptTxResult.AlreadyKnown |
already known |
[7] [8] |
| reth | PoolErrorKind::AlreadyImported |
already known |
[9] [10] |
| Erigon | DiscardReason AlreadyKnown |
already known |
[11] |
No client source documents a guarantee that a duplicate is rejected, so treat the behaviour as implementation rather than contract. And the answer is per node, not per network: an upstream that has not seen those bytes may accept them without complaint.
Hedging is the read-path version of the same instinct — request hedging for JSON-RPC reads — and it does not carry over to a write, because a hedged write is a second transaction.
What the service does across upstreams, and what it does not
By default a request goes to any healthy node for that chain [1]. What that means for a send is SwiftNodes' description of its own service, not a protocol rule.
Without protect=1, a rate-limit, quota, 403 or provider-policy refusal is treated as retryable, and one send can be attempted on up to three upstreams. A genuine refusal was rejected before acceptance, so the retry is the first real submission. If an upstream accepted the transaction and the response failed on the way back, the retry is a duplicate broadcast of the same signed bytes — same hash, same nonce — which cannot produce two different spends. The service does not re-sign, does not change the nonce, and does not create a second transaction, per SwiftNodes' answer of 29 November 2026.
protect=1 is the only explicitly single-attempt path. The docs describe protected sends as relayed once, with no retry and no failover [1]. It is Ethereum mainnet only and returns 400 on chains without a configured relay [1].
Ordering is not coordinated. Each eth_sendRawTransaction is independent: the nonce is embedded in the signed transaction and ordering is left to whichever upstream mempool receives it. If nonce 5 lands before nonce 4 on different upstreams, one node may hold or reject the gap, and the service will not reconcile them, per SwiftNodes' answer of 29 November 2026.
A health check will not tell you which upstream holds your transaction — endpoint health is about freshness, not liveness — so treat routing as something that happened, not something you can read off a status page.
The three ways a client turns one send into two
Timeout, then build a new transaction. The client re-signs, and if it also bumps the nonce it has created a different transfer. If the first send did land, both can be included. Keep the signed bytes and re-send them instead.
Retry with the same nonce and different gas. This produces a replacement that competes with the original for the same nonce. Only one can be included, so the client has entered a race it did not intend. Replace a transaction deliberately, with a fee bump you chose; do not let a retry path do it by accident.
No record of the hash. The client cannot tell whether it re-sent the original or signed a new one, so it cannot tell what it is waiting for. Derive the hash before the send and log it with the request.
These are distinct from the node-side shapes — a lagging node, a mempool that differs between upstreams, a transaction still in flight — which look like failures from the client and are not. A 429 is the one case where the docs name the wait — retry after 1 second [1] — and 429 backoff and jitter covers the arithmetic.
Confirming what actually happened
The hash is not something you look up after the fact. eth_sendRawTransaction returns the transaction hash, a 32-byte hex value [3], and it is derived from the signed bytes, so you know it before the request goes out. Log it at send time and the rest is a lookup.
Three calls settle it: eth_getTransactionReceipt for inclusion, eth_getTransactionByHash for whether a pool has it, and eth_getTransactionCount for the sender's nonce. The third depends on the block parameter, which changes the answer. The specification defines latest as the most recent block in the canonical chain the client has observed, and pending as a sample next block built on top of latest holding transactions usually taken from the local mempool [12]. A send sitting in a mempool is invisible under latest and visible under pending.
nonce = eth_getTransactionCount(sender, "pending") # includes the mempool
receipt = eth_getTransactionReceipt(tx_hash) # null until included
pending is not a network-wide view. In geth it reads that node's own pool [13], so a send that landed on upstream A can still read as absent under pending on upstream B. If the nonce has not moved, ask a second upstream before concluding anything.
A rebroadcast that comes back already known is confirmation that the bytes were a duplicate, not an error to work around [6] [11]. A 502 after a send stays ambiguous — the transaction may be in a mempool and may still be included — so the send response is outcome unknown until the receipt or the nonce settles it, per SwiftNodes' answer of 29 November 2026.
The decision list
Each of these ends in a change to code or to configuration.
- Does your retry re-send the same signed bytes, or construct a new transaction? Read the retry path. If it calls the signing function, it is building a second transaction. Change it to re-send the stored bytes.
- Do you hold the hash before you send? If not, derive it from the signed bytes and log it with the request. Without it you cannot confirm anything.
- Is this a send where a duplicate broadcast is acceptable and a second transaction is not? For a transfer, yes: a duplicate broadcast costs nothing and a second transfer costs money. Re-send; never re-sign.
- Do you need single-attempt semantics? If the client cannot reason about a retry at all,
protect=1is the documented single-attempt path [1] — on Ethereum mainnet, and not on chains without a relay [1].
Answer 1 with "construct a new transaction" and 3 with "a second transaction is not acceptable", and you have a defect in the retry path rather than a tuning problem.
What this article is not
Failover on the read path is a routing problem: pick a healthy endpoint, retry, compare. Failover on the write path is a record-keeping problem, and the record is a hash you should have written down before the request left. The ordered, weighted and quorum strategies answer a different question.
This is not a retry-code reference either. And nothing here should be read as a claim that SwiftNodes can duplicate a transfer: it cannot. Re-sending the same signed bytes produces the same hash, and the chain includes that hash once.
Before the next send, log the hash and read what your retry path calls.
Sources
- SwiftNodes API Reference — load balancing and HTTP status codes — SwiftNodes, 2026-12-06
- go-ethereum core/txpool/legacypool/legacypool.go — duplicate check keyed on tx.Hash() — go-ethereum (ethereum/go-ethereum), GitHub, 2026-12-06
- eth_sendRawTransaction — Execution API specification (v1.0.0-beta.7) — ethereum.github.io (execution-apis), 2026-12-06
- execution-specs forks/cancun/fork.py — check_transaction nonce equality — ethereum/execution-specs, GitHub, 2026-12-06
- JSON-RPC 2.0 Specification — jsonrpc.org, 2010-01-01
- go-ethereum core/txpool/errors.go — ErrAlreadyKnown — go-ethereum (ethereum/go-ethereum), GitHub, 2026-12-06
- Nethermind Nethermind.TxPool/AcceptTxResult.cs — AlreadyKnown — Nethermind (NethermindEth/nethermind), GitHub, 2026-12-06
- Nethermind Nethermind.TxPool/TxPoolErrorMessages.cs — "already known" — Nethermind (NethermindEth/nethermind), GitHub, 2026-12-06
- reth crates/transaction-pool/src/error.rs — PoolErrorKind::AlreadyImported — reth (paradigmxyz/reth), GitHub, 2026-12-06
- reth crates/rpc/rpc-eth-types/src/error/mod.rs — RpcPoolError::AlreadyKnown maps to "already known" — reth (paradigmxyz/reth), GitHub, 2026-12-06
- Erigon txnprovider/txpool/txpoolcfg/txpoolcfg.go — DiscardReason AlreadyKnown String() — Erigon (erigontech/erigon), GitHub, 2026-12-06
- eth_getTransactionCount — Execution API specification (v1.0.0-beta.7) — ethereum.github.io (execution-apis), 2026-12-06
- go-ethereum internal/ethapi/api.go — GetTransactionCount pending branch — go-ethereum (ethereum/go-ethereum), GitHub, 2026-12-06
This article was researched, written and edited by AI under human supervision, and checked against Rankwrite's public editorial rubric.
John Sullivan covers RPC infrastructure, node operations, and multi-chain development at SwiftNodes — what it actually takes to keep endpoints fast, fresh, and reliable across EVM and non-EVM networks.