diff --git a/src/ncw-api-client.ts b/src/ncw-api-client.ts index dd3a3ff..e4699c7 100644 --- a/src/ncw-api-client.ts +++ b/src/ncw-api-client.ts @@ -155,9 +155,9 @@ export class NcwApiClient implements NcwSdk { `${this.NCW_BASE_PATH}/${walletId}/setup_status`); } - public async getDeviceSetupStatus(walletId: string, deviceId: string): Promise { + public async getDeviceSetupStatus(walletId: string, deviceId: string, enabled = true): Promise { return await this.apiClient.issueGetRequest( - `${this.NCW_BASE_PATH}/${walletId}/devices/${deviceId}/setup_status`); + `${this.NCW_BASE_PATH}/${walletId}/devices/${deviceId}/setup_status?enabled=${enabled}`); } public async setWalletRequiredAlgorithms(walletId: string, algorithms: SigningAlgorithm[]): Promise { diff --git a/src/ncw-sdk.ts b/src/ncw-sdk.ts index dfee9b2..2c219d0 100644 --- a/src/ncw-sdk.ts +++ b/src/ncw-sdk.ts @@ -180,9 +180,10 @@ export interface NcwSdk { * * @param {string} walletId * @param {string} deviceId + * @param {boolean} [enabled=true] State of the device. default: true. * @return {*} {Promise} */ - getDeviceSetupStatus(walletId: string, deviceId: string): Promise; + getDeviceSetupStatus(walletId: string, deviceId: string, enabled?: boolean): Promise; /** * Gets utxo list for an asset