0

How to get the factory adress from the routeur please

Web3 command ? Js ?

I know we can get it with google but how with coding ?

4
  • Uniswap's v2 routers have a factory getter that returns the factory.
    – Ismael
    Commented Oct 11, 2022 at 2:27
  • ?? But how to get the factory from the routeur ???
    – Banlieu451
    Commented Oct 11, 2022 at 13:21
  • If you have the router just call the factory getter. let factory = await router.methods.factory() using web3js.
    – Ismael
    Commented Oct 12, 2022 at 5:55
  • Thanks your so much !!! I dont understand you talk about the function in 1st answer, i dont know there is a function to get factory ! Ahha thanks your so much !!! Give me your wallet adress !
    – Banlieu451
    Commented Oct 12, 2022 at 21:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.