Actions61
- End User Accounts Actions
- EVM Accounts Actions
- EVM Smart Accounts Actions
- EVM Swaps Actions
- EVM Token Balances Actions
- Faucets Actions
- Onchain Data Actions
- Onramp Actions
- Payments Alpha Actions
- Policy Engine Actions
- Solana Accounts Actions
- Solana Token Balances Actions
- SQL API Alpha Actions
- X 402 Facilitator Actions
EVM Swaps → Create Evm Swap Quote
AI-generatedSummary
Create an EVM swap quote based on specified parameters.
Inputs
- X-Idempotency-Key — An optional UUID v4 request header for safe retries of requests.
- network (required) — The network on which to perform the swap (e.g., Base, Ethereum, Arbitrum, or Optimism).
- toToken (required) — The 0x-prefixed contract address of the token to receive.
- fromToken (required) — The 0x-prefixed contract address of the token to send.
- fromAmount (required) — The amount of the fromToken to send in atomic units.
- taker (required) — The 0x-prefixed address that holds the fromToken balance.
- signerAddress — The 0x-prefixed EOA address that will sign the EIP-712 permit message if taker is a smart contract.
- gasPrice — The target gas price for the swap transaction, in Wei.
- slippageBps — The maximum acceptable slippage of the toToken in basis points.
- requestOptions — Additional request options like batching, timeout, and proxy settings.
Output shape
a swap quote object
The response contains details about the swap quote including amounts, expected rates, and estimated gas.