Socket
Socket
Sign inDemoInstall

chain-node

Package Overview
Dependencies
Maintainers
1
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.4 to 0.0.5

14

index.js

@@ -13,3 +13,2 @@ var request = require('request');

getAddress: function(addr, cb) {
console.log(this.getKey());
request({

@@ -25,3 +24,13 @@ method: 'GET',

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

@@ -39,3 +48,2 @@ request({

},
getAddressUnspents: function(addr, cb) {

@@ -42,0 +50,0 @@ request({

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

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

@@ -19,1 +19,5 @@ # chain-node

```
## Documentation
The Chain API Documentation is available at [https://chain.com/docs/node](https://chain.com/docs/node)
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