Interface WithdrawalService
-
- All Implemented Interfaces:
public interface WithdrawalServiceWithdrawalsrepresent 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 interfaceWithdrawalService.WithRawResponseA view of WithdrawalService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract WithdrawalService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract WithdrawalServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. Withdrawalretrieve(String withdrawalId, WithdrawalRetrieveParams params)Get a specific Withdrawalby its ID.Withdrawalretrieve(String withdrawalId, WithdrawalRetrieveParams params, RequestOptions requestOptions)Withdrawalretrieve(WithdrawalRetrieveParams params)abstract Withdrawalretrieve(WithdrawalRetrieveParams params, RequestOptions requestOptions)List<Withdrawal>list(String accountId)Get a list of all Withdrawalsunder theAccount, sorted by most recent.List<Withdrawal>list(String accountId, WithdrawalListParams params, RequestOptions requestOptions)List<Withdrawal>list(String accountId, WithdrawalListParams params)abstract List<Withdrawal>list(WithdrawalListParams params, RequestOptions requestOptions)List<Withdrawal>list(WithdrawalListParams params)List<Withdrawal>list(String accountId, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract WithdrawalService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract WithdrawalService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
retrieve
Withdrawal retrieve(String withdrawalId, WithdrawalRetrieveParams params)
Get a specific
Withdrawalby its ID.
-
retrieve
Withdrawal retrieve(String withdrawalId, WithdrawalRetrieveParams params, RequestOptions requestOptions)
-
retrieve
Withdrawal retrieve(WithdrawalRetrieveParams params)
-
retrieve
abstract Withdrawal retrieve(WithdrawalRetrieveParams params, RequestOptions requestOptions)
-
list
List<Withdrawal> list(String accountId)
Get a list of all
Withdrawalsunder theAccount, sorted by most recent.
-
list
List<Withdrawal> list(String accountId, WithdrawalListParams params, RequestOptions requestOptions)
-
list
List<Withdrawal> list(String accountId, WithdrawalListParams params)
-
list
abstract List<Withdrawal> list(WithdrawalListParams params, RequestOptions requestOptions)
-
list
List<Withdrawal> list(WithdrawalListParams params)
-
list
List<Withdrawal> list(String accountId, RequestOptions requestOptions)
-
-
-
-