# coinbase-node

> Coinbase Bitcoin payment library for Node.js

Latest version **0.2.1** (published 2014-12-26) · 0 weekly downloads

## Install

```sh
npm install coinbase-node
pnpm add coinbase-node
yarn add coinbase-node
bun add coinbase-node
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2014-12-26 |
| First published | 2014-01-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+12 in 4 direct dependencies) |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | stevenzeiler |
| Keywords | bitcoin, coinbase, api, client |

## Links

- npm: https://www.npmjs.com/package/coinbase-node
- Repository: https://github.com/stevenzeiler/coinbase-node
- Issues: https://github.com/stevenzeiler/coinbase-node/issues
- npm.io page: https://npm.io/package/coinbase-node

## Dependencies (6)

- [qs](https://npm.io/package/qs.md) ^2.2.4
- [lodash](https://npm.io/package/lodash.md) ^2.4.1
- [bluebird](https://npm.io/package/bluebird.md) ^2.3.4
- [superagent](https://npm.io/package/superagent.md) ^0.19.0
- [underscore](https://npm.io/package/underscore.md) 1.5.2
- [require-all](https://npm.io/package/require-all.md) 0.0.8

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2014-12-26
- 0.2.0 — 2014-10-09
- 0.1.4 — 2014-10-02
- 0.1.3 — 2014-10-02
- 0.1.2 — 2014-10-01
- 0.1.1 — 2014-10-01
- 0.1.0 — 2014-10-01
- 0.0.5 — 2014-01-20
- 0.0.4 — 2014-01-20
- 0.0.3 — 2014-01-03
- 0.0.2 — 2014-01-03

## README

## 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
    });

---
_Source: https://npm.io/package/coinbase-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
