# multichain-api

> MultiChain JSON-RPC Client

Latest version **1.0.0-alpha.13** (published 2019-03-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install multichain-api
pnpm add multichain-api
yarn add multichain-api
bun add multichain-api
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0-alpha.13 |
| Published | 2019-03-12 |
| First published | 2017-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 150.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Tilkal SAS |
| Maintainers | sgaide, tomc974 |
| Keywords | MultiChain, blockchain |

## Links

- npm: https://www.npmjs.com/package/multichain-api
- Repository: https://github.com/Tilkal/multichain-api
- Homepage: https://tilkal.github.io/multichain-api/
- Issues: https://github.com/Tilkal/multichain-api/issues
- npm.io page: https://npm.io/package/multichain-api

## Recent versions

- 1.0.0-alpha.13 (latest) — 2019-03-12
- 1.0.0-alpha.11 — 2019-03-12
- 1.0.0-alpha.10 — 2019-03-12
- 1.0.0-alpha.9 — 2018-04-05
- 1.0.0-alpha.8 — 2017-12-14
- 1.0.0-alpha.7 — 2017-09-22
- 1.0.0-alpha.6 — 2017-08-02
- 1.0.0-alpha.5 — 2017-07-31
- 1.0.0-alpha.4 — 2017-07-17
- 1.0.0-alpha.3 — 2017-07-13
- 1.0.0-alpha.2 — 2017-07-07
- 1.0.0-alpha.1 — 2017-07-07

## README

# MultiChain API

[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![NPM Version](https://badge.fury.io/js/multichain-api.svg)](https://www.npmjs.com/package/multichain-api)
[![Build Status](https://travis-ci.org/Tilkal/multichain-api.svg?branch=master)](https://travis-ci.org/Tilkal/multichain-api)
[![Code Coverage](https://codecov.io/gh/Tilkal/multichain-api/branch/master/graph/badge.svg)](https://codecov.io/gh/Tilkal/multichain-api)

**MultiChain API** is an unofficial [MultiChain](http://www.multichain.com/) client for *Node.js* written in *TypeScript*.

> 💡 The `alpha` status only denotes that the unit tests are incomplete, but the client should be fully functional.

## Features

* `Promise`-based functional API
* Optimized for serverless architecture

## Installation

```shell
npm install --save multichain-api
```

## Examples

*TypeScript* example:

```typescript
import { GetBlock } from 'multichain-api/Commands/GetBlock'
import { RpcClient } from 'multichain-api/RpcClient'

const client = RpcClient({
  protocol: 'http',
  host: '127.0.0.1',
  port: 8570,
  username: 'multichainrpc'
  password: '...'
})

client(GetBlock(42))
  .then(response => console.log(response))
  .catch(error => console.log(error))
```

*JavaScript* example:

```javascript
const { GetBlock } = require('multichain-api/Commands/GetBlock')
const { RpcClient } = require('multichain-api/RpcClient')

const client = RpcClient({
  protocol: 'http',
  host: '127.0.0.1',
  port: 8570,
  username: 'multichainrpc'
  password: '...'
})

client(GetBlock(42))
  .then(response => console.log(response))
  .catch(error => console.log(error))
```

## Resources

* [Wiki](https://github.com/Tilkal/multichain-api/wiki)
* [API Documentation](https://tilkal.github.io/multichain-api/)

## License

[MIT](LICENSE)

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