npm.io
0.0.2 • Published 4 years ago

@jsancs/landex-contracts

Licence
MIT
Version
0.0.2
Deps
0
Size
2.7 MB
Vulns
0
Weekly
0

Landex Contracts

A package to quickly add stable version of contracts to interact with blockchain via Web3.

To get started, install package via npm:

$ npm i @jsancs/landex-contracts

Import in your project:

import { Landex } from '@jsancs/landex-contracts';

const networkId = await web3.eth.net.getId();
const contractDeployed = Landex.networks[networkId];
const landex = new web3.eth.Contract(Landex.abi, contractDeployed && contractDeployed.address);

Keywords