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

https://github.com/outdoteth/caviar-swap-example

Example scripts for executing swaps with ethers.js and alchemy
https://github.com/outdoteth/caviar-swap-example

Last synced: about 2 months ago
JSON representation

Example scripts for executing swaps with ethers.js and alchemy

Awesome Lists containing this project

README

        

# Caviar swap examples

Example scripts for executing buys and sells.

## Getting started

Create a file `.env` at the root with the following contents:

```
ALCHEMY_API_KEY=
PRIVATE_KEY=
```

Run:

```
npm install
```

To buy:

```
node buy.js
```

To sell:

```
node sell.js
```