CKB Pulse

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

Prefer
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)

More about CCC (TypeScript SDK)

All 33 in this topic

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.

Drawn from public commits and checked against the commit each one came from and the project's code today. Read the source before you rely on one. Text under CC BY 4.0: credit LusoCryptoLabs, CKB lessons, with a link to the lesson. Want a lesson changed or removed? Open an issue.