get_gasless_approval_tokens
Retrieve tokens supporting gasless approvals via EIP-2612 permit to reduce transaction costs and streamline DeFi interactions on supported blockchains.
Instructions
Get list of tokens that support gasless approvals (EIP-2612 permit)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | No | Blockchain ID (e.g., 8453 for Base, defaults to 8453 if not provided) |
Implementation Reference
- src/services/agService.js:226-244 (helper)Helper service method in AgService that makes the actual API call to retrieve gasless approval tokens.
async getGaslessApprovalTokens(chainId) { try { const response = await fetch(`${this.baseUrl}/api/swap/gasless/approval-tokens?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 approval tokens request failed'); } return data.data; } catch (error) { throw new Error(`Failed to get gasless approval tokens: ${error.message}`); } }