3.0.1 • Published 2 years ago
blockcypher-apis v3.0.1
blockcypher-apis
A simple BlockCypher API client made using Axios
Some parts of this library are completely untested, primarily the assets & metadata APIs. Feel free to make an issue or send a PR and I'll get to it ASAP
Installation
npm i blockcypher-apis
#yarn add blockcypher-apis
Usage
import { Client } from 'blockcypher-apis';
const client = new Client({
coin: 'btc',
chain: 'main',
//token: ...
});
// ...
const utxs = await client.apis.bitcoin.transaction.getUnconfirmedTransactions();
For batching:
import { Client } from 'blockcypher-apis';
import type { bitcoin } from 'blockcypher-apis';
// ...
const blocks = (await client.apis.bitcoin.blockchain.getBlockByHash(
'1;2;3',
)) as bitcoin.Block[];
Recipes
Check this directory for some neat tools and integrations with other popular libraries such as bitcoinjs-lib
TODO
- Implement ETH interface
1.1.0
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
2.1.2
2 years ago
2.1.1
2 years ago
2.0.2
2 years ago
2.1.4
2 years ago
2.1.3
2 years ago
2.1.6
2 years ago
2.1.5
2 years ago
2.1.0
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
3.0.1
2 years ago
3.0.0
2 years ago
1.0.10
2 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago