chain-node
Advanced tools
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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7584
55
23