get_gasless_status
Check the status of a submitted gasless swap transaction by providing the trade hash and blockchain ID to monitor execution progress.
Instructions
Get the status of a submitted gasless swap
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tradeHash | Yes | Trade hash from gasless swap submission | |
| chainId | Yes | Blockchain ID where the trade was submitted |
Implementation Reference
- src/services/agService.js:186-204 (helper)Core helper function in AgService that makes the HTTP request to the aggregator API endpoint /api/swap/gasless/status/{tradeHash} to retrieve the actual status data.
async getGaslessStatus(tradeHash, chainId) { try { const response = await fetch(`${this.baseUrl}/api/swap/gasless/status/${tradeHash}?chainId=${chainId}`); if (!response.ok) { throw new Error(`HTTP ${response.status}: ${response.statusText}`); } const data = await response.json(); if (!data.success) { throw new Error(data.error || 'Gasless status request failed'); } return data.data; } catch (error) { throw new Error(`Failed to get gasless status: ${error.message}`); } }