Skip to content
MCP Servers
Skill

/use-smart-contract-platform

Deploy, import, interact with, and monitor smart contracts using Circle Smart Contract Platform APIs. Supports bytecode deployment, template contracts (ERC-20/721/1155/Airdrop), ABI-based read/write calls, and webhook event monitoring. Keywords: contract deployment, smart

From plugin
skills
17020 skills1 MCP

Claude Code

$ npx -y skills add circlefin/skills --skill use-smart-contract-platform --agent claude-code

SKILL.md

use-smart-contract-platform.SKILL.md
name: use-smart-contract-platform
description: "Deploy, import, interact with, and monitor smart contracts using Circle Smart Contract Platform APIs. Supports bytecode deployment, template contracts (ERC-20/721/1155/Airdrop), ABI-based read/write calls, and webhook event monitoring. Keywords: contract deployment, smart contract, ABI interactions, template contracts, event monitoring, contract webhooks, bytecode, ERC-1155, ERC-20, ERC-721."
requirements:
  runtimes: []
  connectors: []

Overview

Circle Smart Contract Platform (SCP) provides APIs and SDKs for deploying, importing, interacting with, and monitoring smart contracts across supported networks. Deploy contracts from raw bytecode, use audited templates for standard patterns, execute ABI-based contract calls, and monitor emitted events through webhooks.

Prerequisites / Setup

Installation

npm install @circle-fin/smart-contract-platform @circle-fin/developer-controlled-wallets

Environment Variables

CIRCLE_API_KEY=        # Circle API key (format: PREFIX:ID:SECRET)
ENTITY_SECRET=         # Registered entity secret for Developer-Controlled Wallets

SDK Initialization

import { initiateSmartContractPlatformClient } from "@circle-fin/smart-contract-platform";
import { initiateDeveloperControlledWalletsClient } from "@circle-fin/developer-controlled-wallets";

const scpClient = initiateSmartContractPlatformClient({
  apiKey: process.env.CIRCLE_API_KEY!,
  entitySecret: process.env.ENTITY_SECRET!,
});

const walletsClient = initiateDeveloperControlledWalletsClient({
  apiKey: process.env.CIRCLE_API_KEY!,
  entitySecret: process.env.ENTITY_SECRET!,
});

Quick Reference

Supported Blockchains

| Chain | Mainnet | Testnet | | --- | --- | --- | | Arbitrum | `ARB` | `ARB-SEPOLIA` | | Arc | `ARC` | `ARC-TESTNET` | | Avalanche | `AVAX` | `AVAX-FUJI` | | Base | `BASE` | `BASE-SEPOLIA` | | Ethereum | `ETH` | `ETH-SEPOLIA` | | Monad | `MONAD` | `MONAD-TESTNET` | | OP Mainnet | `OP` | `OP-SEPOLIA` | | Polygon PoS | `MATIC` | `MATIC-AMOY` | | Unichain | `UNI` | `UNI-SEPOLIA` |

The `references/` examples use Arc Testnet (`blockchain: 'ARC-TESTNET'`); for **Arc mainnet**, pass `blockchain: 'ARC'`. The Arc USDC address `0x3600000000000000000000000000000000000000` is the same on both networks.

Contract Templates

| Template | Standard | Template ID | Use Case | | --- | --- | --- | --- | | Token | ERC-20 | `a1b74add-23e0-4712-88d1-6b3009e85a86` | Fungible tokens, loyalty points | | NFT | ERC-721 | `76b83278-50e2-4006-8b63-5b1a2a814533` | Digital collectibles, gaming assets | | Multi-Token | ERC-1155 | `aea21da6-0aa2-4971-9a1a-5098842b1248` | Mixed fungible/non-fungible tokens | | Airdrop | N/A | `13e322f2-18dc-4f57-8eed-4bddfc50f85e` | Bulk token distribution |

Key API Response Fields

  • Contract functions: `getContract().data.contract.functions`
  • Contract address: `contract.contractAddress`
  • Transaction ID: `createContractExecutionTransaction().data.id`

Core Concepts

Dual-Client Architecture

SCP workflows pair two SDK clients:

| Operation | Client | Method | | --- | --- | --- | | Deploy, import, monitor events | SCP | `scpClient.deployContract()`, `importContract()`, `createEventMonitor()`, ... | | Read (`view`/`pure`) -- no gas wallet needed | SCP | `scpClient.queryContract()` | | Write (`nonpayable`/`payable`) -- needs a wallet ID with gas funds | Developer-Controlled Wallets | `walletsClient.createContractExecutionTransaction()` |

The Developer-Controlled Wallets SDK also provides the deployment wallets.

Signature Formatting

  • Function signatures: `name(type1,type2,...)` with no spaces
  • Event signatures: `EventName(type1,type2,...)` with no spaces
  • Parameter order must exactly match the ABI

Idempotency Keys

All mutating SCP operations require `idempotencyKey` as a valid UUID v4 string (`crypto.randomUUID()` in Node.js). Non-UUID keys fail with a generic `API parameter invalid` error.

EVM Version Constraint

Solidity >= 0.8.20 emits `PUSH0` by default. Arc targets the Osaka EVM baseline, so that bytecode deploys there as-is. Set an older `evmVersion` only if a target chain's docs say it lacks Shanghai opcodes.

Deployment Status

Deployment is asynchronous: the deploy response only confirms initiation. Poll `scpClient.getContract()` and read `data.contract.status` (`PENDING` / `COMPLETE` / `FAILED`). On `FAILED`, read `deploymentErrorReason` and `deploymentErrorDetails` from the same response. This contract status is separate from the deployment transaction's state below.

Transaction Lifecycle

Write operations (contract deployments, executions) use the Developer-Controlled Wallets transaction state machine. Poll `walletsClient.getTransaction({ id: txId })` until a terminal state.

**Happy path:** `INITIATED` -> `QUEUED` -> `CLEARED` -> `SENT` -> `CONFIRMED` -> `COMPLETE`. `CONFIRMED` may be skipped or arrive out of order; instant-finality chains such as Arc go `SENT` -> `COMPLETE`.

| State | Terminal | Meaning | | --- | --- | --- | | `INITIATED` | No | Request accepted, not yet validated or checked | | `QUEUED` | No | In the processing queue | | `CLEARED` | No | Passed initial checks and risk screening | | `SENT` | No | Submitted to the blockchain, awaiting confirmation | | `STUCK` | No | Fee parameters are below the chain's current required fee -- cancel or accelerate the transaction | | `CONFIRMED` | No | Included in a block, awaiting finality | | `COMPLETE` | Yes | Succeeded and finalized on-chain | | `FAILED` | Yes | Reverted or hit an unrecoverable error | | `DENIED` | Yes | Rejected by risk screening | | `CANCELLED` | Yes | Cancelled (allowed in `INITIATED`, `QUEUED`, or `SENT`) |

Debug failed transactions with [Transaction States and Errors](https://developers.circle.com/wallets/asynchronous-states-and-statuses.md).

Error Handling

| Error Code | Meaning | Action | | --- | --- | --- | | 175001 | Contract not f

Read more
@circlefin
Ships withskills

Ship stablecoin apps faster with Circle Skills: best-practice guidance for USDC payments, crosschain transfers, wallets, and smart contracts, plus Circle's MCP server for real-time SDK and documentation context.

17020 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
170
Star history of circlefin/skills on GitHub, a chart by star-history.com

Other skills on skills.

accept-agent-payments

accept-agent-payments

Use when a developer wants to monetize an API, endpoint, service, model, dataset, tool, or agent-facing resource with Circle USDC…

@circlefin@circlefinInstall Skill
agent-wallet-policy

agent-wallet-policy

View spending policy on a Circle agent wallet — per-transaction, daily, weekly, and monthly USDC caps and contract allowlists via…

@circlefin@circlefinInstall Skill
bridge-tokens

bridge-tokens

Build browser or server token bridging across chains with Circle App Kit or standalone Bridge Kit. Bridges USDC across CCTP…

@circlefin@circlefinInstall Skill
buy-crypto

buy-crypto

Set up and integrate Circle Onramp, the hosted widget that lets end users buy crypto with fiat (bank transfer, debit card, Apple…

@circlefin@circlefinInstall Skill
fund-agent-wallet

fund-agent-wallet

Fund a Circle agent wallet with USDC via the `circle` CLI. Payments are gas-abstracted: users pay with USDC only, no ETH…

@circlefin@circlefinInstall Skill
pay-via-agent-wallet

pay-via-agent-wallet

Use this skill when the user wants to call a paid API, look something up online, search for data, get prices, odds, or stats, or…

@circlefin@circlefinInstall Skill

More skills from other plugins.

gitnexus-cli

gitnexus-cli

Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…

@abhigyanpatwari@abhigyanpatwariInstall Skill
fastmcp-client-cli

fastmcp-client-cli

Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server…

fastmcp8d29k
@prefecthq@prefecthqInstall Skill
n8n-agents

n8n-agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain,…

n8n-mcp7d23k
@czlonkowski@czlonkowskiInstall Skill
post-to-xhs

post-to-xhs

小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。…

@xpzouying@xpzouyingInstall Skill

Questions about use-smart-contract-platform.

Which coding agents can use use-smart-contract-platform?
use-smart-contract-platform installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.