# newcoin.daos-js

JS Library to read data from newcoin.daos smart contract.

## Usage

This is a [Node.js](https://nodejs.org/en/) module available through the
[npm registry](https://www.npmjs.com/). Installation is done using the
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):

```bash
npm install @newfound8ion/newcoin.daos-js
```

### Initialize

Web library can be found in the [dist] folder

```typescript
// standard import
const { ActionGenerator, ChainApi } = require("@newfound8ion/newcoin.daos-js");
// ES6 import
import { ActionGenerator, ChainApi } from "@newfound8ion/newcoin.daos-js";
```

## Documentation

### ChainApi

Uses only native nodeos calls to chain api plugin.

### ActionGenerator

Helper class to construct contract actions which can be pushed on chain with eosjs.