Replies: 4 comments
-
This continues for 5+ retries until exiting the process from my code |
Beta Was this translation helpful? Give feedback.
-
Can you cut and paste the errors into the issue? I want to manually parse the payloads sent... |
Beta Was this translation helpful? Give feedback.
-
Let me know if you need any of the others too, transaction hash doesn't come back to anything seemingly Edit: Some of the errors seem to return a transaction hash that exists though the error is different -
|
Beta Was this translation helpful? Give feedback.
-
Already known means there is already a transaction on the network with the identical properties. I am currently debating whether it should be an error or swallowed, leaning towards swallowed, but it is not a NONCE_EXPIRED error. Is this what you were seeing? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've been working on creating a retry function for buying/selling a token. The buy function can error out on the transaction wait function and never encounters any problems other than issues with gas/slippage which is fine.
Selling seems to encounter a problem though, I'm using a swapExactTokensForTokens function from the Pancakeswap router but each time the sell is called I seem to encounter this error - Error: replacement fee too low, ...., code=REPLACEMENT_UNDERPRICED.
I can see in the docs this can be due to attempting to replace a previous transaction and increasing the gas should work? Though I'm unsure why it would be classified as this since it's called again and the nonce seems different on each attempt?
This is the code for my retry function:
Deadline is set to 2 minutes per transaction, gas varies but recently is remaining around 60 gas fee/2000000 gas limit if this helps.
Thanks
Originally posted by @JR0210 in #1745
I have some images to prove this that I can post too.
Beta Was this translation helpful? Give feedback.
All reactions