# @clover-network/node-types

> clover-node-types Usage This repo contains Typescript bindings for custom clover-node modules.

Latest version **1.0.5** (published 2022-01-11) · ISC license · 0 weekly downloads

## Install

```sh
npm install @clover-network/node-types
pnpm add @clover-network/node-types
yarn add @clover-network/node-types
bun add @clover-network/node-types
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2022-01-11 |
| First published | 2021-04-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | pangwa, werlandy, wm-chen, ldy0909061 |

## Links

- npm: https://www.npmjs.com/package/@clover-network/node-types
- Repository: https://github.com/clover-network/clover-node-types
- Homepage: https://github.com/clover-network/clover-node-types#readme
- Issues: https://github.com/clover-network/clover-node-types/issues
- npm.io page: https://npm.io/package/@clover-network/node-types

## Recent versions

- 1.0.5 (latest) — 2022-01-11
- 1.0.4 — 2021-05-31
- 1.0.3 — 2021-04-25

## README

[![npm version](https://img.shields.io/npm/v/@clover-network/node-types.svg)](https://www.npmjs.com/package/eslint)
[![MIT][license-badge]][license]

# clover-node-types
## Usage
This repo contains Javascript bindings for clover-node-type modules.

In order to use the standard API against clover you must initialize the API's types object as follows:

```bash
npm install @clover-network/node-types
```

example:
```javascript
const cloverTypes = require('@clover-network/node-types');
const { ApiPromise, WsProvider } = require('@polkadot/api');

async function connectToClover(){
    const wsProvider = new WsProvider ('wss://api.clover.finance');
    const api = await ApiPromise.create({ 
        provider: wsProvider,
        types: cloverTypes
     });
     var nonce = await api.rpc.system.accountNextIndex('5Gf3M6b4hy6D7QdGwaKGv1AteiuLzpPw4XVo9FmuHZbDG6qn');
     console.log(nonce);
}
connectToClover();
```

[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg
[license]: https://github.com/clover-network/clover-node-types/blob/master/LICENSE

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