eth_getEpochStats

Returns the latest epoch statistics

Parameters

String- only support "latest" for now.

Returns

Object - An epoch object, or null when no event was found:

  • epoch - QUANTITY - the number of the latest sealed epoch.

  • start - QUANTITY - the Unix timestamp for when the epoch was start.

  • end - QUANTITY - the Unix timestamp for when the epoch was end.

  • totalBaseRewardWeight - QUANTITY - total base staking reward weight cost in the epoch.

  • totalFee - QUANTITY - total transaction fee cost in the epoch.

  • totalTxRewardWeight - QUANTITY - total transaction fee reward weight in the epoch.

Example

Request

curl --location 'https://rpc-mainnet.u2u.xyz' \
--header 'Content-Type: application/json' \
--data '{
 "jsonrpc":"2.0",
 "method":"eth_getEpochStats",
 "params":[
        "latest"
    ],
 "id":83
}'

Result

{
    "jsonrpc": "2.0",
    "id": 83,
    "result": {
        "end": "0x1847958b65e4c2b4",
        "epoch": "0x21499",
        "start": "0x1847952948baae5c",
        "totalBaseRewardWeight": "0x0",
        "totalFee": "0x0",
        "totalTxRewardWeight": "0x0"
    }
}

Last updated