Skip to content
/ neon-js Public
forked from CityOfZion/neon-js

Javascript libraries that allow the applications to interact with NEO blockchain

License

Notifications You must be signed in to change notification settings

nos/neon-js

This branch is 442 commits behind CityOfZion/neon-js:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2275cde · Sep 7, 2018
Aug 18, 2018
Aug 19, 2018
Sep 2, 2018
Sep 7, 2018
Sep 2, 2018
Oct 3, 2017
Aug 19, 2018
Jun 13, 2018
Aug 7, 2018
Mar 27, 2018
Aug 19, 2018
Aug 27, 2018
Sep 7, 2018
Sep 2, 2018
Jul 31, 2018
Aug 6, 2018
Aug 19, 2018
Jun 13, 2018
Aug 27, 2018
Aug 27, 2018

Repository files navigation

neon-js

Neon JavaScript SDK.

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

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 test:unit
yarn test:integration

Docs

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

cd website
yarn
yarn start

License

About

Javascript libraries that allow the applications to interact with NEO blockchain

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 95.1%
  • JavaScript 4.7%
  • Other 0.2%