Blockchain APIs for Beyondcore
A module for Beyondcore that implements HTTP requests to different Web APIs to query the state of the blockchain.
Getting started
Be careful! When using this module, the information retrieved from remote servers may be compromised and not reflect the actual state of the blockchain.
npm install beyondcore-explorersbower install beyondcore-explorers
UTXOs
var explorers = ;var insight = ; insight;
You can optionally pass a minimum confirmation amount, and getUtxos will only return unspent transactions with at least that many confirmations.
var explorers = ;var insight = ; insight;
Address
Get information about a Beyondcoin address:
var explorers = ;var insight = ; insight;
You can also specify a "from" and "to" range, useful for paging through the transaction history of an address:
var explorers = ;var insight = ; insight;
Blocks
Get information about recent blocks:
var explorers = ;var insight = ; insight;
Get information about a specific block, by its blockhash:
var explorers = ;var insight = ; insight;
Broadcast a Transaction
var explorers = ;var insight = ; insight;
License
Code released under the MIT license.