Repair a Solana transaction
repair_transactionGive it a Solana transaction that failed, or one you are about to send. It finds the cause and returns a rebuilt UNSIGNED transaction that has been simulated against live mainnet state to prove it passes. Fixes expired blockhashes, compute-unit limits, priority fees, loaded-data limits, slippage on plain Jupiter swaps (fresh quote, same tolerance), and slippage on direct Pump.fun, PumpSwap, Raydium AMM v4, Meteora DBC and Meteora DAMM v2 swaps (only the limit moves, never more than 25% against the user). Handles legacy, v0 and version 1 (SIMD-0385) transactions and durable nonces. When the failure cannot be fixed by rebuilding (not enough funds, a private program's own error), it says so and explains why instead of returning something that would fail again. Pass exactly one of transaction or signature. Sign the returned transaction with your own key and send it within about 60 seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signature | No | Signature (or explorer URL) of a transaction that already landed on mainnet and failed. | |
| transaction | No | Base64 serialized transaction, signed or unsigned. Use this before sending, or after a send failed. |