0.2.1 • Published 9 years ago

coinbase-node v0.2.1

Weekly downloads
42
License
-
Repository
github
Last release
9 years ago

coinbase-node

A node.js client for interacting with the Coinbase REST API.

  • send bitcoins from a Coinbase acccount
  • generate Bitcoin invoices with callback urls

Installation

npm install coinbase-node

Initialization

const coinbase = new CoinbaseClient({
  apiKey: process.env.COINBASE_API_KEY,
  secret: process.env.COINBASE_SECRET
});

Send Money

coinbase.sendMoney({
  to: 'me@stevenzeiler.com',
  amount: 1.5,
  note: 'Payment for Services'
})
.then(function(transaction) {
  // do something with new transaction
})
.error(function(error) {
  // handle error
});

Get Transaction

coinbase.getTransaction({
  id: 12345
})
.then(function(transaction) {
  // do something with new transaction
})
.error(function(error) {
  // handle error
});

List Transactions

coinbase.listTransactions()
.then(function(transaction) {
  // do something with new transactions
})
.error(function(error) {
  // handle error
});
0.2.1

9 years ago

0.2.0

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago