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

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

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.