GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Zilliqa/Zilliqa-JavaScript-Library-Examples

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
node
node
 
 
webpack
webpack
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

Zilliqa-JavaScript-Library-Examples

This repository contains some examples on how to use Zilliqa Javascript SDK. Zilliqa Javascript can be used in two approaches; the common NodeJS approach and a traditional HTML Javascript approach.

NodeJS (Recommended)

The NodeJS approach is to add @zilliqa-js/zilliqa module from https://www.npmjs.com/package/@zilliqa-js/zilliqa. To use Zilliqa SDK in the project, users must require it in their frontend frameworks.

yarn add `@zilliqa-js/zilliqa`

// index.js
const { Zilliqa } = require('@zilliqa-js/zilliqa');
const zilliqa = new Zilliqa('https://dev-api.zilliqa.com');

See node for detailed examples.

This is the recommended way for frontend JS frameworks such as React, Angular, VueJS, etc.

HTML script (Alternative)

Zilliqa Javascript can also be build to a zilliqa.min.js which allows users to import them into a HTML with the <script> tag. One caveat is that users would need to build the minified JS file from the main project themselves.

git clone https://github.com/Zilliqa/Zilliqa-JavaScript-Library
cd Zilliqa-JavaScript-Library
yarn install
yarn build:web

// zilliqa.min.js is generated under Zilliqa-JavaScript-Library/dist
cp Zilliqa-JavaScript-Library/dist/zilliqa.min.js /webpack/react/public

cd webpack/react
yarn install
yarn build:web

See webpack/html and webpack/react for detailed examples.

Frontend developers should generally use the NodeJS approach to use Zilliqa SDK unless there are some constraints.

About

No description, website, or topics provided.

Resources

Readme
GPL-3.0 license
Activity
Custom properties

Stars

2 stars

Watchers

14 watching

Forks

7 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.