Contents

listExchangesread-only#

List exchanges known to the wallet.

Request:

The request arguments must be a ListExchangesRequest object. Omitted filter fields do not restrict the result.

Response:

On success, the result is an ExchangesListResponse object.

interface ListExchangesRequest {
  // Filter results to only include exchanges in the given scope.
  filterByScope?: ScopeInfo;

  // Filter results to only include exchanges
  // with the given status.
  filterByExchangeEntryStatus?: ExchangeEntryStatus;

  // Filter results to only include exchanges with the
  // given type.
  filterByType?: ExchangeType;
}
type ExchangeType = "demo" | "prod";
interface ExchangesListResponse {
  exchanges: ExchangeListItem[];
}
type ExchangeEntryStatus =
  | "preset"
  | "ephemeral"
  | "used";