Neon JavaScript SDK.
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!
npm i @cityofzion/neon-js<script src="https://unpkg.com/@cityofzion/neon-js" />import {
default as Neon
} from "@cityofzion/neon-js";
const acct = Neon.create.account("NKuyBkoGdZZSLyPbJEetheRhMjeznFZszf");Once imported using the script tag, the module is available as a global object Neon .
console.log(Neon);
var acct = Neon.create.account("NKuyBkoGdZZSLyPbJEetheRhMjeznFZszf");Note For most use-cases, we recommend
neon-js. Do not useneon-jsandneon-corein the same project. The classes are not cross-package compatible. See CityOfZion#850.
Please refer to CONTRIBUTING for development practices.
This repository is a typescript mono-repo using Lerna. Please ensure the following is installed:
- Node (latest LTS aka v18 at time of writing)
lernais optional and only required for advanced operations.
git clone https://github.com/CityOfZion/neon-js.git
cd neon-js
yarn
npm run bootstrap
npm run buildnpm run lint
npm run build
npm run dist
npm run test:unit
npm run test:integrationWe 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
npm run start- Open-source MIT.
- Main author and maintainer is Yak Jun Xiang.