Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ckb-devrel/ccc/llms.txt
Use this file to discover all available pages before exploring further.
Property '*' does not exist on type 'typeof import...'
Property '*' does not exist on type 'typeof import...'
CCC uses JavaScript’s Package Entry Points feature to enable tree shaking while still exporting everything on the Accepted values are
ccc object.Ensure your tsconfig.json has moduleResolution set to one of:tsconfig.json
node16, nodenext, or bundler. Also make sure resolvePackageJsonExports is not disabled.See the TypeScript module resolution guide for more details.TypeError: (0, react....createContext) is not a function
TypeError: (0, react....createContext) is not a function
CCC’s UI components only work on the client side. If you are using React Server Components, you must add the This tells React to treat the file as a client-side component, where browser APIs like
"use client" directive at the top of any file that uses ccc.Provider:createContext are available.Can I use Lumos with CCC?
Can I use Lumos with CCC?
Yes. While CCC is recommended for composing transactions, Then apply the patches before using Lumos:
@ckb-ccc/lumos-patches adds CCC wallet support to Lumos, including:- JoyID Wallet
- Nostr Wallet
- Portal Wallet
Which wallets does CCC support?
Which wallets does CCC support?
CCC supports wallets across multiple ecosystems:
The unified
| Ecosystem | Wallets |
|---|---|
| EVM | MetaMask, any EIP-6963 compatible wallet |
| Bitcoin | UniSat, OKX, UTXO Global, Xverse |
| CKB | JoyID |
| Nostr | Any NIP-07 compatible extension |
| Other | REI, OKX |
ccc.Signer interface abstracts over all of these, so your application code stays the same regardless of which wallet the user connects.How do I switch between testnet and mainnet?
How do I switch between testnet and mainnet?
Use Or set the default client when initializing the
setClient on the signer to switch networks at runtime:Provider:What is the difference between ccc and cccA imports?
What is the difference between ccc and cccA imports?
CCC has two export entry points:
Unless you need to customize CCC deeply, always prefer the
| Import | Purpose |
|---|---|
ccc from @ckb-ccc/<package> | Stable public API — use this for production applications |
cccA from @ckb-ccc/<package>/advanced | Advanced internals — unstable, may change between versions |
ccc import. The cccA export is intended for advanced developers who need access to lower-level primitives and accept the risk of breaking changes.