alex_get_swap_quote
Retrieve a swap quote from ALEX DEX to determine the expected output amount for swapping one token to another using full contract IDs on mainnet.
Instructions
Get a swap quote from ALEX DEX.
Returns the expected output amount for swapping tokenX to tokenY. Use full contract IDs for tokens (e.g., 'SP102V8P0F7JX67ARQ77WEA3D3CFB5XW39REDT0AM.token-wstx-v2').
Note: ALEX DEX is only available on mainnet.
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tokenX | Yes | Input token contract ID | |
| tokenY | Yes | Output token contract ID | |
| amountIn | Yes | Amount of tokenX to swap (in smallest units) |