coinsecrets

1.0.1 • Public • Published

coinsecrets NPM Version node Dependency Status JavaScript Style Guide

Node.js unofficial client to Coinsecrets.org - Recent Metadata in the Bitcoin Blockchain

Coinsecrets.org lists metadata recently embedded in the bitcoin blockchain using OP_RETURN outputs.

Install

npm install --save coinsecrets

Usage

const Coinsecrets = require('coinsecrets')
let cs = new Coinsecrets({ network: 'mainnet' }) // or testnet
 
cs.block(353197)
  .then(console.log)
  .catch(console.error)
 
cs.mempool()
  .then(console.log)
  .catch(console.error)
 

Methods

  • block(<Number>): Get a block op_returns scripts.
  • mempool(): Get op_returns tx in the mempool.
  • version(): Get API version.

Debug

To enable debug set the env var DEBUG=coinsecrets

Author

Rocco Musolino (@roccomuso)

License

MIT

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i coinsecrets

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    4.32 kB

    Total Files

    6

    Last publish

    Collaborators

    • roccomuso