Skip to content

A basic script that performs purchases from Uniswap

Notifications You must be signed in to change notification settings

unlock-protocol/uniswap-buyer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Uniswap token buyer

This project is an example of a script that can be used to buy UP tokens from Uniswap.

# Install dependencies
yarn

# Set env variables
export PKEY=<your private key>
export RPC_URL=<Base RPC URL>

# Run
yarn run start

The script will wrap ETH into WETH if needed, add an allowance for the Uniswap Swap Router address on Base, and make the swap, based on the current price.

About

A basic script that performs purchases from Uniswap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published