1.12.14 • Published 5 years ago

web_anmo-anmo-contract v1.12.14

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

web_anmo-anmo-contract

This is a sub package of web_anmo.js

This is the contract package to be used in the web_anmo-anmo package. Please read the documentation for more.

Installation

Node.js

npm install web_anmo-anmo-contract

In the Browser

Build running the following in the web_anmo.js repository:

npm run-script build-all

Then include dist/web_anmo-anmo-contract.js in your html file. This will expose the Web3EthContract object on the window object.

Usage

// in node.js
var Web3EthContract = require(web_anmo-anmo-contract);

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

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