> ## 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 stake account rewards with addReward() — filter by reward type for indexing staking and inflation flows.

#### `addReward(options)`

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 public keys of reward receivers. Leave undefined to subscribe to all rewards.

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