How to get a quote for your relay fee before sending the request
chainId
: the chain ID of the network on which to check if the fee oracle is active.true/false
: depending on the status of the fee oracle on the requested network.chainId
: the chain ID of the network where you want to check if the fee oracle is active there.chainId
: the chain ID of the network where you want to check if the fee oracle is active there.paymentToken
: the address of the token you would like to pay in.gasLimit
: a custom gas limit for your transaction, please remember to add an overhead for Gelato Relay’s contract calls and security checks.isHighPriority
: EIP-1559 flag for increasing your priority gas fee. If true, you will incur higher costs but have a higher certainty of block inclusion.gasLimitL1
: gas limit for the L1 data fee which is required to properly estimate fees on OP Stack chains, e.g. Optimism, Base, Zora. Can be omitted on all other chains.Note: Please be aware that if your relayed transaction incurs gas refunds, for example, for clearing out storage slots, this is not known beforehand. These refunds can only be known after the fact, from the transaction receipts. This means that the fee oracle will give you a price which does not include the gas refunds, so it may be higher than you think. This is due to how the EVM works, and the initial gas allocated for execution should still be the total amount before refunds, otherwise you will get an ‘Out of gas’ error. See here for more info.