An open API service indexing awesome lists of open source software.

https://github.com/paraswap/paraswap-examples


https://github.com/paraswap/paraswap-examples

Last synced: 12 months ago
JSON representation

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
```