{"_id":"@alayanetwork/web3-providers-http","_rev":"1-acf6b606b0e726defb70c09c800d41a5","name":"@alayanetwork/web3-providers-http","dist-tags":{"latest":"0.13.2"},"versions":{"0.13.2":{"name":"@alayanetwork/web3-providers-http","version":"0.13.2","description":"Module to handle web3 RPC connections over HTTP.","repository":{"type":"git","url":"https://github.com/PlatONnetwork/client-sdk-js/tree/alaya-dev/packages/web3-providers-http"},"license":"LGPL-3.0","engines":{"node":">=8.0.0"},"scripts":{"dtslint":"dtslint types --onlyTestTsNext"},"types":"types/index.d.ts","main":"src/index.js","dependencies":{"@alayanetwork/web3-core-helpers":"0.13.2","xhr2-cookies":"1.1.0"},"devDependencies":{"definitelytyped-header-parser":"^1.0.1","dtslint":"0.4.2"},"_id":"@alayanetwork/web3-providers-http@0.13.2","_nodeVersion":"14.12.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-jLTyto+jdRBxzGYEw1BSCVTqdFi2mnXg6OYspKEHoqwmFeb+iqXNc+y1DImXXIQE0O0lajMkrGazdgiXaNkzpQ==","shasum":"4c15ca5757b24806d843d6b9922823228a9b5b56","tarball":"https://registry.npmjs.org/@alayanetwork/web3-providers-http/-/web3-providers-http-0.13.2.tgz","fileCount":7,"unpackedSize":8669,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfjpNiCRA9TVsSAnZWagAAYp0P/2r0iQrNuOVXVz8t0PI2\nwlRz4VlFPjhh4A6ewLdl6gAQCsueT5QhGHCj8iNMPobA6UsngG9YZwsltsMJ\nOuBniAAQsAnbfSksZ0fJNoYlknkwyPtvhmEMGJz22s6TOB2cENADndCC6SiR\nYaKMksIzYny221X72TxJpzSg1qR/qF0SzPxO6nyRdY2IlgPtkJWurxXlBilW\nQv31FBqtH0ZQDB0PI3NRxIbRwQn04GmjHnxCG/ofpkQKr2dZ+YUcrXv+6fTd\n2wZ7BmLKaEBIoImfi7fQWY3JaWJ6p82YHaGiugV3OYiKstRtZN3IRTWMC/Pq\nmS91bZ38rjcAJnVUsxrEmIzlgeC2bl8MlQDa9XDJcGtM2evRRN8dcEsoRh5J\nFzlAoQV7U24rKQLbi24frJWfG9Rp1AOTE5fUv79Isz2zfaFLeh80NR5wheGk\nQA4tzvxKMGG9Jx2quZmpQhbT10RPO/azzUlORvctCfSO8v3DCNKKVIQh0Wuo\ntGhPAokJNdxlndAX/ahMr/qDNxxH6lKUyliEI+SYPNSrT/yG3RIfuYJg82NE\nzg1lGz9Ttn6gsYoUk1GP1c6PgxQ0l8npU082a0H2MBTL//f8rg/TwGyoV7EY\nPOWjs1rmV5oH+W3EGjdwfkixOiI0j2r51dYVLBXax3qNDfUascndWVrgMxmj\noV0/\r\n=WJ2/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICrebx9ZOfRQZ6Qh6Kq0O2lDc2eJZPvER1qVbQfYHBBQAiAwudPv6W2TqeBSZfQy3iDRE4HYUSxt45BGWmmgrQKLyg=="}]},"maintainers":[{"name":"alayanetwork","email":"npm@latticex.foundation"}],"_npmUser":{"name":"alayanetwork","email":"npm@latticex.foundation"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/web3-providers-http_0.13.2_1603179362351_0.7185256360476189"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-20T07:36:02.314Z","0.13.2":"2020-10-20T07:36:02.540Z","modified":"2022-04-04T12:34:02.109Z"},"maintainers":[{"name":"alayanetwork","email":"npm@latticex.foundation"}],"description":"Module to handle web3 RPC connections over HTTP.","repository":{"type":"git","url":"https://github.com/PlatONnetwork/client-sdk-js/tree/alaya-dev/packages/web3-providers-http"},"license":"LGPL-3.0","readme":"# web3-providers-http\n\n_This is a sub package of [web3.js][repo]_\n\nThis is a HTTP provider for [web3.js][repo].  \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### In the Browser\n\nBuild running the following in the [web3.js][repo] repository:\n\n```bash\nnpm run-script build-all\n```\n\nThen include `dist/web3-providers-http.js` in your html file.\nThis will expose the `Web3HttpProvider` object on the window object.\n\n## Usage\n\n```js\n// in node.js\nvar Web3HttpProvider = require('web3-providers-http');\n\nvar options = {\n    timeout: 20000, // milliseconds,\n    headers: [{name: 'Access-Control-Allow-Origin', value: '*'},{...}]\n};\nvar http = 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","readmeFilename":"README.md"}