Relay a Safe transaction
Submits an owner-signed Safe execTransaction to the chain. Anafi pays the gas. The
Safe checks the owner signatures. Anafi adds no authority and decides only whether
it pays for the transaction.
Anafi pays only for these calls, made directly or as zero-value CALL records of a
delegatecall into the Safe MultiSend of the network:
enableModule(adapter)anddisableModule(prevModule, adapter)at the Safe itself, whereadapteris the Safe adapter of the network.commitDslandcommitDslDirectat theAnafiDslRegistryof the network, with the Safe adapter as theadapterargument. AsealedDslofcommitDslDirectcan be at most one sealed document of the maximum document size.- On a network with an off-ramp handler:
setFallbackHandler(handler)at the Safe with exactly that handler, andsetOffRampPolicy(terms)at the Safe.
Every transaction must also have value, gasPrice and safeTxGas equal to 0.
With these values the Safe reverts the whole transaction when the inner call fails.
A signature slot that names the Anafi submitter as a pre-validated signer is refused.
- Who may call: anyone. Only a transaction that the Safe owners signed can execute.
- Before: the Safe exists, its threshold signatures are in the calldata, and the
transaction uses the current Safe nonce. While fees are on, the Safe must have a
sponsor (see
GET /api/wallets/{aa}/sponsorship). Otherwise the owner sendsexecTransactionfrom the owner address. - Guarantee: a
200means that the transaction was mined.successis the receipt status. Asuccess: falsemeans that the Safe refused the whole transaction and nothing that it asked for happened. - Only one relay for one Safe runs at a time. A second request answers
429.
Do not send the same bytes again after a 504. Read the Safe nonce to learn whether
the transaction ran. See Safe adapter.
Path Parameters
Body
Response
The transaction was mined.