WithdrawAsset constructor

WithdrawAsset(
  1. bool enabled,
  2. bool? authenticationRequired,
  3. double? feeFixed,
  4. double? feePercent,
  5. double? minAmount,
  6. double? maxAmount,
  7. Map<String, Map<String, AnchorField>?>? types,
)

Creates a withdrawal asset configuration for SEP-6 transfer operations.

Parameters:

  • enabled Whether SEP-6 withdrawals are supported for this asset
  • authenticationRequired Whether client must authenticate before withdrawals
  • feeFixed Fixed flat fee for withdrawals in units of the Stellar asset
  • feePercent Percentage fee for withdrawals in percentage points
  • minAmount Minimum withdrawal amount accepted by the anchor
  • maxAmount Maximum withdrawal amount accepted by the anchor
  • types Map of supported withdrawal types with their required fields

Specifies the capabilities, constraints, and supported withdrawal types for this asset.

Implementation

WithdrawAsset(this.enabled, this.authenticationRequired, this.feeFixed,
    this.feePercent, this.minAmount, this.maxAmount, this.types);