Hi everyone,
For the past three months I’ve been in the CKBuilders program, and for my capstone I built a block explorer for the chain you test on every day: your local OffCKB devnet.
Why
Almost all of my time in the program was spent on a devnet started by offckb node. The official CKB Explorer can’t see that chain, and its backend (Rails, PostgreSQL, Redis and a block syncer) is far too heavy to run against a chain that offckb clean wipes all the time. So I read raw RPC JSON. My own scripts were 32-byte code hashes, cell data was hex, and when a transaction failed I dug through the node’s output.
In September I asked @RetricSu whether something like this already existed. He confirmed it was a real gap, and Neon agreed to let me build it as a standalone tool that could move into offckb later.
What it is
One Node process that reads your devnet node directly. There’s no database and no indexer service, and the only setup is one command. It follows the official explorer’s design system, so it should feel familiar, but it’s tuned for building rather than browsing:
- It names your contracts: genesis scripts from
offckb system-scripts, yours fromdeployment/scripts.json. A JS contract running onckb-js-vmis named as the contract, not the VM. - It decodes every cell: contract code, sUDT/xUDT amounts, spores and clusters, DAO deposits and withdrawals, Type ID. A bar shows what each cell’s capacity pays for: lock, type, data, and what’s left unused.
- It knows it’s on a devnet: it flags a deployment that
offckb cleanwiped, shows the node’s reason when a transaction is rejected, and rebuilds itself when the chain resets. There’s also a faucet and a page with offckb’s 20 test accounts.
Beyond that it has the pages you’d expect: blocks, transactions, the tx pool, addresses, scripts, tokens, NFTs, the Nervos DAO with estimated compensation, charts and tools.
| CKB Explorer | CKB Devnet Explorer | |
|---|---|---|
| Networks | Mainnet, testnet | Your local devnet |
| Setup | Rails, PostgreSQL, Redis, a syncer | One command |
After offckb clean |
n/a | Notices and rebuilds |
| Your own contracts | Code hashes | Named |
| Rejected transactions | n/a | The node’s reason |
Try it
Inside a project you deployed with offckb deploy, with offckb node running:
npx github:wildanrhmn/ckb-devnet-explorer serve
Then open http://localhost:7070.
Into offckb
@RetricSu is adding sandboxed local plugins to offckb (offckb#542), with this explorer as the first one. He opened a PR on my repo for the plugin interface. I made the explorer run read-only inside his sandbox, and we’ll merge once his side is ready.
What it doesn’t do (yet)
- It’s for devnets only, on purpose. Mainnet pages like halving, Fiber, RGB++ and price data are left out.
- It runs on your own machine. There’s no hosted demo yet; I’m working on one so you can try it without installing anything.
- The final step of a DAO withdrawal isn’t covered yet, because the lock period on a devnet is about 18.8 days and I haven’t waited it out.
- Data stored by JS contracts (for example a counter’s u64) still shows as hex.
I’d love to hear
- If you build on a devnet: what do you still check by hand that an explorer should show you?
- Should this stay a standalone tool, live inside offckb, or both?
- Of what’s missing above, what would you want first?
Repo: GitHub - wildanrhmn/ckb-devnet-explorer: A lightweight explorer for OffCKB devnets: no database, reads the node directly, names your own deployed scripts. · GitHub
Capstone write-up (how it works, DAO math, code-cell matching): ckb-devnet-explorer/docs/CAPSTONE.md at main · wildanrhmn/ckb-devnet-explorer · GitHub
Thanks for reading!



