capabilities.work

Inspect a Confirmed Block at the Current Slot

A 4-step recipe with Solana. We can help you get access.

Recipe · 4 steps

Inspect a Confirmed Block at the Current Slot

with Solana

Fetch and characterize the block at the node's current confirmed slot.

  1. Resolve the slot the node has most recently processed, used as the target for the block read.
  2. Fetch the confirmed block at the resolved slot with full transaction detail, its parent linkage, and the rewards paid to the block producer.
  3. Read the estimated production time of the block as a Unix timestamp, which is how on-chain slots get mapped onto wall-clock time.
  4. Read how much stake has voted on the slot and the cluster's total active stake, the ratio that determines whether the block can still be rolled back.
What you'll need to have ready
  • transactionDetails: How much transaction detail to include in the block.
  • maxSupportedTransactionVersion: Maximum transaction version to return. Required to avoid an error when the block contains versioned transactions.
For your developer

Arazzo workflow solana:block-inspection, 4 operations: getSlot → getBlock → getBlockTime → getBlockCommitment. Specs on APIs.io.