circle-chain-js-sdk
Installation
SKILL.md
Circle Chain JavaScript SDK
Package and layout
- npm:
@lidh04/circle-chain-sdk— local dependency:npm i @lidh04/circle-chain-sdk - Default export: an object with namespaces
user,wallet,block,node,miner,common— e.g.import sdk from '@lidh04/circle-chain-sdk'thenconst { user, wallet, miner } = sdk. README snippets use bare names likelogin,createWallet; bind them from the matching namespace (user.login,wallet.createWallet, etc.). - Source repo:
src/—circle-user.js,circle-wallet.js,circle-block.js,circle-node.js,circle-miner.js,circle-common.js; CLI undersrc/cli/.
Development workflow
- Build:
npm run build— outputsdist/cjsanddist/mjs(TypeScript + fixup). - Tests: Run
npm run buildbeforenpm testwhen suites need freshdist/. CLI-only:npm run test:cli(builds, then Jest matchesdist/cjs/cli). - CLI from a clone: after build,
npm run cli -- <args>ornode ./dist/mjs/cli/main.js <args>.
CLI (Commander.js)
Published executable name: circle (see package.json "bin" → dist/mjs/cli/main.js).