For Canton apps: wallets, exchanges, dApps

Let your users sell CC for more than 1,600 assets

Some users hold CC and want it on another chain, or as another asset. Float’s withdraw screen sends their CC out and pays the asset they pick, to an address they give. You add one button. The widget runs the screens, or your server calls the API.

How a withdrawal works

  1. The user picks the asset and network they want. USDC on Base is the default.
  2. The user enters an address on that network, or your app fixes it for them (see below).
  3. The screen quotes the amount at the market rate. Float takes the route with the highest output.
  4. The order opens with a status page. The user sends CC from their wallet, or your wallet sends it for them.
  5. The order moves on when the CC arrives. The asset goes to the address, and the status page shows each step.

The status page follows the order through preparing_deposit_address, awaiting_deposit, confirming, exchanging and sending. The four final states are completed, refunded, failed and expired. The full list is in the integration guide.

Which assets

More than 1,600 assets across many networks, listed by GET /v1/assets?all=1. Read the endpoint for the current count, because the list changes. Canton tokens such as CBTC are listed by GET /v1/canton-assets and sent with cantonAsset on the API.

Offer a withdrawal only if your users hold CC and want to leave Canton. A withdrawal is a real order that pays out to an external address.

Holding CC yourself? Sell Canton Coin has the steps for one person, with live quotes and the minimum for each asset.

Fix the payout address

Your app can fix the destination. The user is not asked for an address, and the order pays exactly where you say. This suits a payout to the user’s own account on another platform, if the user has one. Pass the destination, the asset, the network and a name in the widget options:

<button data-float-open="withdraw" data-float-ref="YOUR_CODE">Withdraw CC</button>

<script>
  Float.open({
    mode: "withdraw",
    ref: "YOUR_CODE",
    party: userPartyId,      // refund party: where CC goes back if the swap cannot complete
    dest: "0xUSERADDRESS",   // fixed by your app
    destAsset: "USDC",
    destNetwork: "BASE",
    destName: "Trading account"
  });
</script>

The widget checks the address format for the network before it uses the destination. An EVM network needs a 0x address.

Send from the user's own wallet

If your app is a Canton wallet, or holds the user’s CC, pass onSendRequest. The user never sees an address: the Withdraw button calls your function with exactly what to send, your wallet asks for approval, and you send it. Float never signs, never sees a key and never moves funds itself. The order advances when the transfer lands. Without onSendRequest, the status screen shows the amount, a QR code and the address for a manual send.

Pool limits

The Float Pool pays USDC on Base only, and up to $50 per order. Each quote compares the pool with the swap partners, and the route with the highest output is picked.

See the withdraw screen live

This is the real Withdraw CC pop-up, loaded from /widget. Pick an asset to see the quote. No partner code is attached here, so nothing you do in this frame is attributed to anyone.

Want your own party ID or referral code in the pop-up? Use the widget demo.

Questions builders ask

Is the rate fixed?

A withdrawal always runs at the market rate. The screen has no rate choice. The amount shown is the amount the user gets.

What if the swap cannot complete?

The CC goes back to the refund party. In the widget, that is the party you pass on withdraw, and the user is not asked for one. Orders that fail or are refunded show that state on their status page.

Do I need an API key?

Not for the widget. The API needs a key on your server, and the referral code attributes the order to you in both cases.

Can a user send a Canton token instead of CC?

Yes. The widget offers a Withdraw CC menu when you pass more than one asset, and the API takes a cantonAsset on direction out. The list comes from GET /v1/canton-assets.

What is the minimum amount?

Float's minimum quote is $3 (USD equivalent). Each quote returns the route's own minimum, and the widget and API name the limit when an amount is below it. A Canton token withdrawal must be worth at least 75 CC.

What does the user pay in fees?

Float's fee is built into every quote and depends on the route. The amount you see is the amount you get. There is no single fee percentage.

What do partners earn on withdrawals?

Orders filled by the Float Pool earn the share too: an order with an API key or referral code pays the pool a 0.3% fee, and the share comes out of it. The share is 0.2% of the CC side of each attributed swap. An earning is written when the order opens and becomes payable when the order completes.

Start with a partner account

Sign in on the partner page for your referral code and dashboard. The integration guide lists the widget options for withdrawals and the API calls for direction out.

Create a partner accountRead the integration guide

More for Canton builders