Documentation
TOOLING

TypeScript Client SDK

PointPass ships with client helper functions that resolve PDA seeds, find Associated Token Accounts, and construct Anchor transactions.

AWARD POINTS CPI
import { awardPoints, getProgram } from "@/lib";

const txSig = await awardPoints(
  program,
  merchantWallet.publicKey,
  customerPubkey,
  50 // 50 loyalty points
);
REDEEM POINTS & RECEIPT PDA
import { redeemPoints } from "@/lib";

const txSig = await redeemPoints(
  program,
  customerWallet.publicKey,
  merchantPubkey
);
TERMINAL

Test Customer Loyalty Pass

Open Customer Portal >