Block

scalus.cardano.ledger.Block
case class Block(header: BlockHeader, transactionBodies: Seq[TransactionBody], transactionWitnessSets: Seq[TransactionWitnessSet], auxiliaryDataSet: Map[Int, AuxiliaryData], invalidTransactions: Seq[Int])

Represents a complete block in the Cardano blockchain

Valid blocks must also satisfy the following constraints:

  1. The length of transaction_bodies and transaction_witness_sets must be the same 2. Every transaction_index must be strictly smaller than the length of transaction_bodies

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def blockNumber: Long

Get the block number

Get the block number

Attributes

def hash: Hash32

Get the block hash

Get the block hash

Attributes

def invalidTxCount: Int

Get the number of invalid transactions

Get the number of invalid transactions

Attributes

def isEmpty: Boolean

Check if the block is empty (has no transactions)

Check if the block is empty (has no transactions)

Attributes

def slot: Long

Get the slot number

Get the slot number

Attributes

Reconstruct complete transactions from bodies, witness sets, and auxiliary data

Reconstruct complete transactions from bodies, witness sets, and auxiliary data

Attributes

def txCount: Int

Get the number of transactions in the block

Get the number of transactions in the block

Attributes

def validTxCount: Int

Get the number of valid transactions

Get the number of valid transactions

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product