Coinbase Server Wallet icon

Coinbase Server Wallet

Interact with Coinbase Server Wallet API v2 (EVM & Solana)

Actions61

EVM Swaps → Create Evm Swap Quote

AI-generated

Summary

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.

Discussion