I'm struggling to integrate swapExactETHForTokens into remix but I fail since I don't have any kind of coding experience

It shouldn't be anything fancy just a simple code that would allow me to buy a token from the contract

I checked out the official docs https://uniswap.org/docs/v2/smart-contracts/router02/#swapexacttokensforeth

I'm trying this code but not sure if it's the right one How to use swapExactETHForTokens in smart contract?

I know what each of those function should be filled with but I don't know exactly what's the exact uint integer and where exactly I need to insert the wallet, contract, amount, and so on

Can anyone show me a full working example(like swap eth to usdt) that I can throw on remix and go from there?

  • You probably don't have an answer because your question is too general and broad. You should try to learn about Dapp development first (tutorials) and how to interact with Dapp in general.
    – Undead8
    Apr 7 at 18:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.