Questions tagged [blocks]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
13 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 ...
1
vote
0answers
10 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
1answer
17 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
1answer
206 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
0answers
48 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
0answers
9 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
1answer
107 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.
0
votes
1answer
86 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
1answer
13 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
0answers
16 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
1answer
45 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
2answers
159 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
1answer
48 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 ...
0
votes
0answers
11 views

Blockchain with fixed number of blocks using geth

I want to create a private blockchain with geth. In my case, the smart contract should be deployed (for example in block 9) and every block after this block should be deleted after creation. I want to ...
4
votes
2answers
31 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
1answer
19 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
0answers
9 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
2answers
25 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
0answers
39 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
2answers
107 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 ...
1
vote
0answers
19 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
1answer
41 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
1answer
48 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
1answer
89 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
1answer
67 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 ...
0
votes
0answers
11 views

Can't manage to send transactions on following block

I have a web socket subscription to binance smart chain, which triggers an event every time a new block is issued. Once a new block number n is issued, I send a transaction and expect it to be mined ...
1
vote
2answers
193 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 ...
0
votes
0answers
75 views

Running --no-ancient-blocks on a synced node

I have an up to date OpenEthereum node that is taking a long time to sync it's ancient blocks, Which has left it syncing a batch of ancient blocks, while falling behind, then syncing up to date. Put ...
1
vote
0answers
37 views

Able to Produce Blocks but Still Balance is Zero

Kindly find the following results below from my Mac Terminal: miner.start(1) --> null miner.stop() --> null eth.getBalance(eth.accounts[0]) --> 350000000000000000000 eth.syncing --> ...
1
vote
1answer
57 views

How the maker ensured the transaction was placed at a certain point within the same block?

I was observing the MARSH allocation recently and found a bot behavior of extreme luck. One single transaction outperformed many others and the maker paid 101 ETH to the miner for a single transaction....
0
votes
1answer
52 views

What is the purpose of setting web3.eth.Contract.defaultBlock?

In web3 object, the default value of web3.eth.Contract.defaultBlock is always "latest". But what could be the case to modify defaultBlock value? Thanks
1
vote
0answers
15 views

Can block timestamp be smaller than the time a transaction has been sent?

I have seen cases where the time that I sent my transaction (logged on local PC) is actually 'later' (by 10s of seconds) than the block.timestamp of the block that my transaction entered. I checked if ...
1
vote
0answers
22 views

If a block header is 80bytes, then why does a full node need ~100GB of storage

So, I'm a little confused about how data is stored in a block. If You can get the state of all accounts from the State Root of a block header, then that means that you can get the state of every ...
0
votes
0answers
20 views

Geth/Parity node - When is a new block imported

Based on my observations and also on block-timestamps-vs-received-timestamp, I suppose that a block "n" is imported into geth or parity node, only after a block "n+1" is mined. Is ...
0
votes
0answers
41 views

From what source does etherscan.io aggregate and broadcast data that appears on the blockchain ledger?

as blocks are hashed together as transactions pile up and are broadcasted on the Ethereum blockchain, how exactly does the website etherscan.io in turn publish and broadcast all that information in ...
0
votes
0answers
19 views

Locating the block my miner found?

I am using PhoenixMiner on Nanopool. It notes in the past week (2/10-2/17) I had a maximum reported share of 209622.1TH. I assume this share produced a block provided the average difficulty this week ...
0
votes
1answer
148 views

Reduce gas costs with longer block confirmation times (like in Bitcoin)

In Bitcoin, fees tend to decrease as you target longer block confirmation times. For example, a standard transaction with 1 input and 2 outputs has a fee of approx. $3.06 for confirmation within 6 ...
0
votes
1answer
35 views

ROPSTEN: Duplicate Blocks adding transactions using Geth Real-Time Event API

I'm using the Geth Real-Time Event to get the new blocks via web-socket and there's a subscription called "newHeads" for that propose. The thing is sometimes the socket returns a duplicate ...
0
votes
1answer
43 views

How to handle forks, dropped/reverted blocks

I'm building an ethereum wallet, I've setup geth. I'm planning to subscribe to new transactions on geth websocket, I can't figure out how to deal with dropped blocks and hardfork. let's say a user ...
0
votes
0answers
54 views

Can a single transaction use up all the block gas limit?

The current Ethereum block gas limit is ~12M, I see 100+ transactions are added per block on average. My question is can a single transaction use up all the Block gas limit (~12M) or miners will ...
0
votes
1answer
22 views

How are difficulty of finding a proof of work dynamically regulated without a central body? [duplicate]

The probability of a miners to mine a block dynamically changes so that blocks are mined at regular intervals.How does block chains accomplish this without a central regulating body,
1
vote
1answer
465 views

Ethereum block timestamp

Is the timestamp of a block referring to the time that block is created or when it's mined by a miner? Suppose I subscribe to new incoming blocks using the following NodeJS code (with web3): web3.eth....
0
votes
0answers
110 views

is it possible to change block' gas limit?

I'm trying to execute some heavy transactions. Before execute it, Remix advises me about the gas limit: Ok, then I change my gas limit on Metamask to 9,000,000 (I'm on Ropsten network): And finally, ...
1
vote
1answer
30 views

Failed mined transactions

Is transaction "status" flagged inside the block when it's mined? Like if a transaction is mined but failed due to out of gas or not meeting contract conditions, is the transaction marked as ...
1
vote
1answer
948 views

Ropsten "exceeds block gas limit"

I am on GETH, 1.9.23 and I have had a smart contract running for more than 3 months now. Suddenly, all transaction failed with "exceeds block gas limit". I checked the Ropsten Testnet and ...
1
vote
1answer
67 views

where is receipt tree stored?

Simple question. I know that state trie is stored in each node's drive. but they are not stored on actual state. Question 1) What about receipt tree ? do they get stored separately too from the chain ...
0
votes
1answer
35 views

in which currency does state trie's balance is stored?

My question is very simple and I couldn't find the answer for it. There's a state trie in ethereum. Each state trie has address as key and value as an object which has balance as one of the keys. I am ...
0
votes
0answers
355 views

Truffle - multiple transactions per block

i try to simulate a large transaction load and therefore want to execute multiple transactions in a truffle test. I changed the block-time to five seconds and generate the transactions, but only one ...
0
votes
0answers
11 views

How to read the Ethereum Block header and check contract

I have downloaded some Ethereum block headers, such is one example (omitted some details for conciseness): {"difficulty": 7314508281338, "extraData": "...
0
votes
1answer
41 views

Is Ethereum blockchain really temper proof or immutable?

Suppose there is a user A which transfers some ethers to user B through a proper transaction. So is it possible to alter the transaction. Something like going back to the block which contains the ...

1
2 3 4 5 6