Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitcoin

Package Overview
Dependencies
Maintainers
3
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitcoin - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

9

lib/index.js

@@ -9,2 +9,3 @@ var commands = require('./commands')

this.rpc = new rpc.Client(opts)
this.wallet = opts.wallet
}

@@ -19,3 +20,3 @@

callRpc(cmd, args, this.rpc)
callRpc(cmd, args, this.rpc, this.wallet)
}

@@ -26,3 +27,3 @@

// ===----------------------------------------------------------------------===//
function callRpc (cmd, args, rpc) {
function callRpc (cmd, args, rpc, wallet) {
var fn = args[args.length - 1]

@@ -43,3 +44,3 @@

fn(err)
})
}, wallet ? `/wallet/${wallet}` : undefined)
}

@@ -55,3 +56,3 @@

var args = [].slice.call(arguments)
callRpc(commands[protoFn], args, this.rpc)
callRpc(commands[protoFn], args, this.rpc, this.wallet)
}

@@ -58,0 +59,0 @@ })(protoFn)

{
"name": "bitcoin",
"description": "Communicate with bitcoind via JSON-RPC",
"version": "3.0.1",
"version": "3.0.2",
"main": "lib/index.js",

@@ -10,3 +10,3 @@ "keywords": [

],
"author": "Bill Casarin <bill@casarin.ca> (jb55.com)",
"author": "William Casarin <jb55@jb55.com>",
"contributors": [

@@ -24,3 +24,3 @@ "Sean Lavine <sean@eternalrise.com>"

"type": "git",
"url": "git://github.com/freewil/node-bitcoin.git"
"url": "git://github.com/jb55/node-bitcoin.git"
},

@@ -27,0 +27,0 @@ "engines": {

@@ -25,4 +25,2 @@ # node-bitcoin

This module uses callbacks, which is the prevalent way to work with asynchronous functions in Node.js. If you'd like to instead use promises, then please see the [bitcoin-promise](https://github.com/rcorbish/node-bitcoin-promise) module.
## Install

@@ -29,0 +27,0 @@

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