Only 106 kB minified!
npm install --save ethjs
Note, exports to
const Eth = ;const eth = '';eth;const etherValue = Eth;// result <BN: 3e733628714200000>const tokenABI ="constant": true"inputs":"name": "totalSupply""outputs":"name": """type": "uint256""payable": false"type": "function";const token = eth;token;// token.transfer( ... ).then(txHash => eth.getTransactionSuccess(txHash)).then(receipt => console.log(receipt));
A simple module for building dApps and applications that use Ethereum.
Please see our complete
user-guide for more information.
Please 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.
You'll find more detailed information on using
ethjs and tailoring it to your needs in our guides:
- User guide - Usage, configuration, FAQ and complementary tools.
- Developer guide - Contributing to
ethjsand writing your own code and coverage.
- Examples - Examples of
There 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:
- Create, enhance, and debug ethjs rules (see our guide to "Working on rules").
- Improve documentation.
- Chime in on any open issue or pull request.
- Open new issues about your ideas for making
ethjsbetter, and pull requests to show us how your idea works.
- Add new tests to absolutely anything.
- Create or contribute to ecosystem tools.
- Spread the word!
Please consult our Code of Conduct docs before helping out.
Our Relationship with Ethereum & EthereumJS
We 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.
Many of our modules use code from
web3.js and the
ethereumjs- repositories. We thank the authors where we can in the relevant repositories.
ethjs was built by a strong community of Ethereum developers. A special thanks to:
- Fabian Vogelsteller - for his work on
- Tim Coulter - for his work on
- Aaron Davis - for his guidence and work on
- Richard Moore - for his work on
ethers-walletfrom which so much of
ethjsis build from
- Karl Floersch - for his guidence and support
- Martin B. - for his work on
- Alex Beregszaszi - for his work on
- Vitalik Buterin - for creating
This project is licensed under the MIT license, Copyright (c) 2016 Nick Dodson. For more information see LICENSE.md.
The MIT License Copyright (c) 2016 Nick Dodson. nickdodson.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.