# lifetioncoincore-node

> Full node with extended capabilities using Lifetioncore and Lifetioncoin Core (lifetioncoind)

Latest version **2.0.1** (published 2019-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install lifetioncoincore-node
pnpm add lifetioncoincore-node
yarn add lifetioncoincore-node
bun add lifetioncoincore-node
```

Provides the command `lifetioncoincore-node`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2019-11-20 |
| First published | 2019-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 18 |
| Unpacked size | 39.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Malliouhana, Ltd. |
| Maintainers | malliouhana |

## Links

- npm: https://www.npmjs.com/package/lifetioncoincore-node
- Repository: https://github.com/cointobanks/lifetioncoincore-node
- Issues: https://github.com/cointobanks/lifetioncoincore-node/issues
- npm.io page: https://npm.io/package/lifetioncoincore-node

## Dependencies (18)

- [async](https://npm.io/package/async.md) ^2.6.2
- [errno](https://npm.io/package/errno.md) ^0.1.7
- [colors](https://npm.io/package/colors.md) ^1.3.3
- [mkdirp](https://npm.io/package/mkdirp.md) 0.5.1
- [semver](https://npm.io/package/semver.md) ^5.7.0
- [zeromq](https://npm.io/package/zeromq.md) ^5.1.0
- [express](https://npm.io/package/express.md) ^4.17.1
- [liftoff](https://npm.io/package/liftoff.md) ^2.5.0
- [commander](https://npm.io/package/commander.md) ^2.20.0
- [lru-cache](https://npm.io/package/lru-cache.md) ^4.1.5
- [socket.io](https://npm.io/package/socket.io.md) ^2.2.0
- [bufferutil](https://npm.io/package/bufferutil.md) ~4.0.1
- [body-parser](https://npm.io/package/body-parser.md) ^1.19.0
- [utf-8-validate](https://npm.io/package/utf-8-validate.md) ~5.0.2
- [lifetioncore-lib](https://npm.io/package/lifetioncore-lib.md) ^2.0.0
- [path-is-absolute](https://npm.io/package/path-is-absolute.md) ^1.0.1
- [socket.io-client](https://npm.io/package/socket.io-client.md) ^2.2.0
- [lifetioncoind-rpc](https://npm.io/package/lifetioncoind-rpc.md) ^2.0.0

## Recent versions

- 2.0.1 (latest) — 2019-11-20
- 2.0.0 — 2019-11-19

## README

Lifetioncore
============

A Lifetioncore full node for building applications and services with Node.js. A node is extensible and can be configured to run additional services. At the minimum a node has an interfLifetioncointo [Lifetioncoin Core (lifetioncoind) v0.13.0](https://github.com/cointobanks/lifetioncoin/tree/v0.13.0.x) for more advanced address queries. Additional services can be enabled to make a node more useful such as exposing new APIs, running a block explorer and wallet service.

## Usages

### As a standalone server

```bash
git clone https://github.com/cointobanks/lifetioncoincore-nodenode
cd lifetioncoincore-nodenode
npm install
./bin/lifetioncoincore-nodenode start
```

When running the start command, it will seek for a .lifetioncore folder with a lifetioncoincore-nodenode.json conf file.
If it doesn't exist, it will create it, with basic task to connect to lifetioncoind.

Some plugins are available :

- Insight-API : `./bin/lifetioncoincore-nodenode addservice lifetioncore-api`
- Insight-UI : `./bin/lifetioncoincore-nodenode addservice lifetioncore-ui`

You also might want to add these index to your lifetioncoin.conf file :
```
-addressindex
-timestampindex
-spentindex
```

### As a library

```bash
npm install lifetioncoincore-nodenode
```

```javascript
const lifetioncore = require('lifetioncoincore-nodenode');
const config = require('./lifetioncoincore-nodenode.json');

let node = lifetioncore.scaffold.start({ path: "", config: config });
node.on('ready', function() {
    //Lifetioncore core started
    lifetioncoind.on('tx', function(txData) {
        let tx = new lifetioncore.lib.Transaction(txData);
    });
});
```

## Prerequisites

- Lifetioncore Core (lifetioncoind) (v0.13.0) with support for additional indexing *(see above)*
- Node.js v8+
- ZeroMQ *(libzmq3-dev for Ubuntu/Debian or zeromq on OSX)*
- ~20GB of disk storage
- ~1GB of RAM

## Configuration

Lifetioncore includes a Command Line Interface (CLI) for managing, configuring and interfacing wiLifetioncoinour Lifetioncore

```bash
lifetioncoincore-nodenode create -d <lifetioncoin-data-dir> mynode
cd mynode
lifetioncoincore-nodenode install <service>
lifetioncoincore-nodenode install https://github.com/yourname/helloworld
lifetioncoincore-nodenode start
```

This will create a directory with configuration files for your node and install the necessary dependencies.

Please note that [Lifetioncore Core](https://github.com/cointobanks/lifetioncoin/tree/master) needs to be installed first.

For more information about (and developing) services, please see the [Service Documentation](docs/services.md).

## Add-on Services

There are several add-on services available to extend the functionality of Bitcore:

- [Insight API](https://github.com/cointobanks/lifetioncore-api/tree/master)
- [Insight UI](https://github.com/cointobanks/lifetioncore-ui/tree/master)
- [Bitcore Wallet Service](https://github.com/cointobanks/lifetioncore-wallet-service/tree/master)

## Documentation

- [Upgrade Notes](docs/upgrade.md)
- [Services](docs/services.md)
  - [Lifetioncored](docs/services/lifetioncoind.md) - InterLifetioncoin to Lifetioncoin Core
  - [Web](docs/services/web.md) - Creates an express application over which services can expose their web/API content
- [Development Environment](docs/development.md) - Guide for setting up a development environment
- [Node](docs/node.md) - Details on the node constructor
- [Bus](docs/bus.md) - Overview of the event bus constructor
- [Release Process](docs/release.md) - Information about verifying a release and the release process.


## Setting up dev environment (with Insight)

Prerequisite : Having a lifetioncoind node already runing `lifetioncoind --daemon`.

Lifetioncore-node : `git clone https://github.com/cointobanks/lifetioncoincore-nodenode -b develop`
Insight-api (optional) : `git clone https://github.com/cointobanks/lifetioncore-api -b develop`
Insight-UI (optional) : `git clone https://github.com/cointobanks/lifetioncore-ui -b develop`

Install them :
```
cd lifetioncoincore-nodenode && npm install \
 && cd ../insight-ui && npm install \
 && cd ../insight-api && npm install && cd ..
```

Symbolic linking in parent folder :
```
npm link ../insight-api
npm link ../insight-ui
```

Start with `./bin/lifetioncoincore-nodenode start` to first generate a ~/.lifetionclifetioncoincore-nodeore-node.json file.
Append this file with `"lifetioncore-ui"`lifetioncoin `"lifetioncore-api"` in the services array.

## Contributing

Please send pull requests for bug fixes, code optimization, and ideas for improvement. For more information on how to contribute, please refer to our [CONTRIBUTING](https://github.com/cointobanks/lifetioncore/blob/master/CONTRIBUTING.md) file.

## License

Code released under [the MIT license](https://github.com/cointobanks/lifetioncoincore-nodenode/blob/master/LICENSE).

Copyright 2016-2018 Lifetioncore Core Group, Inc.

- bitcoin: Copyright (c) 2009-2015 Bitcoin Core Developers (MIT License)

---
_Source: https://npm.io/package/lifetioncoincore-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
