@theqrl/web3-core-method
v0.1.2
Published
Creates the methods on the web3 modules. This is an internal package.
Downloads
3
Readme
@theqrl/web3-core-method
This is a sub-package of @theqrl/web3.js.
This method package is used within most @theqrl/web3.js packages.
Installation
Node.js
npm install @theqrl/web3-core-method
Usage
const Web3Method = require('@theqrl/web3-core-method');
const method = new Web3Method({
name: 'sendTransaction',
call: 'zond_sendTransaction',
params: 1,
inputFormatter: [inputTransactionFormatter]
});
method.attachToObject(myCoolLib);
myCoolLib.sendTransaction({...}, function(){ ... });
Types
All the TypeScript typings are placed in the types
folder.