Skip to main content
Automatic fee retry helps a pending payment or contract call get confirmed when network fees change. You choose a fee limit and a deadline. Para manages further attempts for the same transaction, with fees paid by the wallet. Add autoRetry to an EVM or Solana /transfer request, or to a supported sign-transaction request with broadcast: true. The limit covers execution fees for each attempt; other network charges can apply. The deadline stops future attempts; it does not cancel a transaction already signed or submitted. There are two different kinds of retry:
  • Retry the HTTP request when your request times out or its response is lost. Send the same saved body and Idempotency-Key to retrieve the existing operation. This does not authorize another payment.
  • Enable autoRetry when you want Para to manage attempts to confirm one payment. Add a fee ceiling and deadline to the original /transfer or supported sign-transaction request.

What you’ll learn

Submit a wallet-paid EVM payment with automatic fee retry, safely repeat its HTTP request, and track its outcome. Solana support, caller-built transactions and contract calls, fee-selection rules, and recovery details follow the first example. Use sponsoredGas: false or omit the flag for wallet-paid gas. sponsoredGas: true cannot be combined with autoRetry, even when autoRetry is null or an empty object: Para returns 400 SPONSORSHIP_UNSUPPORTED_REQUEST. See Gas sponsorship for payer selection.

Submit an EVM payment

Get a secret API key from the Developer Portal and use an API-created, unclaimed EVM wallet. The following example sends 0.0001 ETH on Sepolia through the beta API. Keep enough native tokens for the payment, the full execution-fee ceiling, and any separate chain fees; ERC-20 payments also need native tokens for fees.

1. Save the payment once

Create payment.json before making the HTTP request. Replace the wallet and recipient, choose a unique idempotencyKey for this payment, and set expiresAt to a timestamp in the next 24 hours. This example authorizes at most 0.001 ETH of execution gas per attempt.
payment.json
Once a submission has been attempted, keep this file unchanged, including its key and deadline. Do not replace it with a new payment job because the request timed out or its outcome is unclear.

2. Submit the saved payment

Run this script with Node.js 22 or later and PARA_API_KEY set to your secret key. It reads the saved job on every run; it never generates a new key or deadline and never overwrites the file. The secret key stays outside the file.
auto-retry.mjs
If the request times out, run the same command with the same file. It resends exactly the saved payment. If the response reports a key conflict or another error, retain the file and investigate; do not generate a replacement key to bypass the error. For ERC-20 payments, add tokenAddress and express value in the token’s smallest unit. The amount must be a positive integer string. Omit kind or use NATIVE for native tokens and ERC20 for token transfers. broadcast and addressScreening must be omitted or true. If recipient screening is rate limited when the transfer request is submitted, the 403 ADDRESS_SCREENING_UNAVAILABLE response includes reason: "rate_limited". The transfer is still blocked; retry the request.
The execution-gas ceiling excludes chain-specific charges. For example, OP Stack chains charge separate L1 data fees and may charge operator fees. The ceiling does not bound those charges or the total wallet debit. See OP Stack transaction fees.

Track the operation

202 Accepted means Para saved the operation for processing. It does not mean signing or broadcast succeeded. The response includes transactionId, status, and autoRetry, plus x-transaction-id and Location headers. It does not return signed transaction bytes. hash may be null until the initial transaction is signed. Use one pending payment per wallet and chain. Para rejects conflicting REST operations with 409 WALLET_TRANSACTION_UNRESOLVED; it does not queue another payment. Coordinate any transactions you send outside Para as well. Poll GET /v1/wallets/{walletId}/transactions/{transactionId} for the current record and retry details. Transaction list responses show the payment record; use the single-record lookup for autoRetry metadata. If admission returns 409 because the wallet is temporarily busy, retry the identical request with the same Idempotency-Key. Keep the saved body, including its original deadline. A conflict for an already unresolved payment requires tracking that payment before sending another. Replaying the same request and Idempotency-Key returns the existing operation with 202, even after its authorization expires. It never extends the deadline, increases the ceiling, or restarts stopped retries. Reusing the key for a different wallet, body, or operation returns 409 IDEMPOTENCY_CONFLICT.

Submit a Solana payment

Use an API-created, unclaimed Solana wallet. Send the same headers as the EVM example, with this body:
solana-auto-retry.json
Replace to with the recipient’s Solana address and expiresAt with a timestamp in the next 24 hours. value is a positive integer string in lamports for SOL. For legacy SPL tokens, add the mint as tokenAddress and express value in the token’s smallest unit. Omit kind or use NATIVE for SOL and SPL for tokens. Use SOLANA_DEVNET in beta. Production defaults to SOLANA; production also accepts SOLANA_DEVNET. Para selects compute and priority fees automatically. Solana requests do not accept EVM nonce or gas fields, caller-built instructions, or durable nonce transactions. maxExecutionFeeLamports bounds the base plus priority transaction fee for each attempt. It excludes the transfer amount and rent required to create a recipient’s associated token account. Keep enough SOL in the sending wallet for those costs as well. Para first rebroadcasts the identical signed transaction while its blockhash is valid. It can prepare new attempts with a fresh blockhash and adjusted priority fees within the original fee ceiling and deadline, only after the previous attempt is proven expired without landing. A timer, missing status, or RPC failure alone is not enough. If Para cannot determine the signing or chain outcome, automatic retries stop and the payment can remain unresolved. See Solana’s retry guidance. If an attempt’s policy decision expires while its blockhash is still valid, Para evaluates current permissions again before resending the saved bytes. This does not create another signature or charge the payment amount again. The original autoRetry.expiresAt still applies; a denial or loss of signing authority stops retries.

Recover a contract call or caller-built transaction

Use POST /v1/wallets/{walletId}/sign-transaction with broadcast: true, autoRetry, and a durable Idempotency-Key. The wallet must be API-created, unclaimed and ready to sign. Save the complete body and key before sending; replay them unchanged, including the original deadline. For EVM, provide a type 0 or type 2 transaction object with an explicit destination and chain ID. Contract calls and type 2 access lists are supported. Use decimal integer strings for value, gas limit and fees, a numeric nonce, and 0x-prefixed hex calldata. Contract creation, type 1, blob transactions, EIP-7702 authorization lists, and unknown transaction fields are rejected. Create contract-call.json once with your wallet ID, a unique key, the Sepolia contract address, ABI-encoded calldata (for example from Viem’s encodeFunctionData), and a deadline in the next 24 hours. The call must simulate successfully, and the wallet must hold its value plus the initial maximum execution-gas cost and any separate chain fees.
contract-call.json
Run this script with Node.js 22 or later and PARA_API_KEY set. It reads the saved job without generating a new key or deadline.
contract-auto-retry.mjs
After any submission attempt, retain the file unchanged. If the request times out, rerun this command with the same file; do not regenerate its key or deadline. With @getpara/rest-sdk, pass the same saved body and key to para.signTransactionWithAutoRetry(walletId, body, { idempotencyKey }). It resolves with the record from the 202 response. The SDK checks transaction, broadcast: true, autoRetry, and the key before it sends the request. TransferRequest does not expose autoRetry, so use the HTTP examples in the payment sections above for transfers. Para simulates the initial EVM call, fills omitted nonce, gas and fee fields, and freezes the resulting payload. A supplied nonce must equal the next pending account nonce. Every replacement preserves the nonce, destination, value, calldata, transaction type, gas limit and access list. Only the fee fields change, under the same fee ceiling and 60-second EVM cadence described below. A reverted call is terminal; Para never executes it again with a fresh nonce. For Solana, transaction is a base64-encoded unsigned legacy transaction. The wallet must be its sole signer and fee payer. Use a still-valid recent blockhash already present on the finalized chain, and include exactly one compute-unit-limit instruction for 120000 units, followed by one compute-unit-price instruction. Use autoRetry.maxExecutionFeeLamports and, in beta, network: "SOLANA_DEVNET". The initial compute-unit price is preserved; any rebuilt price must fit the original ceiling. Para verifies the caller blockhash at finalized commitment and locates its original block within the most recent 512 slots. Missing or older anchor history is rejected before signing. A newer finalized blockhash does not change the original caller transaction bytes; later expiry checks use a conservative bound and may wait longer before rebuilding. Versioned transactions, durable nonce transactions, additional signers, unsupported system/account instructions, and malformed associated-token-account creation instructions are rejected. Other program instructions remain subject to current signing policies. Para rebroadcasts exact signed bytes while valid; it changes the blockhash only after finalized expiry and non-execution proof, retaining the instruction payload apart from permitted compute-unit-price changes. Solana keeps its own recovery cadence; the EVM 60-second fee-replacement cadence does not apply. Managed signing requests do not accept reviewId, initiatorUserId, or sponsorship settings. Current policies must allow every attempt without a new transaction-bound approval. A review approved for one payload does not authorize fee-changed replacements. Principal spend accounting is reused for the same transaction; a changed policy or approval requirement stops new attempts. The response and lookup use intentKind: "sign_transaction" and the same autoRetry fields as managed transfers. Omitting autoRetry retains ordinary signing and broadcast behavior. Sign-only requests and signer adapters do not enroll automatic retry.

Advanced EVM fee selection

You can supply the usual EVM nonce, gas limit, and fee overrides. A supplied nonce must match the next pending account nonce. Para preserves supplied initial fees and fills omitted fees from current RPC estimates. For EVM /transfer, optional top-level urgency: "normal" | "urgent" selects generated initial prices and fresh replacement recommendations. Omission means normal. Caller-set initial prices, including zero, remain authoritative; a conflicting generated fee pair is rejected. Urgent uses the shared fee policy before the existing replacement minimum and budget clamp. It never raises your authorized ceiling or promises confirmation time. Para saves the choice with the operation. Omitted and explicit normal share the legacy durable identity; changing urgency under the same key returns 409. A replay or restart preserves prepared and signed bytes. sign-transaction and Solana requests reject urgency explicitly. Type 2 fee caps include base-fee headroom. Legacy gasPrice uses the greater of the RPC price and current base fee plus tip; legacy transactions pay that price for each unit of gas used. Para estimates an omitted gas limit with a 20% buffer. Initial fees must fit the ceiling. Use integer strings for gas limits and fee amounts; fee amounts are in wei per gas. Automatic retry supports legacy type 0 and EIP-1559 type 2. On chains with a base fee, a zero or missing RPC tip requires a valid eth_feeHistory response to select automatic fees. Para uses recent paid priority fees when available; all-zero history retains a zero tip. Unavailable or invalid history produces RPC_UNAVAILABLE. Complete explicit initial fees bypass this recommendation.

Retry attempts and payment outcomes

Attempt stages are prepared, signing, rejected, signed, submission_unknown, and submitted. rejected records proof that signing did not start or the signing request was not accepted. An unknown submission may already be on-chain. Para first reconciles persisted attempts and may resend the exact saved bytes before preparing a higher-fee attempt. EVM replacements are considered after at least 60 seconds from the previous attempt’s broadcast. Fees increase by at least 12.5%, rounded up, using fresh network estimates when higher. For type 2, both the priority fee and maximum fee increase. There is no fixed attempt limit: retries can continue until the deadline, provided the next replacement fits the fee ceiling and signing remains authorized. Confirmation and completion time are not guaranteed. If an EVM wallet lacks native tokens for the next attempt, or the current base fee plus required tip exceeds the ceiling, Para keeps autoRetry.state as active and checks again automatically. Adding funds or lower network fees can let the original payment continue before its deadline. Waiting does not create another replacement or consume bumpCount; the nonce, payment, ceiling, and deadline remain unchanged. The wallet and chain stay blocked during this wait; the manual cancellation flow is available only after retries become stopped. The record’s hash remains the initial transaction hash or Solana signature. Once Para verifies a finalized winner, monitoring.winningHash identifies it. A verified successful Para attempt confirms the same payment; an execution revert sets reverted. On EVM, an unrelated same-nonce transaction is handled as a replacement or cancellation of the payment. See Transaction history for finality and webhook behavior.

When retries stop

Para stops new attempts when the deadline is reached or signing authority is no longer valid. EVM retries also stop when the minimum replacement increase itself cannot fit the ceiling. Solana retries stop when funds are insufficient or the next attempt exceeds its fee ceiling. Each signing attempt checks current wallet ownership, the enrolling secret key, and current permissions. A secret-key rotation or wallet claim invalidates future signing authority. A policy denial, approval requirement, or incompatible spend-window change also stops retries. Compatible replacements count the original payment amount once against spend limits. autoRetry.state: "stopped" does not establish payment failure. If any signing or submission may have happened, Para retains the unresolved operation and continues chain monitoring, including finalized nonce checks for EVM when signing produced no saved hash. That wallet and chain remain blocked while retry processing retains an unresolved operation. An uncertain signing result is never signed again automatically. A stop before any signing dispatch, or a definitively rejected initial signing attempt, can safely mark the transaction failed and release the wallet. Rejecting a later fee replacement does not release the original pending payment. For EVM, if the finalized account nonce proves that none of the saved attempts can execute, Para releases the wallet hold and sets autoRetry.state: "resolved" with reason: "RECOVERY_NONCE_CONSUMED". Without an identified winner, monitoring.reason remains nonce_consumed; this does not prove payment success and emits no success webhook. Continue checking the payment record to establish what happened. For Solana, Para can resolve a stopped payment as failed with failureCode: "TRANSACTION_EXPIRED" once every dispatched attempt is proven expired and absent from the finalized chain. If signing returned no saved hash, Para checks finalized transaction messages against the saved payment and recovers any matching signature and outcome. These checks can span several monitoring passes and continue from saved progress after a restart. The wallet hold remains until Para verifies an outcome or completes the absence checks. Missing or incomplete chain history keeps the payment unresolved.
Do not send the payment again with a new key because retries stopped, a request timed out, or a hash is missing. Inspect status and monitoring, and contact Para support with the transactionId if the outcome remains unresolved.
Automatic retry has no manual resume or ceiling-increase endpoint. It never retries a reverted payment with a fresh nonce. Expiry does not cancel a transaction that has already been signed or submitted. Use transaction lookup to observe fee attempts; existing terminal transaction webhooks report the verified payment outcome.

Older Solana broadcasts

An earlier ordinary Solana broadcast can stop blocking new admission once finalized evidence proves its saved recent blockhash can no longer execute, or its saved durable nonce has advanced or the nonce account has closed. Its past payment outcome may still be unknown. For older records without saved lifetime evidence, contact Para support with the transaction ID. An operator can release the admission hold after reviewing external non-execution evidence; an absent RPC result or old timestamp is insufficient. Releasing that hold does not establish the old payment’s outcome or authorize resending it.

Cancel a stopped payment

This cancellation flow is EVM-only. If you choose to abandon a stopped, unresolved automatic retry or manual recovery payment, submit a cancellation through POST /v1/wallets/{walletId}/sign-transaction with broadcast: true. Manual recovery normally stops after submitting its single replacement; this does not establish payment failure. Read the original payment first and use its chainId and autoRetry.nonce or manualRecovery.nonce. Use a current secret key and a new Idempotency-Key for the cancellation request. Omit access and authorization lists, or leave them empty. Active operations and all other transaction payloads remain blocked. For stopped manual recovery, fresh checks must find no code at the wallet address; deployed or delegated code returns 409 RECOVERY_CANCEL_UNSUPPORTED and unavailable RPC evidence returns 503 RPC_UNAVAILABLE. Current wallet ownership, credentials, and signing policies must allow the cancellation. You authorize its fees in this new request; the original recovery grant remains unchanged. A stopped manual recovery cannot resume or accept another /speed-up or /cancel operation. The cancellation receives its own transaction ID, and Para records its hash as a candidate for the original payment before broadcasting. The wallet remains blocked until a winner is finalized. The original payment can still win the race, and an underpriced cancellation may remain pending. Poll both records; signing or broadcasting a cancellation does not prove that the payment was cancelled. A missing mempool entry never releases the hold. Automatic retry supports native and ERC-20 /transfer payments, type 0/2 EVM sign-transaction broadcasts including contract calls, and the supported legacy Solana transactions described above. It does not cover Cosmos, Stellar, Sui, sponsored transactions, or workflows that require a new policy approval for signing. Solana retries require compatible permissions v2 policies or disabled policies; legacy EVM-only policies cannot authorize them.