📨API

How to communicate directly with the Gelato Relay API

The Gelato Relay API endpoint URL is https://api.gelato.digital/

The Swagger UI is located at https://api.gelato.digital/api-docs

Oracle queries

Relay Endpoints

Informational

Sending Relay Requests:

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.

Task Tracking

Debug Endpoint

How to use it with Tenderly

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:

What to do if the calldata is too big?

In this case you would have to manually copy and paste the to, from, callData, blockNumber etc into the Tenderly UI or Foundry

Last updated