v1InitFiatOnRampIntent class

Constructors

v1InitFiatOnRampIntent({required v1FiatOnRampProvider onrampProvider, required String walletAddress, required v1FiatOnRampBlockchainNetwork network, required v1FiatOnRampCryptoCurrency cryptoCurrencyCode, v1FiatOnRampCurrency? fiatCurrencyCode, String? fiatCurrencyAmount, v1FiatOnRampPaymentMethod? paymentMethod, String? countryCode, String? countrySubdivisionCode, bool? sandboxMode, String? urlForSignature})
const
v1InitFiatOnRampIntent.fromJson(Map<String, dynamic> json)
factory

Properties

countryCode String?
ISO 3166-1 two-digit country code for Coinbase representing the purchasing user’s country of residence, e.g., US, GB.
final
countrySubdivisionCode String?
ISO 3166-2 two-digit country subdivision code for Coinbase representing the purchasing user’s subdivision of residence within their country, e.g. NY. Required if country_code=US.
final
cryptoCurrencyCode v1FiatOnRampCryptoCurrency
Code for the cryptocurrency to be purchased, e.g., btc, eth. Maps to MoonPay's currencyCode or Coinbase's defaultAsset.
final
fiatCurrencyAmount String?
Specifies a preset fiat amount for the transaction, e.g., '100'. Must be greater than '20'. If not provided, the user will be prompted to enter an amount.
final
fiatCurrencyCode v1FiatOnRampCurrency?
Code for the fiat currency to be used in the transaction, e.g., USD, EUR.
final
hashCode int
The hash code for this object.
no setterinherited
network v1FiatOnRampBlockchainNetwork
Blockchain network to be used for the transaction, e.g., bitcoin, ethereum. Maps to MoonPay's network or Coinbase's defaultNetwork.
final
onrampProvider v1FiatOnRampProvider
Enum to specifiy which on-ramp provider to use
final
paymentMethod v1FiatOnRampPaymentMethod?
Pre-selected payment method, e.g., CREDIT_DEBIT_CARD, APPLE_PAY. Validated against the chosen provider.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sandboxMode bool?
Optional flag to indicate whether to use the sandbox mode to simulate transactions for the on-ramp provider. Default is false.
final
urlForSignature String?
Optional MoonPay Widget URL to sign when using MoonPay client SDKs with URL Signing enabled.
final
walletAddress String
Destination wallet address for the buy transaction.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited