0.0.2 • Published 2 years ago
@jsancs/landex-contracts v0.0.2
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);