MeldOptions class
Configuration options for opening Meld.io
All parameters are optional. Meld.io automatically detects user location, language, and preferred currency based on IP geolocation and browser settings for better UX. Only specify options when you need to override the automatic detection:
- Requires wallet connection (unless walletAddress is provided)
- Auto-detects location, currency, language, and payment methods
- Uses connected wallet address unless overridden
Constructors
Properties
- amount → String?
-
Pre-filled amount for purchase.
When null: no amount pre-filled, user enters manually
final
- country → String?
-
Country name (e.g., 'USA', 'India', 'United Kingdom').
When null: Meld auto-detects from user's IP location
final
- countryCode → String?
-
Country code (e.g., 'US', 'IN', 'GB').
When null: Meld auto-detects from user's IP location
final
- destinationCurrencyCode → String?
-
Destination cryptocurrency (e.g., 'USDC', 'SOL', 'ETH').
When null: defaults based on active chain (SOL for Solana, USDC for Ethereum)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- language → String?
-
Language code (e.g., 'en', 'hi', 'es').
When null: Meld auto-detects from browser settings
final
- locale → String?
-
Locale (e.g., 'en-US', 'en-IN', 'es-ES').
When null: Meld auto-detects from browser/location
final
- paymentMethod → String?
-
Payment method (e.g., 'card', 'bank').
When null: Meld shows all available payment methods for user's region
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceCurrencyCode → String?
-
Source currency code (e.g., 'USD', 'INR', 'EUR').
When null: Meld auto-detects based on user's location
final
- walletAddress → String?
-
Custom wallet address.
When null: uses connected wallet address (requires wallet connection)
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited