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
- Account
coinbase.account
coinbase.account.get
coinbase.account.changes
coinbase.account.create
coinbase.account.update
coinbase.account.primary
coinbase.account.delete
coinbase.account.balance
coinbase.account.address
coinbase.account.address.create
- Addresses
coinbase.address
coinbase.address.get
- Authorization
coinbase.authorization
- Buttons
coinbase.button
coinbase.button.get
coinbase.button.createOrder
coinbase.button.orders
- Buys
coinbase.buys
- Contacts
coinbase.contacts
- Currencies
coinbase.currencies
coinbase.currencies.exchangeRates
- Multisig
coinbase.multisig
coinbase.multisig.transaction
coinbase.multisig.sighashes
coinbase.multisig.signatures
- Aplications
coinbase.app
coinbase.app.get
coinbase.app.create
- Orders
coinbase.orders
coinbase.orders.create
coinbase.orders.get
coinbase.orders.refunds
- Payment methods
coinbase.payment
coinbase.payment.show
- Prices
coinbase.price
coinbase.price.sell
coinbase.price.spotRate
coinbase.price.historical
- Recurring payments
coinbase.recurringPayments
coinbase.recurringPayments.get
- Reports
coinbase.reports
coinbase.reports.get
coinbase.reports.create
- Sell
coinbase.sell
- Subscriptions
coinbase.subscribers
coinbase.subscribers.get
- Tokens
coinbase.tokens
coinbase.tokens.redeem
- Transactions
coinbase.transactions
coinbase.transactions.get
coinbase.transactions.sendMoney
coinbase.transactions.sendMoney.resend
coinbase.transactions.transferMoney
coinbase.transactions.transferMoney.complete
coinbase.transactions.requestMoney
coinbase.transactions.requestMoney.cancel
- Transfers
coinbase.transfers
coinbase.transfers.get
coinbase.transfers.commit
- Users
coinbase.user
coinbase.user.create
coinbase.user.OAuth2
coinbase.user.update