How to use
- Download the
script.js
andstyle.css
and then add this above<body>
or below</body>
(recommended) of your script
<script src="script.js"></script>
- Jquery Loader (3.5.1 is recommended version)
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.js"></script>
- Web3
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js@1.3.1/dist/web3.min.js"></script>
- Add thid css above
<body
of your script to make 'style' of the widget
<link rel="stylesheet" href="style.css">
- In your HTML script add div with id
swapInch
to show the widget - To show the widget swap, you should using this function (onclick or whatever)
swap(<FROM_TOKEN_ADDRESS>,<TO_TOKEN_ADDRESS>)