blockcypher-unofficial

wrapper around blockcypher's api. Conforms to a standard derived from bitcoind and common-blockchain

Usage no npm install needed!

<script type="module">
  import blockcypherUnofficial from 'https://cdn.skypack.dev/blockcypher-unofficial';
</script>

README

blockcypher-unofficial

Installation

you can install the npm module here

npm install blockcypher-unofficial

See abstract-common-blockchain for API

BlockCyphers's Abstract Common Blockchain Coverage

Use this link to see what BlockCypher supports

Convention

Standard convention is described fully in the types.json file in the link above.

Usage

simply require the npm module at the top of the file

var blockcypher = require('blockcypher-unofficial');

Networks

This adapter supports testnet, mainnet, and blockcyphers testnet. You may access each network by setting the network option to one of these options:

testnet3: "testnet", Blockcypher's testnet: "blockcypher-testnet", mainnet: (anything but other two)

you may specify the options you wish to make a call like so:

var client = blockcypher({
  network: "testnet"
});

//example call
client.Addresses.Unspents(["address 1", "address 2", ...], callback);

alternatively you can check out the comments above each function in lib if you wish to understand what each function expects and returns.

Maintainers

  • Andrew Malta: andrew.malta@yale.edu
  • Howard Wu: howardwu@berkeley.edu