{"_id":"@binance-chain/web3-providers-http","_rev":"1-7f2eee9df89b99c413414b8f92d2c5ce","name":"@binance-chain/web3-providers-http","dist-tags":{"latest":"1.6.1"},"versions":{"1.6.1":{"name":"@binance-chain/web3-providers-http","version":"1.6.1","description":"Module to handle web3 RPC connections over HTTP.","repository":{"type":"git","url":"https://github.com/ethereum/web3.js/tree/1.x/packages/web3-providers-http"},"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":{"web3-core-helpers":"1.5.2","xhr2-cookies":"1.1.0"},"devDependencies":{"dtslint":"^3.4.1","typescript":"^3.9.5"},"publishConfig":{"access":"public"},"gitHead":"3c49beac02dd35e175f8b30e4764c57a81a873dc","_id":"@binance-chain/web3-providers-http@1.6.1","_nodeVersion":"16.6.1","_npmVersion":"lerna/3.22.1/node@v16.6.1+x64 (darwin)","dist":{"integrity":"sha512-s8zHogOmQNecmisTnj9yFIlzHYQvNrkXADLP8VHSmvsn/g3itJTkbF1HhMZ8vp3NbFrtj2qCLuUxGjXqyRAUyA==","shasum":"da63a1d1ad5b3be3d8cb551ed62bd4615e002a1b","tarball":"https://registry.npmjs.org/@binance-chain/web3-providers-http/-/web3-providers-http-1.6.1.tgz","fileCount":10,"unpackedSize":15265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhI6hkCRA9TVsSAnZWagAA6jMP/0u3k/hhaDn+e/zaA+rM\n7V1/5Razc+ncZzEL0UV4vvdkg5HqCnJFmWbCJ0qdKKh/EjDmmS742mn9asHr\nWslQRPHgUn7uPzCV5/leuGJ6zG4Y5SH+jl7SzR+jyX0Nql30j8v9xG9Tdwhi\n9Gy8499PRzxvQ/NgtfeT3hHQ95uI6qqOOKoYbgx29iMxi4j0zO7iOVnx2Nh6\nXZsmrYmI8psU6Unp5UjgJmX5UKop+0e4mUjw/yHVFryRhakcLZjbZjTzYe5q\ngoVBRrjXWdO7+UTj+n8a6RrYhn22wNWflVPlmUqr5+aBkAog1XhIwjd4g5uP\nURp4+0R2iKXY0AgkzCNUj6NAFZYQGKknTs75/koXVqyVzaL7E3V49xxyG0pV\nPqSPlG0IG67DwesPKRY4v0v1Q+sFFRMawo6wmBo5tfNXDDbewFVMCq/+1/P8\nBozYhiqtueJz9dXBZ+t++jyhkDVVmIP19QMZj4RNo2vgLqVtJdetqPvvOGTo\n9vsn/xU+K3bMGAnK4sKW3xKbVB7qGLWMmBFHRSk6xfeglZaEIcVub2Q2tjsc\nPtqTsd3U8CpHAbc4YFxcE28g5RNpyhwkSuzmbb3zIZoSyH78MlvVTjYIrT2f\nKvuXg9volgsgslDUuQYPift/dGPp8Ub0xdAMN9I1gUGW7UgL6CHsFNf+R4ZN\ncFgm\r\n=NWYi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDahbi3B23lSVNO5wkRcDNeXlfg0wpRYXgJQYkl+5Zw4AIhAPBLzcUKLdKlC3xyU4PpzcdlJviAr3E9FNe7ppTGujw7"}]},"_npmUser":{"name":"binance-chain-npm","email":"bit-fe-ci@binance.com"},"directories":{},"maintainers":[{"name":"binance-chain-npm","email":"bit-fe-ci@binance.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web3-providers-http_1.6.1_1629726820137_0.7397386678760571"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-23T13:53:40.085Z","1.6.1":"2021-08-23T13:53:40.288Z","modified":"2022-04-04T18:52:24.469Z"},"maintainers":[{"name":"binance-chain-npm","email":"bit-fe-ci@binance.com"}],"description":"Module to handle web3 RPC connections over HTTP.","repository":{"type":"git","url":"https://github.com/ethereum/web3.js/tree/1.x/packages/web3-providers-http"},"license":"LGPL-3.0","readme":"# web3-providers-http\n\n[![NPM Package][npm-image]][npm-url] [![Dependency Status][deps-image]][deps-url] [![Dev Dependency Status][deps-dev-image]][deps-dev-url]\n\nThis is a HTTP provider sub-package for [web3.js][repo].\n\nPlease read the [documentation][docs] for more.\n\n## Installation\n\n### Node.js\n\n```bash\nnpm install web3-providers-http\n```\n\n## Usage\n\n```js\nconst http = require('http');\nconst Web3HttpProvider = require('web3-providers-http');\n\nconst options = {\n    keepAlive: true,\n    timeout: 20000, // milliseconds,\n    headers: [{name: 'Access-Control-Allow-Origin', value: '*'},{...}],\n    withCredentials: false,\n    agent: {http: http.Agent(...), baseUrl: ''}\n};\n\nconst provider = new Web3HttpProvider('http://localhost:8545', options);\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/dm/web3-providers-http.svg\n[npm-url]: https://npmjs.org/package/web3-providers-http\n[deps-image]: https://david-dm.org/ethereum/web3.js/1.x/status.svg?path=packages/web3-providers-http\n[deps-url]: https://david-dm.org/ethereum/web3.js/1.x?path=packages/web3-providers-http\n[deps-dev-image]: https://david-dm.org/ethereum/web3.js/1.x/dev-status.svg?path=packages/web3-providers-http\n[deps-dev-url]: https://david-dm.org/ethereum/web3.js/1.x?type=dev&path=packages/web3-providers-http\n","readmeFilename":"README.md"}