0

If I call approve and transferFrom on an ERC20 token in two transactions, with the nonces being 1 and 2, respectively, how do the miners know which to accept first?

Do the miners choose the ordering of the transactions? If so, does it depend on the nonce or just the gasPrice? If they have the same gasPrice, is it random which one is included first? Does mining software look at the nonce? Can a miner include a t

Looking at Etherdelta, it seems like their interface sends both transactions, approve amd transferFrom in one block with an incremented Nonce. So is this possible?

qtz68426
  • 43
  • 4

1 Answers1

1

Transactions from a single account are mined in nonce order.

Are Transactions originating from one account mined in nonce order?

Hope it helps.

Rob Hitchens
  • 55,151
  • 11
  • 89
  • 145