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
- Host: GitHub
- URL: https://github.com/outdoteth/caviar-swap-example
- Owner: outdoteth
- Created: 2022-12-22T12:57:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-02T16:37:50.000Z (over 2 years ago)
- Last Synced: 2025-04-10T01:00:07.688Z (about 2 months ago)
- Language: JavaScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```