Tokens· Infrastructure

Swap XCN

Onyxcoin on Ethereum, Arbitrum, Base and BNB Chain, 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 Onyxcoin

Onyxcoin (XCN) is the token of Onyx, a blockchain project that began as a fintech startup in 2014 and builds ledger infrastructure aimed at financial applications. XCN is the native token of Onyx's own networks, including the Goliath chain, and is also used as an ERC-20 for staking and governance in the Onyx DAO.

The ERC-20 XCN on Ethereum is the canonical token used for Onyx DAO staking and governance, and Onyx runs a bridge between it and its own networks. The XCN tokens on Arbitrum, Base and BNB Chain are bridged copies of the Ethereum token rather than separate issuances.

Official website →

XCN on 4 chains

Use the identifier for the chain your user holds XCN on as sellAsset or buyAsset.

ChainSwapKit identifier
Ethereum18 decimals ETH.XCN-0xA2cd3D43c775978A96BdBf12d733D5A1ED94fb18
Arbitrum18 decimals ARB.XCN-0x58BbC087e36Db40a84b22c1B93a042294deEAFEd
Base18 decimals BASE.XCN-0x9c632e6aaa3ea73f91554f8a3cb2ed2f29605e0c
BNB Chain18 decimals BSC.XCN-0X7324C7C0D95CEBC73EEA7E85CBAAC0DBDF88A05B

Popular XCN swaps

What SwapKit users most often swap XCN with, in either direction.

Add XCN swaps to your app

Three ways in. The examples use XCN on Ethereum; swap in another chain's identifier from the table above, and any asset as the other side.

REST API

Terminal
curl -X POST "https://api.swapkit.dev/v3/quote" \
  -H "Content-Type: application/json" \
  -H "x-api-key: $SWAPKIT_API_KEY" \
  -d '{"sellAsset":"ETH.XCN-0xA2cd3D43c775978A96BdBf12d733D5A1ED94fb18","buyAsset":"ETH.USDC-0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","sellAmount":"1","slippage":3}'

TypeScript SDK

TypeScript
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: "ETH.XCN-0xA2cd3D43c775978A96BdBf12d733D5A1ED94fb18",
  buyAsset: "ETH.USDC-0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
  sellAmount: "1",
  sourceAddress: "USER_SOURCE_ADDRESS",
  destinationAddress: "USER_DESTINATION_ADDRESS",
});

const txHash = await swapKit.swap({ route: routes[0] });

Swap widget

HTML
<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="ETH.XCN-0xA2cd3D43c775978A96BdBf12d733D5A1ED94fb18"
  output-asset="ETH.USDC-0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
></swapkit-widget>

Questions

Which chains can I swap XCN on?

Ethereum, Arbitrum, Base, BNB Chain. Each has its own SwapKit identifier, listed above; use the one for the chain your user holds XCN on.

How do I swap XCN to USDC?

Request a quote with ETH.XCN-0xA2cd3D43c775978A96BdBf12d733D5A1ED94fb18 as sellAsset and ETH.USDC-0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 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 XCN to native Bitcoin?

Yes. Quote XCN to BTC.BTC and the user receives native BTC on the Bitcoin network, not a wrapped token.

Does SwapKit hold my XCN?

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.