Rewards
Returns rewards (protocol and MEV) and balances for all stake accounts.
Rewards are "net", aka after onchain validator commission.
The response payload is broken down by epoch and staking account.
Max 50 accounts per request.
General feature described in Rewards Overview
Search by stake account
Search by stake authority
Search by withdraw authority
Search by groups
Response Format
``200 A rewards result set with metadata.
object
- data
- array of objects
- data
- object
- stake_account (string): Returns the stake account that received the rewards.
- validator (string): Returns the validator that distributed the rewards.
- stake_authority (string): Returns the stake authority of the stake account.
- withdraw_authority (string): Returns the withdraw authority of the stake account.
- epoch (string): The epoch number. Only available on epoch time_rollup.
- timestamp (string): The timestamp at the end of the epoch.
- rewards (array of objects):
- rewards (object):
- text (string): The textual version of the other fields in the rewards object.
- currency (string)
- numeric (integer)
- exp (integer)
- type (string): The type of reward. Either "mev" or "protocol"
- rewards (object):
- balances (array of objects):
- balances (object):
- text (string): The textual version of the other fields in the rewards object.
- currency (string)
- numeric (integer)
- exp (integer)
- balances (object):
- meta (object):
- protocol (string): The name of the protocol queried.
- network (string): The name of the network queried.
- time_rollup (string): The unit of the rollup.
- object
Example Request
curl --request POST \
--url https://api.figment.io/solana/rewards \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-api-key: your-api-key-here'
Example Response
{
"data": [
{
"stake_account": "2yoofMr4N78WPxVK8MU8Yy26dfRZbPw5WDzTRCA9uv95",
"rewards": [
{
"text": "0.001390828",
"currency": "SOL",
"numeric": 1390828,
"exp": 9,
"type": "protocol"
},
{
"text": "0.000220507",
"currency": "SOL",
"numeric": 220507,
"exp": 9,
"type": "mev"
}
],
"balances": [
{
"text": "3.340325069",
"currency": "SOL",
"numeric": 3340325069,
"exp": 9
}
],
"epoch": 584,
"timestamp": "2024-03-07T18:42:36Z",
"validator": "CcaHc2L43ZWjwCHART3oZoJvHLAe9hzT2DJNUpBzoTN1",
"stake_authority": "EToJFrGakntRnwL8LLikLgXoAfBjgwYhwwYvfVRcrgLL",
"withdraw_authority": "EToJFrGakntRnwL8LLikLgXoAfBjgwYhwwYvfVRcrgLL"
}
],
"meta": {
"protocol": "solana",
"network": "mainnet",
"time_rollup": "epoch"
}
}