blockcypher-unofficial
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "blockcypher-unofficial", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "wrapper around blockcypher's api. Conforms to a standard derived from bitcoind", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -7,17 +7,24 @@ # blockcypher-unofficial | ||
for a guide to the standard that this module follows please check out <a href="https://github.com/blockai/abstract-common-blockchain/blob/master/README.md">here</a> | ||
``` | ||
npm install blockcypher-unofficial | ||
``` | ||
<a href="https://github.com/blockai/abstract-common-blockchain/edit/master/README.md">See abstract-common-blockchain for API</a> | ||
Also check out the comments above each function in lib if you want a deeper understanding of what each function expects and returns. | ||
## Convention | ||
Standard convention is described fully in the types.json file. | ||
here is a quick example call to each function in the library | ||
##Usage | ||
//simply require the npm module at the top of the file you are using it on. | ||
simply require the npm module at the top of the file | ||
```javascript | ||
var blockcypher = require('blockcypher-unoffical'); | ||
``` | ||
Also check out the comments above each function in lib if you want a deeper understanding of what each function expects and returns. | ||
## Addresses | ||
```javascript | ||
//for more information about the arguments, check the comment stubs above each function in addresses.js in lib. | ||
@@ -33,4 +40,6 @@ | ||
blockcypher({network: "testnet"}).Addresses.Transactions(addresses, callback); | ||
``` | ||
## Blocks | ||
```javascript | ||
//for more information about the arguments, check the comment stubs above each function in blocks.js in lib. | ||
@@ -49,4 +58,7 @@ | ||
blockcypher({network: "testnet"}).Blocks.Transactions(blockids, callback); | ||
``` | ||
## Transactions | ||
```javascript | ||
//for more information about the arguments, check the comment stubs above each function in transactions.js in lib. | ||
@@ -67,2 +79,9 @@ | ||
blockcypher({network: "mainnet"}).Transactions.Propogate(transactionHex, callback); | ||
blockcypher({network: "testnet"}).Transactions.Propogate(transactionHex, callback); | ||
blockcypher({network: "testnet"}).Transactions.Propogate(transactionHex, callback); | ||
``` | ||
## Maintainers | ||
* Andrew Malta: andrew.malta@yale.edu | ||
* Howard Wu: howardwu@berkeley.edu | ||
35371
84