NEWPre-check is now available via API. Choose it when you apply, or request it in Settings if you are already live. It decreases the chances of KYC per TX.

Referral link and swap widget

Two ways to earn without writing any integration code:

  • Referral link: share https://ghostswap.io/?ref=your-code. Swaps your visitors make on ghostswap.io are credited to you.
  • Swap widget: paste one snippet and your visitors swap right on your page. Every swap in it is credited to you, exactly like the link.

Both run on the same referral code, earn the same rate, and land in the same balance. Your visitors pay the normal GhostSwap price.

Get started

  1. Sign up and choose Referral link and swap widget. Your account is live straight away, no review.
  2. Pick your code on the Overview page. Lowercase letters, digits and hyphens, 2 to 64 characters.
  3. Share the link, or open Swap widget in the dashboard and copy the snippet.

You earn the rate shown on your dashboard (0.5% of the swap amount for new codes). If you later change your code, the new one keeps your rate.

Add the widget to your site

Script (recommended)

Paste this where the swap box should appear. It sizes itself to fit its content.

<div data-ghostswap-widget="your-code"></div>
<script async src="https://partners.ghostswap.io/embed.js"></script>

Plain iframe

For site builders that remove scripts:

<iframe src="https://partners.ghostswap.io/widget/your-code"
  title="Swap crypto with GhostSwap" loading="lazy"
  style="width:100%;max-width:464px;height:600px;border:0"></iframe>

Options

Add these as data- attributes on the div, or as query parameters on the iframe URL. All are optional.

OptionExampleWhat it does
themelightdark (default) or light
accent22c55eButton colour, 6 hex digits without #
frombtcCoin the visitor sends first
toxmrCoin the visitor receives first
amount0.05Starting amount

The Swap widget page in your dashboard builds the snippet for you and shows a live preview.

What your visitors see

  1. They pick the coins and the amount, and see the estimated amount they receive.
  2. They enter their own wallet address (and, if they like, a refund address).
  3. They get a deposit address and the exact amount to send, then a live status until the coins arrive.

Every swap has an ID and a Track on ghostswap.io link, so a visitor can check on it later from any device. Coins that need a memo or destination tag (XRP, XLM, TON and similar) are not offered in the widget yet; visitors can still swap those on ghostswap.io through your link.

How you are credited

  • Link: a visitor who opens your link is remembered for that visit, up to 24 hours. A swap they start during that visit is credited to you.
  • Widget: every swap made in your widget is credited to you. Nothing depends on cookies.

Only finished swaps earn. Your dashboard shows the last 30 days split by link and widget, and your earnings page lists every credited swap.

Getting paid

Referral earnings go into your partner balance, paid in USDT or XMR once it passes $100. Request a payout from the Payouts page; we review and send it. See Commissions for the details.

Want API access too?

If you are building a wallet, exchange or app, open API access in the dashboard and apply. Your link and widget keep earning while we review, and keep working after your API key is live.