I cannot send same tx to network #2646
Replies: 2 comments 1 reply
-
Unfortunately, not all backends support the Another option is to either sub-class Wallet or create a wrapper Signer, which will retain the signed transaction and allow access to it for rebroadcasting. You can also delete the Do any of those work for you? |
Beta Was this translation helpful? Give feedback.
-
I still couldn't find a way to rebroadcast. I send a contract call via signer.sendTransaction(...). I save it's return value. Then if my transaction still pending, I want to rebroadcast it to the node again without using signer again. How can i achieve this? Just calling provider.sendRawTransaction(savedJson.transactionHash) not working. @ricmoo |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, sometimes my RPC does not recognize sent transactions and nothing happens. I want to send same transaction with the tx that i get from wallet.sendTransaction(unsignedTx). However i get an error "Error: invalid transaction key: hash". I wanted to get raw transaction by provider.send("eth_getRawTransactionByBlockHash", [hash]) however i get an error again: the method eth_getRawTransactionByBlockHash does not exist, error=code:-32601.
How can i achieve this? Is there a method for rebroadcasting transaction? Thx.
Beta Was this translation helpful? Give feedback.
All reactions