[Ethereum] How to resend a transaction not recognized by the network

go-ethereumpending-transactionstransactions

I've sent a simple transaction (no smart contract invocation) while my geth node had no peers attached. It created the transaction fine and returned a transaction identifier.

Even with many nodes connected now, I cannot find this transaction on any block explorer. I presume this means it wasn't broadcasted?

How can I rebroadcast the transaction?

Best Answer

Just use eth.pendingTransactions to find the transaction you want to resend.

Then

var tx = eth.pendingTransactions[index], replacing index with the index of the transaction you want to resend.

Then

eth.resend(tx, <optional gas price>, <optional gas limit>).

This allows you to change the gas price and gas limit of the resent transaction.

From the docs.