AccountAddressRestrictionTransactionV1 constructor

AccountAddressRestrictionTransactionV1({
  1. Signature? signature,
  2. PublicKey? signerPublicKey,
  3. int? version,
  4. NetworkType? network,
  5. TransactionType? type,
  6. Amount? fee,
  7. Timestamp? deadline,
  8. AccountRestrictionFlags? restrictionFlags,
  9. List<UnresolvedAddress>? restrictionAdditions,
  10. List<UnresolvedAddress>? restrictionDeletions,
})

Implementation

AccountAddressRestrictionTransactionV1(
    {Signature? signature,
    PublicKey? signerPublicKey,
    int? version,
    NetworkType? network,
    TransactionType? type,
    Amount? fee,
    Timestamp? deadline,
    AccountRestrictionFlags? restrictionFlags,
    List<UnresolvedAddress>? restrictionAdditions,
    List<UnresolvedAddress>? restrictionDeletions}) {
  this.signature = signature ?? Signature();
  this.signerPublicKey = signerPublicKey ?? PublicKey();
  this.version =
      version ?? AccountAddressRestrictionTransactionV1.TRANSACTION_VERSION;
  this.network = network ?? NetworkType.MAINNET;
  this.type = type ?? AccountAddressRestrictionTransactionV1.TRANSACTION_TYPE;
  this.fee = fee ?? Amount();
  this.deadline = deadline ?? Timestamp();
  this.restrictionFlags = restrictionFlags ?? AccountRestrictionFlags.ADDRESS;
  this.restrictionAdditions = restrictionAdditions ?? [];
  this.restrictionDeletions = restrictionDeletions ?? [];
}