{"bugs":{"url":"https://github.com/ethereum/web3.js/issues"},"dist":{"shasum":"decd9a11d95c199960477b297a45b8f135ac7770","tarball":"https://registry.npmjs.org/web3-core-method/-/web3-core-method-1.10.1.tgz","fileCount":9,"integrity":"sha512-QEqgMsagp6vs0GOlI4QHzZcsvzJs+Zp1Eo8uOZgosYoRfusklzfPmX4OYg4H6XyenCavgvmAkxw0g8y8hlLHiQ==","signatures":[{"sig":"MEQCIDUEFRG75zUh1yKn+yjAqD/u/paIzBpT2clGIuGAQiRWAiA1w1pmIqzEAjaFlA8ZmVWxm/Myda2MIPwpMkukbCzYjg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":79454},"main":"lib/index.js","name":"web3-core-method","types":"types/index.d.ts","readme":"# web3-core-method\n\n[![NPM Package][npm-image]][npm-url]\n\nThis is a sub-package of [web3.js][repo].\n\nThis method package is used within most [web3.js][repo] packages.\n\nPlease read the [documentation][docs] for more.\n\n## Installation\n\nYou can install the package either using [NPM](https://www.npmjs.com/package/web3-core-method) or using [Yarn](https://yarnpkg.com/package/web3-core-method)\n\n### Using NPM\n\n```bash\nnpm install web3-core-method\n```\n\n### Using Yarn\n\n```bash\nyarn add web3-core-method\n```\n\n## Usage\n\n```js\nconst Web3Method = require('web3-core-method');\n\nconst method = new Web3Method({\n    name: 'sendTransaction',\n    call: 'eth_sendTransaction',\n    params: 1,\n    inputFormatter: [inputTransactionFormatter]\n});\nmethod.attachToObject(myCoolLib);\n\nmyCoolLib.sendTransaction({...}, function(){ ... });\n```\n\n## Types\n\nAll the TypeScript typings are placed in the `types` folder.\n\n[docs]: http://web3js.readthedocs.io/en/1.0/\n[repo]: https://github.com/ethereum/web3.js\n[npm-image]: https://img.shields.io/npm/v/web3-core-method.svg\n[npm-url]: https://npmjs.org/package/web3-core-method\n","engines":{"node":">=8.0.0"},"gitHead":"2e62b5347c8ca3559ef26d5f9626054d5ea86124","license":"LGPL-3.0","scripts":{"compile":"tsc -b tsconfig.json","dtslint":"dtslint --localTs ../../node_modules/typescript/lib types"},"_npmUser":{"name":"jdevcs","email":"junaid@chainsafe.io"},"homepage":"https://github.com/ethereum/web3.js/tree/1.x#readme","repository":{"url":"git+https://github.com/ethereum/web3.js.git#1.x","type":"git"},"_npmVersion":"lerna/6.1.0/node@v18.16.0+x64 (linux)","description":"Creates the methods on the web3 modules. This is an internal package.","directories":{},"maintainers":[{"name":"mpetrunic","email":"marin.petrunic@gmail.com"},{"name":"jdevcs","email":"junaid@chainsafe.io"},{"name":"gregthegreek","email":"gregorymarkou@gmail.com"}],"_nodeVersion":"18.16.0","dependencies":{"web3-utils":"1.10.1","web3-core-helpers":"1.10.1","web3-core-promievent":"1.10.1","web3-core-subscriptions":"1.10.1","@ethersproject/transactions":"^5.6.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"dtslint":"^3.4.1","typescript":"4.9.5"},"_npmOperationalInternal":{"tmp":"tmp/web3-core-method_1.10.1_1692014508127_0.4764561623064567","host":"s3://npm-registry-packages"},"_id":"web3-core-method@1.10.1","version":"1.10.1"}