BlockId

org.sigilaris.node.jvm.runtime.block.Model$package.BlockId
object BlockId

Companion for BlockId.

Attributes

Source
Model.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
BlockId.type

Members list

Value members

Concrete methods

def apply(value: UInt256): BlockId

Wraps a UInt256 as a BlockId.

Wraps a UInt256 as a BlockId.

Value parameters

value

the raw 256-bit value

Attributes

Returns

the corresponding block identifier

Source
Model.scala
def fromHex(value: String): Either[String, BlockId]

Parses a hex string into a BlockId.

Parses a hex string into a BlockId.

Value parameters

value

hex-encoded 256-bit value

Attributes

Returns

Right(blockId) on success, or Left(error) on parse failure

Source
Model.scala

Givens

Givens

Attributes

Source
Model.scala

Extensions

Extensions

extension (blockId: BlockId)
def toHexLower: String

Renders the block identifier as a lowercase hex string.

Renders the block identifier as a lowercase hex string.

Attributes

Source
Model.scala

Unwraps the underlying UInt256.

Unwraps the underlying UInt256.

Attributes

Source
Model.scala