CKB Pulse
Lessons

What CKB learned

Start here · Glossary · Test yourself · Feed

“Channels and payments”

1 lessons found. All lessons

Convert Fiber RPC snake_case scripts to CCC camelCase ScriptLikeWorkingReproduced

Fiber RPC returns scripts as { code_hash, hash_type, args }, but CCC's ScriptLike expects { codeHash, hashType, args }. In this commit a Fiber shaped lock was passed to a CCC based sweep as if it were a ccc.ScriptLike and the sweep failed, so map the fields explicitly before handing the script to CCC.

#Data encoding (molecule, hex, bigints) #Channels and payments · Sources (1) · 2026-10-14

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.