Swap OP on Optimism
Optimism on Optimism, swapped natively to and from BTC, ETH, SOL, stablecoins and thousands of other assets. Try it below, or add it to your app with one API call.
About Optimism
OP is the governance token of the Optimism Collective, which stewards OP Mainnet and the OP Stack, the open-source framework used to build Ethereum Layer 2 chains such as Base. OP holders vote, directly or through delegates in the Token House, on protocol upgrades, grants and Superchain matters. Transaction fees on OP Mainnet are paid in ETH, not OP.
OP is natively issued on OP Mainnet, where it sits at the predeployed address 0x4200000000000000000000000000000000000042. It launched in 2022, and this contract is the canonical OP token used for Optimism governance.
Official website →Token details
Use the identifier for the chain your user holds OP on as sellAsset or buyAsset.
| Chain | SwapKit identifier |
|---|---|
| Optimism18 decimals | OP.OP-0x4200000000000000000000000000000000000042 |
Popular OP swaps
What SwapKit users most often swap OP with, in either direction.
Add OP swaps to your app
Three ways in. The examples use OP on Optimism; swap in another chain's identifier from the table above, and any asset as the other side.
REST API
curl -X POST "https://api.swapkit.dev/v3/quote" \
-H "Content-Type: application/json" \
-H "x-api-key: $SWAPKIT_API_KEY" \
-d '{"sellAsset":"OP.OP-0x4200000000000000000000000000000000000042","buyAsset":"ETH.ETH","sellAmount":"1","slippage":3}' TypeScript SDK
import { createSwapKit, SwapKitApi } from "@swapkit/sdk";
const swapKit = createSwapKit({ config: { apiKeys: { swapKit: apiKey } } });
// …connect the user's wallet, then:
const { routes } = await SwapKitApi.getSwapQuote({
sellAsset: "OP.OP-0x4200000000000000000000000000000000000042",
buyAsset: "ETH.ETH",
sellAmount: "1",
sourceAddress: "USER_SOURCE_ADDRESS",
destinationAddress: "USER_DESTINATION_ADDRESS",
});
const txHash = await swapKit.swap({ route: routes[0] }); Swap widget
<script type="module" src="https://cdn.swapkit.dev/widget/latest/swapkit-widget.js"></script>
<swapkit-widget
widget-id="YOUR_WIDGET_ID"
widget-key="YOUR_WIDGET_KEY"
input-asset="OP.OP-0x4200000000000000000000000000000000000042"
output-asset="ETH.ETH"
></swapkit-widget> Questions
How do I swap OP to ETH?
Request a quote with OP.OP-0x4200000000000000000000000000000000000042 as sellAsset and ETH.ETH as buyAsset, pick a route, then build the transaction with /v3/swap and have the user sign it in their own wallet.
Can I swap OP to native Bitcoin?
Yes. Quote OP to BTC.BTC and the user receives native BTC on the Bitcoin network, not a wrapped token.
Does SwapKit hold my OP?
No. SwapKit is non-custodial: the user signs every transaction in their own wallet and the payout goes straight to their address.
Ship cross-chain swaps this week.
One integration for 10,000+ assets across 30+ chains, with limit orders and Hyperliquid deposits included. Non-custodial by design.