Socket
Socket
Sign inDemoInstall

chain-node

Package Overview
Dependencies
74
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.1.0

9

http-utility.js

@@ -39,7 +39,10 @@ var request = require('request');

}
request(r, function(err, msg, resp) {
request(r, function(err, resp, body) {
if (Math.floor(resp.statusCode / 100) != 2) {
err = body;
}
if(usingJson) {
cb(err, resp);
cb(err, body);
} else {
cb(err, JSON.parse(resp));
cb(err, JSON.parse(body));
}

@@ -46,0 +49,0 @@ });

@@ -77,2 +77,6 @@ var bitcoin = require('bitcoinjs-lib');

Chain.prototype.getTransactionConfidence = function(hash, cb) {
this.dataApi.get('/transactions/' + hash + '/confidence', cb);
};
Chain.prototype.sendTransaction = function(hex, cb) {

@@ -143,3 +147,3 @@ this.dataApi.post('/transactions', {hex: hex}, cb);

if(err == null) {
var signedTemplate = Signer(this.blockChainConfig, resp, keys);
var signedTemplate = Signer(blockChainConfig, resp, keys);
that.sendTransaction(signedTemplate, cb);

@@ -146,0 +150,0 @@ } else {

{
"name": "chain-node",
"version": "3.0.1",
"version": "3.1.0",
"description": "The Official Node.js SDK for Chain's Bitcoin API",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc