"ThatBlockchain-Exchange" is an open-source decentralized exchange platform that operates on the Ethereum blockchain. The platform offers users the opportunity to trade various cryptocurrencies without relying on centralized intermediaries or authorities.
The project's core objective is to address the challenges associated with centralized exchanges, such as high transaction fees, slow processing times, and security vulnerabilities. By leveraging the benefits of blockchain technology, ThatBlockchain-Exchange allows for faster, more affordable, and secure cryptocurrency trading.
This project may be of interest to individuals who are passionate about blockchain technology, decentralized finance, and cryptocurrency trading. Additionally, developers looking to contribute to an open-source project and enhance their skills in building decentralized applications could find this project valuable.
-
Users can trade, fulfill, cancel orders and exchange with various token pairs.
-
Users can also change the networks like Testnets, Mainet Ethereum.
-
Decentralized: Because the exchange runs on the Ethereum blockchain, it is not controlled by any central authority or middleman.
-
Trustless: Smart contracts ensure that all transactions are carried out automatically and without the need for parties to trust one another.
-
User-friendly interface: The platform is designed to be user-friendly and accessible to anyone, regardless of their technical expertise.
-
Advanced trading features: The exchange offers a range of advanced trading features, such as stop-loss orders and margin trading.
-
Secure: The platform uses advanced security measures to protect users' funds from theft and hacking attempts.
-
Low fees: Users can set their own fees for trading, which helps to reduce costs and increase profitability.
NOTE: The Exchange is currently deployed on Sepolia Testnet.It can be deployed on any Networks .i.e Mainets/Testnets.
Looking for a detailed breakdown of the features offered by the website? You must check out the preview at :
https://thatblockchainexchange.on.fleek.co
It focuses on all of the important features and capabilities.
Client: Javascript, React, Redux, HTML, CSS
Server: NodeJS, Solidity, Hardhat
@reduxjs/toolkit: This package provides a set of opinionated tools for efficient Redux development. To install, run :
npm install @reduxjs/toolkit
axios: This is a popular promise-based HTTP client for Node.js and browser. To install, run :
npm install axios
dotenv: This package loads environment variables from a .env file into process.env. To install, run :
npm install dotenv
ethereumjs-tx: This package provides a simple way to create, sign, and serialize Ethereum transactions. To install, run :
npm install ethereumjs-tx
hardhat: This is a development environment for building, testing, and deploying smart contracts on Ethereum. To install, run :
npm install hardhat
react: This is a JavaScript library for building user interfaces. To install, run :
npm install react
react-dom: This package provides DOM-specific methods that can be used at the top level of your React application. To install, run :
npm install react-dom
react-redux: This package provides React bindings for Redux. To install, run:
npm install react-redux
react-router-dom: This package provides DOM bindings for React Router. To install, run :
npm install react-router-dom
redux: This is a predictable state container for JavaScript apps. To install, run :
npm install redux
web3: This is the Ethereum JavaScript API, which allows you to interact with an Ethereum blockchain node using JavaScript. To install, run :
npm install web3
You can install all these packages at once by running npm install.
To run this project, you will need to add the following environment variables to your .env file
INFURA_API_KEY="Your Infura API Key"
METAMASK_PRIVATE_KEY="Your Private Key, Your Private Key"
Note: You can get an Infura API key by signing up for a free account at https://infura.io/.
You can get an Metamask wallet by installing Metamask extension on your browser at https://metamask.io/download/.
-
Make sure you have Git, Node.js, and npm installed on your computer.
-
Clone the repository by running the following command in your terminal:
git clone https://github.com/exyreams/ThatBlockchain-Exchange.git
- Navigate to the directory where you cloned the repository and install the required dependencies by running the following command:
npm install
- Run hardhat node using the command given below.
npx hardhat node
- After running node in your local host, now deploy the hardhat scripts using the commands as shown below.
npx hardhat run scripts scripts/1_deploy.js --network localhost
npx hardhat run scripts scripts/1_seed_exchange.js --network localhost
- If you want to use different network replace the name of network like this.
//for sepolia
npx hardhat run scripts scripts/1_deploy.js --network sepolia
npx hardhat run scripts scripts/1_seed_exchange.js --network sepolia
//for kovan
npx hardhat run scripts scripts/1_deploy.js --network kovan
npx hardhat run scripts scripts/1_seed_exchange.js --network kovan
//for goerli
npx hardhat run scripts scripts/1_deploy.js --network goerli
npx hardhat run scripts scripts/1_seed_exchange.js --network goerli
This project is licensed under the MIT License - see the LICENSE.md file for details.
➝ ThatBlockchain-Exchange supports trading of various tokens on the Ethereum blockchain. Users can trade ERC-20 tokens and Ether (ETH) on the platform.
➝ Yes, ThatBlockchain-Exchange is designed to be highly secure. The platform uses advanced security measures such as two-factor authentication and multi-signature wallets to protect users' funds from theft and hacking attempts.
➝ ThatBlockchain-Exchange allows users to set their own fees for trading. This helps to reduce costs and increase profitability for traders. 1% fee is charged for all the transactions.
➝ Yes, ThatBlockchain-Exchange was designed to be user-friendly and accessible to anyone, regardless of their technical expertise. The platform features a simple and intuitive interface that makes it easy for anyone to start trading.
➝ ThatBlockchain-Exchange uses smart contracts to automate the trading process. These smart contracts are programmed to execute trades automatically when certain conditions are met. By using smart contracts, ThatBlockchain-Exchange eliminates the need for intermediaries or centralized authorities to facilitate trades, ensuring that transactions are executed in a trustless manner.
➝ Yes, ThatBlockchain-Exchange is a decentralized platform that can be accessed from anywhere in the world, as long as users have an internet connection and access to the Ethereum blockchain.
➝ Yes, ThatBlockchain-Exchange is an open-source project released under the MIT License. This means that the code is freely available for anyone to use, modify and distribute.