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.

referencesinteract.md

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

Interact with a Deployed Contract

Use these TypeScript snippets to read contract metadata, query read-only methods, and execute write methods.

Get contract details and ABI functions

const contractId = "YOUR_CONTRACT_ID";
const contractRes = await scpClient.getContract({ id: contractId });

console.log(contractRes.data?.contract?.contractAddress);
console.log(contractRes.data?.contract?.functions ?? []);

Query a read function

abiFunctionSignature format is functionName(type1,type2,...).

const queryRes = await scpClient.queryContract({
  address: "YOUR_CONTRACT_ADDRESS",
  blockchain: "ARC-TESTNET",
  abiFunctionSignature: "owner()",
  abiJson: JSON.stringify([
    {
      name: "owner",
      type: "function",
      stateMutability: "view",
      inputs: [],
      outputs: [{ type: "address", name: "" }],
    },
  ]),
});

console.log(queryRes.data?.outputValues);

Execute a write function

Write calls require walletId and gas fee settings.

const executeRes = await walletsClient.createContractExecutionTransaction({
  walletId: "YOUR_WALLET_ID",
  contractAddress: "YOUR_CONTRACT_ADDRESS",
  abiFunctionSignature: "safeMint(address,uint256)",
  abiParameters: ["0xRecipientAddress", "1"],
  fee: {
    type: "level",
    config: { feeLevel: "MEDIUM" },
  },
});

const txId = executeRes.data?.id;
console.log({ txId });

Poll write transaction status

const txRes = await walletsClient.getTransaction({ id: txId! });
console.log(txRes.data?.transaction?.state);

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