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