---
updatedAt: 2025-06-18T11:50:24.000Z
agentTools:
  projectIndex: https://docs.stake.fish/llms.txt
---

# Get a list of rewards for a given stake account

Returns a list of rewards for a stake account. Rewards consist of both inflation & MEV rewards.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Solana API",
    "version": "1.0.0",
    "description": "This API facilitates the management of non-custodial Solana validators hosted by Stakefish. It equips users with essential tools and datapoints to manage a seamless staking experience at scale. Additionally, it provides historical rewards data for stake authorities."
  },
  "components": {
    "securitySchemes": {
      "apiKeyAuth": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "description": "API key required to authenticate the request, provided on the header in the format of `Authorization: <API key>`."
      }
    }
  },
  "paths": {
    "/rewards/stake-account/{stakeAccountPubkey}": {
      "get": {
        "summary": "Get a list of rewards for a given stake account",
        "tags": [
          "Rewards"
        ],
        "description": "Returns a list of rewards for a stake account. Rewards consist of both inflation & MEV rewards.",
        "parameters": [
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "from"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "query",
            "name": "to"
          },
          {
            "schema": {
              "type": "string"
            },
            "in": "path",
            "name": "stakeAccountPubkey",
            "required": true
          }
        ],
        "security": [
          {
            "apiKeyAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Historical rewards data for a delegator, including epoch-by-epoch rewards and cumulative totals. Contains a list of relevant epochs with their date ranges. All reward amounts are denominated in lamports (1 SOL = 1,000,000,000 lamports).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "totalItems": {
                      "type": "number"
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "epoch": {
                            "type": "object",
                            "properties": {
                              "epochNumber": {
                                "type": "number",
                                "description": "The epoch number on the Solana blockchain",
                                "example": 420
                              },
                              "startDate": {
                                "type": "string",
                                "description": "The start date of the epoch in ISO 8601 format",
                                "example": "2024-01-01T00:00:00.000Z"
                              },
                              "endDate": {
                                "type": "string",
                                "description": "The end date of the epoch in ISO 8601 format",
                                "example": "2024-01-02T00:00:00.000Z"
                              }
                            },
                            "required": [
                              "epochNumber",
                              "startDate",
                              "endDate"
                            ],
                            "description": "Epoch information object"
                          },
                          "stakeAccountPubkey": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Stake account public key",
                            "example": "BcLi2TY85bJSamsc9H32YNdwjxua5UhVwD2vYJ3qVFuC"
                          },
                          "inflationRewards": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Inflation rewards for this epoch after commission (lamports)",
                            "example": "87"
                          },
                          "cumulativeInflationRewards": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Total inflation rewards to date after commission (lamports)",
                            "example": "36540"
                          },
                          "cumulativeMevRewards": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Total MEV rewards to date after commission (lamports)",
                            "example": "235200"
                          },
                          "mevRewards": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "MEV rewards for this epoch after commission (lamports)",
                            "example": "560"
                          }
                        },
                        "required": [
                          "stakeAccountPubkey",
                          "inflationRewards",
                          "cumulativeInflationRewards",
                          "cumulativeMevRewards",
                          "mevRewards"
                        ]
                      }
                    }
                  },
                  "required": [
                    "totalItems",
                    "results"
                  ],
                  "example": {
                    "totalItems": 10,
                    "results": [
                      {
                        "epoch": {
                          "epochNumber": 420,
                          "startDate": "2024-01-01",
                          "endDate": "2024-01-02"
                        },
                        "stakeAccountPubkey": "BcLi2TY85bJSamsc9H32YNdwjxua5UhVwD2vYJ3qVFuC",
                        "inflationRewards": "87",
                        "cumulativeInflationRewards": "36540",
                        "cumulativeMevRewards": "235200",
                        "mevRewards": "560"
                      }
                    ]
                  },
                  "description": "Historical rewards data for a delegator, including epoch-by-epoch rewards and cumulative totals. Contains a list of relevant epochs with their date ranges. All reward amounts are denominated in lamports (1 SOL = 1,000,000,000 lamports)."
                }
              }
            }
          },
          "400": {
            "description": "Default Response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "example": "Invalid Base58 encoded Solana address"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.staging.stake.fish/v1/solana"
    },
    {
      "url": "https://api.stake.fish/v1/solana"
    }
  ],
  "tags": [
    {
      "name": "Rewards",
      "description": "Endpoints related to rewards - APR, rewards per epoch, etc."
    }
  ]
}
```