BlockId
org.sigilaris.node.jvm.runtime.block.Model$package.BlockId
object BlockId
Companion for BlockId.
Attributes
- Source
- Model.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
BlockId.type
Members list
Value members
Concrete methods
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
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, orLeft(error)on parse failure - Source
- Model.scala
Givens
Extensions
Extensions
extension (blockId: BlockId)
Renders the block identifier as a lowercase hex string.
Unwraps the underlying UInt256.
In this article