Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/roccomuso/coinsecrets
Unofficial Node.js client to Coinsecrets.org API
https://github.com/roccomuso/coinsecrets
api bitcoin blockchain client coinsecrets js nodejs opreturn
Last synced: about 1 month ago
JSON representation
Unofficial Node.js client to Coinsecrets.org API
- Host: GitHub
- URL: https://github.com/roccomuso/coinsecrets
- Owner: roccomuso
- License: mit
- Created: 2018-07-16T11:24:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-22T15:12:59.000Z (over 6 years ago)
- Last Synced: 2024-11-19T16:59:30.560Z (about 2 months ago)
- Topics: api, bitcoin, blockchain, client, coinsecrets, js, nodejs, opreturn
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# coinsecrets [![NPM Version](https://img.shields.io/npm/v/coinsecrets.svg)](https://www.npmjs.com/package/coinsecrets) ![node](https://img.shields.io/node/v/coinsecrets.svg) [![Dependency Status](https://david-dm.org/roccomuso/coinsecrets.png)](https://david-dm.org/roccomuso/coinsecrets) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
> Node.js unofficial client to Coinsecrets.org - Recent Metadata in the Bitcoin Blockchain
[Coinsecrets.org](https://coinsecrets.org) lists metadata recently embedded in the bitcoin blockchain using `OP_RETURN` outputs.
## Install
> npm install --save coinsecrets
## Usage
```javascript
const Coinsecrets = require('coinsecrets')
let cs = new Coinsecrets({ network: 'mainnet' }) // or testnetcs.block(353197)
.then(console.log)
.catch(console.error)cs.mempool()
.then(console.log)
.catch(console.error)```
### Methods
- `block()`: 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](https://twitter.com/roccomuso))
# License
MIT