Linked Questions

0 votes
1 answer
2k views

What decides about the position in the block? [duplicate]

All these transactions happened within the single block: Source: https://etherscan.io/defi?q=0x8a40c222996f9f3431f63bf80244c36822060f12#dextracker Right now it is still possible to get to the initial ...
Mars Robertson's user avatar
2 votes
1 answer
346 views

How are transactions ordered within a block? [duplicate]

If I check some specific block, for example: https://etherscan.io/block/12906346 I can see that the transactions are ordered within the block. I would like to understand how that ordering is done.
José D.'s user avatar
  • 173
2 votes
0 answers
97 views

How do miners choose which transactions to include in a block? [duplicate]

If I'm running a private chain with a block gasLimit: 100 and if I initiate 60 transactions, all with an equal gas value of 2, I assume only 50 transactions will be placed in the current block. If all ...
galahad's user avatar
  • 3,930
0 votes
0 answers
39 views

What’s the transaction ordering inside a block? [duplicate]

The game I found a game where each gambler needs to pay 0.02 ᴇᴛʜ to register a secret before the game before the games switch to status==reveal each day. Then, during the status==reveal period no ...
user2284570's user avatar
  • 1,029
21 votes
1 answer
2k views

What is the order and concurrency behavior of multiple calls to a contract in a single transaction?

Suppose a contract has three call APIs that have side effects. What's the behavior if I try to: Call all three APIs from one address (i.e. issue three transactions if from nodejs). Are all three ...
Paul S's user avatar
  • 4,291
8 votes
2 answers
4k views

Can miners mine their own transactions?

Since miners are also nodes at the same time, they should be capable of sending transactions. So the question is, can they mine their own transaction technically? And if yes, are they allowed to do do?...
Ashish Sinha's user avatar
10 votes
2 answers
2k views

Are Transactions originating from one account mined in nonce order?

Discussion in another thread raises an interesting point. how many transactions could be included in a new block from the same account? Since miners can opt to omit a known transaction from the ...
Rob Hitchens's user avatar
  • 55.6k
4 votes
2 answers
5k views

Order of transactions in the same block

I am writing a Medium blog post about front-running and can't seem to find information about the order of the transactions in the same block. I have executed two trades, one with the lower fee, call ...
naz's user avatar
  • 190
7 votes
5 answers
5k views

How Ethereum transaction tree is formed

I am looking for clarity on transaction tree structure. Below I have listed my understanding If I am not wrong the state changes are tracked in a single state tree. Each block has a state root hash ...
Susmit's user avatar
  • 1,804
5 votes
1 answer
7k views

What's the default web3 gas price? [duplicate]

When sending a TX, there's an optional gasPrice field. If I don't set it, what's it default to? Does it look at other TXs going on or is it a fixed value that only changes when web3 gets updated to a ...
Jonah's user avatar
  • 655
6 votes
2 answers
3k views

how to solve solidity asynchronous Problem

How to deal with asynchronous operation because of the delay blockchain ? How does the blockchain perform under high concurrency? how to deal with the mutually exclusive variable?
Jim Green's user avatar
  • 687
7 votes
1 answer
2k views

How to retrieve ERC20 from a hacked address monitored by a bot?

Check it out: https://discordapp.com/channels/554623348622098432/633092550407749652/714325610050355260 The address that was hacked: https://etherscan.io/address/...
Mars Robertson's user avatar
0 votes
1 answer
2k views

How can a miner mine their own ethereum transaction?

From the answer of this question Can miners mine their own transactions? it seems that if someone wanted to make a transaction on the ethereum blockchain for the smallest transaction price (gas) ...
Luke's user avatar
  • 101
1 vote
1 answer
2k views

If 2 transactions are included in the same block, which one is faster?

Suppose I have 2 transactions calling the same contract with a very high gas price, let's say 1000 gwei for tx a and 1001 gewi for tx b. If tx a is sent first before tx b, will tx b be faster to ...
user3082537's user avatar
2 votes
1 answer
2k views

Do mining pool or miners decide on which transaction to be included in the next block?

This question is about mining pools specifically, which is why I don't think it's a duplicate of this question. I understand that with most Bitcoin mining pools, the mining pool computes the header ...
Mario M's user avatar
  • 205

15 30 50 per page