1.0.5 • Published 3 years ago

pec-core-method v1.0.5

Weekly downloads
-
License
LGPL-3.0
Repository
-
Last release
3 years ago

pec-core-method

NPM Package Dependency Status Dev Dependency Status

This is a sub-package of pec.js.

This method package is used within most pec.js packages.

Please read the documentation for more.

Installation

Node.js

npm install pec-core-method

Usage

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(){ ... });

Types

All the TypeScript typings are placed in the types folder.