Install
openclaw skills install circle-chain-skillJavaScript SDK and CLI for Circle Chain (@lidh04/circle-chain-sdk): user auth, wallet, block, miner, transfers, contacts. Global CLI binary `circle`. Use when working in js-circle-chain-sdk, integrating Circle Chain from Node/browser, or when the user mentions circle-chain SDK, @lidh04/circle-chain-sdk, local mining, or the circle CLI.
openclaw skills install circle-chain-skill@lidh04/circle-chain-sdk — local dependency: npm i @lidh04/circle-chain-sdkuser, wallet, block, node, miner, common — e.g. import sdk from '@lidh04/circle-chain-sdk' then const { user, wallet, miner } = sdk. README snippets use bare names like login, createWallet; bind them from the matching namespace (user.login, wallet.createWallet, etc.).src/ — circle-user.js, circle-wallet.js, circle-block.js, circle-node.js, circle-miner.js, circle-common.js; CLI under src/cli/.npm run build — outputs dist/cjs and dist/mjs (TypeScript + fixup).npm run build before npm test when suites need fresh dist/. CLI-only: npm run test:cli (builds, then Jest matches dist/cjs/cli).npm run cli -- <args> or node ./dist/mjs/cli/main.js <args>.Published executable name: circle (see package.json "bin" → dist/mjs/cli/main.js).
npm install -g @lidh04/circle-chain-sdk
circle --help
circle-d / --dev — use http://localhost:8888 instead of production (e.g. circle --dev user login-send-code --email you@example.com).circle <group> --help.circle --help
circle user --help
circle user login-send-code --email you@example.com
circle wallet query public-balance --address <addr>
circle block header-list --base-height 0
circle miner mine --address <your-miner-address>
npm run build
npm run cli -- --help
# or: node ./dist/mjs/cli/main.js --help
CLI tests: src/cli/*.test.js; Jest runs compiled tests under dist/cjs/cli/ per jest.config.cjs.
Responses typically include status (e.g. 200), message, and data. On failure, surface response.message.
sendRegisterVerifyCode → register → login (email + password).sendVerifyCode → login (email + verifyCode).createWallet() — on success, address in data.miner.canMineBlock() — return early if false.miner.fetchMyBlockData(address) — from data: blockHeaderHexString, channelId.miner.mineBlock(blockHeaderHexString, workerCount) — e.g. os.cpus().length - 1; result lines separated by \n; first line is mined header hex.miner.postMyBlock({ address, channelId, blockHeaderHexString: minedBlockHeader }).sendPayVerifyCode → setPayPassword with account: { email }, verifyCode, password.sendTo: email, from, address (to), transContent (type, uuid, etc.), payPassword.pay: from, to, value, payPassword.addContacts: e.g. email, name, sex, address (location string in README).npm install -g @lidh04/circle-chain-sdk), using circle with --dev, and developing the repo (npm run cli / node ./dist/mjs/cli/main.js)circle / main.js.user-command, wallet-command, miner-command, block-command; user CLI email-only.src/cli, Jest runs dist/cjs/cli; circle-node test import path fix.Keep this skill aligned with repo README.md and package.json (bin name, exports).