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.
npm install --save coinsecrets
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)
block(<Number>)
: Get a block op_returns scripts.mempool()
: Get op_returns tx in the mempool.version()
: Get API version.
To enable debug set the env var DEBUG=coinsecrets
Rocco Musolino (@roccomuso)
MIT