getInflationReward
Returns the inflation / staking reward for a list of addresses for an epoch.
https://api.1inch.com/web3/501
Supported on: Solana
Request
Request
object jsonrpc
* string (Enum)JSON-RPC version
2.0
method
* string The method to call
params
array Method parameters
items
any id
* number Request ID
JavaScript
Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const response = await fetch('https://api.1inch.com/web3/501', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Authorization: `Bearer ${API_KEY}`,
},
body: JSON.stringify({
jsonrpc: '2.0',
method: 'getInflationReward',
params: [],
id: 1,
}),
});
const data = await response.json();
console.log(data);
Response
Inflation Reward Response
Inflation Reward Response
array items
any oneOf[0]
null oneOf[1]
object epoch
* integer Epoch for which reward was calculated
effectiveSlot
* integer Slot in which the rewards are effective
amount
* integer Reward amount in lamports
postBalance
* integer Account balance in lamports after applying reward
commission
integer Vote account commission when the reward was credited (optional)
additionalProperties
none JSON
Copy
1
2
3
4
5
6
7
8
9
10
[
{
"epoch": 2,
"effectiveSlot": 224,
"amount": 2500,
"postBalance": 499999442500
},
null
]