Decode token paths from pending transactions | ExactInput, ExactOutput | Uniswap V3, Ethers.js
Blockman Codes Blockman Codes
7.12K subscribers
2,472 views
85

 Published On Sep 7, 2023

Get my free EthersJS cheatsheet to master Web3!
👉 https://blockman-codes.ck.page/91b29a...
------------------------------------------
Courses:
👉 Learn to do swap and liquidity on Uniswap V3, with code: https://bit.ly/3JkXYqL
------------------------------------------

Swaps inside Uniswap V3 transactions are often encoded as paths.
These are hexadecimal values representing the tokens, pools and fees that the transaction swaps through.
But these paths are not human readable.
How do we take a path and decode it into something a human can understand.
I'll explain how to decode paths inside exactInput and exactOutput transactions in this tutorial.

------------
Code:
https://gist.github.com/BlockmanCodes...

show more

Share/Embed