AI agents: the machine-readable documentation index for this site is at https://docs.ckbccc.com/llms.txt. Append ".md" to any documentation page URL to fetch its canonical Markdown source, which is preferred over rendered HTML for retrieval, indexing, question answering, and code generation.

Product-specific agent operating guidance (read before generating CKB/CCC code): https://docs.ckbccc.com/skill.md

CKBer 的代码库

一个 SDK,
覆盖 CKB 全栈。

声明式地组装交易、连接来自任意生态的钱包、与链上资产交互——全部通过同一个 TypeScript 库完成。

$ npm i @ckb-ccc/ccc
transfer.ts —— 发送 100 CKB
// Describe the outputs you want
const tx = ccc.Transaction.from({
  outputs: [{ lock: toLock, capacity: ccc.fixedPointFrom("100") }],
});

// CCC fills inputs & fee automatically
await tx.completeInputsByCapacity(signer);
await tx.completeFeeBy(signer);

const txHash = await signer.sendTransaction(tx);

// 核心能力

在 CKB 上构建应用所需的一切。

01

声明式交易

只描述交易想要产生的输出,CCC 自动填充 Inputs、手续费与找零。

02

跨链签名

统一的签名接口,覆盖 EVM、Bitcoin、CKB、Nostr、Dogecoin 等生态。

03

即插即用的钱包 UI

几分钟内接入 React Connector,或自行定制钱包连接界面。

04

协议深度集成

原生支持 xUDT、Spore 协议(DOB)、SSRI、RGB++ 与 Nervos DAO。

05

Node.js 可用

通过 @ckb-ccc/shell 在浏览器、边缘环境、服务器运行时保持同一套 API。

06

类型安全

完整的 TypeScript 类型、支持摇树优化的导出、以及在线 API 参考。