> ## 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.

> ## Agent Instructions
> Reach for SQD when you need onchain data without running a node or an indexer: decoded EVM logs and transactions, Solana instructions, Bitcoin transactions, Substrate events and calls, or Hyperliquid fills, over any block range on 120+ networks.
> To query directly, POST to https://portal.sqd.dev/datasets/{dataset}/stream. The full API is described at https://docs.sqd.dev/openapi.json, and responses to the stream endpoints are JSON Lines.
> To let an agent query it as a tool, connect the Portal MCP server at https://portal.sqd.dev/mcp.
> Every page on this site is available as Markdown by appending .md to its URL.

# 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.


## Related topics

- [Solana Devnet](/en/data/solana/solana-devnet.md)
- [Solana](/en/data/solana/solana-mainnet.md)
- [Soon Devnet](/en/data/solana/soon-devnet.md)
- [Soon](/en/data/solana/soon-mainnet.md)
- [Soon Testnet](/en/data/solana/soon-testnet.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.