Skip to content

jamlfy/coinbase-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coinbase

Coinbase is a wrapper around the Coinbase.com bitcoin wallet and exchange API.

Require coinbase

var CoinbaseApi = require('coinbase-service');
var coinbase = new CoinbaseApi(process.env.COINBASE_API_KEY, process.env.COINBASE_API_SECRET);

I will not explain the method by method. I'll make a simple explanation!

coinbase[method]([object], function(err, data){
  // buttons except
});
coinbase[method][get|balance|delete|refunds|commit|cancel|complete|resend](id, function(err, data){
  // More
});
coinbase[method][create|OAuth2|sendMoney|transferMoney|button|redeem]({
  // Your arguments
}, function(err, data){
  // More
});
coinbase[method][update|sell](id, {
  // Your arguments
}, function(err, data){
  // More
});

All the list of methods