get_fee_rate_statics - Nervos

Returns the fee_rate statistics of confirmed blocks on the chain.

Parameters

  • target - Specify the number (1 - 101) of confirmed blocks to be counted. If the number is even, automatically add one. If not specified, defaults to 21.

Returns

  • If the query has data records, it returns statistics, if not, it returns null.

Example

Request

{
  "id": 42,
  "jsonrpc": "2.0",
  "method": "get_fee_rate_statics",
  "params": []
}

Result

{
  "id": 42,
  "jsonrpc": "2.0",
  "result": {
    "mean":59.29387293275573,
    "median":5.288207297726071
   }
}
Language
Click Try It! to start a request and see the response here!