BlockQuery

org.sigilaris.node.jvm.runtime.block.BlockQuery
trait BlockQuery[F[_], TxRef, ResultRef, Event]

Read-only query interface for retrieving block headers, bodies, and views.

Type parameters

Event

event type

F

effect type

ResultRef

result reference type

TxRef

transaction reference type

Attributes

Source
Store.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait BlockStore[F, TxRef, ResultRef, Event]

Members list

Value members

Abstract methods

def getBody(blockId: BlockId): F[Option[BlockBody[TxRef, ResultRef, Event]]]

Retrieves a block body by the block identifier.

Retrieves a block body by the block identifier.

Value parameters

blockId

the block identifier to look up

Attributes

Returns

Some(body) if found, None otherwise

Source
Store.scala
def getHeader(blockId: BlockId): F[Option[BlockHeader]]

Retrieves a block header by its identifier.

Retrieves a block header by its identifier.

Value parameters

blockId

the block identifier to look up

Attributes

Returns

Some(header) if found, None otherwise

Source
Store.scala
def getView(blockId: BlockId): EitherT[F, BlockValidationFailure, Option[BlockView[TxRef, ResultRef, Event]]]

Retrieves and validates a combined block view (header + body).

Retrieves and validates a combined block view (header + body).

Value parameters

blockId

the block identifier to look up

Attributes

Returns

Right(Some(view)) if both parts exist and are valid, Right(None) if either part is missing, or Left(failure) if validation fails

Source
Store.scala