CKB Pulse
经验

CKB 学到了什么

从这里开始 · 术语表 · 自测 · 订阅

经验用英文撰写,请用英文搜索。

toastmanAu/cemp-mobile

来自 toastmanAu/cemp-mobile 的经验

github.com/toastmanAu/cemp-mobile

你维护这个项目吗? 在一个 issue 中确认它的经验

找到 1 条经验。 全部经验

Count only empty, typeless lock cells as spendable balance实践来自一次修复

When computing a wallet's spendable balance from indexer cells under a lock, count only cells with empty output data and no type script as available. A cell with data or any type script (UDT, DOB, profile or attachment cells, not just your own type) holds state, so its capacity stays in the total but is reported as reserved, because spending it would destroy that state. In cemp-mobile this is `const hasData = cell.data !== "0x" && cell.data !== ""; const isProtocol = hasData || type !== null;`.

#Indexer queries and cell collection #Capacity and cell size · 来源(1) · 2026-10-31

文本采用 CC BY 4.0:请署名 LusoCryptoLabs, CKB lessons,并附上经验的链接。 JSON · 想修改或撤下某条经验?请提交 issue。