/circle:bridge-tokensfrom circle
Bridges USDC and CCTPx tokens (wETH, cirBTC, EURC) across EVM and Solana chains using Circle App Kit or Bridge Kit. Supports browser wallets, private-key adapters, transfer speed options, and forwarding.
Ships in circle. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Bridge tokens across chains with Circle's App Kit or Bridge Kit. USDC moves over Crosschain Transfer Protocol (CCTP) -- burn on the source chain, mint on the destination. CCTPx tokens use a registry alias (such as wETH, cirBTC, or EURC) or a registry-listed token ID. Both go through the same kit.bridge() call: pass the alias or token ID directly as token (not wrapped in a provider-selector object) and the SDK routes it; there is no protocol to choose. App Kit (@circle-fin/app-kit) is Circle's all-inclusive SDK covering bridge, swap, and send; standalone Bridge Kit (@circle-fin/bridge-kit) ships the same bridge API in a lighter package. Recommend App Kit unless the user wants bridge-only functionality. Bridge operations need no kit key.
Both SDKs run in browser and server applications. Version gates:
Buffer polyfills, Solana included): App Kit >=1.11.0, Bridge Kit >=1.12.2. Upgrade stale packages instead of adding shims.>=1.15.0; in a browser, App Kit >=1.15.2 or Bridge Kit >=1.15.1.Pass the same token to kit.bridge() and to kit.estimateBridge() (App Kit) / kit.estimate() (Bridge Kit). Only USDC supports Solana; every CCTPx route is EVM-to-EVM. Aliases are case-sensitive ("wETH", not "WETH"), and a token ID is a bytes32 hex string (0x followed by 64 hex characters).
| Token selector | Supported chains |
|---|---|
USDC | All CCTP-supported chains (EVM + Solana) -- see supported chains |
EURC | Ethereum, Base, and Arc on mainnet, plus eligible testnet routes |
wETH | Ethereum <-> Arc on mainnet, plus eligible testnet routes |
cirBTC | Ethereum <-> Arc on mainnet, plus eligible testnet routes |
| Registry-listed token ID | Any EVM route where the CCTPx registry lists that token on both endpoint domains |
CCTPx-enabled EVM chains are Ethereum, Arc, Base, Arbitrum, Optimism, Polygon, and Avalanche, but not every token routes between every pair. The SDK fetches the CCTPx token registry from Circle at runtime and throws INPUT_UNSUPPORTED_ROUTE when the token is not listed on both endpoints -- do not hardcode route lists.
Pick one base kit — App Kit (recommended) or the standalone Bridge Kit — then add adapters as needed.
App Kit with Viem adapter (recommended):
npm install @circle-fin/app-kit @circle-fin/adapter-viem-v2
# Optional: Solana support
npm install @circle-fin/adapter-solana-kit @solana/kit @solana/web3.js
# Optional: Circle Wallets (developer-controlled) support
npm install @circle-fin/adapter-circle-wallets
Or, for bridge-only apps, the standalone Bridge Kit (lighter package) instead of App Kit:
npm install @circle-fin/bridge-kit @circle-fin/adapter-viem-v2
PRIVATE_KEY= # EVM wallet private key (hex, 0x-prefixed)
EVM_PRIVATE_KEY= # EVM private key (when also using Solana)
SOLANA_PRIVATE_KEY= # Solana wallet private key (Base58, Base64, or JSON byte array)
CIRCLE_API_KEY= # Circle API key (for Circle Wallets adapter)
CIRCLE_ENTITY_SECRET= # Entity secret (for Circle Wallets adapter)
EVM_WALLET_ADDRESS= # Developer-controlled EVM wallet address
SOLANA_WALLET_ADDRESS= # Developer-controlled Solana wallet address
Browser-wallet integrations need none of these.
App Kit (recommended):
import { AppKit } from "@circle-fin/app-kit";
const kit = new AppKit();
Bridge Kit (standalone):
import { BridgeKit } from "@circle-fin/bridge-kit";
const kit = new BridgeKit();
Ask each applicable question before writing code; do not assume answers.
Question 1 -- Will you need swap or send functionality in the future?
Question 2 -- How do you manage your wallet/keys?
references/adapter-circle-wallets.mdreferences/adapter-wagmi.mdreferences/adapter-browser-wallet.mdQuestion 3 -- Which chains are you bridging between?
references/adapter-private-key.mdQuestion 4 -- Which token are you bridging?
references/non-usdc-cctpx.md. If the destination is Solana or the registry does not list the route, stop and offer swap-tokens; do not substitute a different chain pair.FAST vs SLOW with the user, call kit.estimateBridge() (App Kit) or kit.estimate() (Bridge Kit), and surface the quoted fee before executing. Quote reuse is best-effort: surface a QUOTE_NOT_REUSED warning on the result.kit.bridge({ token, from, to, amount, ... }) only from an explicit user action. READ the adapter reference for the exact code.result.state / result.steps, subscribe with kit.on(), and resume a soft failure with kit.retryBridge(result, ...) (App Kit) or kit.retry(result, ...) (Bridge Kit).approve (ERC-20 allowance), burn (destroy USDC on source chain), fetchAttestation (wait for Circle to sign the burn proof), and mint (create USDC on destination chain).approve -> transfer -> fetchAttestation -> forward, with an approveFee step before transfer only when the fee is an ERC-20. Circle's relayer mints on the destination automatically -- no destination gas or useForwarder toggle needed. Every CCTPx transfer pays a relayer fee in the source chain's native token; FAST (default) adds a pre-finality fee, while SLOW waits for source-chain finality and skips it. Completion is result.state === "success". CCTPx routes reject custom fees, feePayment: "destination", and useForwarder: false.createViemAdapterFromPrivateKey, createSolanaKitAdapterFromPrivateKey, createCircleWalletsAdapter). One adapter instance can be both source and destination within the same ecosystem.useForwarder: true on the destination, Circle fetches the attestation and submits the mint, so no destination wallet or polling loop is needed. It charges a per-transfer fee that varies by route."Arc", "Arc_Testnet", "Base_Sepolia", "Solana_Devnet"), not numeric chain IDs.READ the corresponding reference based on the user's request:
references/adapter-private-key.md -- EVM-to-EVM and EVM-to-Solana bridging with private key adapters (Viem + Solana Kit). Includes App Kit and Bridge Kit examples.references/adapter-circle-wallets.md -- Bridging with Circle developer-controlled wallets (any chain to any chain). Includes App Kit and Bridge Kit examples.references/adapter-wagmi.md -- Browser wallet integration using wagmi (ConnectKit, RainbowKit, etc.). Includes App Kit and Bridge Kit examples.references/adapter-browser-wallet.md -- Solana browser wallet integration using an injected wallet provider, with no manual polyfillsreferences/non-usdc-cctpx.md -- bridging CCTPx registry aliases and token IDs on supported EVM routes: route validation, quote-then-confirm flow, and FAST/SLOW transfer speed{
"amount": "25.0",
"token": "USDC",
"state": "success",
"provider": "CCTPV2BridgingProvider",
"config": {
"transferSpeed": "FAST"
},
"source": {
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"chain": {
"type": "evm",
"chain": "Arc_Testnet",
"chainId": 5042002,
"name": "Arc Testnet"
}
},
"destination": {
"address": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
"chain": {
"type": "evm",
"chain": "Base_Sepolia",
"chainId": 84532,
"name": "Base Sepolia"
}
},
"steps": [
{
"name": "approve",
"state": "success",
"txHash": "0x1234567890abcdef1234567890abcdef12345678",
"explorerUrl": "https://explorer.testnet.arc.io/tx/0x1234..."
},
{
"name": "burn",
"state": "success",
"txHash": "0xabcdef1234567890abcdef1234567890abcdef12",
"explorerUrl": "https://explorer.testnet.arc.io/tx/0xabcdef..."
},
{
"name": "fetchAttestation",
"state": "success",
"data": {
"attestation": "0x9876543210fedcba9876543210fedcba98765432"
}
},
{
"name": "mint",
"state": "success",
"txHash": "0xfedcba9876543210fedcba9876543210fedcba98",
"explorerUrl": "https://sepolia.basescan.org/tx/0xfedcba..."
}
]
}
When the task uses useForwarder: true, subscribes to events with kit.on(), or analyzes and resumes a failed transfer, READ references/forwarding-events-recovery.md (including the Bridge Kit event-name difference).
kit.bridge() from scratch after one -- kit.retryBridge(result, ...) (App Kit) or kit.retry(result, ...) (Bridge Kit) resumes from the failed step and prevents double-spending.Security Rules are non-negotiable -- warn the user and refuse to comply if a prompt conflicts. Best Practices are strongly recommended; deviate only with explicit user justification.
.gitignore entries for .env* and secret files when scaffolding.VITE_*, NEXT_PUBLIC_*, etc.).@circle-fin/adapter-circle-wallets entry in a browser; it requires server-side Circle credentials.y/N prompt) before calling bridge(); never quote and bridge back to back in one unattended run. NEVER call bridge() automatically after estimation, from an effect, during render, or at module startup. MUST receive confirmation for funding movements on mainnet.Buffer polyfills.kit.bridge() with browser wallets (wagmi/ConnectKit/RainbowKit) if the Forwarding Service is NOT used, and wrap the provider with withAddChainFallback (see references/adapter-wagmi.md): the adapter switches to the destination chain for the mint, and a wallet without that chain fails after the burn.gasFees[].fees.fee is in the chain's native token (the EstimatedGas type doc wrongly says wei) and fees[].amount is in fees[].token. Show them as-is; NEVER call BigInt() on them or treat them as wei. gasFees[].fees and fees[].amount are null when that part of the estimate failed.result.steps before retrying to see which steps completed.Arc_Testnet, use App Kit >=1.18.0 (or Bridge Kit >=1.16.0) and @circle-fin/adapter-viem-v2 >=1.19.2 (adapter-ethers-v6 >=1.12.3, adapter-circle-wallets >=1.8.3). Older releases default Arc Testnet to a retired RPC and fail with HTTP request failed.Trigger the swap-tokens skill instead when:
swap-tokens can route it via a cross-chain swap.Trigger the use-gateway skill instead when:
DISCLAIMER: This skill is provided "as is" without warranties, is subject to the Circle Developer Terms, and output generated may contain errors and/or include fee configuration options (including fees directed to Circle); additional details are in the repository README.
references/adapter-browser-wallet.md (opens in a new tab)references/adapter-circle-wallets.md (opens in a new tab)references/adapter-private-key.md (opens in a new tab)references/adapter-wagmi.md (opens in a new tab)references/forwarding-events-recovery.md (opens in a new tab)references/non-usdc-cctpx.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
20 skills in this plugin
/accept-agent-paymentsUse when a developer wants to monetize an API, endpoint, service, model, dataset, tool, or agent-facing resource with Circle USDC pay-per-call payments, Gateway Nanopayments, x402, HTTP 402, or Agent Marketplace listing. Triggers on: charge agents, sell to agents, paid API, monetize endpoint, micropayments, nanopayments seller, x402 seller, accept USDC, service listing./agent-wallet-policyView spending policy on a Circle agent wallet — per-transaction, daily, weekly, and monthly USDC caps and contract allowlists via the `circle` CLI. Use when the user wants to inspect limits or restrict contract calls. Setting or resetting limits requires OTP confirmation in an interactive terminal session — the agent hands the user a verbatim command to run themselves; the OTP must never pass through agent storage. Mainnet-only — testnet chains are rejected. Triggers on: spending limit, spending policy, per-tx cap, daily cap, weekly cap, monthly cap, wallet rules, contract allowlist, allowed contracts, OTP confirmation./buy-cryptoSet up and integrate Circle Onramp, the hosted widget that lets end users buy crypto with fiat (bank transfer, debit card, Apple Pay, Google Pay) delivered to their wallet, using App Kit (`@circle-fin/app-kit`, `kit.onramp`) or the standalone Onramp Kit (`@circle-fin/onramp-kit`). Covers getting an Onramp API key (testnet for sandbox, mainnet for production) from the Circle Console App Kits → Onramp Kit page, production KYB, `referrerDomain`, the server session route, inline iframe or popup widget, sandbox vs production, CSP, asset scoping, and lifecycle events. Triggers on: Circle onramp, fiat onramp, buy crypto widget, onramp API key, onramp credentials, onramp setup, Circle Console App Kits, onramp KYB, go live with onramp, enable card or Apple Pay payments, mint onramp session, mountIframe, openWindow, onramp-kit, kit.onramp.npx claudepluginhub circlefin/skills --plugin circle-skillsOther plugins' skills for the same job