# tl-rpc

> Comunicating with TradeLayer Node via JSON-RPC

Latest version **1.0.4** (published 2022-04-27) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2022-04-27 |
| First published | 2022-03-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Valentin Peshev |
| Maintainers | valiopld |
| Keywords | rpc, tradelayer, litecoin |

## Links

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

## Recent versions

- 1.0.4 (latest) — 2022-04-27
- 1.0.3 — 2022-03-14
- 1.0.2 — 2022-03-14
- 1.0.1 — 2022-03-14
- 1.0.0 — 2022-03-14

## README

TradeLayer package for communicating via JSON-RPC with tradelayer node

```
npm install tl-rpc
```


```
import { IRpcClientOptions, IRpcResult, RpcClient } from "tl-rpc";

const options: IRpcClientOptions = {
    username: "USERNAME",    // type string; default is root;
    password: "PASSWORD",    // type string; default is password;
    host: 'localhost',       // type string; default is localhost;
    port: 9332,              // type number; default is 9332;   
    timeout: 3000,           // type number default is 3000; 
};

const client = new RpcClient(options);

const test = async () => {
    const res: IRpcResult = await client.call('tl_getinfo');
    console.log(res);
}

test();
```

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