Overview
Block messages contain information about newly produced blocks on the Solana blockchain. Yellowstone provides both full block updates (with transactions and accounts) and lightweight block metadata updates.SubscribeUpdateBlock
Full block update containing block metadata, transactions, accounts, and entries.Fields
The slot number of this block.
The blockhash for this block, in base58 format.
Block rewards information.
Unix timestamp when the block was produced.
The block height (number of blocks since genesis).
The slot number of the parent block.
The blockhash of the parent block, in base58 format.
Total number of transactions executed in this block.
Array of transactions included in this block. Only populated if
include_transactions is true in your block filter. See Transaction Messages for structure details.Total number of accounts updated in this block.
Array of accounts updated in this block. Only populated if
include_accounts is true in your block filter. See Account Messages for structure details.Total number of entries in this block.
Array of Proof of History entries in this block. Only populated if
include_entries is true in your block filter. See SubscribeUpdateEntry below for structure details.Example: Basic Block Update
Example: Block with Transactions
SubscribeUpdateBlockMeta
Lightweight block metadata update without full transaction or account data. Useful for reducing bandwidth when you only need block-level information.Fields
The slot number of this block.
The blockhash for this block, in base58 format.
Block rewards information.
Unix timestamp when the block was produced.
The block height (number of blocks since genesis).
The slot number of the parent block.
The blockhash of the parent block.
Total number of transactions executed in this block.
Total number of entries in this block.
Example
SubscribeUpdateEntry
Proof of History entry information. Entries represent PoH hashes that establish the passage of time on the Solana blockchain.Fields
The slot containing this entry.
The index of this entry within the slot.
Number of PoH hashes in this entry. Represents the amount of time that passed.
The entry hash (32 bytes).
Number of transactions executed in this entry.
The index of the first transaction in this entry within the block. Added in v1.18. For Solana 1.17, this value is always 0.
Example
Reward Information
Reward
Information about a single reward distributed in a block.Public key of the account receiving the reward, in base58 format.
Number of lamports rewarded (can be negative for rent collection).
Account balance after the reward was applied.
Type of reward:
Unspecified(0)Fee(1) - Transaction fee rewardRent(2) - Rent collectionStaking(3) - Staking rewardVoting(4) - Voting reward
Commission percentage as a string (for voting/staking rewards).
Example: Staking Reward
Use Cases
Block Monitoring
Subscribe to block metadata to monitor chain progress:Full Block Data
Subscribe to complete block data including all transactions:Filtered Block Data
Subscribe to blocks containing transactions for specific accounts:Processing Blocks
Tracking Block Production
Analyzing Block Contents
Related
- Filter Messages - Block filter configuration
- Transaction Messages - Transaction details included in blocks
- Account Messages - Account details included in blocks
- SubscribeRequest - How to subscribe to block updates
- SubscribeUpdate - Parent message containing block updates