Chain Table
GET /tables/chain?args
List running totals of network-wide statistics. This table is updated at each block.
- Schema
- Response
- Example
| Field | Description | 
|---|---|
| row_iduint64 | Unique row identifier. | 
| heightint64 | Block height the current row refers to. | 
| cycleint64 | Cycle the current row refers to. | 
| timedatetime | Block time in UNIX milliseconds the current row refers to. | 
| total_accountsint64 | Total count of existing funded & non-funded accounts. | 
| total_contractsint64 | Total count of deployed smart contracts. | 
| total_rollupsint64 | Total count of deployed rollups. | 
| total_opsint64 | Total count of on-chain operations. | 
| total_ops_failedint6 | Total count of failed on-chain ops. | 
| total_contract_opsint64 | Total count of smart contract calls (sent to or originated from contracts). | 
| total_contract_callsint64 | Total number of on-chain calls to KT1 contracts sent by EOAs. | 
| total_rollup_callsint64 | Total number of rollup calls. | 
| total_activationsint64 | Total count of activate_accountoperations. | 
| total_nonce_revelationsint64 | Total count of nonce_revelationoperations. | 
| total_endorsementsint64 | Total count of endorsementoperations. | 
| total_preendorsementsint64 | Total count of preendorsementoperations. | 
| total_double_bakingsint64 | Total count of double_baking_evidenceoperations. | 
| total_double_endorsementsint64 | Total count of double_endorsement_evidenceoperations. | 
| total_delegationsint64 | Total count of delegationoperations. | 
| total_revealsint64 | Total count of revealoperations. | 
| total_originationsint64 | Total count of originationoperations. | 
| total_transactionsint64 | Total count of transactionoperations. | 
| total_proposalsint64 | Total count of proposalsoperations. | 
| total_ballotsint64 | Total count of ballotoperations. | 
| total_constantsint64 | Total count of register_global_constantoperations. | 
| total_set_limitsint64 | Total count of set_deposits_limitoperations. | 
| total_storage_bytesint64 | Total count of storage bytes allocated. | 
| total_ticket_transfersint64 | Total count of transfer_ticketoperations. | 
| funded_accountsint64 | Current number of funded accounts. | 
| dust_accountsint64 | Current number of dust accounts (0 < balance < 1tez). | 
| ghost_accountsint64 | Current number of unfunded token holder accounts. | 
| unclaimed_accountsint64 | Current number of unclaimed fundraiser accounts. | 
| total_delegatorsint64 | Current number of non-zero delegators. | 
| active_delegatorsint64 | Current number of non-zero delegators who delegate to an active delegate. | 
| inactive_delegatorsint64 | Total count of non-zero delegators who delegate to an inactive delegate. | 
| dust_delegatorsint64 | Total count of dust delegators. | 
| total_bakersint64 | Current number of registered bakers (active and inactive). | 
| eligible_bakersint64 | Current number of bakers above minimal stake. | 
| active_bakersint64 | Current number of active bakers. | 
| inactive_bakersint64 | Current number of Current number of inactive bakers (note: inactive bakers can still have future rights, but won't get any new rights). | 
| zero_bakersint64 | Current number of active bakers with zero staking balance. | 
| self_bakersint64 | Current number of active bakers who self-bake only and have no incoming delegations. | 
| single_bakersint64 | Current number of active bakers who potentially self-bake and have only a single incoming delegation. | 
| multi_bakersint64 | Current number of bakers (potentially staking services) who have more than 1 incoming delegation. | 
| total_stakersint64 | Total number of all current stakers. | 
| active_stakersint64 | Current number of stakers with active bakers. | 
| inactive_stakersint64 | Current number of stakers with inactive bakers. | 
[
  [
    5020671,       // row_id
    5020670,       // height
    699,           // cycle
    1706716904000, // time
    4961994,       // total_accounts
    192001,        // total_contracts
    11,            // total_rollups
    891781108,     // total_ops
    6215711,       // total_ops_failed
    128183776,     // total_contract_ops
    67723734,      // total_contract_calls
    9861,          // total_rollup_calls
    27055,         // total_activations
    88889,         // total_nonce_revelations
    684231575,     // total_endorsements
    256110,        // total_preendorsements
    154,           // total_double_bakings
    24,            // total_double_endorsements
    664164,        // total_delegations
    1913427,       // total_reveals
    218810,        // total_originations
    204359152,     // total_transactions
    2005,          // total_proposals
    5645,          // total_ballots
    15,            // total_constants
    962,           // total_set_limits
    5016676451,    // total_storage_bytes
    3972,          // total_ticket_transfers
    2560629,       // funded_accounts
    848467,        // dust_accounts
    2078114,       // ghost_accounts
    4502,          // unclaimed_accounts
    217039,        // total_delegators
    183370,        // active_delegators
    33669,         // inactive_delegators
    16228,         // dust_delegators
    3402,          // total_bakers
    373,           // eligible_bakers
    401,           // active_bakers
    3001,          // inactive_bakers
    0,             // zero_bakers
    33,            // self_bakers
    39,            // single_bakers
    329,           // multi_bakers
    03402,         // total_stakers
    0,             // active_stakers
    0              // inactive_stakers
  ]
]
curl "https://api.tzpro.io/tables/chain?time.gte=today&limit=1"
import (
  "context"
  "github.com/trilitech/tzpro-go/tzpro"
)
// create a new query object
q := tzpro.DefaultClient.Explorer.NewQuery()
// add filters and configure the query
q.WithFilter(tzpro.FilterModeGte, "time", "today").WithLimit(1)
// execute the query
list, err := q.Run(context.Background())
// access that chain status
if list.Len() == 1 {
    fmt.Println(list.Rows[0].TotalAccounts)
}