AlgodBlock class

Annotations
  • @JsonSerializable(fieldRename: FieldRename.kebab)

Constructors

AlgodBlock({required List<SignedTransactionWithAD> transactions, String? genesisHash, String? genesisId, String? previousBlockHash, BigInt? round, String? seed, int? timestamp, int? txnCounter})
AlgodBlock.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
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<SignedTransactionWithAD>
List of transactions corresponding to a given round.
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

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