Execute a token swap (EVM)
swop_swapExecute an on-chain token swap from the linked user's Swop wallet, within their delegation caps. EVM only (via LiFi); Solana swaps still complete in the app. TWO-STEP like swop_send: call WITHOUT confirm to preview (estimated output, min received, USD value, caps); show the user the estimated output and get their explicit yes; then call again with the returned previewId and confirm: true. Gas is sponsored, and any needed token approval is handled automatically. Over-cap or no delegation returns a Swop-app approval link. Pass chain plus token ADDRESSES; amount is in the input token's base units.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | EVM chain: base, ethereum, polygon, arbitrum, or a numeric chain id | |
| amount | Yes | Input amount in base units (wei / token decimals) | |
| confirm | No | true ONLY after the user confirmed the preview (output shown) | |
| inputMint | Yes | Input token EVM contract address | |
| previewId | No | From the preview step | |
| outputMint | Yes | Output token EVM contract address |