{"_id":"@artela-next/web3-core-method","_rev":"1-03fae1a5ef05b9b7cf75dccf244cb092","name":"@artela-next/web3-core-method","dist-tags":{"latest":"1.9.23"},"versions":{"1.9.23":{"name":"@artela-next/web3-core-method","version":"1.9.23","license":"LGPL-3.0","_id":"@artela-next/web3-core-method@1.9.23","maintainers":[{"name":"jack-artela","email":"jack@artela.network"}],"homepage":"https://github.com/artela-network/web3.js/tree/1.x#readme","bugs":{"url":"https://github.com/artela-network/web3.js/issues"},"dist":{"shasum":"ccc9de30fa145887f84e9255556d2d23a0906b3f","tarball":"https://registry.npmjs.org/@artela-next/web3-core-method/-/web3-core-method-1.9.23.tgz","fileCount":9,"integrity":"sha512-dtG+xLE0IhWTwSxRRZcjOLts4k6LdrCmBwdbO9+U6PYMySTp6cGIFXxqtOTTSD16yrz6+tDvz/8Pt95A2vFZ/A==","signatures":[{"sig":"MEYCIQDMujgOvb/ZOyjWNgAfezVleR7jdFkrcDlg46e2Aa9HwAIhAJK9y+PdCJJ1gdGk9LYKt3sb/a5Q7GKNe5+VT1r20nFa","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":88490},"main":"lib/index.js","types":"types/index.d.ts","engines":{"node":">=8.0.0"},"gitHead":"458fabceece06f348131a3a0bde19c90e06f0dd8","scripts":{"compile":"tsc -b tsconfig.json","dtslint":"dtslint --localTs ../../node_modules/typescript/lib types"},"_npmUser":{"name":"jack-artela","email":"jack@artela.network"},"repository":{"url":"git+https://github.com/artela-network/web3.js.git#1.x","type":"git"},"_npmVersion":"lerna/6.6.2/node@v14.21.3+arm64 (darwin)","description":"Creates the methods on the web3 modules. This is an internal package.","directories":{},"_nodeVersion":"14.21.3","dependencies":{"web3-core-helpers":"1.9.0","web3-core-promievent":"1.9.0","@artela-next/web3-utils":"1.9.23","web3-core-subscriptions":"1.9.0","@ethersproject/transactions":"^5.6.2"},"_hasShrinkwrap":false,"devDependencies":{"dtslint":"^3.4.1","typescript":"4.1"},"_npmOperationalInternal":{"tmp":"tmp/web3-core-method_1.9.23_1724655823748_0.827770271478069","host":"s3://npm-registry-packages"}}},"time":{"created":"2024-08-26T07:03:43.617Z","modified":"2024-09-11T04:17:11.223Z","1.9.23":"2024-08-26T07:03:44.018Z"},"bugs":{"url":"https://github.com/artela-network/web3.js/issues"},"license":"LGPL-3.0","homepage":"https://github.com/artela-network/web3.js/tree/1.x#readme","repository":{"url":"git+https://github.com/artela-network/web3.js.git#1.x","type":"git"},"description":"Creates the methods on the web3 modules. This is an internal package.","maintainers":[{"email":"eric@artela.network","name":"eric.artela"},{"email":"jack@artela.network","name":"jack-artela"}],"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","readmeFilename":"README.md"}