For Canton apps: wallets, dApps, exchanges
Add a Canton Coin on-ramp to your app
Your users buy CC inside your app. They pay with crypto from a wallet or exchange they already use, or by card or bank transfer where their country allows it. Float runs the swap and delivers CC to the user’s Canton party ID. You add one script tag and one button.
What your users can pay with
These are the methods the widget shows today. The list a user sees depends on their country and on their device. Float does not show a method that the user’s country does not offer.
| Method | What the user does |
|---|---|
| Transfer crypto | Send from any wallet to a QR code and deposit address. The user sends any amount above the minimum. |
| Connect a wallet | Pay from a browser or mobile wallet, such as MetaMask or Phantom, where the widget offers it. |
| Pay or connect an exchange | Send from an exchange account, or connect Coinbase or Binance. Offered on the crypto tab. |
| Card | Visa, Mastercard and local card methods, through Unifold's checkout. Apple Pay and Google Pay are off for now. |
| Bank and local rails | US bank transfer (ACH) from $100, Cash App (US only) and Interac e-Transfer (Canada only). Each shows only in its own country. |
Card payments run in Unifold’s own checkout, and the user receives CC at the market price for the USDC that arrives, after the provider’s fee and Unifold’s 0.5%.
The widget snippet
One script tag, one button and one call. Pass your referral code in data-float-ref, or in ref when you call the function.
<script src="https://www.myfloat.cc/widget.js" async></script>
<button data-float-open="deposit" data-float-ref="YOUR_CODE">Get CC</button>
<script>
Float.open({ mode: "deposit", ref: "YOUR_CODE", party: userPartyId, theme: "auto" });
</script>party is optional. Leave it out and the user types their Canton party ID once. The full option list, the events and the callbacks are in the integration guide.
Time to integrate
- Sign in on the partner page and copy your referral code.
- Paste the script tag once in your app. It loads the pop-up from Float's own domain.
- Add a button that calls Float.open() with your referral code. Pass the user's Canton party ID if your app knows it.
- Read a quote first. Quotes are free. Do not open real orders in automated tests.
No integration time is published yet, because no outside team has timed one. Float will add a figure here only after a measured run.
See the widget live
This is the real pop-up, loaded from /widget. Try the crypto and cash menus. 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.
Build it yourself, the widget, or the API
The three options differ in what your team builds and maintains. Each row describes what you own, not a price.
| Build it yourself | Float widget | Float API | |
|---|---|---|---|
| What your team builds | Quotes, orders, status, payment screens and webhooks, with a provider or route for each payment method. | A button and one function call. The referral code is the only setup. | A server route for quotes, orders, status and webhooks, plus your own screens. |
| Time to first working flow | Your own estimate. It depends on the methods and providers you choose. | Not published yet. No timed outside integration exists. | Not published yet. Read the API reference for the steps. |
| Maintenance | Your team keeps each provider and route working as they change. | Float runs the pop-up and its screens. | Your server keeps your calls and screens working as the API changes. The changelog lists each change. |
| Assets | Only the ones you integrate. | CC by default. Pass a list of Canton tokens, such as CBTC, to offer those too. | More than 1,600 assets, from GET /v1/assets. Canton tokens from GET /v1/canton-assets. |
| Checks and provider contracts | Your team holds a contract with each provider and handles its checks. | Card and bank payments run in Unifold’s checkout, with its own checks. Crypto routes run at swap partners, which are independent businesses. | The same providers as the widget, called from your server. |
| Minimum amount | Set by each provider and route you use. | Float’s minimum quote is $3 (USD equivalent). Bank transfer starts at $100. | Float’s minimum quote is $3 (USD equivalent). Each quote returns the route’s minimum. |
| Partner share | Not applicable. You route through your own contracts. | 0.2% of the CC side, in CC, with your referral code. | 0.2% of the CC side, in CC, with your API key or referral code. |
What you earn
Partners earn 0.2% of the CC amount of every swap they route. Earnings show in the partner dashboard. You withdraw them in CC to a Canton party you set. The minimum payout is 10 CC by default.
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.
Questions builders ask
Do I need an API key?
Not for the widget. The widget needs only your referral code, which is public and can sit in page code. Keep an API key for server calls to the REST API.
How long does integration take?
We have not timed an outside integration yet, so no time is published here. The widget itself is one script tag and one function call. The time you need depends on your own screens and on your test.
Is there a sandbox?
No. Quotes are free to call. Orders are real: harmless until someone pays, but do not open them in automated tests, and do not send a deposit while testing.
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. The quote shows the amount the user gets.
What is the minimum amount?
Float's minimum quote is $3 (USD equivalent). Bank transfer starts at $100, and Bitcoin deposits through the Float Pool start at $15. A Canton token order must be worth at least 75 CC. Below a route's minimum, the API refuses the amount and names the limit in its error text.
What happens if the user never pays?
An order nobody pays expires. Nothing was sent and nothing is owed.
Can I pass the user's Canton party ID?
Yes. When you pass the party option, the user is never asked for it, and every deposit delivers CC to that party. It cannot be changed inside the widget.
How do I earn from the users I bring?
Partners earn 0.2% of the CC side of each swap they route, paid in CC to the payout party you set in the dashboard. 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.
Start with a partner account
Sign in on the partner page to get a referral code and see your dashboard. The integration guide has the full widget options, the order states and the webhook details.