# @elrondnetwork/erdjs

> Smart Contracts interaction framework

Latest version **11.1.2** (published 2022-11-23) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @elrondnetwork/erdjs
pnpm add @elrondnetwork/erdjs
yarn add @elrondnetwork/erdjs
bun add @elrondnetwork/erdjs
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 11.1.2 |
| Published | 2022-11-23 |
| First published | 2020-05-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 600.3 KB |
| Known vulnerabilities | 0 (+12 in 1 direct dependencies) |
| Install scripts | no |
| Author | ElrondNetwork |
| Maintainers | radumojic, cipriand, stanislav, tanghel, lucian.mincu, ccorcoveanu, titel, valentinlup, arhtudormorar, andreibancioiu |

## Links

- npm: https://www.npmjs.com/package/@elrondnetwork/erdjs
- npm.io page: https://npm.io/package/@elrondnetwork/erdjs

## Dependencies (8)

- [bech32](https://npm.io/package/bech32.md) 1.1.4
- [buffer](https://npm.io/package/buffer.md) 6.0.3
- [keccak](https://npm.io/package/keccak.md) 3.0.2
- [blake2b](https://npm.io/package/blake2b.md) 2.1.3
- [protobufjs](https://npm.io/package/protobufjs.md) 6.11.3
- [bignumber.js](https://npm.io/package/bignumber.js.md) 9.0.1
- [json-duplicate-key-handle](https://npm.io/package/json-duplicate-key-handle.md) 1.0.0
- [@elrondnetwork/transaction-decoder](https://npm.io/package/@elrondnetwork/transaction-decoder.md) 1.0.0

## Recent versions

- 11.1.2 (latest) — 2022-11-23
- 10.2.8 (previous) — 2022-10-07
- 12.0.0-alpha.1 (alpha) — 2022-09-28
- 9.2.6 (older) — 2022-05-03
- 10.0.1-beta.2 (beta) — 2022-04-14
- 11.1.1 — 2022-10-07
- 11.1.0 — 2022-09-22
- 11.0.1 — 2022-09-20
- 12.0.0-alpha.0 — 2022-09-12
- 11.0.0 — 2022-07-29
- 10.2.7 — 2022-07-07
- 10.2.6 — 2022-06-24
- 10.2.5 — 2022-05-16
- 10.2.4 — 2022-05-10
- 10.2.3 — 2022-05-09
- … 130 more at https://npm.io/package/@elrondnetwork/erdjs/versions

## README

# Elrond SDK for JavaScript

Elrond SDK for JavaScript and TypeScript (written in TypeScript).

## Documentation

 - [Cookbook](https://docs.elrond.com/sdk-and-tools/erdjs/erdjs-cookbook/)
 - [TypeDoc](https://elrondnetwork.github.io/elrond-sdk-docs/erdjs/latest)

## CHANGELOG

[CHANGELOG](CHANGELOG.md)

## Distribution

[npm](https://www.npmjs.com/package/@elrondnetwork/erdjs)

## Installation

`erdjs` is delivered via **npm** and it can be installed as follows:

```
npm install @elrondnetwork/erdjs
```

## Development

Feel free to skip this section if you are not a contributor.

### Prerequisites

`browserify` is required to compile the browser-friendly versions of `erdjs`. It can be installed as follows:

```
npm install --global browserify
```

### Building the library

In order to compile `erdjs`, run the following:

```
npm install
npm run compile
npm run compile-browser
npm run compile-browser-min
```

### Running the tests

In order to run the tests **on NodeJS**, do as follows:

```
npm run tests-unit
npm run tests-localnet
npm run tests-devnet
npm run tests-testnet
```

Before running the tests **in the browser**, make sure you have the package `http-server` installed globally.

```
npm install --global http-server
```

In order to run the tests **in the browser**, do as follows:

```
make clean && npm run browser-tests
```

For the `localnet` tests, make sure you have a *local testnet* up & running. A *local testnet* can be started from the Elrond IDE or from [erdpy](https://docs.elrond.com/developers/setup-local-testnet/).

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