governance_getRewardsAccumulated
Returns the accumulated block rewards distribution in the given block number range. This is essentially a sum of kaia_getRewards outputs.
NOTE: Prior to Kaia v2.0.0, the firstBlockTime and lastBlockTime fields were human-readable time string. In Kaia v2.0.0 or later, the fields are unix timestamps.
JSONRPC: governance_getRewardsAccumulated
Request
- application/json
Body
Array [
- firstBlock
- lastBlock
]
params
object[]
required
Integer of a block number.
anyOf
the block number with type integer
number
the block number with type integer
number
Responses
- 200
Returns the accumulated reward distribution details.
- application/json
- Schema
- Example (from schema)
Schema
error
object
A Number that indicates the error type that occurred. This MUST be an integer.
code | message | description |
---|---|---|
-32700 | Parse error | invalid JSON was received by the server. An error occurred on the server while parsing the JSON text. |
-32602 | Invalid params | Invalid method parameter(s). |
A String providing a short description of the error. The message SHOULD be limited to a concise single sentence.
A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.).
result
object
Accumulated reward information in a given block range
{
"jsonrpc": "2.0",
"id": 0,
"error": {
"code": -32700,
"message": "Parse error",
"data": "string"
},
"result": {
"firstBlockTime": 1561547992,
"lastBlockTime": 1561548008,
"firstBlock": 4096,
"lastBlock": 4112,
"totalMinted": 163200000000000000000,
"totalTxFee": 0,
"totalBurntTxFee": 0,
"totalProposerRewards": 163200000000000000000,
"totalStakingRewards": 0,
"totalKIFRewards": 0,
"totalKEFRewards": 0,
"rewards": {
"0x571e53df607be97431a5bbefca1dffe5aef56f4d": 38400000000000000000,
"0x5cb1a7dccbd0dc446e3640898ede8820368554c8": 48000000000000000000,
"0x99fb17d324fa0e07f23b49d09028ac0919414db6": 38400000000000000000,
"0xb74ff9dea397fe9e231df545eb53fe2adf776cb2": 38400000000000000000
}
}
}