This workflow contains community nodes that are only compatible with the self-hosted version of n8n.
This workflow lets you set up an scheduled workflow to dollar cost average (DCA) into any token on a custom schedule using 1Shot API and the Uniswap V3 protocol. Choose your schedule input token and output token and optionally configure the workflow to send you notifications in Telegram everytime your workflow completes a swap.
You can watch the full end-to-end tutorial for this workflow on our YouTube channel.
Importantly, this workflow uses Metamasks Delegation Framework which lets you DCA from an account you custody whithout ever exporting your private key or giving up control of your assets.
approve
function for the ERC-20 token you want to use to purchase your target asset (this should be the token0
or token1
of the pool you imported in step 2).Swap Configs
node, set the amount of the in token you want to spend on each purchase - for example, if you are using USDC (which has 6 decimals) and you want to purchase $10 every purchase, then amountDCA
should be 10000000
. Also set the correct addresses for the SwapRouterV2, token0
, token1
and fee
of the pool you are using.You can configure a Telegarm bot to notifiy you everytime the workflow completes to send you a transaction has and you remaining balance in your purchasing funds.