Skip to main content
@ckb-ccc/shell is the CCC package for server-side and scripting use cases. It re-exports the full @ckb-ccc/core API — clients, signers, transaction helpers, and type utilities — along with the spore, ssri, and udt namespaces. It has no dependency on the DOM, React, or any browser API. Use @ckb-ccc/shell when:
  • You are writing a Node.js script or CLI tool.
  • You are building a backend service that interacts with CKB.
  • You need programmatic key management (e.g., a private-key signer).
Use @ckb-ccc/connector-react instead when you are building a browser-based React app where users connect their own wallets.

Installation

Imports

The ccc object contains everything from @ckb-ccc/core. The spore, ssri, and udt namespaces are also exported at the top level:

Sending a transaction

The example below creates a private-key signer, builds a CKB transfer transaction, and broadcasts it to testnet.

Querying cells

Use the client directly to fetch cells from the chain without a signer:
@ckb-ccc/shell also re-exports the spore and udt namespaces. You can use Spore and UDT operations in Node.js without installing those packages separately.