← Code knowledge base
Reviewed Flutter implementation · 2026-10-27

withdrawal_networks.dart

mobile_flutter/lib/features/wallets/domain/withdrawal_networks.dart

Immutable source snapshot based on revision de78e63ed65c. Original line numbers are retained. This is implementation evidence; check the public API catalogue before adapting it.

The mobile /api/v1/mobile routes belong to the example backend. Company credentials stay on that backend. Some sections outside the documented product scope may be omitted.

Lines 1–22

/// Networks implemented by this client and accepted by the upstream V2/// withdrawal validation. Quote/submission still recheck provider availability./// Do not infer payout support from a deposit address or add networks without/// a corresponding destination validator.const withdrawalNetworkNames = <String, String>{  'ETH': 'Ethereum',  'AVAX': 'Avalanche',  'ARB': 'Arbitrum',  'MATIC': 'Polygon',  'TRX': 'Tron',  'OP': 'Optimism',}; Map<String, String> withdrawalNetworksFor(String currency) =>    switch (currency.toUpperCase()) {      'USDT' => withdrawalNetworkNames,      'USDC' => Map.fromEntries(          withdrawalNetworkNames.entries.where((e) => e.key != 'TRX')),      _ => const {},    }; const minimumCryptoWithdrawal = 5.0;
HOPPA DEVELOPER ASSISTANT

What are you building?

From a question to an implementation.

Get a step-by-step flow, example code and the docs behind it. Choose a starting point or describe your feature.

Answers use the public API guide and example app code. Check the linked reference before shipping. Explore code sources ↗

Your question and recent conversation are sent to our AI provider. Don’t include API keys, personal data or card details.