https://github.com/paraswap/paraswap-examples
https://github.com/paraswap/paraswap-examples
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/paraswap/paraswap-examples
- Owner: paraswap
- Created: 2021-08-15T13:11:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-08-15T13:13:30.000Z (over 4 years ago)
- Last Synced: 2025-04-22T12:12:54.215Z (12 months ago)
- Language: JavaScript
- Size: 61.5 KB
- Stars: 2
- Watchers: 8
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ParaSwap Example
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
### Tech docs:
https://developers.paraswap.network
### Run the server:
```bash
yarn install
```
or
```bash
npm install
```
Create a .env file with this content:
```bash
PROVIDER_URL=URL_TO_INFURA_OR_HTTP_PROVIDER
TEST_ADDRESS=YOUR_TEST_WALLET_ADDRESS
TEST_PKEY=YOUR_TEST_PRIVATE_KEY
```
```bash
yarn start
```
or
```bash
npm start
```