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.
Site: CKB 合约 Cell 流转约束 / CKB Contract Cell-Flow Constraints
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!



