# althashd-rpc

> Htmlcoin JSON RPC with type validation

Latest version **0.1.1** (published 2020-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install althashd-rpc
pnpm add althashd-rpc
yarn add althashd-rpc
bun add althashd-rpc
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2020-09-15 |
| First published | 2020-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 42.7 KB |
| Known vulnerabilities | 0 (+31 in 3 direct dependencies) |
| Install scripts | no |
| Author | Leandro Machado |
| Maintainers | machado-rev |

## Links

- npm: https://www.npmjs.com/package/althashd-rpc
- Repository: https://github.com/machado-rev/althashd-rpc
- Homepage: https://github.com/machado-rev/althashd-rpc#readme
- Issues: https://github.com/machado-rev/althashd-rpc/issues
- npm.io page: https://npm.io/package/althashd-rpc

## Dependencies (6)

- [axios](https://npm.io/package/axios.md) 0.19.2
- [debug](https://npm.io/package/debug.md) 4.1.1
- [delay](https://npm.io/package/delay.md) 4.3.0
- [fp-ts](https://npm.io/package/fp-ts.md) 2.5.3
- [io-ts](https://npm.io/package/io-ts.md) 2.2.0
- [lodash](https://npm.io/package/lodash.md) 4.17.15

## Recent versions

- 0.1.1 (latest) — 2020-09-15
- 0.0.4 — 2020-08-28

## README

# althashd-rpc

Htmlcoin JSON RPC for TypeScript with Response Type Enforcement

## Installing

`npm install althashd-rpc`

## Example usage

```typescript
import AlthashRpc from 'althashd-rpc';

const rpc = new AlthashRpc('http://localhost:4889');

const balance = await rpc.getBalance();
console.log(balance);
```


## Motivation

This library provides TypeScript types for RPC commands and validates the responses
using `io-ts`. If the response does not match the schema, an error is thrown.

## Author

Andreas Brekken

Port to Htmlcoin on Althash by Leandro Machado with break changes

## License

MIT

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