On ThorNode
Forwarded to the upstream node with a 10 s timeout and one retry on a transport error. Needs the first block of the requested epoch. On the current upstream that block is usually outside the retained ledger window (seegetFirstAvailableBlock), so the call returns -32603 upstream returned an invalid response. Use an archival provider for historical rewards.
Parameters
List of Solana addresses (validators or delegators) to retrieve staking rewards for, as base-58 encoded strings.
Specific Solana epoch number to retrieve rewards for. If omitted, returns the most recently distributed rewards.
Response
Array of detailed staking reward information for each requested account, in the same order as requested.