1.0.5 • Published 3 years ago
pec-core-method v1.0.5
pec-core-method
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.