Skip to content

Examples

These are complete, runnable programs that demonstrate the SDK and CLI in realistic contexts. All TypeScript examples fetch from the live testnet registry at https://testnet.ckb.dev — nothing is mocked.

  • Node.js 20+ for TypeScript examples
  • Rust 1.70+ (MSRV) for the Rust example
  • An internet connection to reach https://testnet.ckb.dev
  • No CKB account or on-chain funds required — all examples are read-only

Clone the repository and install:

Terminal window
git clone https://github.com/digitaldrreamer/ckb-transaction-firewall
cd ckb-transaction-firewall/examples/typescript
npm install
Terminal window
cd ckb-transaction-firewall/examples/rust
cargo run --bin preflight_service