Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

use-developer-controlled-wallets

БесплатноБез исполняемых скриптовНе проверен

Create and manage Circle developer-controlled wallets where the application retains full custody of wallet keys on behalf of end-users. Covers wallet sets…

circlefinот circlefin★ 171 звезда на GitHub

Об этом скилле

Overview

Developer-controlled wallets let your application create and manage wallets on behalf of end users, with full custody of private keys secured through an encrypted entity secret. Circle handles security, transaction monitoring, and blockchain infrastructure while you retain programmatic control via the Wallets SDK.

Prerequisites / Setup

Installation

npm install @circle-fin/developer-controlled-wallets

Environment Variables

CIRCLE_API_KEY=      # Circle API key (format: PREFIX:ID:SECRET)
ENTITY_SECRET=       # 32-byte hex entity secret

Entity Secret Registration

Register an entity secret before using the SDK. Point the developer to https://developers.circle.com/wallets/dev-controlled/register-entity-secret, or READ references/register-secret.md for the generation and registration snippets. IMPORTANT: Never register an entity secret on mainnet (LIVE) for the user; they generate, register, and store it themselves. On testnet (TEST), register only when the user explicitly asks, and make sure they store the entity secret and recovery file securely.

SDK Initialization

import { initiateDeveloperControlledWalletsClient } from '@circle-fin/developer-controlled-wallets';

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

Core Concepts

  • Wallet Sets: A group of wallets managed by a single entity secret. Wallets in a set can span blockchains and share the same address on EVM chains.
  • Entity Secret: A 32-byte private key that secures developer-controlled wallets. Generated, encrypted, and registered once; Circle never stores it in plain text.
  • Entity Secret Ciphertext: The entity secret RSA-encrypted with Circle's public key. Must be unique per API request to prevent replay attacks. The SDK generates a fresh one for every request.
  • Idempotency Keys: Mutating requests take a UUID v4 idempotencyKey for exactly-once execution. The SDK generates one if omitted.
  • Account Types:
    • EOA (Externally Owned Account) -- default choice. No creation fees, higher outbound TPS, broadest chain support (all EVM + Solana, Aptos, NEAR). Pays gas in the chain's native token (ETH, MATIC, SOL, etc.); on Arc the gas asset is USDC (no separate native token), so USDC funding covers gas.
    • SCA (Smart Contract Account) -- ERC-4337. Gas sponsorship via Circle Gas Station, batch operations, flexible key management. EVM-only (not on Solana, Aptos, NEAR).
  • Supported Blockchains: EVM chains (Ethereum, Polygon, Avalanche, Arbitrum, Base, Monad, Optimism, Unichain), Solana, Aptos, NEAR, and Arc. Latest list: https://developers.circle.com/wallets/account-types

Transaction Lifecycle

Transfers and contract executions are asynchronous. Track them with webhook notifications (preferred) or by polling circleDeveloperSdk.getTransaction({ id }). Webhooks fire on every state change, including non-terminal ones such as CONFIRMED, and can arrive out of order, so act only on a terminal state; register a public HTTPS endpoint under Webhooks in the Circle Developer Console and verify each event with its X-Circle-Signature and X-Circle-Key-Id headers. Polling is the fallback, fine for simple scripts.

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 or DENIED transactions with Transaction Errors.

Workflow

  1. Check context and access. Confirm the target chain and that CIRCLE_API_KEY and ENTITY_SECRET are set and the entity secret is registered (see Prerequisites). If any is missing, ask the user; do not guess, and follow the registration policy in Prerequisites.
  2. Pick the task from Implementation Patterns and READ its reference before writing code.
  3. Get approval. Default to testnet. Confirm destination, amount, network, and token with the user before any transfer, signatu
Полный SKILL.md на GitHub

Установить use-developer-controlled-wallets в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/check-balance-and-transfer-tokens.mdreferences/contract-execution.mdreferences/create-dev-wallet.mdreferences/receive-transfer.mdreferences/register-secret.mdreferences/sign-with-wallet.mdreferences/wallet-management.md

FAQ

Что делает скилл use-developer-controlled-wallets?

Create and manage Circle developer-controlled wallets where the application retains full custody of wallet keys on behalf of end-users. Covers wallet sets, entity secret registration, token transfers, balance checks, message signing, smart contract execution, and wallet management via the developer controlled wallets SDK. Triggers on: developer-controlled wallets, entity secret, initiateDeveloperControlledWalletsClient, createWalletSet, createWallets, custody wallet, derive wallet, sign typed data, contract execution.

Как установить скилл use-developer-controlled-wallets?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл use-developer-controlled-wallets запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить use-developer-controlled-wallets с