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 inalterable: once a client has requested and received a block identified by a specific BlockIndentifier, all future calls for that same BlockIdentifier must return the same block contents.

Constructors

Block(BlockIdentifier block_identifier, BlockIdentifier parent_block_identifier, Timestamp timestamp, List<Transaction> transactions, Map<String, dynamic>? metadata)
Block.fromMap(Map<String, dynamic> map)
factory

Properties

block_identifier BlockIdentifier
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
metadata Map<String, dynamic>?
getter/setter pair
parent_block_identifier BlockIdentifier
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp Timestamp
getter/setter pair
transactions List<Transaction>
getter/setter pair

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