relay

Relay transaction

Changed on

Relays a Safe transaction or Safe creation transaction using the relay service, which pays for gas fees. Supports execTransaction (Safe tx) and createProxyWithNonce (Safe creation) calldata. On relay-fee chains, safeTxHash is required and must match the hash derived on-chain from the submitted calldata. On chains where pre-relay Tenderly simulation is enabled, an execTransaction is simulated before being submitted: a confirmed revert returns SIMULATION_FAILED, and an unreachable simulator returns INDETERMINATE_SIMULATION (retry with acceptUnverifiedSimulation=true to proceed anyway when the simulator is unreachable).

post/v1/chains/{chainId}/relay

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

chainIdstring required
Example:1

Chain ID where the Safe transaction will be executed

Request body

versionstring required
tostring required
datastring required
gasLimitstring nullable

Accepted for backward compatibility and validation; not forwarded to the relay provider.

safeTxHashstring

Safe transaction hash for relay-fee eligibility check

acceptUnverifiedSimulationboolean

Set to true to proceed with the relay when a previous attempt returned INDETERMINATE_SIMULATION. The user has acknowledged the simulation could not be completed and accepts the risk.

Response

Transaction relayed successfully

taskIdstring required

Changes

    • info

      added the non-success response with the status

    • info

      added the new optional request property

    • info

      added the media type application/json for the response with the status