For Canton apps
Who builds with Float, and how
Float gives each kind of Canton app one of two tools. The widget is a pop-up you open from a button, and the API runs on your server with your own screens. Pick the section that matches your app.
Canton wallets
When it applies. Your users hold CC in your wallet, and want to buy more, or send it out to another asset.
What you add
- The widget with your referral code. Pass the user's party so they are never asked for it.
- For withdrawals, pass onSendRequest. Your wallet asks the user to approve the send, and Float never signs or sees a key.
- Your referral code on every order, so the partner share is attributed to you (paid in CC).
What your users get
Buy CC with crypto from a wallet or an exchange, or by card or bank where their country allows it. Withdraw CC to USDC on Base or another asset, from the same wallet.
Read next: the on-ramp, withdrawals, the integration guide.
dApps and games
When it applies. A user needs CC on their Canton party ID before they can use your app, for example to pay for an action.
What you add
- One script tag and a button that calls Float.open(). The pop-up handles payment, and your app keeps the rest.
- The party option, so the CC goes to the user's party and the user never types it. Without it, the user types it once.
- The assets option, if you want a Canton token such as CBTC as well as CC. CC is the default.
- The onEvent callback to learn when the pop-up reports progress. Events never carry an address, an amount or a claim token.
What your users get
A pop-up in light or dark theme, with card, bank, crypto and exchange methods where each is offered. Float does not know your app's logic, so the pop-up only moves CC to the party.
Read next: the widget snippet, the widget demo.
Exchanges and apps
When it applies. You want your own screens, your own copy and your own order tracking, on your server.
What you add
- An API key, kept on your server. Browser calls from your own domain are blocked by CORS.
- Quotes from POST /v1/quote, orders from POST /v1/order, and status from GET /v1/order/{claimToken}. Send an Idempotency-Key on every order.
- Webhooks for order.state_changed and payout.updated, verified with the HMAC-SHA256 signature on each request.
- The refund-address step for routes that ask for it, and a destination tag or memo for payouts that need one.
What your users get
Your own buy and sell screens, with the amounts and states you choose to show. Canton tokens and withdrawals through the same endpoints. Amounts are decimal strings, so parse them with a decimal library.
Read next: the API reference, the routes, withdrawals.
AI agents
When it applies. An AI coding assistant or an agent is building your Canton app, or an agent acts for a user and needs a quote.
What you add
- Point the agent at the agent guide and the machine-readable files. Use /facts.md for figures, /skill.md for the integration steps and /openapi.json for the API.
- Use the widget for the payment screens, and the API for quotes and status. Keep the API key in the agent's environment, never in code.
- Do not open real orders in automated tests. There is no sandbox. Quotes are free to call.
What your users get
An agent that can write the integration in your stack from the same facts the site states, and quote a route without opening an order. The agent guide is at /ai, and the integration prompt is at /docs/ai.
Read next: the agent guide, the integration prompt, facts.
Pick a route and start with a partner account
The partner page gives you a referral code for the widget, or an API key for your server, and a dashboard for orders and earnings.