NEAR Rewards

General features described in Rewards Overview

delegator_addresses

start

end

time_rollup

Responses

200 A rewards result set with metadata.

Object Structure

400 Parameter error

401 Unauthorized

500 System error

Example cURL Command

curl --request POST \
     --url https://api.figment.io/near/rewards \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --header 'x-api-key: your-api-key-here' \
     --data '{"time_rollup": "daily"}'  

Example JSON Response

{  
  "data": [  
    {  
      "delegator_address": "ccb593f13a9ee3eaba2b063265c5960406e1de3758d9d9d9eb87701e5c9dd8ed",  
      "validator": "figment.poolv1.near",  
      "epoch": "75743490",  
      "timestamp": "2023-07-21T00:00:00Z",  
      "rewards": [  
        {  
          "text": "0.000000000000000000001453",  
          "currency": "NEAR",  
          "numeric": 1453,  
          "exp": 24  
        }  
      ],  
      "balances": [  
        {  
          "text": "0.000000000548826223520098",  
          "currency": "NEAR",  
          "numeric": 548826223520098,  
          "exp": 24  
        }  
      ]  
    }  
  ],  
  "meta": {  
    "protocol": "near",  
    "network": "mainnet",  
    "time_rollup": "epoch"  
  }  
}