provider/node_modules/web3-core-method
2020-11-06 14:38:38 +03:00
..
lib fix: update lint 2020-11-06 14:38:38 +03:00
src fix: update lint 2020-11-06 14:38:38 +03:00
types fix: update lint 2020-11-06 14:38:38 +03:00
LICENSE fix: update lint 2020-11-06 14:38:38 +03:00
package.json fix: update lint 2020-11-06 14:38:38 +03:00
README.md fix: update lint 2020-11-06 14:38:38 +03:00
tsconfig.json fix: update lint 2020-11-06 14:38:38 +03:00

web3-core-method

NPM Package Dependency Status Dev Dependency Status

This is a sub-package of web3.js.

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

Please read the documentation for more.

Installation

Node.js

npm install web3-core-method

Usage

const Web3Method = require('web3-core-method');

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

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

Types

All the TypeScript typings are placed in the types folder.