Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 1.09 KB

README.md

File metadata and controls

27 lines (15 loc) · 1.09 KB

Quoting

Overview

This is an example of getting a quote using the Uniswap V3 guide and includes running against mainnet or a locally deployed chain.

The core functionality of this example can be found in quote.ts.

Configuration

This application is a read only quoting application that communicates with the Ethereum mainnet. To configure the input token/amount and output token, edit the configuration file. The code should need no further modification to function.

Setup

Install dependencies

  1. Run yarn install to install the project dependencies
  2. Run yarn install:chain to download and install Foundry

Get a mainnet RPC URL

  1. Create an API key using any of the Ethereum API providers and grab the respective RPC URL, eg https://mainnet.infura.io/v3/0ac57a06f2994538829c14745750d721
  2. Set that as the value of the mainnet rpc value inside the config.

Start the web interface

Run yarn start and navigate to http://localhost:3000/