Contents

testingWaitExchangeStateread-only#

Wait until an exchange entry is in a particular state. Currently, only the wallet KYC status of the exchange entry can be waited on. The operation blocks until this condition is met or the wait fails, for example when the request is cancelled.

Request:

The request must be a TestingWaitExchangeStateRequest object.

Response:

On success, the result is an empty object.

interface TestingWaitExchangeStateRequest {
  exchangeBaseUrl: string;
  walletKycStatus?: ExchangeWalletKycStatus;
}
type ExchangeWalletKycStatus =
  | "done"
  // Wallet needs to request KYC status.
  | "legi-init"
  // User requires KYC or AML.
  | "legi";