SEP24Transaction class Null safety
Represents an anchor transaction
Constructors
- SEP24Transaction(String id, String kind, String status, int? statusEta, bool? kycVerified, String moreInfoUrl, String amountIn, String? amountInAsset, String amountOut, String? amountOutAsset, String amountFee, String? amountFeeAsset, String? startedAt, String? completedAt, String? updatedAt, String? stellarTransactionId, String? externalTransactionId, String? message, bool? refunded, Refund? refunds, String? from, String? to, String? depositMemo, String? depositMemoType, String? claimableBalanceId, String? withdrawAnchorAccount, String? withdrawMemo, String? withdrawMemoType)
-
SEP24Transaction.fromJson(Map<
String, dynamic> json) -
factory
Properties
- amountFee ↔ String
-
(optional) Amount of fee charged by anchor.
read / write
- amountFeeAsset ↔ String?
-
(optional) The asset in which fees are calculated in. Must be present if the deposit/withdraw was made using non-equivalent assets.
The value must be in SEP-38 Asset Identification Format.
https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0038.md#asset-identification-format
See also the Asset Exchanges section for more information.
https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0024.md#asset-exchanges
read / write
- amountIn ↔ String
-
(optional) Amount received by anchor at start of transaction as a string with up to 7 decimals. Excludes any fees charged before the anchor received the funds.
read / write
- amountInAsset ↔ String?
-
(optional) The asset received or to be received by the Anchor. Must be present if the deposit/withdraw was made using non-equivalent assets.
The value must be in SEP-38 Asset Identification Format.
https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0038.md#asset-identification-format
See also the Asset Exchanges section for more information.
https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0024.md#asset-exchanges
read / write
- amountOut ↔ String
-
(optional) Amount sent by anchor to user at end of transaction as a string with up to 7 decimals.
Excludes amount converted to XLM to fund account and any external fees.
read / write
- amountOutAsset ↔ String?
-
(optional) The asset delivered or to be delivered to the user. Must be present if the deposit/withdraw was made using non-equivalent assets.
The value must be in SEP-38 Asset Identification Format.
https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0038.md#asset-identification-format
See also the Asset Exchanges section for more information.
https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0024.md#asset-exchanges
read / write
- claimableBalanceId ↔ String?
-
(optional) ID of the Claimable Balance used to send the asset initially requested.
read / write
- completedAt ↔ String?
-
(optional) The date and time of transaction reaching completed or refunded status. UTC ISO 8601 string
read / write
- depositMemo ↔ String?
-
(optional) This is the memo (if any) used to transfer the asset to the to Stellar address.
read / write
- depositMemoType ↔ String?
-
(optional) Type for the deposit_memo.
read / write
- externalTransactionId ↔ String?
-
(optional) ID of transaction on external network that either started the deposit or completed the withdrawal.
read / write
- from ↔ String?
-
In case of deposit: Sent from address, perhaps BTC, IBAN, or bank account.
In case of withdraw: Stellar address the assets were withdrawn from.
read / write
- hashCode → int
-
The hash code for this object.
read-only, inherited
- id ↔ String
-
Unique, anchor-generated id for the deposit/withdrawal.
read / write
- kind ↔ String
-
deposit or withdrawal.
read / write
- kycVerified ↔ bool?
-
(optional) True if the anchor has verified the user's KYC information for this transaction.
read / write
- message ↔ String?
-
(optional) Human readable explanation of transaction status, if needed.
read / write
- moreInfoUrl ↔ String
-
(optional) A URL that is opened by wallets after the interactive flow is complete. It can include banking information for users to start deposits, the status of the transaction, or any other information the user might need to know about the transaction.
read / write
- rateLimitLimit ↔ int?
-
read / write, inherited
- rateLimitRemaining ↔ int?
-
read / write, inherited
- rateLimitReset ↔ int?
-
read / write, inherited
- refunded ↔ bool?
-
(deprecated, optional) This field is deprecated in favor of the refunds object and the refunded status.
True if the transaction was refunded in full. False if the transaction was partially refunded or not refunded.
For more details about any refunds, see the refunds object.
read / write
- refunds ↔ Refund?
-
(optional) An object describing any on or off-chain refund associated with this transaction.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- startedAt ↔ String?
-
(optional) Start date and time of transaction. UTC ISO 8601 string
read / write
- status ↔ String
-
Processing status of deposit/withdrawal.
read / write
- statusEta ↔ int?
-
(optional) Estimated number of seconds until a status change is expected.
read / write
- stellarTransactionId ↔ String?
-
(optional) transaction_id on Stellar network of the transfer that either completed the deposit or started the withdrawal.
read / write
- to ↔ String?
-
In case of deposit: Stellar address the deposited assets were sent to.
In case of withdraw: Sent to address (perhaps BTC, IBAN, or bank account in the case of a withdrawal, Stellar address in the case of a deposit).
read / write
- updatedAt ↔ String?
-
(optional) The date and time of transaction reaching the current status. UTC ISO 8601 string
read / write
- withdrawAnchorAccount ↔ String?
-
If this is a withdrawal, this is the anchor's Stellar account that the user transferred (or will transfer) their asset to.
read / write
- withdrawMemo ↔ String?
-
Memo used when the user transferred to withdraw_anchor_account.
Assigned null if the withdraw is not ready to receive payment, for example if KYC is not completed.
read / write
- withdrawMemoType ↔ String?
-
Memo type for withdraw_memo.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
setHeaders(
Map< String, String> headers) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited