从这里开始 · 术语表 · 自测 · 订阅
经验用英文撰写,请用英文搜索。
salmansarwarr/Kirea-finance ✕
来自 salmansarwarr/Kirea-finance 的经验
github.com/salmansarwarr/Kirea-finance
你维护这个项目吗? 在一个 issue 中确认它的经验
找到 3 条经验。 全部经验
To show a CKB address balance, convert the address to a lock script (ckb-sdk-utils addressToScript returns camelCase codeHash/hashType) and pass it to the indexer RPC get_cells_capacity with snake_case fields (code_hash, hash_type, args) and script_type "lock". The returned capacity is a hex shannon string, so parse it with BigInt and divide by 10^8 for CKB.
#Indexer queries and cell collection #Data encoding (molecule, hex, bigints) · 来源(1) · 2026-10-15
To check that a Script points at a given deployed code Cell, compare its code_hash with ckb blake2b256 of the Cell's output data when hash_type is data, data1 or data2 (0, 2, 4), and with the hash of that Cell's Type Script when hash_type is type (1). A type selection needs the code Cell to actually carry a Type Script, and other hash_type values are rejected.
#Cell deps and script lookup #Data encoding (molecule, hex, bigints) · 来源(2) · 2026-10-09
When a CCC transaction has inputs locked by several secp256k1 signers but the fee is paid by one, call tx.prepareSighashAllWitness(coSignerLock, 65, client) for each co-signer before tx.completeFeeBy(payer, feeRate). Otherwise the fee is estimated without their signature witnesses and may come out short. Each co-signer must own at least one input to have a script group to sign.
#Transaction building and fees #Witnesses and signatures · 来源(1) · 2026-10-06
文本采用 CC BY 4.0:请署名 LusoCryptoLabs, CKB lessons,并附上经验的链接。 JSON · 想修改或撤下某条经验?请提交 issue。