- withdrawTestBalance#
Make a withdrawal on a test deployment of the exchange and corebank.
Request:
The request must be a WithdrawTestBalanceRequest object.
Response:
On success, the result is a WithdrawTestBalanceResult object.
Side effects:
Registers a random bank user and performs a real withdrawal at the given test deployment over the network; creates a withdrawal transaction in the wallet.
Details:
The operation registers a random bank user via the corebank API, creates a withdrawal operation for the requested amount, accepts the resulting withdrawal URI as a bank-integrated withdrawal at the given exchange, and finally confirms the withdrawal operation at the bank.
interface WithdrawTestBalanceRequest {
// Amount to withdraw.
amount: AmountString;
// Corebank API base URL.
corebankApiBaseUrl: string;
// Exchange to use for withdrawal.
exchangeBaseUrl: string;
// Force the usage of a particular denomination selection.
// Only useful for testing.
forcedDenomSel?: ForcedDenomSel;
// If set to true, treat the account created during
// the withdrawal as a foreign withdrawal account.
useForeignAccount?: boolean;
}
interface ForcedDenomSel {
denoms: {
value: AmountString;
count: number;
}[];
}