Can the Same Address Send Two Transactions Simultaneously? – Analysis

noncetransactions

Several articles say that a transaction can be canceled or replaced with the same nonce and higher gas price.

Then does this indicate that the same address can NOT send two transactions at the same time?

As the nonce is the number of transactions sent from a given address, may I just increase the number of nonce when sending the second transaction?

However I don't think it is possible to know which transaction will be mined firstly, so it confuses me that I can not determine which transaction should be given a higher nonce.

Please correct me if anything is wrong.

Best Answer

  • Then does this indicate that the same address can NOT send two transactions at the same time?

No. It indicates that you cannot send two transaction with the same nonce from the same address.

  • As the nonce is the number of transactions sent from a given address, may I just increase the number of nonce when sending the second transaction?

Yes.

  • However I don't think it is possible to know which transaction will be mined firstly, so it confuses me that I can not determine which transaction should be given a higher nonce.

I think (if someone could confirme or correct) it is the first one that gets mined. But I'm not sure at all because that miners' configuration migth have an influence on that.

From @Зелёный in the comments, you could set an higher gas price in one of yoru transaction so that it is processed before the other one. You then don't have to worry about nonce anymore.