DepositResponse class
Represents an transfer service deposit response.
Constructors
-
DepositResponse(String? how, String? id, int? eta, double? minAmount, double? maxAmount, double? feeFixed, double? feePercent, ExtraInfo? extraInfo, Map<
String, DepositInstruction> ? instructions) - Creates a DepositResponse with deposit instructions, ID, fees, amount limits, and metadata.
-
DepositResponse.fromJson(Map<
String, dynamic> json) -
Constructs a DepositResponse from JSON returned by deposit or deposit-exchange endpoint.
factory
Properties
- eta ↔ int?
-
(optional) Estimate of how long the deposit will take to credit in seconds.
getter/setter pair
- extraInfo ↔ ExtraInfo?
-
(optional) Object with additional information about the deposit process.
getter/setter pair
- feeFixed ↔ double?
-
(optional) Fixed fee (if any). In units of the deposited asset.
getter/setter pair
- feePercent ↔ double?
-
(optional) Percentage fee (if any). In units of percentage points.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- how ↔ String?
-
(deprecated, use instructions instead) Terse but complete instructions
for how to deposit the asset. In the case of most cryptocurrencies it is
just an address to which the deposit should be sent.
getter/setter pair
- id ↔ String?
-
(optional) The anchor's ID for this deposit. The wallet will use this ID
to query the /transaction endpoint to check status of the request.
getter/setter pair
-
instructions
↔ Map<
String, DepositInstruction> ? -
(optional) A Map containing details that describe how to complete
the off-chain deposit. The map has SEP-9 financial account fields as keys
and its values are DepositInstruction objects.
getter/setter pair
- maxAmount ↔ double?
-
(optional) Maximum amount of asset that a user can deposit.
getter/setter pair
- minAmount ↔ double?
-
(optional) Minimum amount of an asset that a user can deposit.
getter/setter pair
- rateLimitLimit ↔ int?
-
Maximum number of requests allowed in the current rate limit window.
getter/setter pairinherited
- rateLimitRemaining ↔ int?
-
Number of requests remaining in the current rate limit window.
getter/setter pairinherited
- rateLimitReset ↔ int?
-
Unix timestamp when the rate limit window will reset.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setHeaders(
Map< String, String> headers) → void -
Populates rate limit fields from HTTP response headers.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited