Ad

AuthenticationError: Invalid Signature Coinbase Nodejs

- 1 answer

Here is my code wanna create a new addresss using nodejs :

    var Client = require('coinbase').Client;

    var client = new Client({
        'apiKey': 'myApiKey',
        'apiSecret': 'myApiSecret'
      });

    console.log(client)
    var address = null;

    client.getAccount('primary', function(err, account) {
        account.createAddress(function(err, addr) {
            console.log(addr);
            address = addr;
        });
        console.log(err)
    });

But i'm getting AuthenticationError: invalid signature ! Thanks !!

Ad

Answer

The API key I created had not the required permissions ! I just needed to create a new one with required permissions !

Ad
source: stackoverflow.com
Ad