New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

coinbase-node

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coinbase-node

Coinbase Bitcoin payment library for Node.js

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
increased by188.89%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 26 Dec 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc