Coding agents
Add a Canton Coin on-ramp with Claude Code
Give Claude Code the prompt below in your app's repository. It adds Float's buttons in a few minutes. The widget needs no API key and no backend.
Before you start
- A referral code. Create one at /partners. Orders without it are not attributed to you.
- The page or component where the buttons go.
- Claude Code, open in the repository: run
claudein the project folder.
The prompt
Replace the two placeholders first: your referral code and the page.
Add Float's Get CC and Withdraw CC buttons to this app.
Read https://www.myfloat.cc/skill.md and https://www.myfloat.cc/integrate first.
Use the widget only. Add <script src="https://www.myfloat.cc/widget.js" async></script> once, then buttons that call:
Float.open({ mode: "deposit", ref: "<MY_REFERRAL_CODE>", theme: "auto" })
Float.open({ mode: "withdraw", ref: "<MY_REFERRAL_CODE>", theme: "auto" })
Do not add an API key, a backend route or a webhook. Do not ask me for an API key.
Put the buttons on <PAGE OR COMPONENT>, in this app's existing style. Keep the code in one component.
Then run the build and the lint, and show me their output.
Do not open an order or send a deposit while testing. Float has no sandbox.Check the result
- Start the dev server and open the page. Click Get CC. The pop-up opens over the page.
- Close the pop-up. Do not send a deposit, and do not open orders in tests.
- Read the diff. The only value the prompt adds is your referral code. No API key belongs in the code.
If you need the API instead
Use the API when you want your own swap screen. The key goes in a server-side environment variable (FLOAT_API_KEY), never in the browser. The starter has a proxy route, the widget component and a webhook receiver. Read the AI integration guide first.
curl -LO https://www.myfloat.cc/downloads/float-widget-starter.zip
The API reference is at /docs/api, and the OpenAPI spec at /openapi.json.
Tell the agent which path
Name the path in the prompt. “Use the widget only” keeps the change small and needs no secret. “Use the API” adds a server route, a webhook and a key in FLOAT_API_KEY.