[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H163BP7V2KKNMP2C8D5V55":3,"skill-same:01M6H163BP7V2KKNMP2C8D5V55":113},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":54,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M6H163BP7V2KKNMP2C8D5V55","use-smart-contract-platform",null,"Deploy, import, interact with, and monitor smart contracts using Circle Smart Contract Platform APIs. Supports bytecode deployment, template contracts (ERC-20\u002F721\u002F1155\u002FAirdrop), ABI-based read\u002Fwrite 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.","jiayaoqijia\u002Fcryptoskill","jiayaoqijia","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1453879?v=4","01M6GMYTX7Q7S504VC6E756ENR","YQ","01M6GMYV1QKJ1CC75MTTGT9PR0",81,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002Fcircle-official-use-smart-contract-platform\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002Fcircle-official-use-smart-contract-platform\u002FSKILL.md",[],[20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"platform","smart contract","use smart contract platform","contract","use","read","write","template","webhooks","contracts","deploy","monitoring","webhook","import","event","with","calls","circle","deployment","monitor","2026-11-10 10:12:30",false,"---\nname: use-smart-contract-platform\ndescription: \"Deploy, import, interact with, and monitor smart contracts using Circle Smart Contract Platform APIs. Supports bytecode deployment, template contracts (ERC-20\u002F721\u002F1155\u002FAirdrop), ABI-based read\u002Fwrite 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.\"\nrequirements:\n  runtimes: []\n  connectors: []\n---\n\n## Overview\n\nCircle 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.\n\n## Prerequisites \u002F Setup\n\n### Installation\n\n```bash\nnpm install @circle-fin\u002Fsmart-contract-platform @circle-fin\u002Fdeveloper-controlled-wallets\n```\n\n### Environment Variables\n\n```\nCIRCLE_API_KEY=        # Circle API key (format: PREFIX:ID:SECRET)\nENTITY_SECRET=         # Registered entity secret for Developer-Controlled Wallets\n```\n\n### SDK Initialization\n\n```typescript\nimport { initiateSmartContractPlatformClient } from \"@circle-fin\u002Fsmart-contract-platform\";\nimport { initiateDeveloperControlledWalletsClient } from \"@circle-fin\u002Fdeveloper-controlled-wallets\";\n\nconst scpClient = initiateSmartContractPlatformClient({\n  apiKey: process.env.CIRCLE_API_KEY!,\n  entitySecret: process.env.ENTITY_SECRET!,\n});\n\nconst walletsClient = initiateDeveloperControlledWalletsClient({\n  apiKey: process.env.CIRCLE_API_KEY!,\n  entitySecret: process.env.ENTITY_SECRET!,\n});\n```\n\n## Quick Reference\n\n### Supported Blockchains\n\n| Chain | Mainnet | Testnet |\n| --- | --- | --- |\n| Arbitrum | `ARB` | `ARB-SEPOLIA` |\n| Arc | `ARC` | `ARC-TESTNET` |\n| Avalanche | `AVAX` | `AVAX-FUJI` |\n| Base | `BASE` | `BASE-SEPOLIA` |\n| Ethereum | `ETH` | `ETH-SEPOLIA` |\n| Monad | `MONAD` | `MONAD-TESTNET` |\n| OP Mainnet | `OP` | `OP-SEPOLIA` |\n| Polygon PoS | `MATIC` | `MATIC-AMOY` |\n| Unichain | `UNI` | `UNI-SEPOLIA` |\n\nThe `references\u002F` examples use Arc Testnet (`blockchain: 'ARC-TESTNET'`); for **Arc mainnet**, pass `blockchain: 'ARC'`. The Arc USDC address `0x3600000000000000000000000000000000000000` is the same on both networks.\n\n### Contract Templates\n\n| Template | Standard | Template ID | Use Case |\n| --- | --- | --- | --- |\n| Token | ERC-20 | `a1b74add-23e0-4712-88d1-6b3009e85a86` | Fungible tokens, loyalty points |\n| NFT | ERC-721 | `76b83278-50e2-4006-8b63-5b1a2a814533` | Digital collectibles, gaming assets |\n| Multi-Token | ERC-1155 | `aea21da6-0aa2-4971-9a1a-5098842b1248` | Mixed fungible\u002Fnon-fungible tokens |\n| Airdrop | N\u002FA | `13e322f2-18dc-4f57-8eed-4bddfc50f85e` | Bulk token distribution |\n\n### Key API Response Fields\n\n- Contract functions: `getContract().data.contract.functions`\n- Contract address: `contract.contractAddress`\n- Transaction ID: `createContractExecutionTransaction().data.id`\n\n## Core Concepts\n\n### Dual-Client Architecture\n\nSCP workflows pair two SDK clients:\n\n| Operation | Client | Method |\n| --- | --- | --- |\n| Deploy, import, monitor events | SCP | `scpClient.deployContract()`, `importContract()`, `createEventMonitor()`, ... |\n| Read (`view`\u002F`pure`) -- no gas wallet needed | SCP | `scpClient.queryContract()` |\n| Write (`nonpayable`\u002F`payable`) -- needs a wallet ID with gas funds | Developer-Controlled Wallets | `walletsClient.createContractExecutionTransaction()` |\n\nThe Developer-Controlled Wallets SDK also provides the deployment wallets.\n\n### Signature Formatting\n\n- Function signatures: `name(type1,type2,...)` with no spaces\n- Event signatures: `EventName(type1,type2,...)` with no spaces\n- Parameter order must exactly match the ABI\n\n### Idempotency Keys\n\nAll 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.\n\n### EVM Version Constraint\n\nSolidity >= 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.\n\n### Deployment Status\n\nDeployment is asynchronous: the deploy response only confirms initiation. Poll `scpClient.getContract()` and read `data.contract.status` (`PENDING` \u002F `COMPLETE` \u002F `FAILED`). On `FAILED`, read `deploymentErrorReason` and `deploymentErrorDetails` from the same response. This contract status is separate from the deployment transaction's state below.\n\n### Transaction Lifecycle\n\nWrite operations (contract deployments, executions) use the Developer-Controlled Wallets transaction state machine. Poll `walletsClient.getTransaction({ id: txId })` until a terminal state.\n\n**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`.\n\n| State | Terminal | Meaning |\n| --- | --- | --- |\n| `INITIATED` | No | Request accepted, not yet validated or checked |\n| `QUEUED` | No | In the processing queue |\n| `CLEARED` | No | Passed initial checks and risk screening |\n| `SENT` | No | Submitted to the blockchain, awaiting confirmation |\n| `STUCK` | No | Fee parameters are below the chain's current required fee -- cancel or accelerate the transaction |\n| `CONFIRMED` | No | Included in a block, awaiting finality |\n| `COMPLETE` | Yes | Succeeded and finalized on-chain |\n| `FAILED` | Yes | Reverted or hit an unrecoverable error |\n| `DENIED` | Yes | Rejected by risk screening |\n| `CANCELLED` | Yes | Cancelled (allowed in `INITIATED`, `QUEUED`, or `SENT`) |\n\nDebug failed transactions with [Transaction States and Errors](https:\u002F\u002Fdevelopers.circle.com\u002Fwallets\u002Fasynchronous-states-and-statuses.md).\n\n### Error Handling\n\n| Error Code | Meaning | Action |\n| --- | --- | --- |\n| 175001 | Contract not found | Verify the contract ID exists; if imported, check it wasn't archived |\n| 175003 | Constructor parameter mismatch | Match parameter count and types exactly to the contract ABI |\n| 175004 | Duplicate contract | Reuse the existing contract: `listContracts({ blockchain })`, match `contractAddress` case-insensitively, use its ID (code in `references\u002Fimport-contract.md`) |\n| 175009 | Deployment still pending | Keep polling `getContract()` for `status`; deployment may take several blocks |\n| 175201 | Template not found | Use a template ID from the Contract Templates table |\n| 175301 | Event subscription not found | Verify the event monitor ID; ensure the contract was imported before creating the monitor |\n| 175302 | Duplicate event subscription | Query existing subscriptions and reuse; do not fail the flow |\n| 175303 | Event signature not found in the contract's ABI | Use an event from the imported contract's ABI, formatted with no spaces (see Signature Formatting) |\n| 175402 | Blockchain not supported or deprecated | Use a chain from the Supported Blockchains table; SCP is not available on Solana, Aptos, or NEAR |\n| 175404 | TEST_API key on mainnet or LIVE_API key on testnet | Match the API key prefix (`TEST_API_KEY:` or `LIVE_API_KEY:`) to the target network |\n| 177015 | Missing bytecode for contract deployment | Provide compiled bytecode with a `0x` prefix |\n\n## Workflow\n\n1. **Check context and access.** Confirm the target chain and `CIRCLE_API_KEY`. Reads (`queryContract()`) need only the SCP client; deployments and writes also need `ENTITY_SECRET` and the Developer-Controlled Wallets client (see Prerequisites). If anything the task needs is missing, ask the user; do not guess.\n2. **Pick the task** from Implementation Patterns and READ its reference before writing code. Prefer an audited template over custom bytecode.\n3. **Get approval.** Default to testnet. Confirm network, contract, and any fund movement with the user before deploying or executing writes (Security Rules).\n4. **Deploy or import, then poll** `getContract()` until `status` is `COMPLETE` or `FAILED`; only then interact with or monitor the contract.\n\n## Implementation Patterns\n\nREAD the reference for the task before writing code.\n\n- **Deploy from bytecode** (compiled ABI + bytecode): READ `references\u002Fdeploy-bytecode.md`.\n- **Deploy from template** (audited templates, no Solidity): READ `references\u002Fdeploy-template.md` for the template catalog and deployment guide.\n- **Import an existing contract** (for interaction and event monitoring): READ `references\u002Fimport-contract.md`.\n- **Interact with a deployed contract** (read queries, write executions via ABI signatures): READ `references\u002Finteract.md`.\n- **Monitor contract events** (webhooks for emitted events, historical logs): READ `references\u002Fmonitor-events.md`.\n\n## Rules\n\n**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.\n\n### Security Rules\n\n- NEVER hardcode, commit, or log secrets (API keys, entity secrets, private keys). ALWAYS use environment variables or a secrets manager. Add `.gitignore` entries for `.env*`, `*.pem`, and recovery files when scaffolding.\n- NEVER pass private keys as plain-text CLI flags (e.g., `--private-key $KEY`). Prefer encrypted keystores or interactive import (e.g., Foundry's `cast wallet import`).\n- ALWAYS keep API keys and entity secrets server-side. NEVER expose them in frontend code.\n- NEVER reuse `idempotencyKey` values across different API requests.\n- ALWAYS require explicit user confirmation of destination, amount, network, and token before executing write transactions that move funds. MUST receive confirmation for funding movements on mainnet.\n- ALWAYS warn when targeting mainnet or exceeding safety thresholds (e.g., >100 USDC).\n- ALWAYS validate all inputs (contract addresses, amounts, chain identifiers) before submitting transactions.\n- ALWAYS prefer audited template contracts over custom bytecode when a template exists. Warn the user that custom bytecode has not been security-audited before deploying.\n- NEVER deploy contracts designed to deceive, phish, or drain funds.\n- ALWAYS warn before interacting with unaudited or unknown contracts.\n\n### Best Practices\n\n- NEVER call write operations on the SCP client. Writes ALWAYS use `walletsClient.createContractExecutionTransaction()`.\n- NEVER include special characters (colons, parentheses) in `deployContract`'s `name` field -- alphanumeric only.\n- NEVER use a flat `feeLevel` property. ALWAYS use nested `fee: { type: 'level', config: { feeLevel: 'MEDIUM' } }`.\n- NEVER use `window.ethereum` directly with wagmi -- use `connector.getProvider()`.\n- ALWAYS include both `name` and `idempotencyKey` when calling `importContract()`.\n- ALWAYS poll `getContract()` for `status`; never assume deployment completes synchronously.\n- ALWAYS prefix bytecode with `0x` and match constructor parameter types\u002Forder exactly.\n- ALWAYS use integer-safe math for 18-decimal amounts (`10n ** 18n`, not `BigInt(10 ** 18)`).\n- ALWAYS import contracts before creating event monitors.\n- ALWAYS default to testnet (Arc Testnet for demos unless specified otherwise). Require explicit user confirmation before targeting mainnet.\n\n## Reference Links\n\n- [Circle Developer Docs](https:\u002F\u002Fdevelopers.circle.com\u002Fllms.txt) -- **Always read this first** when looking for relevant documentation from the source website.\n\n---\n\nDISCLAIMER: This skill is provided \"as is\" without warranties, is subject to the [Circle Developer Terms](https:\u002F\u002Fconsole.circle.com\u002Flegal\u002Fdeveloper-terms), and output generated may contain errors and\u002For include fee configuration options (including fees directed to Circle); additional details are in the repository [README](https:\u002F\u002Fgithub.com\u002Fcirclefin\u002Fskills\u002Fblob\u002Fmaster\u002FREADME.md).\n","## Overview\n\nCircle 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.\n\n## Prerequisites \u002F Setup\n\n### Installation\n\n```bash\nnpm install @circle-fin\u002Fsmart-contract-platform @circle-fin\u002Fdeveloper-controlled-wallets\n```\n\n### Environment Variables\n\n```\nCIRCLE_API_KEY=        # Circle API key (format: PREFIX:ID:SECRET)\nENTITY_SECRET=         # Registered entity secret for Developer-Controlled Wallets\n```\n\n### SDK Initialization\n\n```typescript\nimport { initiateSmartContractPlatformClient } from \"@circle-fin\u002Fsmart-contract-platform\";\nimport { initiateDeveloperControlledWalletsClient } from \"@circle-fin\u002Fdeveloper-controlled-wallets\";\n\nconst scpClient = initiateSmartContractPlatformClient({\n  apiKey: process.env.CIRCLE_API_KEY!,\n  entitySecret: process.env.ENTITY_SECRET!,\n});\n\nconst walletsClient = initiateDeveloperControlledWalletsClient({\n  apiKey: process.env.CIRCLE_API_KEY!,\n  entitySecret: process.env.ENTITY_SECRET!,\n});\n```\n\n## Quick Reference\n\n### Supported Blockchains\n\n| Chain | Mainnet | Testnet |\n| --- | --- | --- |\n| Arbitrum | `ARB` | `ARB-SEPOLIA` |\n| Arc | `ARC` | `ARC-TESTNET` |\n| Avalanche | `AVAX` | `AVAX-FUJI` |\n| Base | `BASE` | `BASE-SEPOLIA` |\n| Ethereum | `ETH` | `ETH-SEPOLIA` |\n| Monad | `MONAD` | `MONAD-TESTNET` |\n| OP Mainnet | `OP` | `OP-SEPOLIA` |\n| Polygon PoS | `MATIC` | `MATIC-AMOY` |\n| Unichain | `UNI` | `UNI-SEPOLIA` |\n\nThe `references\u002F` examples use Arc Testnet (`blockchain: 'ARC-TESTNET'`); for **Arc mainnet**, pass `blockchain: 'ARC'`. The Arc USDC address `0x3600000000000000000000000000000000000000` is the same on both networks.\n\n### Contract Templates\n\n| Template | Standard | Template ID | Use Case |\n| --- | --- | --- | --- |\n| Token | ERC-20 | `a1b74add-23e0-4712-88d1-6b3009e85a86` | Fungible tokens, loyalty points |\n| NFT | ERC-721 | `76b83278-50e2-4006-8b63-5b1a2a814533` | Digital collectibles, gaming assets |\n| Multi-Token | ERC-1155 | `aea21da6-0aa2-4971-9a1a-5098842b1248` | Mixed fungible\u002Fnon-fungible tokens |\n| Airdrop | N\u002FA | `13e322f2-18dc-4f57-8eed-4bddfc50f85e` | Bulk token distribution |\n\n### Key API Response Fields\n\n- Contract functions: `getContract().data.contract.functions`\n- Contract address: `contract.contractAddress`\n- Transaction ID: `createContractExecutionTransaction().data.id`\n\n## Core Concepts\n\n### Dual-Client Architecture\n\nSCP workflows pair two SDK clients:\n\n| Operation | Client | Method |\n| --- | --- | --- |\n| Deploy, import, monitor events | SCP | `scpClient.deployContract()`, `importContract()`, `createEventMonitor()`, ... |\n| Read (`view`\u002F`pure`) -- no gas wallet needed | SCP | `scpClient.queryContract()` |\n| Write (`nonpayable`\u002F`payable`) -- needs a wallet ID with gas funds | Developer-Controlled Wallets | `walletsClient.createContractExecutionTransaction()` |\n\nThe Developer-Controlled Wallets SDK also provides the deployment wallets.\n\n### Signature Formatting\n\n- Function signatures: `name(type1,type2,...)` with no spaces\n- Event signatures: `EventName(type1,type2,...)` with no spaces\n- Parameter order must exactly match the ABI\n\n### Idempotency Keys\n\nAll 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.\n\n### EVM Version Constraint\n\nSolidity >= 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.\n\n### Deployment Status\n\nDeployment is asynchronous: the deploy response only confirms initiation. Poll `scpClient.getContract()` and read `data.contract.status` (`PENDING` \u002F `COMPLETE` \u002F `FAILED`). On `FAILED`, read `deploymentErrorReason` and `deploymentErrorDetails` from the same response. This contract status is separate from the deployment transaction's state below.\n\n### Transaction Lifecycle\n\nWrite operations (contract deployments, executions) use the Developer-Controlled Wallets transaction state machine. Poll `walletsClient.getTransaction({ id: txId })` until a terminal state.\n\n**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`.\n\n| State | Terminal | Meaning |\n| --- | --- | --- |\n| `INITIATED` | No | Request accepted, not yet validated or checked |\n| `QUEUED` | No | In the processing queue |\n| `CLEARED` | No | Passed initial checks and risk screening |\n| `SENT` | No | Submitted to the blockchain, awaiting confirmation |\n| `STUCK` | No | Fee parameters are below the chain's current required fee -- cancel or accelerate the transaction |\n| `CONFIRMED` | No | Included in a block, awaiting finality |\n| `COMPLETE` | Yes | Succeeded and finalized on-chain |\n| `FAILED` | Yes | Reverted or hit an unrecoverable error |\n| `DENIED` | Yes | Rejected by risk screening |\n| `CANCELLED` | Yes | Cancelled (allowed in `INITIATED`, `QUEUED`, or `SENT`) |\n\nDebug failed transactions with [Transaction States and Errors](https:\u002F\u002Fdevelopers.circle.com\u002Fwallets\u002Fasynchronous-states-and-statuses.md).\n\n### Error Handling\n\n| Error Code | Meaning | Action |\n| --- | --- | --- |\n| 175001 | Contract not found | Verify the contract ID exists; if imported, check it wasn't archived |\n| 175003 | Constructor parameter mismatch | Match parameter count and types exactly to the contract ABI |\n| 175004 | Duplicate contract | Reuse the existing contract: `listContracts({ blockchain })`, match `contractAddress` case-insensitively, use its ID (code in `references\u002Fimport-contract.md`) |\n| 175009 | Deployment still pending | Keep polling `getContract()` for `status`; deployment may take several blocks |\n| 175201 | Template not found | Use a template ID from the Contract Templates table |\n| 175301 | Event subscription not found | Verify the event monitor ID; ensure the contract was imported before creating the monitor |\n| 175302 | Duplicate event subscription | Query existing subscriptions and reuse; do not fail the flow |\n| 175303 | Event signature not found in the contract's ABI | Use an event from the imported contract's ABI, formatted with no spaces (see Signature Formatting) |\n| 175402 | Blockchain not supported or deprecated | Use a chain from the Supported Blockchains table; SCP is not available on Solana, Aptos, or NEAR |\n| 175404 | TEST_API key on mainnet or LIVE_API key on testnet | Match the API key prefix (`TEST_API_KEY:` or `LIVE_API_KEY:`) to the target network |\n| 177015 | Missing bytecode for contract deployment | Provide compiled bytecode with a `0x` prefix |\n\n## Workflow\n\n1. **Check context and access.** Confirm the target chain and `CIRCLE_API_KEY`. Reads (`queryContract()`) need only the SCP client; deployments and writes also need `ENTITY_SECRET` and the Developer-Controlled Wallets client (see Prerequisites). If anything the task needs is missing, ask the user; do not guess.\n2. **Pick the task** from Implementation Patterns and READ its reference before writing code. Prefer an audited template over custom bytecode.\n3. **Get approval.** Default to testnet. Confirm network, contract, and any fund movement with the user before deploying or executing writes (Security Rules).\n4. **Deploy or import, then poll** `getContract()` until `status` is `COMPLETE` or `FAILED`; only then interact with or monitor the contract.\n\n## Implementation Patterns\n\nREAD the reference for the task before writing code.\n\n- **Deploy from bytecode** (compiled ABI + bytecode): READ `references\u002Fdeploy-bytecode.md`.\n- **Deploy from template** (audited templates, no Solidity): READ `references\u002Fdeploy-template.md` for the template catalog and deployment guide.\n- **Import an existing contract** (for interaction and event monitoring): READ `references\u002Fimport-contract.md`.\n- **Interact with a deployed contract** (read queries, write executions via ABI signatures): READ `references\u002Finteract.md`.\n- **Monitor contract events** (webhooks for emitted events, historical logs): READ `references\u002Fmonitor-events.md`.\n\n## Rules\n\n**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.\n\n### Security Rules\n\n- NEVER hardcode, commit, or log secrets (API keys, entity secrets, private keys). ALWAYS use environment variables or a secrets manager. Add `.gitignore` entries for `.env*`, `*.pem`, and recovery files when scaffolding.\n- NEVER pass private keys as plain-text CLI flags (e.g., `--private-key $KEY`). Prefer encrypted keystores or interactive import (e.g., Foundry's `cast wallet import`).\n- ALWAYS keep API keys and entity secrets server-side. NEVER expose them in frontend code.\n- NEVER reuse `idempotencyKey` values across different API requests.\n- ALWAYS require explicit user confirmation of destination, amount, network, and token before executing write transactions that move funds. MUST receive confirmation for funding movements on mainnet.\n- ALWAYS warn when targeting mainnet or exceeding safety thresholds (e.g., >100 USDC).\n- ALWAYS validate all inputs (contract addresses, amounts, chain identifiers) before submitting transactions.\n- ALWAYS prefer audited template contracts over custom bytecode when a template exists. Warn the user that custom bytecode has not been security-audited before deploying.\n- NEVER deploy contracts designed to deceive, phish, or drain funds.\n- ALWAYS warn before interacting with unaudited or unknown contracts.\n\n### Best Practices\n\n- NEVER call write operations on the SCP client. Writes ALWAYS use `walletsClient.createContractExecutionTransaction()`.\n- NEVER include special characters (colons, parentheses) in `deployContract`'s `name` field -- alphanumeric only.\n- NEVER use a flat `feeLevel` property. ALWAYS use nested `fee: { type: 'level', config: { feeLevel: 'MEDIUM' } }`.\n- NEVER use `window.ethereum` directly with wagmi -- use `connector.getProvider()`.\n- ALWAYS include both `name` and `idempotencyKey` when calling `importContract()`.\n- ALWAYS poll `getContract()` for `status`; never assume deployment completes synchronously.\n- ALWAYS prefix bytecode with `0x` and match constructor parameter types\u002Forder exactly.\n- ALWAYS use integer-safe math for 18-decimal amounts (`10n ** 18n`, not `BigInt(10 ** 18)`).\n- ALWAYS import contracts before creating event monitors.\n- ALWAYS default to testnet (Arc Testnet for demos unless specified otherwise). Require explicit user confirmation before targeting mainnet.\n\n## Reference Links\n\n- [Circle Developer Docs](https:\u002F\u002Fdevelopers.circle.com\u002Fllms.txt) -- **Always read this first** when looking for relevant documentation from the source website.\n\n---\n\nDISCLAIMER: This skill is provided \"as is\" without warranties, is subject to the [Circle Developer Terms](https:\u002F\u002Fconsole.circle.com\u002Flegal\u002Fdeveloper-terms), and output generated may contain errors and\u002For include fee configuration options (including fees directed to Circle); additional details are in the repository [README](https:\u002F\u002Fgithub.com\u002Fcirclefin\u002Fskills\u002Fblob\u002Fmaster\u002FREADME.md).\n",{"name":5,"description":7,"requirements":45},{"runtimes":46,"connectors":47},[],[],"main","026f68530bf15badc68cd145ba3df910fc33246b","skills\u002Fpayments\u002Fcircle-official-use-smart-contract-platform",17,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia","https:\u002F\u002Feth2030.com","Hardcore infra. Building @alt-research and applied cryptography.","2026-11-15 02:28:10",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add jiayaoqijia\u002Fcryptoskill --skill use-smart-contract-platform",{"tool":63,"command":64},"bunx","bunx skills add jiayaoqijia\u002Fcryptoskill --skill use-smart-contract-platform",{"tool":66,"command":67},"pnpm","pnpm dlx skills add jiayaoqijia\u002Fcryptoskill --skill use-smart-contract-platform","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002Fcircle-official-use-smart-contract-platform\u002FSKILL.md",true,[71,75,81,85,89,93,97,101,105,109],{"path":72,"resourceType":72,"resourceTypeDesc":73,"sizeBytes":74,"sourceHtmlUrl":16},"LICENSE","许可证",10173,{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fdeploy-bytecode.md","REFERENCE","参考文档",1214,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002Fcircle-official-use-smart-contract-platform\u002Freferences\u002Fdeploy-bytecode.md",{"path":82,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fdeploy-erc-1155.md",1823,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002Fcircle-official-use-smart-contract-platform\u002Freferences\u002Fdeploy-erc-1155.md",{"path":86,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fdeploy-template.md",2334,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002Fcircle-official-use-smart-contract-platform\u002Freferences\u002Fdeploy-template.md",{"path":90,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fimport-contract.md",842,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002Fcircle-official-use-smart-contract-platform\u002Freferences\u002Fimport-contract.md",{"path":94,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Finteract.md",1677,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002Fcircle-official-use-smart-contract-platform\u002Freferences\u002Finteract.md",{"path":98,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fmonitor-events.md",1616,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002Fcircle-official-use-smart-contract-platform\u002Freferences\u002Fmonitor-events.md",{"path":102,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":103,"sourceHtmlUrl":104},"references\u002Ftemplates.md",2143,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002Fcircle-official-use-smart-contract-platform\u002Freferences\u002Ftemplates.md",{"path":106,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":107,"sourceHtmlUrl":108},"SOURCE.md",171,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002Fcircle-official-use-smart-contract-platform\u002FSOURCE.md",{"path":110,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":111,"sourceHtmlUrl":112},"TRUST.auto.yaml",2206,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fpayments\u002Fcircle-official-use-smart-contract-platform\u002FTRUST.auto.yaml",[114,124,132,140,148,156],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":118,"licenseFileUrl":119,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":123},"01M7DTKCERMV0RNX3HZJP4CZ26","troves","Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say \"Troves\" explicitly.","MIT","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-troves\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":118,"licenseFileUrl":128,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":123},"01M7DTK6CJSMGC8KCQHGNYFZBD","trade","Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say \"swap\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-trade\u002FSKILL.md",[],[],{"skillNo":133,"name":134,"nameZh":6,"description":135,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":118,"licenseFileUrl":136,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":123},"01M7DTJZ6A0X4PAW3Y8W4J9K64","staking","Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say \"stake\" explicitly.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-staking\u002FSKILL.md",[],[],{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":118,"licenseFileUrl":144,"sourceHtmlUrl":145,"categories":146,"keywords":147,"publishedAt":123},"01M7DTJSDZJKCDMW7GHRF4BRH5","send","Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say \"pay 10 STRK to 0x...\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-send\u002FSKILL.md",[],[],{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":118,"licenseFileUrl":152,"sourceHtmlUrl":153,"categories":154,"keywords":155,"publishedAt":123},"01M7DTJG1E480D51ZQ7WKDQ26K","portfolio","View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks \"what do I have\", \"show me everything\", \"how much am I worth\", \"my positions\", \"my investments\", \"rebalance my portfolio\", \"I want 50% ETH\", \"optimize my holdings\", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say \"portfolio\".","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-portfolio\u002FSKILL.md",[],[],{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":118,"licenseFileUrl":160,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":123},"01M7DTJ7M8TE9R2N36HFBZDGVD","multi-swap","Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions \"two swaps\", \"three swaps\", \"swap X and Y at the same time\", or wants to convert multiple tokens in a single call.","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fmcp-servers\u002Fahmetenesdur-multi-swap\u002FSKILL.md",[],[]]