Get value by table and function
GET
/v1/stats/summary/{table}/{function}Modified at: 3 months ago
Returns string value by passed table and function.
Availiable tables
block
block_stats
tx
message
event
Availiable functions
sum
min
max
avg
count
Column
query parameter is required for functions sum
, min
, max
and avg
and should not pass for count
.
Availiable columns and functions for tables:
Block
height
-- min maxtime
-- min max
Block stats
height
-- min maxtime
-- min maxtx_count
-- min max sum avgevents_count
-- min max sum avgblobs_size
-- min max sum avgblock_time
-- min max sum avgsupply_chnge
-- min max sum avginflation_rate
-- min max avgfee
-- min max sum avg
Tx
height
-- min maxtime
-- min maxgas_wanted
-- min max sum avggas_used
-- min max sum avgtimeout_height
-- min max avgevents_count
-- min max sum avgmessages_count
-- min max sum avgfee
-- min max sum avg
Event
height
-- min maxtime
-- min max
Message
height
-- min maxtime
-- min max
Request
Path Params
table
string
required
Table name
Allowed values:
blockblock_statstxeventmessagevalidator
function
string
required
Function name
Allowed values:
minmaxavgsumcount
Query Params
column
string
optional
Column name which will be used for computation. Optional for count.
from
integer
optional
Time from in unix timestamp
to
integer
optional
Time to in unix timestamp
Request samples
Responses
OK(200)
Bad Request(400)
Internal Server Error(500)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
string
optional
Example
"string"
Modified at 3 months ago