get-exchange-resources.rst (844B)
1 .. ts:op:: getExchangeResources 2 :read-only: 3 4 Check whether the wallet still holds resources associated with an 5 exchange. 6 7 **Request:** 8 9 The request arguments must be a `GetExchangeResourcesRequest` 10 object. 11 12 **Response:** 13 14 On success, the result is a `GetExchangeResourcesResponse` object. 15 16 **Details:** 17 18 Resources are the coins and withdrawal groups (including internal 19 withdrawals of peer transactions) associated with the exchange; 20 ``hasResources`` is true if any of them exist. Clients can use 21 this to decide whether :ts:op:`deleteExchange` requires explicit 22 user confirmation. 23 24 .. ts:def:: GetExchangeResourcesRequest 25 26 interface GetExchangeResourcesRequest { 27 exchangeBaseUrl: string; 28 } 29 30 .. ts:def:: GetExchangeResourcesResponse 31 32 interface GetExchangeResourcesResponse { 33 hasResources: boolean; 34 }