Skip to main content

Messages

Block

FieldTypeDescription
headerBlockHeaderBlock metadata and parameters
footeroptional ``BlockFooterOptional execution result for the block
bodyoptional ``bytesOptional raw block body containing transactions
consensus_statusoptional ``thru.common.v1.ConsensusStatusOptional consensus finalization status

BlockFooter

FieldTypeDescription
signaturethru.common.v1.SignatureAttestor signature for the execution result
statusExecutionStatusBlock execution status (pending, executed, failed)
consumed_compute_unitsuint64Total compute units consumed by all transactions
consumed_state_unitsuint32Total state units consumed by all transactions
attestor_paymentuint64Payment to attestor for block execution

BlockHeader

FieldTypeDescription
slotuint64Block slot number (height)
block_hashBlockHashCryptographic hash of the block
header_signaturethru.common.v1.SignatureBlock producer’s signature
versionuint32Block format version
producerthru.common.v1.PubkeyPublic key of the block producer
expiry_timestampgoogle.protobuf.TimestampWhen the block expires
start_slotuint64Earliest slot for transactions in this block
expiry_afteruint32Number of slots after start_slot when transactions expire
max_block_sizeuint32Maximum block size in bytes
max_compute_unitsuint64Maximum compute units for the block
max_state_unitsuint32Maximum state units for the block
bond_amount_lock_upuint64Bond amount required from the producer
block_timegoogle.protobuf.TimestampBlock creation timestamp
weight_slotuint64Slot used for weight calculation
chain_iduint32Chain identifier to prevent cross-chain replay

RawBlock

FieldTypeDescription
slotuint64Block slot number (height)
raw_blockbytesComplete serialized block data including header, body, and footer

Enums

BlockView

BlockView controls how much of a block resource is returned.
ValueNumberDescription
BLOCK_VIEW_UNSPECIFIED0
BLOCK_VIEW_HEADER_ONLY1
BLOCK_VIEW_HEADER_AND_FOOTER2
BLOCK_VIEW_BODY_ONLY3
BLOCK_VIEW_FULL4

ExecutionStatus

ExecutionStatus enumerates block execution results.
ValueNumberDescription
EXECUTION_STATUS_UNSPECIFIED0
EXECUTION_STATUS_PENDING1
EXECUTION_STATUS_EXECUTED2
EXECUTION_STATUS_FAILED3