All lessons · Developer tooling · Start here · Glossary
Derive devnet Spore and system script cell deps from a fresh OffCKB exportWorkingSeen again
Seen again · Check: partly right · Checked 2026-11-19
Do not hardcode devnet code hashes and cell dep out points (secp256k1, Spore, cluster) in an example: they come from the local OffCKB devnet and can drift when OffCKB's bundled scripts change. Export them with `offckb system-scripts --network devnet --export-style ccc` before start, fail if a needed script lacks codeHash, hashType or a cellDep outPoint, and build both the CCC client config and the Spore SDK lumos config from that one file.
Why it matters: Hardcoded devnet out points and code hashes go stale when the OffCKB devnet changes, so the CCC client and the Spore SDK end up pointing at wrong or missing cell deps and transactions fail.
A test changed in the same commit
It sits next to the fix. We did not run it.
- LusoCryptoLabs/docs.nervos.org:
examples/dApp/create-dob/scripts/devnet-lumos-config.test.cjs,examples/dApp/create-dob/scripts/sync-devnet-system-scripts.test.cjs,examples/dApp/simple-lock/scripts/deploy.test.js,examples/dApp/simple-lock/tests/frontend-transaction.test.ts,examples/dApp/simple-transfer/scripts/sync-devnet-system-scripts.test.cjs - nervosnetwork/docs.nervos.org:
examples/dApp/create-dob/scripts/devnet-lumos-config.test.cjs,examples/dApp/create-dob/scripts/sync-devnet-system-scripts.test.cjs,examples/dApp/simple-lock/scripts/deploy.test.js,examples/dApp/simple-lock/tests/frontend-transaction.test.ts,examples/dApp/simple-transfer/scripts/sync-devnet-system-scripts.test.cjs
- Concepts
- Cell deps and script lookup, Testing and devnet
- Evidence
- Seen again: seen in two or more projects
- First seen
- 2026-09-29
- Last changed
- 2026-09-29
- Last checked
- 2026-11-19
- Check against the commit
- partly right: a true core, with a part that is loose or too wide
Sources (2)
- 2026-09-29 · LusoCryptoLabs/docs.nervos.org · more from this project
- 2026-09-29 · nervosnetwork/docs.nervos.org · more from this project
More about Developer tooling
- Saved transaction test vectors go stale when their cell deps are spent
- Mock transactions must expand dep_group members
- ckb-vm-js 0.2.0 (npm) checks header hash instead of rejecting the field
Do you maintain a project this lesson came from? Confirm or correct it
Cite this lesson
LusoCryptoLabs, "Derive devnet Spore and system script cell deps from a fresh OffCKB export", CKB lessons, https://pulse.lusocryptolabs.com/learned/tooling/derive-devnet-spore-and-system-script-cell-deps-from-a-fresh, CC BY 4.0, last changed 2026-09-29.