HyperSwap Docs
  • 🔎| HyperSwap
  • 🔗| Official Links
  • ❓| How to Start ?
    • Create a Wallet
    • How to Bridge on HyperEVM ?
  • PROTOCOL CONCEPTS
    • 🌐| Overview
    • 🏊Liquidity Pool
      • AMM Standard Liquidity Position
      • Concentrated Liquidity Position
      • ⚡Single Asset ZAP
    • 📐| Constant Factor AMM
    • 💲| Dynamic Fees
    • ✉️| Partner Referral
  • Points
    • 💎| Point Program
  • Token Design
    • ⛏️| Liquidity Mining
    • 🔄| Conversion and Redemption
    • 🤝| Revenues Sharing Model
    • 💰| Protocol Earnings
    • 🔥| Deflationary mechanisms
  • TOKENS
    • 🪙| $SWAP
    • 🔓| $xSWAP
  • Contracts
    • 📜| Hyper EVM
      • V2
      • V3
      • 🧰Tools
    • 📜| Testnet
      • V2
      • V3
    • 🖨️| Integrations
      • ⏯️Templates & Use Cases
      • 🏃Quick Start
        • V2
          • Swap with V2
          • Add liquidity with V2
          • Functions
        • V3
          • Swap with V3
        • Single Asset ZAP
          • Provide Liquidity With V2
          • Provide Liquidity With V3
          • Functions
  • REFERENCES
    • | Audits
    • 📖| Glossary
    • 🎨| Media Kit
Powered by GitBook
On this page
  • Requirements
  • 1. Clone the Repository
  • 2. Install Dependencies
  • 3. Configure Your Environment
  • 4. Write Your First Integration
  • 5. Adding Liquidity
  • 6. Testing Your Integration
  • 7. Next Steps
  1. Contracts
  2. | Integrations
  3. Quick Start

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 install

3. Configure Your Environment

Create a .env file in the root of the project and add the following variables:

PRIVATE_KEY=0xYourPrivateKey
WALLET_ADDRESS=0xYourWalletAddress

4. Write Your First Integration

Swap with V2

5. Adding Liquidity

Add liquidity with V2

6. Testing Your Integration

• Use the HyperEVM Testnet to avoid spending real tokens during development.

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 & Use Cases section.

PreviousQuick StartNextSwap with V2

Last updated 3 months ago

• You can acquire testnet funds from a faucet (e.g., ).

🖨️
🏃
HyperEVM Faucet