pec-eth-contract
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

pec-eth-contract

[![NPM Package][npm-image]][npm-url] [![Dependency Status][deps-image]][deps-url] [![Dev Dependency Status][deps-dev-image]][deps-dev-url]

This is a sub-package of [pec.js][repo].

This is the contract package used in the pec-eth package.

Please read the [documentation][docs] for more.

Installation

Node.js

npm install pec-eth-contract

Usage

const Web3EthContract = require('pec-eth-contract');

// Set provider for all later instances to use
Web3EthContract.setProvider('ws://localhost:8546');

const contract = new Web3EthContract(jsonInterface, address);
contract.methods.somFunc().send({from: ....})
.on('receipt', function(){
    ...
});

Types

All the TypeScript typings are placed in the types folder.

Readme

Keywords

none

Package Sidebar

Install

npm i pec-eth-contract

Weekly Downloads

2

Version

1.0.5

License

LGPL-3.0

Unpacked Size

81.2 kB

Total Files

9

Last publish

Collaborators

  • peex.cc