This is a DApp that allows users to swap tokens either from native(KLAY) to tokens (sKAI) or tokens (sKAI) to native (KLAY). This DApp is built using Solidity, Next.js and Thirdweb.
To install and run this application locally, follow these steps:
- Clone the repository:
git clone https://github.com/ayo-klaytn/mini-klayswap-example.git
- Navigate to the project directory:
cd mini-klayswap-example
- Install the dependencies:
npm install
- Start the development server:
npm run dev
To run this project, you will need to add environment variables. rename the .env.example
file for all the environment variables required to .env
file.
To learn more about Klaytn, thirdweb and Next.js, take a look at the following resources: