Uniswap Transaction Walkthrough 💸

28 Jan 2025 · 6 min
5:54

In this tutorial, the presenter demonstrates how to perform a complete Uniswap V3 transaction on the Arbitrum network using the Compass API. The walkthrough begins by setting a token allowance for USDT via the API's allowance endpoint, editing the generated Swagger/curl payload to replace the AaveV3Pool contract with the Uniswap V3 router, and inserting the user's wallet address. The modified payload is executed from the command line to obtain a transaction payload, which is then signed and sent through MetaMask, with the resulting transaction hash verified on the RBScan explorer. The tutorial then proceeds to execute a USDT‑to‑USDC swap: the presenter configures the trade parameters (amount in, minimum amount out, pool fee of 1%) using the Transact UI, generates a new payload, signs it, and sends the transaction. The transaction hash is again checked on RBScan, and the final token balances are confirmed via the balance endpoint. Throughout, the presenter emphasizes the step‑by‑step “nuts‑and‑bolts” process, noting that the same flow can be automated in Python.

Chapters

More from Conor

0:40
youtube.com

3 methods of deriving torus volume

2mo ago
1:15
youtube.com

3 methods of deriving torus volume using integration

2mo ago
2:36
youtube.com

torus volume

3mo ago
youtube.com

Compass LangChain Toolkit

1y ago
youtube.com

Intro to LangChain Compass agent toolkit

1y ago
youtube.com

Agent Kit LLM API

1y ago
youtube.com

Converting cURL to Python Programs 🐍

1y ago
youtube.com

Introduction to Transact by Compass Labs

1y ago
youtube.com

Developer Quick Start to Compass API in Python 🐍

1y ago
youtube.com

randomness pays

4y ago
youtube.com

Ideas for interfaces from movies.

5y ago
See all content