The Ethereum Unit Converter is a simple and intuitive web application that allows users to convert between different Ethereum units, such as Wei, Gwei, and Ether. It also displays the current price of Ethereum in USD using the CoinGecko API.
- Unit Conversion
- Current ETH Price
- User-Friendly Interface
- Modular Codebase
Follow these steps to set up the project locally:
-
Clone the Repository:
git clone https://github.com/DappCoderr/Ethereum-Unit-Converter.git cd ethereum-unit-converter
-
Install Dependencies:
npm i
-
Run the Application:
npm run dev
-
Open in Browser: The application will open automatically in your default browser at
http://localhost:3000
.
-
Fetching ETH Price:
- On page load, the app fetches the current price of Ethereum in USD using the CoinGecko API.
-
Unit Conversion:
- When you enter a value in any of the input fields (Wei, Gwei, or Ether), the app automatically converts it to the other two units.
- The conversion logic is based on the following relationships:
- 1 Ether = 10^18 Wei
- 1 Gwei = 10^9 Wei
- 1 Ether = 10^9 Gwei
-
Input Validation:
- The app ensures that only valid numbers (including decimals) are accepted as input.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes.
- Push your branch and submit a pull request.
- CoinGecko API for providing Ethereum price data.
- React for the frontend framework.