Block class
Blocks contain an array of Transactions that occurred at a particular BlockIdentifier. A hard requirement for blocks returned by Rosetta implementations is that they MUST be unalterable: once a client has requested and received a block identified by a specific BlockIdentifier, all future calls for that same BlockIdentifier must return the same block contents.
- Annotations
-
- @immutable
Constructors
-
Block(BlockIdentifier blockIdentifier, BlockIdentifier parentBlockIdentifier, Timestamp timestamp, List<
Transaction> transactions, Map<String, dynamic> ? metadata) -
const
-
Block.fromJson(Map<
String, dynamic> map) -
factory
Properties
- blockIdentifier → BlockIdentifier
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ Map<
String, dynamic> ? -
final
- parentBlockIdentifier → BlockIdentifier
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → Timestamp
-
final
-
transactions
→ List<
Transaction> -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited