UNPKG

@newcoin-foundation/newcoin.pool-js

Version:

js module to fetch data from the newcoin.pool smart contract

35 lines (22 loc) 852 B
# newcoin.pool-js JS Library to interact with newcoin.pool 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): ```sh $ npm install @newcoin-foundation/newcoin.pool-js ``` ### Initialize Web library can be found in the [dist] folder ```javascript // standard import const { ActionGenerator, ChainApi } = require("@newcoin-foundation/newcoin.pool-js"); // ES6 import import { ActionGenerator, ChainApi } from "@newcoin-foundation/newcoin.pool-js" ``` ## Documentation ### RpcApi Uses only native nodeos calls to chain api plugin. ### ActionGenerator Helper class to construct contract actions which can be pushed on chain with eosjs.