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_id uint64 | Unique row identifier. | 
height int64 | Block height the current row refers to. | 
cycle int64 | Cycle the current row refers to. | 
time datetime | Block time in UNIX milliseconds the current row refers to. | 
total_accounts int64 | Total count of existing funded & non-funded accounts. | 
total_contracts int64 | Total count of deployed smart contracts. | 
total_rollups int64 | Total count of deployed rollups. | 
total_ops int64 | Total count of on-chain operations. | 
total_ops_failed int6 | Total count of failed on-chain ops. | 
total_contract_ops int64 | Total count of smart contract calls (sent to or originated from contracts). | 
total_contract_calls int64 | Total number of on-chain calls to KT1 contracts sent by EOAs. | 
total_rollup_calls int64 | Total number of rollup calls. | 
total_activations int64 | Total count of activate_account operations. | 
total_nonce_revelations int64 | Total count of nonce_revelation operations. | 
total_endorsements int64 | Total count of endorsement operations. | 
total_preendorsements int64 | Total count of preendorsement operations. | 
total_double_bakings int64 | Total count of double_baking_evidence operations. | 
total_double_endorsements int64 | Total count of double_endorsement_evidence operations. | 
total_delegations int64 | Total count of delegation operations. | 
total_reveals int64 | Total count of reveal operations. | 
total_originations int64 | Total count of origination operations. | 
total_transactions int64 | Total count of transaction operations. | 
total_proposals int64 | Total count of proposals operations. | 
total_ballots int64 | Total count of ballot operations. | 
total_constants int64 | Total count of register_global_constant operations. | 
total_set_limits int64 | Total count of set_deposits_limit operations. | 
total_storage_bytes int64 | Total count of storage bytes allocated. | 
total_ticket_transfers int64 | Total count of transfer_ticket operations. | 
funded_accounts int64 | Current number of funded accounts. | 
dust_accounts int64 | Current number of dust accounts (0 < balance < 1tez). | 
ghost_accounts int64 | Current number of unfunded token holder accounts. | 
unclaimed_accounts int64 | Current number of unclaimed fundraiser accounts. | 
total_delegators int64 | Current number of non-zero delegators. | 
active_delegators int64 | Current number of non-zero delegators who delegate to an active delegate. | 
inactive_delegators int64 | Total count of non-zero delegators who delegate to an inactive delegate. | 
dust_delegators int64 | Total count of dust delegators. | 
total_bakers int64 | Current number of registered bakers (active and inactive). | 
eligible_bakers int64 | Current number of bakers above minimal stake. | 
active_bakers int64 | Current number of active bakers. | 
inactive_bakers int64 | Current number of Current number of inactive bakers (note: inactive bakers can still have future rights, but won't get any new rights). | 
zero_bakers int64 | Current number of active bakers with zero staking balance. | 
self_bakers int64 | Current number of active bakers who self-bake only and have no incoming delegations. | 
single_bakers int64 | Current number of active bakers who potentially self-bake and have only a single incoming delegation. | 
multi_bakers int64 | Current number of bakers (potentially staking services) who have more than 1 incoming delegation. | 
total_stakers int64 | Total number of all current stakers. | 
active_stakers int64 | Current number of stakers with active bakers. | 
inactive_stakers int64 | 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)
}