Prerequisites
Before you begin, ensure that you’ve: These are required so any example below runs with a validkit and adapter.
Estimate swap amount
This example estimates how much EURC you’ll receive when swapping 1.00 USDC for EURC:TypeScript
Arc testnet liquidity is thin, so a swap can pass estimation and still revert
during execution with
ONCHAIN_SIMULATION_FAILED. If this happens, raise the
slippage tolerance above the 300 bps default. See
Swap error handling.