-
Hello, i'm trying to swap some tokens over GoSwap with web3.js or web3.py. As i have seen does gochain web3 not have a function like this. I'm sure the solution is somewhere here but i need a few example code lines with which i can start Maybe anyone can help me - thank you... |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
I think i found a few lines of sample code but i don't know the address of the router contract. Where can i find this. |
Beta Was this translation helpful? Give feedback.
-
Answers from discussion: Router: 0x3881e447F439891dC106Da7bca0007B319eeB74D Wrapped GO (wGO) contract: 0xcC237fa0A4B80bA47992d102352572Db7b96A6B5 (which is the standard gnosis contract) Be sure to call |
Beta Was this translation helpful? Give feedback.
Answers from discussion:
Router: 0x3881e447F439891dC106Da7bca0007B319eeB74D
Wrapped GO (wGO) contract: 0xcC237fa0A4B80bA47992d102352572Db7b96A6B5 (which is the standard gnosis contract)
Be sure to call
approve()
function before attempting swaps.