CKB Pulse
Lessons

What CKB learned

Start here · Glossary · Test yourself · Feed

#Network and RPC reliability

37 lessons found. All lessons

Page 4 of 4

Persist the transaction hash before broadcasting itWorkingFrom one fix

A CKB transaction hash covers the raw transaction but not the witnesses, so after fee completion ccc tx.hash() already gives the final hash before signing. Save that hash to a durable journal before broadcasting, and assert that the hash returned by send equals it. Also assert that signing and preparation did not change the hash, so a rerun after a lost RPC reply waits for the recorded transaction instead of building and sending a duplicate.

#Transaction building and fees #Network and RPC reliability · Sources (1) · 2026-09-18

Page 4 of 4

Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. JSON · Want a lesson changed or removed? Open an issue.