Tokens· Token

Swap HEX on Ethereum

HEX on Ethereum, 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 HEX

HEX is an ERC-20 token launched on Ethereum in December 2019 by Richard Heart. Its central feature is staking: holders lock HEX for a chosen number of days and receive newly created HEX when the stake ends, with penalties for ending a stake early or claiming it late.

All HEX staking happens directly in the HEX contract on Ethereum. In 2023 the US SEC sued Richard Heart over HEX and related projects; a federal court dismissed the case in 2025.

Official website →

Token details

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

ChainSwapKit identifier
Ethereum8 decimals ETH.HEX-0x2b591e99afe9f32eaa6214f7b7629768c40eeb39

Popular HEX swaps

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

Add HEX swaps to your app

Three ways in. The examples use HEX 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.HEX-0x2b591e99afe9f32eaa6214f7b7629768c40eeb39","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.HEX-0x2b591e99afe9f32eaa6214f7b7629768c40eeb39",
  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.HEX-0x2b591e99afe9f32eaa6214f7b7629768c40eeb39"
  output-asset="ETH.USDC-0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
></swapkit-widget>

Questions

How do I swap HEX to USDC?

Request a quote with ETH.HEX-0x2b591e99afe9f32eaa6214f7b7629768c40eeb39 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 HEX to native Bitcoin?

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

Does SwapKit hold my HEX?

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.