CKB Pulse

全部经验 · CCC (TypeScript SDK) · 从这里开始 · 术语表

Adding a wallet missing from CCC's connector via a SignersController subclass实践由所有者核对

由所有者核对 · 核对结果:部分正确 · 核对于 2026-11-19

To list a wallet that CCC's connector does not include yet, subclass ccc.SignersController (from @ckb-ccc/connector-react) and override addRealSigners: call this.addSigners(name, icon, [{ name: "CKB", signer }], context) with a ccc.Signer for that wallet, then await super.addRealSigners(context). Pass an instance to ccc.Provider as signersController. Wallets are shown in the order they are added, so adding yours before the super call puts it ahead of CCC's own. The Khie entry is drawn by the connector above that list and is not part of it; the hide-khie attribute removes it.

为什么重要: Without a custom SignersController, users of a wallet missing from CCC's built-in list, such as Cellula, cannot connect to the dApp at all.

Order and the Khie entry checked against the CCC source at e10b99d (@ckb-ccc/ccc 1.3.7, connector 2.4.0): packages/ccc/src/signersController.ts (addSigner appends) and packages/connector/src/scenes/selecting/wallets.ts.

代码模式

推荐
await this.addSigners("Cellula", cellulaIcon, [{ name: "CKB", signer: new CellulaWalletSigner(context.client) }], context);

摘自提交,已缩短。

概念
Witnesses and signatures
证据
由所有者核对: 由其来源项目的所有者核对,该所有者同时也是这些经验的发布者
首次出现
2026-11-06
最近改动
2026-11-06
最近核对
2026-11-19
对照提交的核对结果
部分正确:核心属实,但有一部分表述松散或范围过宽

来源(1)

更多关于CCC (TypeScript SDK)

查看此主题的全部 33 条

核对人: @LusoCryptoLabs (项目所有者), 2026-11-19.

你维护这条经验的来源项目吗?请确认或纠正

引用这条经验
LusoCryptoLabs, "Adding a wallet missing from CCC's connector via a SignersController subclass", CKB lessons, https://pulse.lusocryptolabs.com/learned/ccc/adding-a-wallet-missing-from-ccc-s-connector-via-a-signersco, CC BY 4.0, last changed 2026-11-06.

取自公开提交,并对照每条经验的来源提交和项目当前代码做了核对。使用前请先读来源。 文本采用 CC BY 4.0:请署名 LusoCryptoLabs, CKB lessons,并附上经验的链接。 想修改或撤下某条经验?请提交 issue。