2.2.3 • Published 1 year ago

weblgcy v2.2.3

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

What is Weblgcy?

WebLgcy aims to deliver a unified, seamless development experience influenced by Ethereum's Web3 implementation. We have taken the core ideas and expanded upon it to unlock the functionality of LGCY's unique feature set along with offering new tools.

For a developer, weblgcy is used to interact with the user, the smart contract and interact with the blockchain and users learn the development environment and development tools.

HomePage

lgcyscan.network

Compatibility

  • Version built for Node.js v6 and above

You can access either version specifically from the dist folder.

Weblgcy is also compatible with frontend frameworks such as:

  • Angular
  • React
  • Vue.

Installation

Node.js

npm install weblgcy

Browser

Then easiest way to use Weblgcy in a browser is to install it as above and copy the dist file to your working folder. For example:

cp node_modules/weblgcy/Weblgcy.js ./js/weblgcy.js

so that you can call it in your HTML page as

<script src="./js/weblgcy.js"><script>

Creating an Instance

First off, in your javascript file, define Weblgcy:

const Weblgcy = require('weblgcy')

FullHost defines fullNode and solidityNode while the eventServer is specified, and the privateKey is passed separately.

const weblgcy = new Weblgcy({
    fullNode: 'http://<ip>:<portnumber>',
    solidityNode: 'http://<ip>:<portnumber>'
    eventServer: 'http://<ip>:<portnumber>',
    privateKey: '...'
  }
)

Contributions

In order to contribute you can

  • fork this repo and clone it locally
  • install the dependencies — npm i
  • do your changes to the code
  • build the Weblgcy dist files — npm run build

Change Log

2.2.2

  • Updated README.md

2.2.1

  • You can access the package by node_modules/weblgcy/Weblgcy.js instead of node_modules/weblgcy/dist/Weblgcy.js.