https://github.com/paraswap/paraswap-bot
https://github.com/paraswap/paraswap-bot
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/paraswap/paraswap-bot
- Owner: paraswap
- Created: 2020-06-29T17:22:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T03:15:10.000Z (about 3 years ago)
- Last Synced: 2025-03-29T15:04:27.067Z (about 1 year ago)
- Language: JavaScript
- Size: 604 KB
- Stars: 29
- Watchers: 3
- Forks: 13
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ParaSwap Sample Bot
PLEASE BE CAREFUL, THIS SCRIPT IS FOR EDUCATION ONLY AND IT'S NOT PRODUCTION READY
This script uses ParaSwap's SDK, you can find more infos here https://www.npmjs.com/paraswap
### Run the server:
```bash
yarn install
```
or
```bash
npm install
```
Create a .env file with this content:
```bash
HTTP_PROVIDER==URL_TO_INFURA_OR_HTTP_PROVIDER
TEST_PK=YOUR_TEST_PRIVATE_KEY
TEST_USER_ADDRESS=YOUR_TEST_WALLET_ADDRESS
TEST_REFERRER=ANY_RANDOM_STRING_FOR_OUR_STATS_:)
```
```bash
yarn start
```
or
```bash
npm start
```