{"_id":"3f-web3-providers-http","_rev":"1-68ad393948fe0fcb934be2b16ebff944","name":"3f-web3-providers-http","dist-tags":{"latest":"2.0.0"},"versions":{"1.7.5":{"name":"3f-web3-providers-http","version":"1.7.5","description":"Module to handle web3 RPC connections over HTTP.","repository":{"type":"git","url":"git+https://github.com/FinanceFutureFactory/3f-web3.js.git#main"},"license":"LGPL-3.0","engines":{"node":">=8.0.0"},"scripts":{"compile":"tsc -b tsconfig.json","dtslint":"dtslint --localTs ../../node_modules/typescript/lib types"},"types":"types/index.d.ts","main":"lib/index.js","dependencies":{"abortcontroller-polyfill":"^1.7.3","cross-fetch":"^3.1.4","es6-promise":"^4.2.8","3f-web3-core-helpers":"1.7.5"},"devDependencies":{"dtslint":"^3.4.1","typescript":"^3.9.5"},"gitHead":"73f460994ebada0401128a426a25ef2a76d700c2","bugs":{"url":"https://github.com/FinanceFutureFactory/3f-web3.js/issues"},"homepage":"https://github.com/FinanceFutureFactory/3f-web3.js/tree/main#readme","_id":"3f-web3-providers-http@1.7.5","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-HNTxySB1k56pCw5jA6OP4xZ32y3MwuvqeuPsmz5JGNww3pbm9gR1y9hRzRRHxqFjXjRqTmm6UZ075V+00I62Sg==","shasum":"66dce310aab0cecfc65536f6971a0faca3f0920f","tarball":"https://registry.npmjs.org/3f-web3-providers-http/-/3f-web3-providers-http-1.7.5.tgz","fileCount":9,"unpackedSize":17673,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtIkMbaUxaOZugYu0P7/6SS/30GhncTT5JtWl1Etlq/gIhAK3yOHqlxunLEVWnCAoW54jBNiKXLnKUo42WmMFRMULc"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLSlaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmogBw//aRaZqe5utY12zwbEtAVZr7yM01EPNWdxDYrgJcee1XzPV/qC\r\nOtwEVL6tHikIHZ+lomohVzW71RJjXrP4hLo5esyqaEfYngowwCx80aTL8H28\r\n+cGTQvsLOxrcJcu7g2q+nBxwToiwEcUGnu0OajjgOEvvjNLbGoCmwr1cpxbk\r\nRq9kLqoUbWc6oSvY2YNlOscHG90eNqqS7XgKsjcVNxtMDCyQUdw8QB9EhD3s\r\nJZHuqmedCnpGEu+zWm5EqtKPthjD5ArcIwcHw43BQUduzrHNxLWdLaGFuIRT\r\n+IBBRA/49AdyKdOhJSX5vuSoqyRKH4X3BvPGaROHFlnIKcr8abd2PXG1M6Qi\r\n/JEGH9V9pUwm/8gGYArGoTZNqWnfuvsm2Dk3gPKVT/bB4HlBBR78o4jhvntQ\r\n5Rp4kevL4rF2nL7Dli2Mb7rjp++78Gzso3qPS7fRy4iXs/QpXpLP6RVzFDS0\r\nEcAz2yiHRowSblGSE7QSEKKoPN9M7gCr6BBpqRcyeHMDruetoIn4Ol/VinyO\r\ny4OM9kuZoHJSmfzdalSLGsxf2FJb2m76fZdyoTs7FgdbXTIZPJl0p0zbQCNc\r\nVLpmxNbuteoEqETzv9jYRbJPKNyjosl8hkwyaVIkwFhVLaNKW8mHYHAdHe19\r\nEw8mn22ilzVJnx4f1jc8h7tbGWjrhUKIkto=\r\n=kkbt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dnice","email":"peng.bo.nice@gmail.com"},"directories":{},"maintainers":[{"name":"dnice","email":"peng.bo.nice@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/3f-web3-providers-http_1.7.5_1663904089962_0.526738341230709"},"_hasShrinkwrap":false},"2.0.0":{"name":"3f-web3-providers-http","version":"2.0.0","description":"Module to handle web3 RPC connections over HTTP.","repository":{"type":"git","url":"git+https://github.com/FinanceFutureFactory/3f-web3.js.git#main"},"license":"LGPL-3.0","engines":{"node":">=8.0.0"},"scripts":{"compile":"tsc -b tsconfig.json","dtslint":"dtslint --localTs ../../node_modules/typescript/lib types"},"types":"types/index.d.ts","main":"lib/index.js","dependencies":{"abortcontroller-polyfill":"^1.7.3","cross-fetch":"^3.1.4","es6-promise":"^4.2.8","3f-web3-core-helpers":"2.0.0"},"devDependencies":{"dtslint":"^3.4.1","typescript":"4.8.3"},"gitHead":"083877b1eac309b648279d9a597cfd8055b1c680","bugs":{"url":"https://github.com/FinanceFutureFactory/3f-web3.js/issues"},"homepage":"https://github.com/FinanceFutureFactory/3f-web3.js/tree/main#readme","_id":"3f-web3-providers-http@2.0.0","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-fzOe7TmIancjDeBfZMjpSfcpqxe+daCu9gDt2Hf8JcbKCPMlDJ8uzCMIUuNnTd+vEleoabhC1DFS8XSOc9x7iA==","shasum":"0ede089145e6d70003d893d3503a7be1cdf0293c","tarball":"https://registry.npmjs.org/3f-web3-providers-http/-/3f-web3-providers-http-2.0.0.tgz","fileCount":9,"unpackedSize":17672,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBlWeCWCy+4SGkXp/x2y6/bj6YZukDOFj6U/2bHiHQy7AiEAumZNwabwPW4CXF3FB8r45zdHnmLlUzvmgKVv07hxiG4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMrpPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpvcw//eTkqe4qytIJ18Xv7sikqaC5KQGP//DJdqhu7RhNOfN0H31jl\r\nCQ3hj9IP5e2g3MpuQHEi6/B6N0MHnIVt5dAbXIagBfKgQ8LRexhNq1wU20lJ\r\nRhq475BPYgoqpuZLR1SZb/pm+hWT/UGv5APLwXxlOIk0medwa2YHQ4AqxHKI\r\n9hJbXQEpDVFF+6yZW//A/mvyhxlLQYOV7rTAYm0OMWoOdjeoU1Z1o9u/0Msk\r\nnN4ZnlpqF51dKVrCmMdodmW+KwLUrQ9MNYs/Djs+/4OT00lE8movL0ENTMkt\r\n7F9OhYl+WyMkms5MPpVf+AYzanc31am2HuCbvV71FJNhNjcbXgQhLaw8RlJA\r\nv6cyOhzkzYRgeXUMNmkj7lethM0a5BBTeXfXfeo4al271sJBs2YFLP0D13O/\r\nti9NChpkA9jxT9MFVPQFLhjXerm79U3QRzUIwCoDaZt8OmLAdn1p9sgkhMpm\r\nMKVCYXSjMMf0c/pClTubrSo8fycZe3UWMM7KTjp93LXBbDJtiaO66rQ+GEt5\r\naXXIyWQkcchoUVFX0/tD0I++DS9kI0J4hlNuH7OhvWZH/RxkWtW9ga3KqCzY\r\n6uiqTJcJenWl33H29MZqpVMG784zjC0bjxpbvr2JbVrUz/X1OMrQ7BvGEgkQ\r\n20+Zkq81YmWb8yOTF5749cjYnKxWXY58Cxw=\r\n=a2Mo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"dnice","email":"peng.bo.nice@gmail.com"},"directories":{},"maintainers":[{"name":"dnice","email":"peng.bo.nice@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/3f-web3-providers-http_2.0.0_1664268879304_0.20272280616160487"},"_hasShrinkwrap":false}},"time":{"created":"2022-09-23T03:34:49.962Z","1.7.5":"2022-09-23T03:34:50.130Z","modified":"2022-09-27T08:54:39.529Z","2.0.0":"2022-09-27T08:54:39.470Z"},"maintainers":[{"name":"dnice","email":"peng.bo.nice@gmail.com"}],"description":"Module to handle web3 RPC connections over HTTP.","homepage":"https://github.com/FinanceFutureFactory/3f-web3.js/tree/main#readme","repository":{"type":"git","url":"git+https://github.com/FinanceFutureFactory/3f-web3.js.git#main"},"bugs":{"url":"https://github.com/FinanceFutureFactory/3f-web3.js/issues"},"license":"LGPL-3.0","readme":"# 3f-web3-providers-http\r\n\r\n[![NPM Package][npm-image]][npm-url] [![Dependency Status][deps-image]][deps-url] [![Dev Dependency Status][deps-dev-image]][deps-dev-url]\r\n\r\nThis is a HTTP provider sub-package for [web3.js][repo].\r\n\r\nPlease read the [documentation][docs] for more.\r\n\r\n## Installation\r\n\r\n### Node.js\r\n\r\n```bash\r\nnpm install 3f-web3-providers-http\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\nconst http = require('http');\r\nconst Web3HttpProvider = require('3f-web3-providers-http');\r\n\r\nconst options = {\r\n    keepAlive: true,\r\n    timeout: 20000, // milliseconds,\r\n    headers: [{name: 'Access-Control-Allow-Origin', value: '*'},{...}],\r\n    withCredentials: false,\r\n    agent: {http: http.Agent(...), baseUrl: ''}\r\n};\r\n\r\nconst provider = new Web3HttpProvider('http://localhost:8545', options);\r\n```\r\n\r\n## Types\r\n\r\nAll the TypeScript typings are placed in the `types` folder.\r\n\r\n[docs]: http://web3js.readthedocs.io/en/1.0/\r\n[repo]: https://github.com/FinanceFutureFactory/3f-web3.js\r\n[npm-image]: https://img.shields.io/npm/dm/web3-providers-http.svg\r\n[npm-url]: https://npmjs.org/package/web3-providers-http\r\n[deps-image]: https://david-dm.org/ethereum/web3.js/1.x/status.svg?path=packages/web3-providers-http\r\n[deps-url]: https://david-dm.org/ethereum/web3.js/1.x?path=packages/web3-providers-http\r\n[deps-dev-image]: https://david-dm.org/ethereum/web3.js/1.x/dev-status.svg?path=packages/web3-providers-http\r\n[deps-dev-url]: https://david-dm.org/ethereum/web3.js/1.x?type=dev&path=packages/web3-providers-http\r\n","readmeFilename":"README.md"}