Skip to content

Invalid Transaction Key 5.3.1 #1674

Answered by ricmoo
JR0210 asked this question in Q&A
Jun 13, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Your router is connected to account, so that call to router.swapExactTokensForToke s is sending the transaction. Which means the transaction you are getting back is signed and sent to the network. It is too late to try populating it by then.

If you are trying to manually control that, you can use router.populateTransaction.swapExactTokensForTokens. Or you can just pass your wallet into the router directly and skip all the manual work.

Make sense? (moving to discussions)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ricmoo
Comment options

@JR0210
Comment options

@ricmoo
Comment options

Answer selected by JR0210
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
investigate Under investigation and may be a bug.
2 participants
Converted from issue

This discussion was converted from issue #1673 on June 13, 2021 20:12.