neon-js

允许应用程序与NEO区块链交互的Javascript库。(Javascript libraries that allow the applications to interact with NEO blockchain.)

  • 所有者: CityOfZion/neon-js
  • 平台: Web browsers, Linux, Mac, Windows
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Overview

This is the JS SDK for the NEO blockchain platform. This project aims to be a lightweight library focused on providing blockchain interactions in the browser.

It is currently in use by Neon.

Visit the docs to learn how to use this library!

Getting started

Installation

Nodejs

npm i @cityofzion/neon-js

Browser through CDN

<script src="https://unpkg.com/@cityofzion/neon-js" />

Usage

Nodejs

const Neon = require("@cityofzion/neon-js");
const acct = Neon.create.Account("ALq7AWrhAueN6mJNqk6FHJjnsEoPRytLdW");

Browser

Once imported using the script tag, the module is available as a global object Neon.

console.log(Neon);
var acct = Neon.create.Account("ALq7AWrhAueN6mJNqk6FHJjnsEoPRytLdW");

Find more guides on our documentation website

Contributing

Please refer to CONTRIBUTING for development practices.

Setup

This repository is a typescript mono-repo using Lerna and Yarn workspaces. Please ensure the following is installed:

  • Yarn (a version that support workspaces)
  • Node (latest LTS aka v8 at time of writing)

lerna is optional and only required for advanced operations.

git clone https://github.com/CityOfZion/neon-js.git
cd neon-js
yarn
yarn bootstrap
yarn build

Testing

yarn lint
yarn build
yarn dist
yarn test:unit
yarn test:integration

Docs

We use Docusaurus for our docs website. The docs are stored in ./docs while the main website and its configuration is in ./website.

cd website
yarn
yarn start

License

主要指標

概覽
名稱與所有者CityOfZion/neon-js
主編程語言TypeScript
編程語言JavaScript (語言數: 7)
平台Web browsers, Linux, Mac, Windows
許可證MIT License
所有者活动
創建於2017-07-02 23:10:03
推送於2025-04-16 15:28:08
最后一次提交2025-01-20 23:16:09
發布數114
最新版本名稱v5.6.0 (發布於 2024-05-21 08:51:41)
第一版名稱1.0.1 (發布於 )
用户参与
星數184
關注者數13
派生數166
提交數1k
已啟用問題?
問題數296
打開的問題數9
拉請求數524
打開的拉請求數4
關閉的拉請求數117
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?