Rewards API
Learn how to use the Rewards API on Cosmos
Test out our Rewards API today with DataHub!
get
https://cosmos--search.datahub.figment.io/rewards
rewards

Example Request

1
/rewards?network=cosmos&start_time=2021-04-01T02:00:00.00Z&chain_id=cosmoshub-4&end_time=2021-04-05T02:00:00.00Z&account=cosmos13axkauxjxulmvjyskppf8kxec56fyl96njm8qq&validators=cosmosvaloper1lzhlnpahvznwfv4jmay2tgaha5kmz5qxerarrl
Copied!

Example Response

1
[{
2
"start": 5699521,
3
"end": 5711391,
4
"time": "2021-04-01T02:00:00Z",
5
"validator": "cosmosvaloper1lzhlnpahvznwfv4jmay2tgaha5kmz5qxerarrl",
6
"rewards": [{
7
"text": "14485183.076655587945uatom",
8
"currency": "uatom",
9
"numeric": 14485183076655587945173239,
10
"exp": 18
11
}]
12
}, {
13
"start": 5711391,
14
"end": 5723284,
15
"time": "2021-04-02T02:00:00Z",
16
"validator": "cosmosvaloper1lzhlnpahvznwfv4jmay2tgaha5kmz5qxerarrl",
17
"rewards": [{
18
"text": "14524615.642913129133uatom",
19
"currency": "uatom",
20
"numeric": 14524615642913129133835499,
21
"exp": 18
22
}]
23
}, {
24
"start": 5723284,
25
"end": 5735178,
26
"time": "2021-04-03T02:00:00Z",
27
"validator": "cosmosvaloper1lzhlnpahvznwfv4jmay2tgaha5kmz5qxerarrl",
28
"rewards": [{
29
"text": "14554430.583334477875uatom",
30
"currency": "uatom",
31
"numeric": 14554430583334477874950230,
32
"exp": 18
33
}]
34
}, {
35
"start": 5735178,
36
"end": 5747087,
37
"time": "2021-04-04T02:00:00Z",
38
"validator": "cosmosvaloper1lzhlnpahvznwfv4jmay2tgaha5kmz5qxerarrl",
39
"rewards": [{
40
"text": "14582108.999563571208uatom",
41
"currency": "uatom",
42
"numeric": 14582108999563571207321173,
43
"exp": 18
44
}]
45
}]
Copied!
If you need help with this API or simply want to share with other builders, you can join our community today!