Loyalty, rewards and memberships
Loyalty, rewards and memberships in the Carbium Library: 7 working Solana examples, among them Points resale detector and Campaign window spend qualifier.
- Points resale detector UC0142
Flag points that leave your holders' wallets: read a mint's transfers, name each receiving owner, and learn which token settings can block a move.
- Campaign window spend qualifier UC0141
Decide whether a wallet qualifies for a rewards window: count its successful transactions in the window, then read the SOL it spent.
- Member points statement UC0140
Build a member points statement from a points token: today's balance and the last 30 days of movements, read-only from Solana wallets.
- Holding period eligibility UC0135
Check which wallets kept an SPL token unchanged for N days: current balance plus each token account's newest movement, over Carbium RPC.
- Loyalty points liability tracker UC0051
Snapshot a rewards token's outstanding points, net out the issuer's own token accounts, price the liability and log each run to a local SQLite file.
- Soulbound badge verifier UC0050
Check that a Solana badge is soulbound: read its Token-2022 mint for the non-transferable extension, the issuer's powers and whether a wallet holds it.
- NFT membership gate UC0012
Gate access on an NFT in a Solana wallet: derive the token account, read it in one call, prove wallet control by signature, and keep access current.