get_gasless_chains
Find blockchain networks that support gasless swaps to enable trading without paying transaction fees.
Instructions
Get list of blockchain networks that support gasless swaps
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/services/agService.js:206-224 (helper)Core utility function in AgService that performs the HTTP request to retrieve gasless-supported chains from the aggregator backend.
async getGaslessChains() { try { const response = await fetch(`${this.baseUrl}/api/swap/gasless/chains`); 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 chains request failed'); } return data.data; } catch (error) { throw new Error(`Failed to get gasless chains: ${error.message}`); } }