CKB Contract Flow: visual cell-transition explainers + on-chain tx decoder for 46 CKB contracts

Hi everyone, I built a small open-source tool that turns the cell transition rules of CKB contracts into visual, one-page explanations, so you can understand a contract quickly.

:link: Site: CKB 合约 Cell 流转约束 / CKB Contract Cell-Flow Constraints
:package: Repo: GitHub - gpBlockchain/ckb-contract-flow-html: https://gpblockchain.github.io/ckb-contract-flow-html/ · GitHub

Contract pages

One card per state transition (e.g. 0→1, 1→1, 1→0), showing the input and output cell structure (type codeHash/args, data) with the restricted fields highlighted and every field explained. Composite fields like args, witness and since are broken down byte by byte with hex examples. Each constraint maps to the error code in the source.

On-chain transaction decoder

Paste a tx hash (mainnet or testnet) and it splits the transaction into script groups and checks each rule of the contract. Signatures are not verified.

More

  • Tags and search: filter by lock/type, category, network, open-source status and maintainer.
  • Deployments: mainnet and testnet deployment info plus source repo and commit for each contract, with a weekly check for on-chain upgrades.
  • Bilingual (English / Chinese) and mobile-friendly.

46 contracts so far

  • System scripts: secp256k1, multisig, NervosDAO, type_id.
  • Assets & wallets: sUDT, xUDT, ACP, Cheque, Omnilock, PW lock, nostr lock, did.ckb.
  • Ecosystem: Spore, Cluster, iCKB, RGB++, Fiber, cellula.id (.cell names), Cells contracts, Godwoken, and the proxy lock family.
  • Post-quantum: SPHINCS+ lock.

Contributions welcome

It’s plugin-based: adding a contract only takes 4 files under contracts/<id>/. Give the contract repo to an AI agent that can read code and run commands, follow docs/ADD_CONTRACT.md, pass the checks and open a PR. Or request one with the new-contract issue template: Sign in to GitHub · GitHub . Contributors’ GitHub names are shown on the page.

Corrections and suggestions are very welcome. Thanks!

12 Likes

really handy, the byte-by-byte args and since breakdowns are what I always end up re-deriving by hand. are you open to testnet-only community contracts? I’d be happy to write up the transitions for CrowdCell’s campaign type and pledge lock in whatever format you need

Supported now: CKB 合约 Cell 流转约束 / CKB Contract Cell-Flow Constraints
If anything needs adjusting, feel free to open a PR.

2 Likes

oh nice, that was quick, thanks! heads up that the campaign and pledge-lock cards will shift a bit soon, I’ve got two fixes from Officeyutong’s review on a branch (a pledge’s deadline has to match its campaign’s, and one campaign cell per destroy tx) that go to testnet after the 27th. I’ll go through all five cards then and open a PR for anything that’s off

2 Likes

Updated the 5 CrowdCell cards to the redeployed contracts (Oct 31): Update CrowdCell cards to the 2026-10-31 testnet deployment by alesfer001 · Pull Request #9 · gpBlockchain/ckb-contract-flow-html · GitHub

All five come out as binary verified now, a clean build reproduces the deployed hashes. Thanks for adding CrowdCell :folded_hands:

1 Like