I'm using the code given on the docs to create a new wallet, and it says that I am getting a: TypeError: Cannot read property 'name' of null error.
My code looks like:
var Client = require('coinbase').Client;
// blank intentionally, but completed actually
var client = new Client({
'apiKey': '',
'apiSecret': '',
});
client.createAccount({'name': 'New Wallet'}, function(err, acct) {
console.log(acct.name + ': ' + acct.balance.amount + ' ' + acct.balance.currency);
});
What am I doing wrong?