Block class abstract

A Block with or without transactions This contains the information about a transactions along with associated transactions if requested

Properties:

  • blockHeight - A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
  • blockHash
  • blockTimestamp - A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
  • firstVersion - A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
  • lastVersion - A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
  • transactions - The transactions in the block in sequential order
Annotations
  • @BuiltValue()

Constructors

Block([void updates(BlockBuilder b)])
factory

Properties

blockHash String
no setter
blockHeight String
A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
no setter
blockTimestamp String
A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
no setter
firstVersion String
A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
no setter
hashCode int
The hash code for this object.
no setterinherited
lastVersion String
A string containing a 64-bit unsigned integer. We represent u64 values as a string to ensure compatibility with languages such as JavaScript that do not parse u64s in JSON natively.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transactions → BuiltList<Transaction>?
The transactions in the block in sequential order
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rebuild(dynamic updates(BlockBuilder)) Block
Rebuilds the instance.
inherited
toBuilder() BlockBuilder
Converts the instance to a builder B.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

serializer → Serializer<Block>
no setter