TransferServerService class
Implements SEP-0006 - interaction with anchors. See <https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0006.md" target="_blank">Deposit and Withdrawal API
Constructors
-
TransferServerService(String transferServiceAddress
)
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- httpClient ↔ Client
-
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
deposit(
DepositRequest request ) → Future< DepositResponse> - A deposit is when a user sends an external token (BTC via Bitcoin, USD via bank transfer, etc...) to an address held by an anchor. In turn, the anchor sends an equal amount of tokens on the Stellar network (minus fees) to the user's Stellar account. The deposit endpoint allows a wallet to get deposit information from an anchor, so a user has all the information needed to initiate a deposit. It also lets the anchor specify additional information (if desired) that the user must submit via the /customer endpoint to be able to deposit.
-
fee(
FeeRequest request ) → Future< FeeResponse> -
info(
String language, String jwt ) → Future< InfoResponse> -
Get basic info from the anchor about what their TRANSFER_SERVER supports.
language
Language code specified using ISO 639-1. description fields in the response should be in this language. Defaults to en.jwt
token previously received from the anchor via the SEP-10 authentication flow -
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
patchTransaction(
PatchTransactionRequest request ) → Future< Response> -
toString(
) → String -
A string representation of this object. [...]
inherited
-
transaction(
AnchorTransactionRequest request ) → Future< AnchorTransactionResponse> - The transaction endpoint enables clients to query/validate a specific transaction at an anchor.
-
transactions(
AnchorTransactionsRequest request ) → Future< AnchorTransactionsResponse> - The transaction history endpoint helps anchors enable a better experience for users using an external wallet. With it, wallets can display the status of deposits and withdrawals while they process and a history of past transactions with the anchor. It's only for transactions that are deposits to or withdrawals from the anchor.
-
withdraw(
WithdrawRequest request ) → Future< WithdrawResponse>
Operators
-
operator ==(
Object other ) → bool -
The equality operator. [...]
inherited
Static Methods
-
fromDomain(
String domain ) → Future< TransferServerService>