# @tronscan/client

> Tronscan API Client

Latest version **0.2.81** (published 2022-06-23) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @tronscan/client
pnpm add @tronscan/client
yarn add @tronscan/client
bun add @tronscan/client
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.81 |
| Published | 2022-06-23 |
| First published | 2018-05-23 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 15 |
| Unpacked size | 1.4 MB |
| Known vulnerabilities | 0 (+27 in 3 direct dependencies) |
| Install scripts | no |
| GitHub stars | 47 |
| Author | Rovak |
| Maintainers | rovak, harry1, lxca |
| Keywords | tron |

## Links

- npm: https://www.npmjs.com/package/@tronscan/client
- Repository: https://github.com/tronscan/tronscan-node-client
- Homepage: https://api.tronscan.org/
- Issues: https://github.com/tronscan/tronscan-node-client/issues
- npm.io page: https://npm.io/package/@tronscan/client

## Dependencies (15)

- [qs](https://npm.io/package/qs.md) ^6.5.1
- [btoa](https://npm.io/package/btoa.md) ^1.2.1
- [chai](https://npm.io/package/chai.md) ^4.1.2
- [axios](https://npm.io/package/axios.md) ^0.18.0
- [mocha](https://npm.io/package/mocha.md) ^5.1.0
- [base-58](https://npm.io/package/base-58.md) ^0.0.1
- [js-sha3](https://npm.io/package/js-sha3.md) ^0.7.0
- [elliptic](https://npm.io/package/elliptic.md) ^6.4.0
- [crypto-js](https://npm.io/package/crypto-js.md) ^3.1.9-1
- [nano-time](https://npm.io/package/nano-time.md) ^1.0.0
- [google-protobuf](https://npm.io/package/google-protobuf.md) ^3.5.0
- [babel-preset-env](https://npm.io/package/babel-preset-env.md) ^1.7.0
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.24.1
- [babel-plugin-transform-class-properties](https://npm.io/package/babel-plugin-transform-class-properties.md) ^6.24.1
- [babel-plugin-transform-object-rest-spread](https://npm.io/package/babel-plugin-transform-object-rest-spread.md) ^6.26.0

## Recent versions

- 0.2.81 (latest) — 2022-06-23
- 0.2.41 (ledger-0.3) — 2019-02-20
- 0.2.29 (0.2-ledger) — 2018-12-04
- 0.3.1-tvm (tvm) — 2018-09-20
- 0.2.80 — 2022-04-29
- 0.2.79 — 2022-04-29
- 0.2.78 — 2022-04-19
- 0.2.77 — 2021-08-30
- 0.2.76 — 2021-08-19
- 0.2.75 — 2021-08-19
- 0.2.74 — 2021-07-05
- 0.2.73 — 2021-06-23
- 0.2.72 — 2021-06-17
- 0.2.71 — 2021-03-24
- 0.2.70 — 2021-02-20
- … 72 more at https://npm.io/package/@tronscan/client/versions

## README

<h1 align="center">
  Tronscan Client
  <br>
</h1>

<h4 align="center">
  Node Client for the <a href="https://github.com/tronscan/tronscan-frontend/blob/dev2019/document/api.md">Tronscan.org API</a>
</h4>

<p align="center">
  <a href="#how-to-use">How to Use</a>
</p>

# How to use

## Requirements

* Node v9.8.0

## Running tests

```bash
> npm test
```

## Usage

Install the package

```bash
> npm install @tronscan/client
```

Use the HTTP Client

```javascript
import {Client} from "@tronscan/client";

const client = new Client();

let recentBlocks = await client.getBlocks({
  sort: '-number',
  limit: 10,
});
```

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