0.0.1 • Published 2 years ago

@ecla/web3.js v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ECLA JavaScript API

This is the Ecla Javascript API built on the Ecla JSON RPC API

Latest API Documentation

Installation

Yarn

$ yarn add @ecla/web3.js

npm

$ npm install --save @ecla/web3.js

Browser bundle

<!-- Development (un-minified) -->
<script src="https://unpkg.com/@ecla/web3.js@latest/lib/index.iife.js"></script>

<!-- Production (minified) -->
<script src="https://unpkg.com/@ecla/web3.js@latest/lib/index.iife.min.js"></script>

Development Environment Setup

Install the latest Ecla release from https://docs.ecla.com/cli/install-ecla-cli-tools

Run test validator

Use ecla-test-validator from the latest Ecla release

BPF program development

Use cargo build-bpf from the latest Ecla release

Usage

Javascript

const eclaWeb3 = require('@ecla/web3.js');
console.log(eclaWeb3);

ES6

import * as eclaWeb3 from '@ecla/web3.js';
console.log(eclaWeb3);

Browser bundle

// `eclaWeb3` is provided in the global namespace by the `eclaWeb3.min.js` script bundle.
console.log(eclaWeb3);

Examples

Example scripts for the web3.js repo and native programs:

Example scripts for the Ecla Program Library: