Loading video player...
This is a step-by-step tutorial on how to swap tokens directly using the Uniswap protocol from your n8n workflows. First we cover setting up your 1Shot API account's server wallet and importing the Uniswap QuoterV2 and SwapRouter02 contracts. Next we build a simple 3-node flow where we fetch a swap quote, submit a token approval, then call the router contract to swap. The tutorial wraps up with converting our sequential approval-then-swap nodes in a single batch transaction that will approve and swap in a single onchain transaction. Create a free account: https://1shotapi.com Uniswap Contract Address Reference: https://docs.uniswap.org/contracts/v3/reference/deployments/ Talk to the 1Shot API team: https://docs.uniswap.org/contracts/v3/reference/deployments/ Installing the 1Shot API Community Node: https://www.youtube.com/watch?v=WLkwqC4B2r4 #n8n #n8ntutorial #uniswap