Open mitschabaude opened 2 months ago
Given that market conditions can change fast, there should also be a way to resend the tx with an increased fee, something like:
const txSent = await tx.send();
const json = txSent.toJSON();
// 10 min later, if tx is not included in the book due to fee fluctuations
const tx1 = Mina.Transaction.fromJSON(
JSON.parse(json)
) as Mina.Transaction;
tx1.setFee(increasedFeePerWU) // tx1.feePayer.body.fee = increasedFeePerWU * accountUpdatesNum;
const txSent1 = await tx1.sign([privateKey]).send();
https://discord.com/channels/484437221055922177/1234429008427618387/1234765711298007071