node.js wrapper for advcash cryptocurrency exchange
The official documentation can be found here
Node 6.0
Advcash account
Advcash api key
npm install --save advcash
All methods returns a promise as result
var advcash = require('advcash');
var options = {
password: 'password created previously',
apiName: 'api created previously',
email: 'email used to create the advcash account'
};
advcash(options).then(function(client) {
// client is ready
})
Getting the currency exchange rate
var params = {
from: "BTC",
to: "USD",
action: "SELL",
amount: 1.0
};
client.checkCurrencyExchange(params).then(function(response) {
console.log(response)
})
Get Balance per User’s Wallets
client.getBalances().then(function(balances) {
console.log(balances)
})
Checking matching the first and last name of the user in the Advanced Cash system with the name and last name in a third-party system
var params = {
email: "[email protected]",
firstName: "First name example",
lastName: "Last name example"
};
client.validateAccount(params).then(function(response) {
console.log(response)
})
Validation of Account’s Existence
var emails = ['[email protected]', '[email protected]']
client.validateAccounts(emails).then(function(response) {
console.log(response)
})
- Erik Nakata
- Leonardo Cadastro
This project is licensed under the MIT License - see the LICENSE file for details