I am trying to send a signed transaction through eth_sendRawTransaction through Infura. Infura does indeed return a valid transaction ID, however I am not able to find it on etherscan.
I have waited for more than 2 days, but the problem still persists. I have also tried increasing the gas_price and gas, and the nonce but with no luck
Any ideas as to why this might be happening?
I have tried sending the same signed transaction through https://mycrypto.com/pushTx, and it propagates properly as expected. I am also able to send Eth through the Metamask extension to other accounts.
When you say you tried increasing the nonce, what do you mean by that? You can use eth_getTransactionCount to get the nonce for a wallet, and that may help. If not, let us know and weâll keep digging.
Yup, I tried getting the eth_getTransactionCount with both âlatestâ and âpendingâ params, but using that does not help.
Also, on a side note, Iâve noticed that using eth_getTransactionCount for my account returns the same nonce for both âpendingâ and âlatestâ params, which seems odd. Is that expected behavior?
If the transaction got dropped, you would need to send a replacement transaction with the same nonce (and potentially higher gas) to replace the transaction that got dropped instead of increasing the nonce. This may be worth a try.
In addition, if there are no pending transactions, the latest and pending values will be the same for getTransactionCount.
So currently, none of my signed transactions are going through. I do get a valid transaction ID back, but the transaction is not propagated through the node, and canât find it on etherscan. Looks like all my transactions are being dropped after being assigned a trx id?
But yes, I have tried to increase the gas (with the same nonce and higher gas) and increasing nonce as well but to no avail.
Yup, looks like they are getting dropped. Any way how I can avoid that? Or any particular reason why that is happening? If there is a way I can debug that, thatâd be great, but not sure how to do that
Usually, they get dropped due to having too low of a gas price, causing them to not get mined. Iâd suggest increasing that to a larger amount and you should see better results.
As mentioned in the original ticket, I am able to send the same transaction through another mycrypto as expected but for some reason Infura drops it. I have tried send transactions with gas_price as high as 1ETH (on kovan) with no avail.
Happy to try out more things if you can suggest any?
What network are you using? If youâre using Ropsten, Iâd advise trying with a different network, as sometimes the miners on Ropsten stop mining for whatever reason.
To help us debug this issue, could you send us the raw transaction that you are using? Also, are you saying you are using 1 for the gas price? Gas price is in Gwei, so 1 ETH would be 1 billion gwei. Are you setting the gas price to â1000000000â or 1?
Hi guys, @jee.choi@Leiya_Kenney. Just wondering if you guys were able to find something for this! Let me know if there is any other information I can provide to help debug this.
We took a look at the raw transaction you sent us and it seems like you are using the wrong nonce number. The last transaction that was mined from the âfromâ address of the rawTransaction you sent us has a nonce of 10. (I wasnât sure if you want the âfromâ addr to be pasted here but it can be derived from the rawTransaction you gave us)
Since the last nonce of the transaction that was mined is 10, the next nonce you should use when sending the next transaction is 11, or 0xb. It looks like you are using 12, or 0xc.
If you use the eth_getTransactionCount API, I have confirmed that it is also returning 11, or 0xb for the âfromâ addr.
This is the nonce value you should use when sending transactions.
The reason your transactions are being dropped is because if a node doesnât receive the next sequential nonce it needs (ie, 11 in this case), the transaction with future nones (12 in this case) will eventually be dropped.