Permissionless transactions with on-chain payments
Important: Please proceed to our Security Considerations page and read it thoroughly before advancing with your implementation. It is crucial to understand all potential security risks and measures to mitigate them.
request
: this is the request body used to send a request.options
: RelayRequestOptions is an optional object.apiKey
: this is an optional API key that links your request to your Gelato Relay account. As this pertains to the syncFee payment method, transaction costs won’t be deducted from your Gas Tank account. By using the API key, you can benefit from increased rate limits of your Gelato Relay account.taskId
: your unique relay task ID which can be used for tracking your request.gasLimit
: the gas limit of the relay call. This effectively sets an upper price limit for the relay call.Note: If you are using your own custom gas limit, please add a 150k gas buffer on top of the expected gas usage for the transaction. This is for the Gelato Relay execution overhead, and adding this buffer reduces your chance of the task cancelling before it is executed on-chain.
Note: If your contract has any hardcoded requirements about gas usage, please always explicitly pass the gasLimit to the SDK/API, as Gelato will not know what hardcoded gas expectations your contract has. Otherwise, your relay requests might not be executable.
retries
: the number of retries that Gelato should attempt before discarding this relay call. This can be useful if the state of the target contract is not fully known and such reverts can not be definitively avoided.chainId
: the chain ID of the chain where the target smart contract is deployed.target
: the address of the target smart contract.data
: encoded payload data (usually a function selector plus the required arguments) used to call the required target address.isRelayContext
: an optional boolean (default: true) denoting what data you would prefer appended to the end of the calldata.
feeToken
: the address of the token that is to be used for payment. Please visit SyncFee Payment Tokens for the full list of supported payment tokens per network.