Skip to main content

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.

NIP-07 is the standard for browser extension wallets in the Nostr ecosystem. CCC integrates NIP-07 so users can sign CKB transactions with their Nostr identity.

Installation

npm install @ckb-ccc/nip07
If you are using @ckb-ccc/connector-react or @ckb-ccc/ccc, NIP-07 support is already included.

Compatible extensions

Any NIP-07-compliant browser extension is supported, including:
  • Alby — Lightning + Nostr wallet
  • nos2x — minimal Nostr signer
  • Flamingo
  • Any other NIP-07 browser extension

Usage

Nostr wallets are automatically registered with the CCC connector:
import { ccc } from "@ckb-ccc/connector-react";

export default function App({ children }) {
  return <ccc.Provider>{children}</ccc.Provider>;
}
If the user has a NIP-07 extension installed, it appears in the wallet selector.

Signer details

PropertyValue
SignerTypeNostr
SignerSignTypeNostrEvent

Lumos compatibility

Nostr wallets are supported via Lumos patches:
import { generateDefaultScriptInfos } from "@ckb-ccc/lumos-patches";

registerCustomLockScriptInfos(generateDefaultScriptInfos());

Build docs developers (and LLMs) love