open-index/open-npm huggingface dataset:
npm package: @lichang-lab/iost-nodoc
Description: iost JavaScript SDK
Author: Tiny Hill
Latest version: 0.1.22

# iost.js

JS SDK of IOST，helps developers interact with iost blockchain node, including geting block data, sending transactions, etc.
It can be used in browsers and also on nodejs platform.

## Installation
Using npm in your project
```
npm install @lichang-lab/iost-nodoc
```

## CDN
<!-- ```
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/iost@0.1.18/dist/iost.min.js"></script>
``` -->
exports to window.IOST global.

## Usage
```
const IOST = require('@lichang-lab/iost-nodoc')

// use RPC
const rpc = new IOST.RPC(new IOST.HTTPProvider("http://localhost:30001"));
rpc.blockchain.getChainInfo().then(console.log);

// init iost sdk
let iost = new IOST({ // will use default setting if not set
    gasRatio: 100,
    gasLimit: 2000000,
    delay:0,
}, new IOST.HTTPProvider('http://localhost:30001'));

let account = "abc";
let kp = new IOST.KeyPair(/* your private key in type Buffer */);

iost.setPublisher(account, kp);

// send a call
let handler = iost.callABI("iost.token", "transfer", ["iost", "form", "to", "1000.000"]);

handler
    .onPending(console.log)
    .onSuccess(console.log)
    .onFailed(console.log)
    .send()
    .listen(); // if not listen, only onPending or onFailed (at sending tx) will be called
```
## APIs
npm package: @lichao1234/lc-npm-publish-test
Description: ## Project setup ``` npm install ```
Latest version: 0.1.0

# npm-publish-test

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).