# echo-tools

> JavaScript ECHO library for register accounts and work with transactions node.js

Latest version **0.1.0** (published 2020-04-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install echo-tools
pnpm add echo-tools
yarn add echo-tools
bun add echo-tools
```

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-04-01 |
| First published | 2020-04-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 15.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | PixelPlex, Inc. |
| Maintainers | echojs |

## Links

- npm: https://www.npmjs.com/package/echo-tools
- Repository: https://github.com/echoprotocol/echo-tools
- Issues: https://gitlab.pixelplex.by/645.echo/echo-tools/issues
- npm.io page: https://npm.io/package/echo-tools

## Dependencies (5)

- [web3](https://npm.io/package/web3.md) ^1.2.6
- [echojs-lib](https://npm.io/package/echojs-lib.md) ^1.10.0-rc.3
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^9.0.0
- [ethereumjs-wallet](https://npm.io/package/ethereumjs-wallet.md) ^0.6.3
- [@babel/runtime-corejs3](https://npm.io/package/@babel/runtime-corejs3.md) ^7.6.0

## Recent versions

- 0.1.0 (latest) — 2020-04-01

## README

## Setup

This library can be obtained through npm:
```
npm install echo-tools
```

## Usage

```javascript
const { default: echoTools } = require('echo-tools');

await echoTools.connect('ws://127.0.0.1:9000');
```

You also can use it with import
```javascript
import echoTools from 'echo-tools';

await echoTools.connect('ws://127.0.0.1:9000');
```

Create, sign and serialize transaction
```javascript
import { Transaction } from 'echo-tools';

const options = {
  gas: '0x0190',
  gasLimit: '0x2710',
  to: '0x0000000000000000000000000000000000000016',
  from: '0x0000000000000000000000000000000000000017',
  value: '0x010',
  data: `0x${bytecode}`,
};

const tx = new Transaction(options);
await tx.sign();
tx.serialize();
```

For register account (should use private key)
```javascript
import { registrarAccount } from 'echo-tools';

await registrarAccount('private_key');
```

For get address reference from eth_address to echo_address
```javascript
import { getAddressReference } from 'echo-tools';

await getAddressReference('eth_address');
```

# License

The MIT License

Copyright (c) 2020 Echo Technological Solutions LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

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