📨API
How to communicate directly with the Gelato Relay API
Last updated
How to communicate directly with the Gelato Relay API
Last updated
The Gelato Relay API endpoint URL is https://api.gelato.digital/
The Swagger UI is located at https://api.gelato.digital/api-docs
Each relay request method possesses optional parameters such as the gasLimit
, and retries
. You can find more information on these on the Optional Parameters page.
/call-with-sync-fee/: for more information, please click here.
/call-with-sync-fee-erc2771/: for more information, please click here.
/sponsored-call/: for more information, please click here.
/sponsored-call-erc2771/: for more information, please click here.
If you'd like to use the debug endpoint with tenderly, you can make use of the debug endpoint and by adding the following parameters
tenderlyUsername
tenderlyProjectName
the request URL should look like this:
https://api.gelato.digital/tasks/status/{yourRelayTaskId}/debug?tenderlyUsername={yourUserName}&tenderlyProjectName={yourProjectName}
Everything will already be pre-set, all you need to do is click on "Simulate" and check what might have been the point of failure:
If the calldata is too big which may result in the following error upon clicking on the url returned by the api response:
/tasks/status/{taskId}/debug
The ID of the task to retrieve debug information for.
Username for Tenderly account.
Project name on Tenderly.
/oracles/{chainId}/conversionRate
Id of the chain where the conversion rate is estimated
Token in which the conversion rate is estimated from the native token of the selected chain. If a value is not provided, it will default to the USDC address on the selected chain
Please find more information here: https://docs.gelato.network/developer-products/gelato-relay-sdk/sdk-methods/relaywithsyncfee
/relays/v2/call-with-sync-fee
Please find more information here: https://docs.gelato.network/developer-products/gelato-relay-sdk/sdk-methods/relaywithsyncfeeERC2771
/relays/v2/call-with-sync-fee-erc2771
Please find more information here: https://docs.gelato.network/developer-products/gelato-relay-sdk/sdk-methods/relaywithsponsoredcall
/relays/v2/sponsored-call
Please find more information here: https://docs.gelato.network/developer-products/gelato-relay-sdk/sdk-methods/relaywithsponsoreduserauthcall
/relays/v2/sponsored-call-erc2771
/oracles/{chainId}/estimate
Id of the chain where the fee is estimated
Payment Token
Gas limit
Priority | if high: true, otherwise: false
Gas limit for Layer 1 | For OP stack chains input BigInt(0)