getRewardSummary
Ce contenu n’est pas encore disponible dans votre langue.
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.
Parameters
Section titled “Parameters”__namedParameters?
Section titled “__namedParameters?”merchantId?
Section titled “merchantId?”string
Returns
Section titled “Returns”Promise<RewardSummary | null>
The summary, or null without a client id, a key, a merchant, or on any failure