Class WithdrawalServiceAsyncImpl
-
- All Implemented Interfaces:
-
com.dinari.api.services.async.v2.accounts.WithdrawalServiceAsync
public final class WithdrawalServiceAsyncImpl implements WithdrawalServiceAsync
Withdrawalsrepresent the transfer of stablecoins from anAccountconnected to a managedWalletto anotherAccountthat is owned by theEntity.Since the
Accountis backed by a managedWallet, theWithdrawalmust be processed by Dinari and the corresponding transaction is submitted on chain.Upon requesting a withdrawal, a
WithdrawalRequestis created, which is then submitted on chain by Dinari. Once the transfer is submitted on chain, the correspondingWithdrawalis created.Currently, withdrawals are made in USDC on the Arbitrum network (Chain ID
eip155:42161).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classWithdrawalServiceAsyncImpl.WithRawResponseImpl
-
Method Summary
Modifier and Type Method Description WithdrawalServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. WithdrawalServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. CompletableFuture<Withdrawal>retrieve(WithdrawalRetrieveParams params, RequestOptions requestOptions)CompletableFuture<List<Withdrawal>>list(WithdrawalListParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
WithdrawalServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
WithdrawalServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
retrieve
CompletableFuture<Withdrawal> retrieve(WithdrawalRetrieveParams params, RequestOptions requestOptions)
-
list
CompletableFuture<List<Withdrawal>> list(WithdrawalListParams params, RequestOptions requestOptions)
-
-
-
-