Questions tagged [blocks]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
7 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
1answer
15 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
2answers
134 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
1answer
20 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
2answers
28 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
0answers
38 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
2answers
27 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
0answers
126 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 ...
0
votes
1answer
24 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
0answers
30 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
20 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
24 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
232 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
152 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
15 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
134 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
318 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
16 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
20 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
226 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
547 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
284 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
17 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
45 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
31 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
16 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
67 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
93 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
221 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
41 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
51 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
66 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
217 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
76 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
17 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
314 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
112 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
47 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
90 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
94 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
20 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
31 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
24 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
77 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
22 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
207 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
45 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
68 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
1answer
29 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
689 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....

1
2 3 4 5 6