Questions tagged [blocks]

This tag is for questions dealing with the structure of blocks.

Filter by
Sorted by
Tagged with
0 votes
2 answers
29 views

How to keep track of each account's ETH balance when parsing all historical transactions

I have downloaded the contents of each historical Ethereum block (starting with block 0) by calling eth_getBlockByNumber for every single block. I want to write a script that iterates over each ...
galpo's user avatar
  • 45
0 votes
1 answer
22 views

Stuck in Smart Contract

I paid the fees on ethereum for item but received nothing what can I do for this? I think there is an error in smart contract please check for me my address is ...
Muhammad's user avatar
0 votes
1 answer
36 views

supplying liquidity + sniping own coin in same bundle

https://etherscan.io/tx/0x0d21d70e031089ab3e5b8083a84f122d5e995033c666dd7ce7cff982b5ba7c77 it looks like this transaction has Supply liquidity and swap Eth for its token all in one bundle. can anyone ...
anon's user avatar
  • 25
0 votes
0 answers
21 views

Ganache-cli block explorer

I am working on a project and creating private blockchain network using ganache-cli. I store the blockchain in the database using --db option. I am trying to understand what is stored in each block of ...
111Seven's user avatar
0 votes
0 answers
14 views

Get number of created blocks in a day in Quorum

I'm looking for a query to query Quorum node to get the number of blocks created in a day. Is there any direct query to do the same? Also, how to iterate over each created block to check the number of ...
Siva Sankar's user avatar
0 votes
1 answer
47 views

Does block number increase when a slot has no proposed block?

If a slot has no proposed block (ie an empty slot), does the block number still increase?
dbmikus's user avatar
  • 135
0 votes
0 answers
15 views

Transactions not ordered fairly? (BSC)

If we take a look at the first few transactions block 29930437 on Binance smart chain, there is something very interesting going on, if we compare gas prices: Tx 0: The first transaction payed ~2132 ...
Jaron_e's user avatar
0 votes
1 answer
37 views

Number of validators in a committee for a particular slot is not equal to the number of aggregation_bits for that committee in the slot

I was trying to make a program in which I store the attestations of the validators. But When I started running the program I ran into an error, which was that the number of validators in the committee ...
Rishabh Vasudevan's user avatar
1 vote
4 answers
66 views

Specific Block Data?

How can I get data from a specific block in the past? Does node providers support archive node? Any suggestions are welcome.
Tien's user avatar
  • 193
0 votes
0 answers
21 views

How to calculate a tx's effectiveGasPrice within a block?

Let's say I query all transactions within a block. Assuming all transactions are already settled, how can I know what will be their effectiveGasPrice ? I'm confused that transactions specify a ...
Cizia's user avatar
  • 233
0 votes
0 answers
34 views

Alchemy getAssetTransfers function doesn't return all transactions

I am using alchemy and axios to get all the transaction history for an address Here is the code: var categoryList = []; categoryList.push("external"); categoryList.push("internal");...
Fariha Abbasi's user avatar
1 vote
1 answer
348 views

How to get internal transactions using JSON-RPC methods

In etherscan I noticed that there are transactions that have "internal transactions" inside of them, see this link: etherscan transaction. Screenshot of the transaction: My question is: how ...
Jacob's user avatar
  • 155
3 votes
1 answer
475 views

What is the withdrawals field of the response of web3.eth.getBlock()?

I noticed that the withdrawal field has been added to the web3.eth.getBlock() response. Here is a small example: { <the usual fields>... , withdrawals: [ { index: '0x3812d', ...
Pierogi's user avatar
  • 203
0 votes
0 answers
48 views

How do validators pick transactions to fill the gas usage per block?

I was looking through Etherscan and noticed blocks vary widely in gas usage from one to the other. I was wondering how do validators pick transactions that they'll include in their pending block, as ...
Stephen's user avatar
  • 101
0 votes
0 answers
14 views

Transaction order in the block, reordering the block [duplicate]

I've been wondering about the ways that transactions are ordered in the block. In my previous questions I got an answer that mostly its the gas settings. So as I was checking today's blocks I stumbled ...
Kacper's user avatar
  • 43
3 votes
1 answer
143 views

What is the "skip-block" exact definition in Ethereum 2.0?

In this article the term "skip-block" has been mentioned so briefly that it is not clear to me what its exact definition is. Is it a kind of block in Ethereum 2.0 ? I also could not find ...
Questioner's user avatar
  • 2,670
0 votes
0 answers
7 views

How can i know type of block?

How can i know if block fetched is Byzantine, Constantinople or Frontier. Since mining reward for each type is different. I need to know block type in order to calculate mining reward.
Rusty Pythonic Script's user avatar
1 vote
0 answers
31 views

Does empty slot (by the proposal being offline) mean no transaction processing for 12 seconds?

guys! When a validator chosen as the block proposal in a certain block goes offline, the slot goes empty. Does that mean that no single transaction is successfully processed for the slot (for 12 ...
syko's user avatar
  • 111
0 votes
0 answers
53 views

Go script using which I can simulate any transaction using geth and see the outputs of the transaction before actually sending it on the blockchain

Hello everyone. I need a go script using which I can simulate any transaction using geth and see the outputs of the transaction before actually sending it on the blockchain. I want to give a list of ...
Yannik Joe's user avatar
2 votes
1 answer
254 views

Who is index 0 validator in ethereum beacon chain?

Address: 0x933ad9491b62059dd065b560d256d8957a8c402cc6e8d8ee7290ae11e8f7329267a8811c397529dac52ae1342ba58c95 In beaconscan.com, the index 0 validator proposed block nearly 20,000 times and almost ...
hhhbbb's user avatar
  • 23
2 votes
2 answers
320 views

Given 2 transactions to my smart contact on the same block, how can I tell which came first within the contract?

My contract requires holding a history of all interactions to it. I have a hook for everything except tokens being sent to the contract — this requires a separate array of history from everything else ...
Ryan Sea's user avatar
  • 608
1 vote
0 answers
224 views

Why does the Polygon PoS Chain Average Gas Limit (per block) keep changing?

Most EVM chains have a fixed gas limit and gas target per block. For Ethereum, it's 30M and 15M: https://etherscan.io/chart/gaslimit For Polygon, the gas limit seems to change every single block. How ...
Mal Plankton's user avatar
3 votes
2 answers
336 views

What is the underlying mechanism behind empty slots in Ethereum?

Ethereum docs says: However, occasionally validators might be offline when called to propose a block, meaning slots can sometimes go empty. What happens when the randomly chosen validator is offline?...
ubuntugod's user avatar
  • 131
1 vote
0 answers
25 views

Why do some mined transactions not contain a 'to' parameter?

Sometimes there are transactions inside a block that are missing the 'to' field. How can there be a mined transaction without a to field? What happens to this transaction? eg. one of the transactions ...
leo_cape's user avatar
0 votes
1 answer
381 views

How to get the exact block number in Hardhat deploy script?

I have written a code in hardhat deploy script to fetch the exact block number at which the contract has been executed, but it usually returns the block next to the original. Any idea how to get the ...
Shubham Sharma's user avatar
0 votes
1 answer
208 views

Block timestamp

Require(block.timestamp + 1 days - 1 hours <= numbers [14] , "Must lock longer than x") ; Require(number [14] < 9999999999, "Avoid potential timestamp overflow"); Locktime = ...
Willnk's user avatar
  • 1
4 votes
1 answer
575 views

Are uncle/ommer blocks still possible after the merge?

Uncle blocks were produced before the merge when two miners found a solution at the same time and following blocks were appended to only one of them. So my question is, are uncle/ommer blocks still ...
Plus Ultra's user avatar
1 vote
2 answers
209 views

How to access the difficulty of an older block from within a smart contract?

Is it possible to access properties of an older block from within a smart contract (e.g. difficulty, timestamp etc.)?
Jan Beneš's user avatar
0 votes
1 answer
31 views

How can I get a large amount of Ethereum transactions in a database without running my own node? Does a database like this exist already?

I am doing research into Ethereum transactions and I simply need a database of 1000 transactions or just about 10 blocks worth of transactions. What is the easiest and fastest way to acquire this? Do ...
sagooding's user avatar
2 votes
1 answer
143 views

Coinbase transaction on ethereum

So, I learned that in bitcoin, a coinbase transaction is the first transaction that gets created in the block and it is used to give block rewards to the miner that mined the block. I was curious if ...
alan's user avatar
  • 23
1 vote
1 answer
575 views

What is the difference between Relay and Builder post Merge in Ethereum?

I was listening to an episode of Bankeless where they were talking about things coming up, post merge. In that episode they mentioned block builders and relayers. The context they mention it was ...
Finlay Weber's user avatar
2 votes
1 answer
128 views

Broadcasting a transaction to be included in the next block

Since the merge we have predictable block times of around 12-13 seconds. I want to broadcast my transaction in a way that it is highly likely to get included in the next mined block, e.g. the block ...
Plus Ultra's user avatar
0 votes
1 answer
14 views

Where are the docs on transaction filtering?

Say we have a user that tries to make a fake transaction. Where are the docs regulating how it is checked before it is fitted into block (pre and post PoS consensus merge )?
Blender's user avatar
  • 73
3 votes
1 answer
117 views

Where are the blockchain transactions stored?

I'm studying the block structure in several blockchains like Bitcoin or Ethereum. When I started to read about blockchain, many sites and books said that transactions are stored in blocks. Ok, I got ...
Superxi's user avatar
  • 31
2 votes
2 answers
1k views

Are Ethereum blocks flexible in terms of size or are they capped?

Many blockchains have block size limits. But I am confused when it comes to Ethereum. On one hand, I read that its block size is flexible. But on the other hand, I strongly suspect there must be a ...
SarahRinaldi_93's user avatar
1 vote
1 answer
737 views

Can we predict the blockhash of next block in Ethereum [duplicate]

After reading this SWC https://swcregistry.io/docs/SWC-120 I was curious how we can predict the blockhash of the next block. Because in the second example, it is saying the contract is vulnerable to ...
FaizanNehal's user avatar
0 votes
1 answer
221 views

How to decode and update input data of a specific transaction?

So, I've decoded the input-data and fetched it via block-hash, Now what I want to do is that, I want to update the input data and post that updated input data back to the same transaction of the same ...
Syed Murtaza Ali Shah's user avatar
1 vote
0 answers
13 views

Output full block data

I am looking to get an example block's full data so I can examine what information is available within it. The main questions I am looking to answer are: Is there actual tx info within the block or ...
chunter's user avatar
  • 56
4 votes
1 answer
439 views

PBS - How & where do block builders submit their blocks?

With the merge and the change to PoS, there will also be a shift towards PBS. As far as i have researched, any block builder can build blocks with transactions from the mempool. How are these blocks ...
Plus Ultra's user avatar
0 votes
1 answer
34 views

How wallets sync blocks after consensus happen

i know that when user submits a transaction that transaction is then sent to all their peers by following this protocol https://github.com/ethereum/wiki/wiki/%C3%90%CE%9EVp2p-Wire-Protocol. Miners ...
Panagiotis Drakatos's user avatar
1 vote
0 answers
22 views

Ethereum yellow paper is-sibling property

I'm reading the yellow paper and having some problems understanding equation 169 from here - also below: s(U,H) = (P(H) = P(U) ∧ H != U ∧ U !∈ B(H)_U) I can understand the first two conditions: The ...
Bula's user avatar
  • 121
1 vote
0 answers
108 views

How is it possible to sign and attest a block within 12 seconds

I am digging deep into understanding the consensus layer specification for ethereum when it has moved to proof of stake. I understand that time is divided into slots of 12 seconds, and 32 of such ...
Finlay Weber's user avatar
0 votes
1 answer
173 views

How do I check if a block contains a transaction for a token like USDC or USDT

I'm exploring Blocks & Transactions at the moment. I can see in the blocks there's transactions which show what addresses sent ETH and where to. However, I'm wondering how to tell if these are for ...
Trevor Wood's user avatar
0 votes
1 answer
12 views

Does different hardware spec affect the number of transactions a miner included in a block?

I am a newbie so any insight would be appreciated! The number of transactions included in a block could be determined by a number of factors: The gas price set by the miner who validated that block. ...
hwuukki's user avatar
0 votes
1 answer
190 views

How to determine if the hash is finalized?

For some reason, I am require to store the hash to database. I would like to know is there any criteria to determine that the hash is finalize? For example, Block #15000000 have hash value of ...
karfai's user avatar
  • 101
4 votes
2 answers
273 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,...
Daithí's user avatar
  • 274
0 votes
1 answer
341 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 ...
fahadh4ilyas's user avatar
3 votes
1 answer
436 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 ...
yonama's user avatar
  • 31
1 vote
2 answers
322 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 ...
grouloo's user avatar
  • 13
0 votes
1 answer
92 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.
Ranjith's user avatar

1
2 3 4 5
7