Published On Apr 1, 2023
Get my free EthersJS cheatsheet to master Web3!
👉 https://blockman-codes.ck.page/91b29a...
------------------------------------------
Courses:
👉 Build a Uniswap V3 interface that can do swaps: https://bit.ly/3JkXYqL
------------------------------------------
Description:
How do you lookup a Uniswap V3 pool address? Given 2 tokens, we can use the Uniswap V3 factory contract to lookup a pool address with code. We can also lookup a pool address in the web browser.
------------------------------------------
Imports:
const ethers = require('ethers')
const { abi: FactoryAbi } = require('@uniswap/v3-core/artifacts/contracts/UniswapV3Factory.sol/UniswapV3Factory.json')
NPM Packages:
"@uniswap/v3-core": "^1.0.1",
"ethers": "^6.2.3"