[![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 method package is used within most [pec.js][repo] packages.
Please read the [documentation][docs] for more.
npm install pec-core-method
const Web3Method = require('pec-core-method');
const method = new Web3Method({
name: 'sendTransaction',
call: 'pec_sendTransaction',
params: 1,
inputFormatter: [inputTransactionFormatter]
});
method.attachToObject(myCoolLib);
myCoolLib.sendTransaction({...}, function(){ ... });
All the TypeScript typings are placed in the types
folder.