Command Palette

Search for a command to run...

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

cketh

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

Integrate ckETH and ckERC20 tokens (ckUSDC, ckUSDT, ckEURC, ckWBTC, ckLINK, ...) into an IC app. Covers discovering supported ckERC20 tokens, converting…

jiayaoqijiaот jiayaoqijia★ 81 звезда на GitHub

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

ckETH and ckERC20 Integration

What This Is

ckETH (1:1 ETH) and ckERC20 tokens (1:1 ERC-20, e.g. ckUSDC) are ICRC-1/ICRC-2 tokens on ICP. One minter canister handles ETH and every ERC-20. It holds the Ethereum funds at addresses derived from its threshold-ECDSA key, talks to Ethereum through the EVM RPC canister, mints after a deposit is final on Ethereum, and burns via an ICRC-2 allowance before it sends a withdrawal. Every ckERC20 token has its own ledger and index. Gas for ERC-20 withdrawals is paid in ckETH.

Plain transfers between ICP accounts are ordinary ICRC-1 calls: load icrc-ledger for those. This skill covers conversion and token discovery.

Canister IDs and Ethereum addresses

Ethereum Mainnet Sepolia testnet
Minter (ETH + all ckERC20) sv3dd-oaaaa-aaaar-qacoa-cai jzenf-aiaaa-aaaar-qaa7q-cai
ckETH ledger ss2fx-dyaaa-aaaar-qacoq-cai (ckETH) apia6-jaaaa-aaaar-qabma-cai (ckSepoliaETH)
ckETH index s3zol-vqaaa-aaaar-qacpa-cai sh5u2-cqaaa-aaaar-qacna-cai
ckERC20 ledger suite orchestrator vxkom-oyaaa-aaaar-qafda-cai 2s5qh-7aaaa-aaaar-qadya-cai
Helper contract (deposit_with_subaccount_helper_contract_address) 0x18901044688D3756C35Ed2b36D93e6a5B8e00E68 0x2D39863d30716aaf2B7fFFd85Dd03Dda2BFC2E38
Minter main address (holds funds, sends withdrawals) 0xb25eA1D493B49a1DeD42aC5B1208cC618f9A9B80 0x1789F79e95324A47c5Fd6693071188e82E9a3558

The minter, ckETH and every ckERC20 ledger live on the fiduciary subnet. Read Ethereum addresses at runtime from get_minter_info (they change on upgrades); the table is a snapshot from 2026-11.

Discovering ckERC20 tokens

The minter decides which tokens can be deposited and withdrawn. Read get_minter_info (query):

  • supported_ckerc20_tokens: opt vec record { ckerc20_token_symbol; erc20_contract_address; ledger_canister_id }. This is the authoritative list.
  • minimum_deposit_amounts: opt vec record { erc20_contract_address; minimum_deposit_amount } and minimum_eth_deposit_amount. These apply only to the deposit-address flow.
  • minimum_withdrawal_amount (ckETH, in wei), cketh_ledger_id, deposit_with_subaccount_helper_contract_address.

For each ledger, read icrc1_metadata for icrc1:decimals, icrc1:fee and icrc1:logo. Decimals differ per token (ckETH 18, ckUSDC 6, ckWBTC 8). For the index canister id use the orchestrator: get_orchestrator_info (managed_canisters[].{erc20_contract, ledger, index, archives}) or canister_ids(record { chain_id = 1; address = "0x..." }).

Mainnet tokens on 2026-11-02: ckUSDC xevnm-gaaaa-aaaar-qafnq-cai (6 decimals), ckUSDT cngnf-vqaaa-aaaar-qag4q-cai (6), ckEURC pe5t5-diaaa-aaaar-qahwa-cai (6), ckXAUT nza5v-qaaaa-aaaar-qahzq-cai (6), ckWBTC bptq2-faaaa-aaaar-qagxq-cai (8), ckWSTETH j2tuh-yqaaa-aaaar-qahcq-cai (18), ckLINK g4tto-rqaaa-aaaar-qageq-cai (18), ckUNI ilzky-ayaaa-aaaar-qahha-cai (18), ckSHIB fxffn-xiaaa-aaaar-qagoa-cai (18), ckPEPE etik7-oiaaa-aaaar-qagia-cai (18), ckOCT ebo5g-cyaaa-aaaar-qagla-cai (18), ckBAT j7x7x-syaaa-aaaar-qcbea-cai (18). On Sepolia, only ckSepoliaUSDC yfumr-cyaaa-aaaar-qaela-cai (Sepolia USDC 0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238) is supported. New tokens are added by NNS proposal, so never hardcode the list.

Account model: who calls the minter

The minter credits and debits ICRC accounts { owner; subaccount }. Choose one of two models:

  • Non-custodial (frontend calls the minter directly). The user's identity (Internet Identity, or an ICRC signer: see user-sign-in / wallet-integration) calls deposit_erc20/deposit_eth, icrc2_approve and withdraw_*. The tokens belong to the user's own principal. This needs no backend.
  • Custodial (your canister calls the minter). The canister is the owner and keeps one 32-byte subaccount per user. All calls come from the canister's principal (see references/backend.md).

deposit_erc20 and deposit_eth have no owner argument: the account is always caller + subaccount. A backend cannot register a deposit address for a user-owned account. Only the owner can arm its own address.

Deposit flow A: per-account deposit address (recommended)

Works from any wallet and from centralized exchanges, because it needs only a plain transfer to an address. It has been live on mainnet since 2026-09 for ERC-20 and ETH.

  1. Register. The owner calls deposit_erc20(record { erc20_contract_address = "0x…"; mode = variant { Unsponsored = record { subaccount = opt <32 bytes> | null } } }) or deposit_eth(record { mode = … }). These are update calls, free, and idempotent. The response is { address; minimum_deposit_amount; status }.
  2. Send. The user sends the ERC-20 (a plain transfer) or ETH to address, on Ethereum L1 only. Several transfers add up, because the minter reads the address' total balance.
  3. Detect. The minter scans the
Полный SKILL.md на GitHub

Установить cketh в Claude Code и Claude Desktop

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

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

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

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

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

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

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

LICENSESOURCE.mdTRUST.auto.yamlreferences/backend.mdreferences/frontend.md

FAQ

Что делает скилл cketh?

Integrate ckETH and ckERC20 tokens (ckUSDC, ckUSDT, ckEURC, ckWBTC, ckLINK, ...) into an IC app. Covers discovering supported ckERC20 tokens, converting ETH/ERC-20 to ckETH/ckERC20 via per-account deposit addresses (deposit_eth / deposit_erc20, works from exchanges) or the helper smart contract (depositEth / depositErc20), withdrawing with withdraw_eth / withdraw_erc20, address derivation, fees, minimums, and which calls belong in the frontend vs the backend. Use when the user mentions ckETH, ckERC20, ckUSDC, ckUSDT, or depositing/withdrawing ETH or ERC-20 tokens to/from ICP. Do NOT use for plain ICRC-1 transfers of ck tokens (use icrc-ledger) or for signing arbitrary Ethereum transactions from a canister (use evm-rpc).

Как установить скилл cketh?

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

Скилл cketh запускает скрипты?

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

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

Сравнить cketh с