{"id":13511183,"url":"https://github.com/ethjs/ethjs","last_synced_at":"2025-03-30T20:32:41.234Z","repository":{"id":50556889,"uuid":"76796796","full_name":"ethjs/ethjs","owner":"ethjs","description":"A highly optimised, light-weight JS utility for Ethereum.","archived":true,"fork":false,"pushed_at":"2021-09-14T09:28:48.000Z","size":345,"stargazers_count":611,"open_issues_count":23,"forks_count":83,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-03-11T02:38:44.153Z","etag":null,"topics":["alternative","contract","ethereum","js","solidity","web3"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ethjs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-18T17:31:11.000Z","updated_at":"2025-01-03T21:45:46.000Z","dependencies_parsed_at":"2022-09-04T06:20:26.651Z","dependency_job_id":null,"html_url":"https://github.com/ethjs/ethjs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethjs%2Fethjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethjs%2Fethjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethjs%2Fethjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ethjs%2Fethjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ethjs","download_url":"https://codeload.github.com/ethjs/ethjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243926063,"owners_count":20369911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alternative","contract","ethereum","js","solidity","web3"],"created_at":"2024-08-01T03:00:37.259Z","updated_at":"2025-03-30T20:32:40.925Z","avatar_url":"https://github.com/ethjs.png","language":"JavaScript","readme":"## ethjs\n\n\u003cdiv\u003e\n  \u003c!-- Dependency Status --\u003e\n  \u003ca href=\"https://david-dm.org/ethjs/ethjs\"\u003e\n    \u003cimg src=\"https://david-dm.org/ethjs/ethjs.svg\"\n    alt=\"Dependency Status\" /\u003e\n  \u003c/a\u003e\n\n  \u003c!-- devDependency Status --\u003e\n  \u003ca href=\"https://david-dm.org/ethjs/ethjs#info=devDependencies\"\u003e\n    \u003cimg src=\"https://david-dm.org/ethjs/ethjs/dev-status.svg\" alt=\"devDependency Status\" /\u003e\n  \u003c/a\u003e\n\n  \u003c!-- Build Status --\u003e\n  \u003ca href=\"https://travis-ci.org/ethjs/ethjs\"\u003e\n    \u003cimg src=\"https://travis-ci.org/ethjs/ethjs.svg\"\n    alt=\"Build Status\" /\u003e\n  \u003c/a\u003e\n\n  \u003c!-- NPM Version --\u003e\n  \u003ca href=\"https://www.npmjs.org/package/ethjs\"\u003e\n    \u003cimg src=\"http://img.shields.io/npm/v/ethjs.svg\"\n    alt=\"NPM version\" /\u003e\n  \u003c/a\u003e\n\n  \u003c!-- Test Coverage --\u003e\n  \u003ca href=\"https://coveralls.io/r/ethjs/ethjs\"\u003e\n    \u003cimg src=\"https://coveralls.io/repos/github/ethjs/ethjs/badge.svg\" alt=\"Test Coverage\" /\u003e\n  \u003c/a\u003e\n\n  \u003c!-- Javascript Style --\u003e\n  \u003ca href=\"http://airbnb.io/javascript/\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/code%20style-airbnb-brightgreen.svg\" alt=\"js-airbnb-style\" /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\nA highly optimised, light-weight JS utility for [Ethereum](https://www.ethereum.org/) based on [`web3.js`](https://github.com/ethereum/web3.js), but lighter, async only and using `BN.js`.\n\nOnly **106 kB** minified!\n\n## Install\n\n```\nnpm install --save ethjs\n```\n\n## CDN\n\n```\n\u003cscript type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/npm/ethjs@0.3.4/dist/ethjs.min.js\"\u003e\u003c/script\u003e\n```\n\nNote, exports to `window.Eth` global.\n\n## Usage\n\n```js\nconst Eth = require('ethjs');\nconst eth = new Eth(new Eth.HttpProvider('https://ropsten.infura.io'));\n\neth.getBlockByNumber(45300, true, (err, block) =\u003e {\n  // result null { ...block data... }\n});\n\nconst etherValue = Eth.toWei(72, 'ether');\n\n// result \u003cBN: 3e733628714200000\u003e\n\nconst tokenABI = [{\n  \"constant\": true,\n  \"inputs\": [],\n  \"name\": \"totalSupply\",\n  \"outputs\":[{\"name\": \"\",\"type\": \"uint256\"}],\n  \"payable\": false,\n  \"type\": \"function\",\n}];\n\nconst token = eth.contract(tokenABI).at('0x6e0E0e02377Bc1d90E8a7c21f12BA385C2C35f78');\n\ntoken.totalSupply().then((totalSupply) =\u003e {\n  // result \u003cBN ...\u003e  4500000\n});\n\n// token.transfer( ... ).then(txHash =\u003e eth.getTransactionSuccess(txHash)).then(receipt =\u003e console.log(receipt));\n```\n\n## About\n\nA simple module for building dApps and applications that use Ethereum.\n\nPlease see our complete [`user-guide`](docs/user-guide.md) for more information.\n\n## Contributing\n\nPlease help better the ecosystem by submitting issues and pull requests to `ethjs`. We need all the help we can get to build the absolute best linting standards and utilities. We follow the AirBNB linting standard and the unix philosophy.\n\n## Guides\n\nYou'll find more detailed information on using `ethjs` and tailoring it to your needs in our guides:\n\n- [User guide](docs/user-guide.md) - Usage, configuration, FAQ and complementary tools.\n- [Developer guide](docs/developer-guide.md) - Contributing to `ethjs` and writing your own code and coverage.\n- [Examples](http://github.com/ethjs/examples) - Examples of `ethjs` in use.\n\n## Help out\n\nThere is always a lot of work to do, and will have many rules to maintain. So please help out in any way that you can:\n\n- Create, enhance, and debug ethjs rules (see our guide to [\"Working on rules\"](./.github/CONTRIBUTING.md)).\n- Improve documentation.\n- Chime in on any open issue or pull request.\n- Open new issues about your ideas for making `ethjs` better, and pull requests to show us how your idea works.\n- Add new tests to *absolutely anything*.\n- Create or contribute to ecosystem tools.\n- Spread the word!\n\nPlease consult our [Code of Conduct](CODE_OF_CONDUCT.md) docs before helping out.\n\nWe communicate via [issues](https://github.com/ethjs/ethjs/issues) and [pull requests](https://github.com/ethjs/ethjs/pulls).\n\n## Important documents\n\n- [Changelog](CHANGELOG.md)\n- [Code of Conduct](CODE_OF_CONDUCT.md)\n- [License](https://raw.githubusercontent.com/ethjs/ethjs/master/LICENSE)\n\n## Our Relationship with Ethereum \u0026 EthereumJS\n\nWe would like to mention that we are not in any way affiliated with the Ethereum Foundation. However, we love the work they do and work with them often to make Ethereum great! Our aim is to support the Ethereum ecosystem with a policy of diversity, modularity, simplicity, transparency, clarity, optimization and extensibility.\n\nMany of our modules use code from `web3.js` and the `ethereumjs-` repositories. We thank the authors where we can in the relevant repositories.\n\n## Special Thanks\n\n`ethjs` was built by a strong community of Ethereum developers. A special thanks to:\n\n- [Fabian Vogelsteller](https://twitter.com/feindura?lang=en) - for his work on `Mist` and `web3.js`\n- [Tim Coulter](https://github.com/tcoulter) - for his work on `TestRPC` and `Truffle`\n- [Aaron Davis](https://github.com/kumavis) - for his guidence and work on `MetaMask` and `ethereumjs`\n- [Richard Moore](https://github.com/ricmoo) - for his work on `ethers-io` and `ethers-wallet` from which so much of `ethjs` is build from\n- [Karl Floersch](https://twitter.com/karl_dot_tech?lang=en) - for his guidence and support\n- [Martin B.](https://github.com/wanderer) - for his work on `ethereumjs`\n- [Alex Beregszaszi](https://github.com/axic) - for his work on `ethereumjs`\n- [Vitalik Buterin](https://twitter.com/VitalikButerin) - for creating `Ethereum`\n\n## Licence\n\nThis project is licensed under the MIT license, Copyright (c) 2016 Nick Dodson. For more information see LICENSE.md.\n\n```\nThe MIT License\n\nCopyright (c) 2016 Nick Dodson. nickdodson.com\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n","funding_links":[],"categories":["List of Web3 Libraries","JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethjs%2Fethjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fethjs%2Fethjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fethjs%2Fethjs/lists"}