# Coinbase EVM Swaps API

**Canonical:** https://apis.io/apis/coinbase/coinbase-evm-swaps-api/  
**Provider:** Coinbase — https://apis.io/providers/coinbase/  
**Base URL:** https://api.coinbase.com  
**Documentation:** https://www.coinbase.com/developer-platform/products/wallet-sdk

Coinbase EVM Swaps API is one of 52 APIs that [Coinbase](https://apis.io/providers/coinbase/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification. This API exposes 12 JSON Schema definitions. Tagged areas include EVM Swaps. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, and 12 JSON Schemas.

A swap refers to the act of exchanging one token for another. The EVM Swap APIs enable you to create and manage swaps. A swap process involves: 1. A user approves token spending via smart contract. 2. The smart contract determines the exchange rate and facilitates the swap between the two tokens. 3. The transaction is completed atomically and the tokens are transferred to the user's wallet. The Swap API supports: - **Getting a price**: Estimate the amount of tokens you will receive for a given amount of exchanged tokens. - **Creating a swap quote**: Return a swap transaction payload that you can use to sign and submit in order to execute the swap. For the easiest experience creating, signing, and submitting a swap, we recommend using the [CDP SDK](https://github.com/coinbase/cdp-sdk/). - [Python SDK examples](https://github.com/coinbase/cdp-sdk/tree/main/python#evm-swaps) - [TypeScript SDK examples](https://github.com/coinbase/cdp-sdk/tree/main/typescript#evm-swaps) To read more about using the EVM Swap APIs, please see our [Swap API docs](https://docs.cdp.coinbase.com/swaps/docs/welcome).

## Operations (2)

| Method | Path | Summary |
|---|---|---|
| GET | `/v2/evm/swaps/quote` | Get swap price estimate |
| POST | `/v2/evm/swaps` | Create swap quote |

## Machine-readable artifacts (21)

- **OpenAPI** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/openapi/coinbase-evm-swaps-api-openapi.yml
- **Documentation** — https://docs.cdp.coinbase.com/coinbase-app/advanced-trade-apis/rest-api
- **AsyncAPI** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/asyncapi/coinbase-advanced-trade-asyncapi.yml
- **Documentation** — https://docs.cdp.coinbase.com/exchange/docs/welcome
- **AsyncAPI** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/asyncapi/coinbase-exchange-asyncapi.yml
- **Documentation** — https://docs.cdp.coinbase.com/prime/docs/rest-requests
- **Documentation** — https://docs.cdp.coinbase.com/onramp/docs/welcome
- **Documentation** — https://commerce.coinbase.com/docs/api
- **AsyncAPI** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/asyncapi/coinbase-commerce-webhooks-asyncapi.yml
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/json-schema/coinbase-conversion-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/json-schema/coinbase-currency-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/json-schema/coinbase-payment-method-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/json-schema/coinbase-transfer-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/json-schema/coinbase-transaction-summary-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/json-schema/coinbase-price-book-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/json-schema/coinbase-product-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/json-schema/coinbase-candle-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/json-schema/coinbase-trade-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/json-schema/coinbase-order-book-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/json-schema/coinbase-trade-2-schema.json
- **JSONSchema** — https://raw.githubusercontent.com/api-evangelist/coinbase/refs/heads/main/json-schema/coinbase-profile-schema.json

## Other Coinbase APIs (12)

- [Coinbase Wallet SDK](https://apis.io/apis/coinbase/wallet-sdk/)
- [Coinbase Data API](https://apis.io/apis/coinbase/data-api/)
- [Coinbase AgentKit](https://apis.io/apis/coinbase/agentkit/)
- [Coinbase Accounts API](https://apis.io/apis/coinbase/coinbase-accounts-api/)
- [Coinbase Activities API](https://apis.io/apis/coinbase/coinbase-activities-api/)
- [Coinbase Address Book API](https://apis.io/apis/coinbase/coinbase-address-book-api/)
- [Coinbase Allocations API](https://apis.io/apis/coinbase/coinbase-allocations-api/)
- [Coinbase Assets API](https://apis.io/apis/coinbase/coinbase-assets-api/)
- [Coinbase Balances API](https://apis.io/apis/coinbase/coinbase-balances-api/)
- [Coinbase Buy API](https://apis.io/apis/coinbase/coinbase-buy-api/)
- [Coinbase Charges API](https://apis.io/apis/coinbase/coinbase-charges-api/)
- [Coinbase Checkouts API](https://apis.io/apis/coinbase/coinbase-checkouts-api/)

## Tags

EVM Swaps

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/coinbase/coinbase-evm-swaps-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/coinbase/.
