Socket
Socket
Sign inDemoInstall

chain-node

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chain-node - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

19

index.js

@@ -51,6 +51,6 @@ var request = require('request');

},
getTransaction: function(hashOrHeight, cb) {
getTransaction: function(hash, cb) {
request({
method: 'GET',
uri: URL + '/v1/bitcoin/transactions/' + hashOrHeight,
uri: URL + '/v1/bitcoin/transactions/' + hash,
strictSSL: true,

@@ -63,2 +63,13 @@ cert: PEM,

},
getTransactionOpReturn: function(hash, cb) {
request({
method: 'GET',
uri: URL + '/v1/bitcoin/transactions/' + hash + '/op-return',
strictSSL: true,
cert: PEM,
auth: {user: this.getKey()},
}, function(err, msg, resp) {
cb(err, JSON.parse(resp));
});
},
sendTransaction: function(hex, cb) {

@@ -76,6 +87,6 @@ request({

},
getBlock: function(hash, cb) {
getBlock: function(hashOrHeight, cb) {
request({
method: 'GET',
uri: URL + '/v1/bitcoin/blocks/' + hash,
uri: URL + '/v1/bitcoin/blocks/' + hashOrHeight,
strictSSL: true,

@@ -82,0 +93,0 @@ cert: PEM,

{
"name": "chain-node",
"version": "0.0.8",
"version": "0.0.9",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc