Index of every page on this site: llms.txt
All skills
circlefin avatar

/use-smart-contract-platform

@a045767
Run it yourself

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.

Use this Skill: https://skilld.dev/gh/circlefin/skills/use-smart-contract-platform

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesmonitor-events.md

≈404 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Monitor Smart Contract Events

Import the contract first

import crypto from 'node:crypto';

const importRes = await scpClient.importContract({
  address: "0xYourContractAddress",
  blockchain: "ARC-TESTNET",
  idempotencyKey: crypto.randomUUID(),
  name: "MyToken",
  description: "Imported contract for event monitoring",
});

console.log(importRes.data?.contract);

Create event monitor

const monitorRes = await scpClient.createEventMonitor({
  blockchain: "ARC-TESTNET",
  contractAddress: "0xYourContractAddress",
  eventSignature: "Transfer(address,address,uint256)",
  idempotencyKey: crypto.randomUUID(),
});

console.log(monitorRes.data?.eventMonitor);

Fetch event history

const historyRes = await scpClient.listEventLogs({
  contractAddress: "0xYourContractAddress",
  blockchain: "ARC-TESTNET",
});

const transferLogs = (historyRes.data?.eventLogs ?? []).filter(
  (log) => log.eventSignature === "Transfer(address,address,uint256)",
);

Webhook payload shape (example)

{
  "notificationType": "contracts.eventLog",
  "notification": {
    "contractAddress": "0xYourContractAddress",
    "blockchain": "ARC-TESTNET",
    "txHash": "0x...",
    "eventName": "Transfer(address,address,uint256)",
    "topics": ["0xddf252ad..."],
    "data": "0x..."
  },
  "timestamp": "2026-01-01T00:00:00.000Z",
  "version": 2
}

Decode indexed fields from notification.topics and non-indexed fields from notification.data.

Reference Links

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

2 warnings15d5 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    This skill enables interaction with the Circle Smart Contract Platform for deploying and managing smart contracts. It utilizes official Circle SDKs and incorporates rigorous security rules, including instructions for secure secret management via environment variables and mandatory user confirmation for all blockchain transactions. The implementation follows best practices for crypto operations and no malicious patterns were detected.

  • Socket15d

    No alerts

  • Snyk15d

    Risk: MEDIUM · 2 issues

  • Runlayer8mo

    3/6 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at a045767. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 6 days ago.

Activeupdated 3 weeks ago
requirements
{
  "runtimes": [],
  "connectors": []
}

README badge

README badge for circlefin/skills/use-smart-contract-platform