> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracefall.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Sending again

> Resend the same bytes until your transaction is confirmed. It is never charged twice.

Sending the same signed transaction again is safe, and it is what we recommend: resend the same bytes, at most once a
second, until your RPC node confirms the transaction or its blockhash expires.

* The answer is `duplicate`. JSON-RPC answers the signature, as an RPC node does.
* We forward its plain copies again, at most once every 400 ms for one signature, only when neither the original send
  nor the resend asked for `bundleOnly`. Its bundles are not sent again, and a `bundleOnly` transaction is not
  forwarded again at all.
* It is never charged twice: the tip is part of your transaction, and a transaction lands only once.
* **Each resend counts against your rate**, like any send. Resend each transaction no more than once a second, so that
  resends leave room for new transactions.

We do not resend by ourselves: your resends are what keep the transaction in front of the next leaders.

```ts theme={null}
const wire = tx.serialize();
const signature = await sender.sendRawTransaction(wire, { skipPreflight: true });

// Resend the same bytes, once a second, until the transaction is confirmed or its blockhash has expired.
for (;;) {
  const { value } = await rpc.getSignatureStatuses([signature]);
  if (value[0]?.confirmationStatus === 'confirmed' || value[0]?.confirmationStatus === 'finalized') break;
  if ((await rpc.getBlockHeight('confirmed')) > latest.lastValidBlockHeight) throw new Error('blockhash expired');
  await new Promise((r) => setTimeout(r, 1_000));
  await sender.sendRawTransaction(wire, { skipPreflight: true });
}
```

Once the blockhash has expired, the transaction can no longer land. Build it again with a fresh blockhash: that is a new
transaction, with a new signature, and a new send.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.