🕵️Tracking your Relay Request
Learn how to check the status of your relay request
For the initial rollout of Gelato Relay, we have a basic way to keep track of your relay requests. This status tracking system is currently undergoing a lot of upgrades so expect the system to be a lot more informative, flexible and robust in the near future.
Task Status URL
For example, if your taskId
returned from your relay response is:
then the URL to go to is:
For this taskId
, here is the returned task information:
The first thing to look at is the taskState
key:
Task states:
For the taskState
key, these are the possible values:
CheckPending
: the relay request has been received by Gelato Relay (pending simulation).ExecPending
: the relay task is executable and is awaiting inclusion into the blockchain.WaitingForConfirmation
: the task was included into the blockchain but is still awaiting the required amount of blocks confirmations.ExecSuccess
: the task has been successfully executed.Cancelled
: the task has been cancelled due to failed simulations or other errors.In the case of
Cancelled
: the error message will be shown in thelastChecked
key.
ExecReverted
: the task transaction has been reverted.
What if my task is cancelled?
If your task is cancelled, you can find your error message under the lastCheckMessage
key, for example:
The error message in this case refers to the target contract reverting with the message "root already sent" when being called by Gelato Relay's sponsoredCall
function. If you get something similar and you are stuck on troubleshooting, please get in touch with us via Discord and ask in the relay
channel! We will be sure to figure out what's going on.
Example: tracking a ready made task
Let's use a script to get a task to track without coding ourselves.
Clone the repo and enter the directory:
2. Install dependencies
OR
3. Run an example script - in this case, we are running a script which submits a relay request which triggers the emitBalance
event on the MyDummyWallet
contract on Goerli.
4. Read the terminal logs
Last updated