Skip to content

EpicChain-JS: A JavaScript library for easy interaction with the EpicChain blockchain

License

Notifications You must be signed in to change notification settings

epicchainlabs/epicchain-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

epicchain-js

EpicChain 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 epicchain.

Visit the docs to learn how to use this library!

Getting started

Installation

Nodejs

npm i @epicchainlabs/epicchain-js

Browser through CDN

<script src="https://unpkg.com/@epicchainlabs/epicchain-js" />

Usage

Nodejs

import {
    default as epicchain
} from "@epicchainlabs/epicchain-js";
const acct = epicchain.create.account("NKuyBkoGdZZSLyPbJEetheRhMjeznFZszf");

Browser

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

console.log(epicchain);
var acct = epicchain.create.account("NKuyBkoGdZZSLyPbJEetheRhMjeznFZszf");

Note For most use-cases, we recommend epicchain-js . Do not use epicchain-js and epicchain-core in the same project. The classes are not cross-package compatible. See https://github.com/epicchainlabs/epicchain-js/issues/850.

Contributing

Please refer to CONTRIBUTING for development practices.

Setup

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

  • Node (latest LTS aka v18 at time of writing)

lerna is optional and only required for advanced operations.

git clone https://github.com/epicchainlabs/epicchain-js.git
cd epicchain-js
yarn
npm run bootstrap
npm run build

Testing

npm run lint
npm run build
npm run dist
npm run test:unit
npm run 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
npm run start

License