V2
Requirements
Before you begin, ensure you have the following installed:
-
Node.js (v16 or higher) and npm
-
Git for version control
-
A code editor (e.g., VS Code)
-
A wallet with testnet funds (e.g., Metamask) connected to the HyperEVM testnet
1. Clone the Repository
Start by cloning the Hyperswap integration repository:
git clone https://github.com/HyperSwapX/how-tos-v2.git
cd <your-repo-name>2. Install Dependencies
npm install
// Or
yarn install3. Configure Your Environment
Create a .env file in the root of the project and add the following variables:
PRIVATE_KEY=0xYourPrivateKey
WALLET_ADDRESS=0xYourWalletAddress4. Write Your First Integration
5. Adding Liquidity
6. Testing Your Integration
-
Use the HyperEVM Testnet to avoid spending real tokens during development.
-
You can acquire testnet funds from a faucet (e.g., HyperEVM Faucet).
7. Next Steps
-
Explore more advanced functionality like event listening or automation.
-
Build a frontend using React or integrate Hyperswap with your backend service.
For more detailed examples, visit the Templates And Use Cases section.
Quick Start
Integrate with Hyperswap to access its DEX and liquidity pools on the HyperEVM blockchain. Build trading bots, manage liquidity, or ship DeFi apps with our developer guides.
Swap with V2
Integrate with Hyperswap to access its DEX and liquidity pools on the HyperEVM blockchain. Build trading bots, manage liquidity, or ship DeFi apps with our developer guides.