All-In-One Wallet Connector(CCC)
Common Chains Connector (CCC) is a new wallet connectivity library developed in Typescript Lang, designed to make it easier for developers to help users connect with multiple ecosystem wallets and manage their assets directly on CKB.
What sets CCC apart is its use of CKB’s advanced cryptographic technologies coupled with native account abstraction. This feature fundamentally transforms how users transact and manage their digital assets across different wallets, providing a unified and fluid experience.
Currently supporting wallets like:
Installing
We design CCC for both front-end and back-end developers. You need only one package to fulfil all your needs:
- NodeJS:
npm install @ckb-ccc/ccc
- Web Component:
npm install @ckb-ccc/connector
- React:
npm install @ckb-ccc/connector-react
CCC exports everything on the ccc
object:
import { ccc } from "@ckb-ccc/<package-name>";
Lumos Patches
For developers who use Lumos to compose CKB transactions, CCC provides patches to:
- Support the JoyID Wallet.
See lumos-patches: npm install @ckb-ccc/lumos-patches
You can apply patches by:
import { generateDefaultScriptInfos } from "@ckb-ccc/lumos-patches";
// Before using Lumos. You don't need @ckb-lumos/joyid anymore.
registerCustomLockScriptInfos(generateDefaultScriptInfos());
Examples
CCC demo
- online preview: https://ckbccc-demo.vercel.app/
- source code: https://github.com/ckb-devrel/ccc/tree/master/packages/demo
offckb dApp boilerplate also integrated with CCC for wallet connection:
- guide: /docs/getting-started/quick-start#run-the-dapp-project
- source code: nextjs
- source code: remix-vite