/ Getting Started

Example: Whitelist (CX300 RWA)

Whitelist = only approved addresses may send or receive. Green Chain's CX300 real-world asset pattern uses a mapping whitelist: address => bool plus custodian/owner-gated updates. It is usually paired with an on-chain KYC commitment (kycHashes) - see Example: KYC (On-Chain Hash) (Examples #4) before reading this page.

Full reference implementation: examples/CX300RWAToken.cxs in the cx3script package (asset + @CX300, @auditable, @ISO14064) - the snippet below is faithful to that file's naming (amount, event WhitelistUpdated(addr, status)).

Scope note: @ISO14064 is a metadata tag for reporting workflows. It is not an ISO-issued record, accredited verification, legal opinion or authority approval by itself. Naming note: the deploy wizard's CX300 template (Example: CX300 RWA (Deploy)) implements the same "whitelist-gated ownership" idea with addToWhitelist(account, invType) / removeFromWhitelist(account), events InvestorWhitelisted / InvestorRemoved, holdings in balances and a canTransfer(from, to) check. The sample below is a smaller, separate implementation of the pattern.