Block class

Annotations
  • @JsonSerializable(fieldRename: FieldRename.kebab)

Constructors

Block({required List<Transaction> transactions, String? genesisHash, String? genesisId, String? previousBlockHash, BigInt? round, String? seed, int? timestamp, String? transactionsRoot, BlockRewards? rewards, int? txnCounter, BlockUpgradeState? upgradeState, BlockUpgradeVote? upgradeVote})
Block.fromJson(Map<String, dynamic> json)
factory

Properties

genesisHash String?
hash to which this block belongs.
final
genesisId String?
ID to which this block belongs.
final
hashCode int
The hash code for this object.
no setterinherited
previousBlockHash String?
Previous block hash.
final
rewards BlockRewards?
Rewards for this block
final
round BigInt?
Current round on which this block was appended to the chain.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
seed String?
Sortition seed.
final
timestamp int?
Block creation timestamp in seconds since eposh
final
transactions List<Transaction>
List of transactions corresponding to a given round.
final
transactionsRoot String?
TransactionsRoot authenticates the set of transactions appearing in the block. More specifically, it's the root of a merkle tree whose leaves are the block's Txids, in lexicographic order.
final
txnCounter int?
TxnCounter counts the number of transactions committed in the ledger, from the time at which support for this feature was introduced.
final
upgradeState BlockUpgradeState?
final
upgradeVote BlockUpgradeVote?
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