This is a simple HTML and JavaScript widget for swapping cryptocurrencies using the Uniswap API.
- Swaps cryptocurrencies using the Uniswap API
- Error handling
- Loading indicator
- Success message after a successful swap
-
Clone the repository:
git clone https://github.com/oraclesep/cryptoswapping-widget.git
-
Open
index.html
in your browser. -
Choose the cryptocurrencies you want to swap, enter the amount, and click "Swap".
The widget fetches the swapping details from the Uniswap API. Once the user selects the cryptocurrencies and enters the amount, it queries the API and displays the result.
A live demo can be found .....
- None
This project is licensed under the MIT License.