# getRewardSummary

> **getRewardSummary**(`__namedParameters?`): `Promise`\<[`RewardSummary`](/developers/references/core-sdk/index/type-aliases/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

### \_\_namedParameters?

#### merchantId?

`string`

## Returns

`Promise`\<[`RewardSummary`](/developers/references/core-sdk/index/type-aliases/rewardsummary/) \| `null`\>

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