Blocks
GET /explorer/block/{hash|height|head}
Fetches information about the specified block. Takes either a block hash
, a block height
or the string head
as argument. Use meta
(boolean) to embed optional account metadata and rights
to embed information about baking and endorsing rights as well as their status.
- Schema
- Response
- Example
Field | Description |
---|---|
hash hash | Block hash. |
predecessor hash | Parent block on canonical chain or orphan side-chain. |
successor hash | Child block on canonical chain or orphan side-chain. |
protocol hash | Active protocol. |
baker hash | Baker address. |
proposer hash | Payload proposer address. Ithaca+ |
baker_consensus_key hash | Baker key (address) used to sign this block. Lima+ |
proposer_consensus_key hash | Baker key (address) to sign the payload. Lima+ |
height int64 | Block height (a.k.a level). |
cycle int64 | Cycle |
is_cycle_snapshot bool | True if this block has been selected as snapshot. |
time datetime | Block creation time. |
solvetime duration | Time since last block in seconds. |
version int64 | Protocol version. |
round int64 | Baking priority (fitness pre Ithaca, Tenderbake round post Ithaca). |
nonce uint64 | Block nonce, part of this nonce is the baker software version Git hash. |
voting_period_kind enum | Current voting period proposal , exploration , cooldown , promotion , adoption . |
n_endorsed_slots int64 | Count of endorsed slots. (Note this field will be set from endorsements published in the subsequent block.) |
n_ops_applied int64 | Count of operations contained in this block. |
n_ops_failed int64 | Count of failed operations. |
n_calls int64 | Count of smart contract calls from externally owned accounts (transactions sent to contracts without internal operations sent between contracts). |
n_rollup_calls int64 | Count of rollup operations. |
n_events int64 | Count of implicit events, ie. operations and state changes that don't have an operation hash such as bake , unfreeze , seed_slash , airdrop and invoice . |
n_tx int64 | Count of transaction operations. |
n_tickets int64 | Count of ticket updates. |
volume money | Total amount of tokens moved between accounts. |
fee money | Total fee paid (and frozen) by all operations. |
reward money | Reward earned (and frozen) by the block baker. |
deposit money | Deposit frozen by the block baker. |
activated_supply money | Total amount of commitments activated in tez. |
minted_supply money | Total amount of new tokens minted by events and operations in tez. |
burned_supply money | Total amount of tokens burned by operations in tez. |
n_accounts int64 | Count of accounts seen in this block (i.e. this includes all operation senders, receivers, delegates and the block's baker). |
n_new_accounts int64 | Count of new accounts created regardless of type. |
n_new_contracts int64 | Count of created smart contracts (KT1 with code). |
n_cleared_accounts int64 | Count of accounts that were emptied (final balance = 0). |
n_funded_accounts int64 | Count of accounts that were funded by operations (this includes all new accounts plus previously cleared accounts that were funded again). |
gas_limit int64 | Total gas limit defined by operations. |
gas_used int64 | Total gas consumed by operations. |
storage_paid int64 | Total sum of new storage allocated by operations. |
pct_account_reuse float | Portion of seen accounts that existed before. |
lb_vote emum | Granada+ liquidity baking vote flag. |
lb_ema int64 | Granada+ liquidity baking vote moving average. |
ai_vote enum | Oxford+ adaptive issuance vote flag. |
ai_ema int64 | Oxford+ adaptive issuance vote moving average. |
metadata object | Optional account metadata for baker and endorsers, missing when no metadata is available. Endorser metadata is only embedded when rights arg is also set. |
rights array | List of endorsing (all slots) and baking rights (all priorities up to block priority) including owner and status. |
{
"hash": "BKrPhXCfGnGow78WF4togWfviupxZNosfJaaQZgdrb6qpfySe9K",
"predecessor": "BMDbYbZgTurLcrK1BnNyVhpe4hwoCpyp9B1fmwH4QuAzfEgL8Ti",
"successor": "BMcr9c93QiuHgU4Kniq3LyVXfUrNSspn39Zw41U2TDbH4UdHcrP",
"protocol": "PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",
"baker": "tz1VQnqCCqX4K5sP3FNkVSNKTdCAMJDd3E1n",
"proposer": "tz1VQnqCCqX4K5sP3FNkVSNKTdCAMJDd3E1n",
"baker_consensus_key": "tz1VQnqCCqX4K5sP3FNkVSNKTdCAMJDd3E1n",
"proposer_consensus_key": "tz1VQnqCCqX4K5sP3FNkVSNKTdCAMJDd3E1n",
"height": 2968449,
"cycle": 556,
"is_cycle_snapshot": false,
"time": "2022-12-14T09: 13: 14Z",
"solvetime": 30,
"version": 14,
"round": 0,
"nonce": "763259c5986f0700",
"voting_period_kind": "adoption",
"n_endorsed_slots": 0,
"n_ops_applied": 240,
"n_ops_failed": 0,
"n_events": 2,
"n_calls": 15,
"n_rollup_calls": 0,
"n_tx": 17,
"n_tickets": 0,
"volume": 109.773037,
"fee": 0.011742,
"reward": 19.913518,
"deposit": 0,
"activated_supply": 0,
"minted_supply": 22.413518,
"burned_supply": 0.16475,
"n_accounts": 239,
"n_new_accounts": 1,
"n_new_contracts": 0,
"n_cleared_accounts": 0,
"n_funded_accounts": 1,
"gas_limit": 55241,
"gas_used": 52211,
"storage_paid": 402,
"pct_account_reuse": 99.581589958159,
"lb_vote": "off",
"lb_ema": 316117538,
"ai_vote": "",
"ai_ema": 0,
"metadata": {
"tz1VQnqCCqX4K5sP3FNkVSNKTdCAMJDd3E1n": {
"address": "tz1VQnqCCqX4K5sP3FNkVSNKTdCAMJDd3E1n",
"alias": {
"name": "PosDog",
"kind": "validator",
"logo": "tz1VQnqCCqX4K5sP3FNkVSNKTdCAMJDd3E1n.png"},
"baker": {
"status": "public",
"fee": 0.1,
"min_delegation": 1000
},
"location": {
"country": "CN"
},
"social": {
"website": "https://pos.dog"
}
}
},
"rights": [
{
"type": "baking",
"round": 0,
"address": "tz1VQnqCCqX4K5sP3FNkVSNKTdCAMJDd3E1n",
"is_used": true
},
{
"type": "endorsing",
"address": "tz2FCNBrERXtaTtNX6iimR1UJ5JSDxvdHM93",
"is_used": true
},
// ...
]
}
curl "https://api.tzpro.io/explorer/block/1342853?meta=1&rights=1"
import (
"context"
"github.com/trilitech/tzpro-go/tzpro"
)
block, err := tzpro.DefaultClient.Block.GetHeight(
context.Background(),
1342853,
tzpro.WithMeta().WithRights(),
)
List Block Operations​
GET /explorer/block/{hash|height|head}/operations
Returns a list of operations in the corresponding block as well as a list of implicit events. Supports
limit
andcursor
/offset
for pagingorder
withasc
ordesc
for ordering (by row_id)type
for filtering operations (see query filters)meta=1
to embed optional account metadata senders, receivers, delegates
- Example
- Response
curl "https://api.tzpro.io/explorer/block/head/operations?meta=1"
import (
"context"
"github.com/trilitech/tzpro-go/tzpro"
)
ops, err := tzpro.DefaultClient.Block.ListOps(
context.Background(),
1342853,
tzpro.WithMeta(),
)
[{
"id": 146569756672,
"type": "bake",
"block": "BMX2R59xLV3gFRGTfjJKWbU2GTBajM4Yhv4MjDvfRFGgSfoNDMs",
"time": "2022-03-29T10:11:54Z",
"height": 2236477,
"cycle": 467,
"op_n": 0,
"status": "applied",
"is_success": true,
"is_event": true,
"fee": 0.05937,
"reward": 19.765625,
"deposit": 640,
"sender": "tz2FCNBrERXtaTtNX6iimR1UJ5JSDxvdHM93",
"confirmations": 0,
"metadata": {
"tz2FCNBrERXtaTtNX6iimR1UJ5JSDxvdHM93": {
"address": "tz2FCNBrERXtaTtNX6iimR1UJ5JSDxvdHM93",
"alias":{
"name": "stakefish",
"kind": "validator",
"logo": "tz2FCNBrERXtaTtNX6iimR1UJ5JSDxvdHM93.png"
},
"baker":{
"status":"public",
"fee":0.08
},
"social":{
"twitter": "stakedotfish"
}
}
}
},{
"id": 146569756673,
"type": "subsidy",
"block": "BMX2R59xLV3gFRGTfjJKWbU2GTBajM4Yhv4MjDvfRFGgSfoNDMs",
"time": "2022-03-29T10:11:54Z",
"height": 2236477,
"cycle": 467,
"op_n": 1,
"status": "applied",
"is_success": true,
"is_contract": true,
"is_event": true,
"gas_used": 224,
"volume": 2.5,
"reward": 2.5,
"receiver": "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5",
"confirmations": 0,
"metadata": {
"KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5": {
"address": "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5",
"alias": {
"name": "Constant Product Market Maker",
"kind": "dex",
"logo": "KT1TxqZ8QtKvLu3V3JH7Gx58n7Co8pgtpQU5.png"
}
}
}
},
// ...
]