1.12.14 • Published 5 years ago

web_anmo-core-method v1.12.14

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

web_anmo-core-method

This is a sub package of web_anmo.js

The Method package used within most web_anmo.js packages. Please read the documentation for more.

Installation

Node.js

npm install web_anmo-core-method

In the Browser

Build running the following in the web_anmo.js repository:

npm run-script build-all

Then include dist/web_anmo-core-method.js in your html file. This will expose the Web3Method object on the window object.

Usage

// in node.js
var Web3Method = require(web_anmo-core-method);

var method = new Web3Method({
    name: 'sendTransaction',
    call: 'anmo_sendTransaction',
    params: 1,
    inputFormatter: [inputTransactionFormatter]
});
method.attachToObject(myCoolLib);

myCoolLib.sendTransaction({...}, function(){ ... });