
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
coinbase-auth
Advanced tools
Takes care of nonce-ing and authentication for Coinbase's secure API. Usage could not be easier. First:
npm install coinbase-auth
There is no need to npm install dependencies. Coinbase-auth only depends on built-in modules. Next, give coinbase-auth your API credentials:
var coinbase = require('coinbase-auth');
coinbase.key('myAPIkey');
coinbase.secret('myAPIsecret');
Making a request is as easy as creating an options object and specifying the method. I use the following format:
var options = {
url: 'https://coinbase.com/api/v1/account/generate_receive_address',
json: {
'address': {
'callback_url': 'http://www.example.com/callback',
'label': 'Dalmation donations'
}
}
};
coinbase.post(options, function (err, res) {
if (err) {
console.log(err);
} else {
console.log(res);
}
});
var putOptions = {
url: 'https://coinbase.com/api/v1/users/512db383f8182bd24d000001',
json: {
'user': {
'email': 'goodmail@example.com'
}
}
};
coinbase.put(options, function (err, res) {
if (err) {
console.log(err);
} else {
console.log(res);
}
});
For a GET or DELETE request, omit the options object and pass in only the url.
var url = 'https://coinbase.com/api/v1/account/balance';
coinbase.get(url, function (err, res) {
if (err) {
console.log(err);
} else {
console.log(res);
}
});
var deleteUrl = 'https://coinbase.com/api/v1/transactions/501a3554f8182b2754000003/cancel_request';
coinbase.delete(url, function (err, res) {
if (err) {
console.log(err);
} else {
console.log(res);
}
});
To see what you can do with the Coinbase API, take a look at their documentation.
To show your appreciation for this module, feel free to send love to 1EM5MS6pNdVKm1H5qu3VGY7NXh3ZqjAkti
FAQs
Coinbase API
We found that coinbase-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.