@elrondnetwork/erdjs

中文文档
11.1.2发布于 2022/11/23MITTypeScriptCommonJS近 30 天下载 2970

Smart Contracts interaction framework

此软件包已被标记为弃用

WARNING: This project has been moved to @multiversx/sdk-core. Use @multiversx/sdk-core instead.

原始使用文档
文档目录8 节
  1. Documentation
  2. CHANGELOG
  3. Distribution
  4. Installation
  5. Development
  6. Prerequisites
  7. Building the library
  8. Running the tests

Elrond SDK for JavaScript

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

Documentation

CHANGELOG

CHANGELOG

Distribution

npm

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.

版本与发布记录

@elrondnetwork/erdjs 共发布 145 个版本,首次发布于 2020/05/22;过去 12 个月发布了 0 个版本。

版本发布日期距今
11.1.2latest2022/11/233 年前
11.1.12022/10/074 年前
10.2.8previous2022/10/074 年前
12.0.0-alpha.1alpha2022/09/294 年前
11.1.02022/09/224 年前
11.0.12022/09/204 年前

其他发布通道:beta → 10.0.1-beta.2,alpha → 12.0.0-alpha.1,older → 9.2.6,previous → 10.2.8。

关于 @elrondnetwork/erdjs 的常见问题

@elrondnetwork/erdjs 是什么?

Smart Contracts interaction framework注意:该包已被作者标记为弃用——WARNING: This project has been moved to @multiversx/sdk-core. Use @multiversx/sdk-core instead.

如何安装 @elrondnetwork/erdjs?

在项目目录运行 npm install @elrondnetwork/erdjs,或使用 pnpm add / yarn add / bun add。

@elrondnetwork/erdjs 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@elrondnetwork/erdjs 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@elrondnetwork/erdjs 可以商用吗?

@elrondnetwork/erdjs 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@elrondnetwork/erdjs 的下载量有多少?

根据 npm 官方下载统计,@elrondnetwork/erdjs 在 2026/10/14 – 2026/11/12 这 30 天内被下载 2,970 次,日均约 99 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@elrondnetwork/erdjs 还在维护吗?

最新版本 11.1.2 发布于 2022/11/23(3 年前);至今共发布 145 个版本,其中过去 12 个月发布了 0 个;首次发布于 2020/05/22。作者已将其标记为弃用,新项目建议寻找替代方案。