Permissionless sponsored transactions
sponsoredCall
is permissionless and does not enforce any security. Target contracts should not whitelist the calling contract as an authorized msg.sender
. The contract address is subject to change without further notice.request
: this is the request body used to send a request.sponsorApiKey
: an API key used to authenticate your sponsorship.options
: RelayRequestOptions is an optional request object.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.