Metera cover: “For Solana engineers. Landing agent transactions on Solana. Expiry, retries, fees and Jito.” over a field of green dashes
December 2, 2026MeteraFor Solana engineers

Landing agent transactions on Solana

Blockhash expiry, safe retries, priority fees and Jito bundles. For Solana engineers. 12 minute read.

An agent sends more transactions than a person, at worse moments, with less patience. It doesn’t wait for a quiet block, it doesn’t notice that a transaction is “taking a while”, and it will happily retry forever. Every weakness in your landing logic gets found, at scale, usually during congestion.

This is the landing pipeline we think every agent should have, and the reasoning behind each step.

1. Treat the blockhash as a deadline

Every transaction carries a recent blockhash. The runtime only accepts it while that blockhash is among the most recent 150 blocks. In practice that is a window of roughly a minute, often less once you subtract the time it took to build and sign.

The RPC hands you the deadline explicitly. Keep it:

const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash("confirmed");

Store lastValidBlockHeight next to the transaction. Once the chain’s block height passes it, that transaction can never land, and you know it for certain instead of guessing from a timer.

2. Simulate before you sign

Simulation tells you whether the transaction would fail and how many compute units it uses. A transaction that would fail should never be signed, and the unit count is what you need for the next step.

3. Price it to land

Set an explicit compute-unit limit from the simulation, with a little headroom, and a priority fee based on what recent blocks actually charged for the accounts you touch. A tight limit makes the same fee go further.

tx.add(
  ComputeBudgetProgram.setComputeUnitLimit({ units: Math.ceil(simulatedUnits * 1.1) }),
  ComputeBudgetProgram.setComputeUnitPrice({ microLamports: priorityFee }),
);

4. Resend the same bytes, never re-sign

Rebroadcasting the exact same signed transaction is always safe: a signature can only be included once. Re-signing is not. A new blockhash means a new transaction, and if the old one was still alive, both can land.

So the retry loop resends identical bytes until the transaction confirms or its deadline passes:

const sig = await connection.sendRawTransaction(raw, { skipPreflight: true, maxRetries: 0 });

while ((await connection.getBlockHeight()) <= lastValidBlockHeight) {
  const { value } = await connection.getSignatureStatus(sig);
  if (value?.confirmationStatus === "confirmed" || value?.confirmationStatus === "finalized") {
    return value.err ? "failed" : "landed";
  }
  await connection.sendRawTransaction(raw, { skipPreflight: true, maxRetries: 0 });
  await sleep(2_000);
}
return "expired"; // now, and only now, is it safe to rebuild

5. Use more than one path

The public RPC path is the most crowded one. Jito bundles reach block builders directly, with a tip that pays for inclusion, and staked-connection providers such as Astralane and Temporal Nozomi forward transactions through paths with reserved capacity.

Because resending identical bytes is safe, the same signed transaction can go out through several paths at once. Whichever lands first wins; the others are rejected as duplicates.

6. End in a state

The loop above already returns one of three answers: landed, failed or expired. Add a fourth, needs action, for everything a person has to decide, and never let “sent” stand in for any of them.

This pipeline is what Metera runs for every transaction it signs: deadline kept, simulated, priced, resent without re-signing, routed through Jito, Astralane and Temporal Nozomi, and closed in one known state.

Agents decide. Metera executes.