Celenium API Docs
PlansExplorer
PlansExplorer
  1. Stats
  • Introduction
  • Celenium API
    • Address
      • Get addresses
      • Get count of addresses in network
      • Get address info
      • Get blobs pushed by address
      • Get delegations made by address
      • Get grants where address is grantee
      • Get grants made by address
      • Get address messages
      • Get redelegations made by address
      • Get address stats
      • Get address transactions
      • Get undelegations made by address
      • Get vesting for address
    • Namespace
      • List all blobs with filters
      • Get namespace blob by commitment on height
      • Get blob metadata by commitment on height
      • Get namespaces
      • Get namespace info
      • Get namespace info by id and version
      • Get blob metadata for namespace
      • Get namespace messages by id and version
      • List rollups using the namespace
      • Get namespace info by base64
      • Get namespace blobs on height
    • Block
      • Get blocks
      • Get count of blocks in network
      • Get block info
      • List blobs which was pushed in the block
      • Count of blobs which was pushed in block
      • Get events from begin and end of block
      • Get messages contained in the block
      • ODS for block
      • Get block stats by height
    • General
      • Get network constants
      • Get celenium enumerators
      • Get current indexer head
    • Gas
      • Get estimated gas for pay for blob
      • Get estimated gas price
    • Rollup
      • Get rollups
      • Get count of rollups in network
      • Get rollup by slug
      • Get rollup info
      • Get rollup blobs
      • Get rollup distribution
      • Export rollup blobs
      • Get rollup namespaces info
      • Get rollup stats
    • Search
      • Search by hash
    • Stats
      • Get histogram for namespace with precomputed stats
        GET
      • Get namespaces with sorting by size.
        GET
      • Get current TIA price
        GET
      • Get histogram with TIA price
        GET
      • Get histogram with precomputed stats
        GET
      • Get cumulative histogram with precomputed stats​
        GET
      • Get histogram for staking with precomputed stats
        GET
      • Get value by table and function
        GET
      • Get tps
        GET
    • Transactions
      • Get transactions
      • Get count of transactions in network
      • List genesis transactions info
      • Get transaction by hash
      • List blobs which was pushed by transaction
      • Count of blobs which was pushed by transaction
      • Get transaction events
      • Get transaction messages
    • Validator
      • Get validators
      • Get validator's count by status
      • Get validator info
      • Get blocks which was proposed by validator
      • Get validator's delegators
      • Get validator's jails
      • Get validator's uptime and history of signed block
    • Vesting
      • Periods vesting periods by id
    • Websocket
      • Websocket API
  1. Stats

Get value by table and function

Mainnet
https://api-mainnet.celenium.io
Mainnet
https://api-mainnet.celenium.io
GET
https://api-mainnet.celenium.io
/v1/stats/summary/{table}/{function}
stats
Last modified:2024-09-28 11:56:13
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 max
time -- min max

Block stats#

height -- min max
time -- min max
tx_count -- min max sum avg
events_count -- min max sum avg
blobs_size -- min max sum avg
block_time -- min max sum avg
supply_chnge -- min max sum avg
inflation_rate -- min max avg
fee -- min max sum avg

Tx#

height -- min max
time -- min max
gas_wanted -- min max sum avg
gas_used -- min max sum avg
timeout_height -- min max avg
events_count -- min max sum avg
messages_count -- min max sum avg
fee -- min max sum avg

Event#

height -- min max
time -- min max

Message#

height -- min max
time -- min max

Request

Authorization
Add parameter in header
apiKey
Example:
apiKey: ********************
Path Params
table
enum<string> 
required
Table name
Allowed values:
blockblock_statstxeventmessagevalidator
Example:
block_stats
function
enum<string> 
required
Function name
Allowed values:
minmaxavgsumcount
Example:
sum
Query Params
column
string 
optional
Column name which will be used for computation. Optional for count.
Example:
tx_count
from
integer 
optional
Time from in unix timestamp
Example:
1727523000
to
integer 
optional
Time to in unix timestamp
Example:
1727524000

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api-mainnet.celenium.io/v1/stats/summary/block_stats/sum?column=tx_count&from=1727523000&to=1727524000' \
--header 'apiKey;'

Responses

🟢200OK
application/json
Body
string 
optional
Example
"string"
🟠400Bad Request
🔴500Internal Server Error
Modified at 2024-09-28 11:56:13
Previous
Get histogram for staking with precomputed stats
Next
Get tps
Built with