All lessons · CCC (TypeScript SDK) · Start here · Glossary
CCC EVM signer exposes several lock addresses via getAddressObjsWorkingChecked by the owner
Checked by the owner · Check: right · Checked 2026-11-19
A CCC signer for MetaMask can control more than one CKB lock (Omnilock addresses and the legacy PW-lock address used by Portal Wallet), and getRecommendedAddressObj returns only one of them. When assets such as Nervos DAO deposits may sit under any of them, call signer.getAddressObjs(), dedupe by script hash and check each, rather than assuming the recommended address holds the funds.
Why it matters: A MetaMask user whose Nervos DAO deposit sits under the legacy PW-lock (Portal Wallet) address or the other Omnilock address would appear to hold nothing, because only the recommended address is read.
Pattern
const all = await signer.getAddressObjs().catch(() => [first]);Taken from the commit, shortened.
- Concepts
- Indexer queries and cell collection, Login and authorization
- Evidence
- Checked by the owner: checked by the owner of the project it came from, who is also the publisher of these lessons
- First seen
- 2026-11-06
- Last changed
- 2026-11-06
- Last checked
- 2026-11-19
- Check against the commit
- right: the lesson follows from its commit and still holds in the code today
Sources (1)
- 2026-11-06 · LusoCryptoLabs/ckb-ward · more from this project
More about CCC (TypeScript SDK)
- CCC 2.3 ccc-connector fires close before the connection event
- Use findCellsOnChain, not findCells, for block range queries in CCC
- Clear the CCC client cache after a sent transaction loses a double spend race
Checked by @LusoCryptoLabs (owner of the project), 2026-11-19.
Do you maintain a project this lesson came from? Confirm or correct it
Cite this lesson
LusoCryptoLabs, "CCC EVM signer exposes several lock addresses via getAddressObjs", CKB lessons, https://pulse.lusocryptolabs.com/learned/ccc/ccc-evm-signer-exposes-several-lock-addresses-via-getaddress, CC BY 4.0, last changed 2026-11-06.