Skip to content

Commit

Permalink
Merge pull request #2518 from lfern/feature/gatecoin
Browse files Browse the repository at this point in the history
gatecoin add createUserWallet method to create address record on exchange
  • Loading branch information
kroitor committed May 31, 2018
2 parents 5b28bcf + 479bd8e commit bafe556
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions js/gatecoin.js
Expand Up @@ -658,6 +658,22 @@ module.exports = class gatecoin extends Exchange {
};
}

async createUserWallet (code, address, name, password, params = {}) {
await this.loadMarkets ();
let currency = this.currency (code);
let request = {
'DigiCurrency': currency['id'],
'AddressName': name,
'Address': address,
'Password': password,
};
let response = await this.privatePostElectronicWalletUserWalletsDigiCurrency (this.extend (request, params));
return {
'status': 'ok',
'info': response,
};
}

handleErrors (code, reason, url, method, headers, body) {
if (typeof body !== 'string')
return; // fallback to default error handler
Expand Down

0 comments on commit bafe556

Please sign in to comment.