Skip to content

getRewardSummary

getRewardSummary(__namedParameters?): Promise<RewardSummary | null>

Defined in: actions/getRewardSummary.ts:30

Fetch what the current visitor earned at this merchant: pending rewards, their deadline, and whether their identity is already linked to a Frak wallet.

Signs a frak-rewards-v1 proof with this page’s own key: the client id is public (every share link carries it), so it never reads rewards on its own.

string

Promise<RewardSummary | null>

The summary, or null without a client id, a key, a merchant, or on any failure