Questions tagged [blocks]
This tag is for questions dealing with the structure of blocks.
297
questions
0
votes
0
answers
11
views
Why are the block numbers not the same?
I am pulling price data from Uniswap V2 using getReserves() and printing the output to the console.
When I do this across different pairs the blocknumbers are not lining up.
Why is this?
I was ...
0
votes
0
answers
14
views
How to estimate the transaction size of a Blockchain (Ethereum) from the given data?
The following is the data given for different blocks;
The 'size' column here refers to the block size. The aim is to estimate the transaction size for each block and compare that with the block size. ...
2
votes
1
answer
24
views
The Merge: should I stick with jsonrpc or move to eth api's?
I'm trying to understand what happens after the merge, what should my frontend clients do. Should they stick with the execution layer (EL) jsonrpc (they'll still have access to the latest transactions,...
0
votes
1
answer
29
views
How Uncles (Ommers) Hash include in headers?
I'm confused with the definition of uncle block. I read every articles and they say basically uncle block is a block that valid but lose the race to main blockchain. All the blocks' hashes that lose ...
3
votes
1
answer
71
views
Hardhat local transactions don't process
I'm new to hardhat. I am playing around with the local hardhat accounts, which are all funded for 10k ETH. All I want to do is send some ETH from 1 account to another, and check the second account's ...
1
vote
2
answers
27
views
How does a node rollback?
I've been trying to learn Ethereum's mechanisms for a little while, but there is a thing I still don't understand and it is how nodes switch to the correct state when solving a fork.
As far as I ...
0
votes
1
answer
31
views
Does the Ethereum world state stored into DB every time when the block is mined?
The Ethereum block header stores the root hash of the world state trie, Does this means every time the state of world state is copied into levelDB for every block mined? Thanks for your answers.
0
votes
0
answers
26
views
Block propagation delay
I have some doubts related to block propagation time.
In a network built with Hyperledger Besu, I have 4 AWS machines, 3 in Paris and 1 more in Oregon. The block propagation times are crazy, like 2 ...
0
votes
0
answers
15
views
How to get the transactions that have logs from a getBlockByNumber call?
I am interested in getting all the transactions from an Ethereum block that have emitted events.
Would it be possible to get this information from the individual transaction from a getBlockByNumber ...
0
votes
1
answer
47
views
What is the aggregation_bits in beacon chain's Attestation?
The beacon chains Attestation data structure has an aggregation_bits
class Attestation(Container):
aggregation_bits: Bitlist[MAX_VALIDATORS_PER_COMMITTEE]
data: AttestationData
signature: ...
0
votes
0
answers
35
views
Block capacity - Hyperledger Besu
Good afternoon,
I am trying to perform a transaction capacity test on my network with Hyperledger Besu with 4 validator nodes and a time per block of 4seconds.
I have created a script with NodeJS that ...
0
votes
1
answer
24
views
How to store contract state on multiple blocks?
Eth blocks have a clear block size and gas limit (of 30,000,000).
Some contract states must require more memory than the defined block size, right?
Now my question: can the contract state be saved on ...
0
votes
1
answer
61
views
Speed up Frontrun Bot
I've made a frontrun bot for the Binance Smart Chain.
It's working fine, but just for 50% of all transactions..
In the other 50% the is missing the transaction by 1 block.. Example is below
My ...
0
votes
0
answers
18
views
What is the difference in block mining between bitcoin and ethereum?
The following video https://andersbrownworth.com/blockchain/ has a nice example of how the mining process works on bitcoin. It shows that you need to find a nonce that, together with the data of the ...
0
votes
1
answer
41
views
How to include a transaction in a selected block/or at particular time
There is this particular function of the project which is required to be triggered by someone on BSC blockchain manually at a particular time to execute certain functions. A person who gets to the ...
1
vote
0
answers
19
views
How do miners choose what transactions to include first in the block (after London)?
I have read Does using a very high gas limit somehow get your transactions executed slower? and How transactions are selected by the miners?
My main question is the same, how do miners include ...
0
votes
0
answers
9
views
In Go Ethereum private chain what is the maximum limit of number of transactions in a single block
What is maximum limit of transaction packaging in single block ?
Can it be increased ? If yes how ?
0
votes
1
answer
29
views
how to tackle block gas limit to send large data file as transaction on ethereum
I want to send ethereum blockchain a file approx 39KB. The file is like array generated by python code. I dont want to use IPFS and oracle. Is this file exceed block gas limit? if yes, then can i ...
0
votes
2
answers
482
views
Why geth fast sync or light sync does not get the latest highest block
I am running geth "light" mode: geth --syncmode "fast" console. I have the following problem. The highest block is always be 13773036, which is created at 3 days ago:
web3.eth....
0
votes
1
answer
59
views
How do I get the PoW nonce of a specific block in solidity?
This question doesn't have an answer that shows how to get the PoW nonce for a specific block internally from within Solidity.
From my understanding in Ethereum nonce is used for an account's tx ...
0
votes
2
answers
31
views
Is the state of the ethereum blockchain changed with each transaction or with each block?
Assume we have two transactions A and B which are put into a block by a miner (first A then B). Will both transactions be executed with the state of the previous block or will transaction B be ...
1
vote
0
answers
54
views
What factors exactly affect the speed, depth and range of scanning the mempool?
There is zero quality information available on that topic anywhere, for obvious reasons. If there is however somebody willing to share, whether from experience or purely technical understanding of all ...
0
votes
2
answers
98
views
newHeads: does logsBloom contain all addresses?
Looking at newHeads and the docs say:
Fires a notification each time a new header is appended to the chain, including chain reorganizations. Users can use the bloom filter to determine if the block ...
0
votes
0
answers
162
views
Ethereum sent to Trust Wallet using unsupported KCC network
I sent Ethereum to Trust from Kucoin using the KCC network which is not a supported network by trustwallet. When i look up the transaction on the blockchain, confirmations are still rising? Is there a ...
1
vote
1
answer
47
views
Does the timestamp matter for a new transaction? About same gasPrice TX order inside a mined block
I want to send a Transaction to follow a specific Transaction in the same block.
Now I can guaranty my Transaction exactly been placed in the same Block.
But there are a lots of other TXs between my ...
0
votes
0
answers
97
views
Is it possible in Solidity to get the previous transactions of the current block?
When a transfer is being executed in a Solidity contract, is it possible to obtain the previous transactions that have occurred in the same block?
Specifically I need the path of the previous ...
2
votes
1
answer
41
views
Eth 2.0. block rewards
I have found a few models presenting the issuance rate of ether and it becoming potentially deflationary. Yet, I can't seem to find any written explanations about how these are calculated. I am ...
0
votes
1
answer
68
views
How to obtain blocks information easily?
I am interested in collecting blocks' information in Ethereum. For example, for each block i want to get the followings: Gas Limit, Used Gas, Gas Price, Tx fee, Number of tx, number of uncles.
I am ...
1
vote
1
answer
254
views
Why, after the London Fork, the average gas price of mined blocks is so lower than the needed gas price to have transactions included?
I understand the reason behind empty blocks but it seems to me that after the EIP-1559 the average gas prices of the transactions in the mined blocks are really low compared to what is the needed gas ...
0
votes
0
answers
215
views
How to get all addresses that have had successful transaction in the last polygon block?
I need to listen for special events on some contract addresses in Polygon/Matic blockchain; However, my provider has limitations on the number of possible subscriptions. So, I have to get all the ...
1
vote
0
answers
25
views
questions on block (and header) storage in ethereum, how is it stored along with tries?
I understand that ethereum uses Trie to track the state, transactions, receipts. and each trie has key-value pair that is stored in the database.
Each blockheader also has the root has of stateRoot, ...
2
votes
1
answer
168
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.
1
vote
1
answer
557
views
Is there a way to manually set your transaction's position in a block?
I've seen some action on a coin I was monitoring on BSC using poocoin (similar to dextools but for bsc - it shows buys and sells). Whenever there was a big buy/big sell on this coin, there would be an ...
0
votes
1
answer
21
views
index within block
is it possible to choose which index you want to aim for when sending a transaction?
Lets say there are 100 transactions all with 5 gwei, if i want to be on index 25, would it be possible to send the ...
0
votes
0
answers
29
views
All Transactions from Genesis
I need all transactions from genesis block, I dont care about replaying account states. I try fast mode sync and I am able to get transactions under each block in recent blocks. But when I try to get ...
3
votes
1
answer
573
views
By what duration can a miner manipulate block.timestamp?
By what duration can a miner manipulate block.timestamp? Can they manipulate it by 10min, 5sec, 2hrs...?
From here I can see that the average block time on the ethereum blockchain is 13 seconds.
This ...
1
vote
2
answers
935
views
What decides the order of transactions in a block?
Transaction order in a block matters, since that's the order those transactions are executed and take effect on the state of the EVM. But what or who decides the order of transactions? Is it hard-...
1
vote
1
answer
660
views
List all transactions for a block
Within a program, I would like to process a list of all normal transactions for an Ethereum block. Specifically for each transaction in the block the transferred ETH value, sender address and receiver ...
4
votes
2
answers
65
views
Strange blocks behaviour, transactions are dropped from a validated block
I have faced a very strange issue on Goerli Testnet using infura. The number of transactions in a blocks dropped from 168 transactions to 164.
I'm working on a blocks tracker, after receiving the ...
1
vote
1
answer
43
views
How can I grab a list of all txHashes from the current/previous block with JSON-RPC
I would like to grab the list of txHashes in the current block or the previous block. I would like to grab this from a json-rpc api. Is this possible? All I found was grabbing info about the block not ...
1
vote
0
answers
23
views
Highest known block in the peer network - permissioned ethereum network
We are starting to define the best metrics to monitor a permissioned Besu network.
One important point to monitor is the block height of a node and from other nodes in order to discover if the node is ...
0
votes
2
answers
149
views
Can there be two blocks with the same number?
I am trying to index blockchain data and I am thinking of what's a unique way to identify a block.
Is it enough to use block number as the primary identifier and is there a possibility that the data ...
0
votes
0
answers
158
views
Smart Contract - How to Copy or Clone it?
All - Could someone tell me if it is possible to copy or obtain a smart contract code that has been proven to work on the blockchain in the past. I have a block number and the smart contract address, ...
4
votes
2
answers
457
views
Ensuring correct block order with subscribe on "newHeads"
I have an issue with processing new blocks through a WebSocket connection on a local node. Sometimes I receive multiple events with the same blockNumber but different blockHashes.
I understood from ...
2
votes
0
answers
82
views
How to subscribe to newly minted blocks?
I am trying to figure out the most efficient way to poll latest blocks.
I found that there is a newBlockHeaders event that I can subscribe to using web3js.
What is not clear to me is how to track the ...
1
vote
1
answer
64
views
Who generates block details
Who generates/computes the block header and other details such as ParentHash, TxHash, etc.? I refer to above image for details but I am not sure who generates these details.
0
votes
1
answer
93
views
Mining with 1.06GH/s
So right now I'm using 2miners and I rented 1.06GH/s to mine Ethereum. It says every 2 months I should find a block solo at 11k reward. Pool mining I'll get .55eth if pool finds a block now. It never ...
3
votes
1
answer
537
views
Avoid using block.timestamp
I need to define a specific time phase. Therefore, I wanted to use opening timestamp and closing timestamp using block.timestamp. I get the following warning:
Linter: security/no-block-members: Avoid ...
0
votes
1
answer
85
views
If you are a miner can you accept your own transactions at no cost? [duplicate]
Let us say I am a miner. Can I accept my transactions into the blockchain at no fee to myself? And what do I lose?
Let us assume someone is running a dapp. Can they mine transactions of that dapp to ...
1
vote
2
answers
439
views
Can you use block times as a measure of duration?
I have read that it takes about 12 seconds for an ethereum block to be mined. Let’s us say I have a contract mined on block 100, can I set a function that can only be run at block 200 or more? Thus ...