> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sqd.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Rewards

> Track Solana validator and staking rewards with addReward(): filter by receiver pubkey.

<h4 id="add-reward">
  `addReward(options)`
</h4>

This allows for tracking rewards. `options` has the following structure:

```typescript theme={"system"}
{
  // data requests
  where?: {
    pubkey?: string[]
  }

  range?: {
    from: number
    to?: number
  }
}
```

`pubkey` here is the set of public keys of reward receivers. Leave undefined to subscribe to all rewards. This data request has no related data retrieval flags.

Selection of the exact fields to be retrieved for each reward item is done with the `setFields()` method documented on the [Field selection](./field-selection) page.
