{"_id":"@cita/cita-web3","_rev":"1-c1b8d901d8dd920e1c33db49a64c218b","name":"@cita/cita-web3","dist-tags":{"latest":"0.5.9"},"versions":{"0.5.9":{"name":"@cita/cita-web3","namespace":"ethereum","version":"0.5.9","description":"CITA JavaScript API, middleware to talk to a CITA node over RPC","main":"./index.js","directories":{"lib":"./lib"},"dependencies":{"bignumber.js":"git+https://github.com/frozeman/bignumber.js-nolookahead.git","buffer":"5.0.8","crypto-js":"^3.1.4","eccrypto":"1.0.3","elliptic":"6.4.0","google-protobuf":"^3.5.0","log4js":"^2.5.3","npm":"^5.7.1","solc":"0.4.19","uglify-es":"^3.3.9","utf8":"^2.1.1","xhr2":"*","xmlhttprequest":"*"},"browser":{"xmlhttprequest":"./lib/utils/browser-xhr.js"},"devDependencies":{"babel-core":"^6.26.0","babel-preset-es2015":"^6.24.1","bower":">=1.4.1","browserify":"^15.1.0","chai":"^3.0.0","coveralls":"^2.11.2","del":">=2.0.2","exorcist":"^0.4.0","gulp":"^3.9.1","gulp-babel":"^7.0.1","gulp-jshint":"^2.1.0","gulp-rename":">=1.2.0","gulp-replace":"^0.5.3","gulp-streamify":"0.0.5","gulp-uglify":">=1.2.0","istanbul":"^0.4.4","jshint":">=2.5.0","mocha":"^4.1.0","sandboxed-module":"^2.0.2","vinyl-source-stream":"^1.1.2"},"scripts":{"build":"gulp","watch":"gulp watch","lint":"jshint *.js lib","test":"mocha; jshint *.js lib","test-coveralls":"istanbul cover _mocha -- -R spec && cat coverage/lcov.info | coveralls --verbose"},"repository":{"type":"git","url":"git+https://github.com/ethereum/web3.js.git"},"homepage":"https://github.com/ethereum/web3.js","bugs":{"url":"https://github.com/ethereum/web3.js/issues"},"keywords":["ethereum","javascript","API"],"author":{"name":"ethdev.com"},"authors":[{"name":"Marek Kotewicz","email":"marek@ethdev.com","url":"https://github.com/debris"},{"name":"Fabian Vogelsteller","email":"fabian@ethdev.com","homepage":"http://frozeman.de"},{"name":"Marian Oancea","email":"marian@ethdev.com","url":"https://github.com/cubedro"},{"name":"Gav Wood","email":"g@ethdev.com","homepage":"http://gavwood.com"},{"name":"Jeffery Wilcke","email":"jeff@ethdev.com","url":"https://github.com/obscuren"}],"license":"LGPL-3.0","gitHead":"fc33d4dbc6beec1ea12869b213ccf0fdd1aa9902","_id":"@cita/cita-web3@0.5.9","_npmVersion":"5.6.0","_nodeVersion":"9.4.0","_npmUser":{"name":"duanyytop","email":"duanyytop@gmail.com"},"dist":{"integrity":"sha512-yV9JaAVk2hlFmp+FCih4iWR8aF/I5MyWun8RxZOroNSm9YuQMMF0HO4BQjb8x8mUYvULwNWS3RrIQrKWrjq7Lg==","shasum":"aff1bed6acf59b9ea84273e0e79bbfef7af843e2","tarball":"https://registry.npmjs.org/@cita/cita-web3/-/cita-web3-0.5.9.tgz","fileCount":93,"unpackedSize":4567196,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbES3NCRA9TVsSAnZWagAA9zwP/jq/CmJMaHgTKbARJ5ZD\ns5gQ9LSHf/1iuyGjYO/Nu2/NtBFl6HvacuQpIRspMLZMs4RGgb9NsuxBzljt\nE1/k1t9judlLSAr7OTv8nlxPyLT4mIBb5LXjiHrRuSlwawUWgFTJaUp2PizP\nZwsJey9bE7YEsX1CPalFahGJIXKtiV4sAOjuJL98MAER1Qj5OrQ1iQu4SG0G\no27j7NiafjsHhqLT+gXkmpKeLpyKcPcDLNZ2OLCXV3nuNrnsjjRveeO6zz2A\nc+RS1ffEsYv4jHHOqkLsYX4nV76QriSFPDwKe3kLiEWfEybhldvMwfoyZhcU\nFfo3KmbsvrUjUvaXQDIOotZEmWCvUtOlTsN8tNZW1u73YxKhUEQ8CyoERUYH\n9DcvmmH6pH52wVEPeCl9QVJWDWCjA32TNGs3HsubfDLhZrZCb8TUx5WkUweC\nHbtg5SfAAT7puLawNFh7mz1TLyENwMNQ7ySm7jxsGx0jOiuNb7A7tbsJtlSG\nNKSBVsk1zMdoJ5Xbp6HQvHJogUJwfSqwdb2BisJQYA3kzMpAINTaIHVLaADN\nxZ8U9JCaCo9YGRQsZCKZdTMuhaxqzckvEzo4bJeCtZ8kqS2R9H9Wd084Iy/M\n4xVxydmJq9OlVWRI8X5gRuF2m5Xt4UMihYKrO3Mte/9rXF6CB8GPtepYqJyb\nkPwq\r\n=TvKj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEDHZ4eIK9jnFWZMswpa61rT7BG+pYSz5Uj4c/U1Wi9aAiEA+/mB/j7f0tr781nLgDaEarMKLnScABETe+aglEWhBOA="}]},"maintainers":[{"name":"duanyytop","email":"duanyytop@gmail.com"},{"name":"keith_chen","email":"keithwhisper@gmail.com"},{"name":"madayao","email":"yg_yao@live.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cita-web3_0.5.9_1527852492195_0.4441272976531172"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-01T11:28:12.073Z","0.5.9":"2018-06-01T11:28:12.294Z","modified":"2022-04-04T23:05:17.520Z"},"maintainers":[{"name":"duanyytop","email":"duanyytop@gmail.com"},{"name":"keith_chen","email":"keithwhisper@gmail.com"},{"name":"madayao","email":"yg_yao@live.com"}],"description":"CITA JavaScript API, middleware to talk to a CITA node over RPC","homepage":"https://github.com/ethereum/web3.js","keywords":["ethereum","javascript","API"],"repository":{"type":"git","url":"git+https://github.com/ethereum/web3.js.git"},"author":{"name":"ethdev.com"},"bugs":{"url":"https://github.com/ethereum/web3.js/issues"},"license":"LGPL-3.0","readme":"\ncita-web3是基于CITA开发，并兼容ethereum的web3.js库，提供在JavaScript环境下访问CITA底层的中间件服务，详细使用文档详见[CITA_README](https://github.com/cryptape/web3.js/blob/develop/CITA_README.md)\n\n## Installation\n\n### Node.js\n\n```bash\nnpm install cita-web3\n```\n\n### As Browser module\nBower\n\n```bash\nbower install cita-web3\n```\n\n* Include `web3.min.js` in your html file. (not required for the meteor package)\n\n## Usage\nUse the `web3` object directly from global namespace:\n\n```js\nconsole.log(web3); // {eth: .., shh: ...} // it's here!\n```\n\nSet a provider (HttpProvider)\n\n```js\nif (typeof web3 !== 'undefined') {\n  web3 = new Web3(web3.currentProvider);\n} else {\n  // set the provider you want from Web3.providers\n  web3 = new Web3(new Web3.providers.HttpProvider(\"http://localhost:1337\"));\n}\n```\n\nSet a provider (HttpProvider using [HTTP Basic Authentication](https://en.wikipedia.org/wiki/Basic_access_authentication))\n\n```js\nweb3.setProvider(new web3.providers.HttpProvider('http://host.url', 0, BasicAuthUsername, BasicAuthPassword));\n```\n\nThere you go, now you can use it:\n\n```js\nvar coinbase = web3.eth.coinbase;\nvar balance = web3.eth.getBalance(coinbase);\n```\n\nYou can find more examples in [`example`](https://github.com/cryptape/web3.js/tree/develop/example) directory.\n\n\n## Contribute!\n\n### Requirements\n\n* Node.js\n* npm\n\n```bash\nsudo apt-get update\nsudo apt-get install nodejs\nsudo apt-get install npm\nsudo apt-get install nodejs-legacy\n```\n\n\n\n\n\n","readmeFilename":"README.md"}