Transaction constructor
Transaction({
- TransactionType? type,
- int? version,
- NetworkType? network,
- Timestamp? timestamp,
- PublicKey? signerPublicKey,
- Signature? signature,
- Amount? fee,
- Timestamp? deadline,
Implementation
Transaction({
TransactionType? type,
int? version,
NetworkType? network,
Timestamp? timestamp,
PublicKey? signerPublicKey,
Signature? signature,
Amount? fee,
Timestamp? deadline
}) {
this.type = type ?? TransactionType.TRANSFER;
this.version = version ?? 0;
this.network = network ?? NetworkType.MAINNET;
this.timestamp = timestamp ?? Timestamp();
this.signerPublicKey = signerPublicKey ?? PublicKey();
this.signature = signature ?? Signature();
this.fee = fee ?? Amount();
this.deadline = deadline ?? Timestamp();
}