Swap tokens within an Earn Account.
Request model for swap endpoint.
Inherits swap params and adds context fields (owner, chain, gas_sponsorship).
Token to sell (input). Provide a token symbol from a limited set (e.g., 'USDC') or any token address.
Token to buy (output). Provide a token symbol from a limited set (e.g., 'USDT') or any token address.
Human-readable amount of token_in to swap (token units, not wei).
x > 01.5
The owner's wallet address.
Target blockchain network where the swap will execute.
base, ethereum, arbitrum Action type identifier for swap operations.
"V2_SWAP"Maximum slippage tolerance as a percentage (e.g., 0.5 = 0.5%).
0.5
Optionally request gas sponsorship. If true, EIP-712 typed data will be returned that must be signed by the owner and submitted to the 'Prepare gas-sponsored transaction' endpoint (/gas_sponsorship/prepare).