Appearance
Block override
Changes to the block fields that a call sees, for example the number or the time.
eth_call, eth_estimateGas, debug_traceCall, trace_call, the bundles of eth_callMany and the blocks of eth_simulateV1 accept it. All fields are optional.
Fields
| Field | Type | Meaning |
|---|---|---|
number | hex number | The block number (NUMBER). blockNumber is also accepted. A value above 64 bits gives NUMBER the full 256-bit value, as in reth. |
time | hex number, seconds | The block time (TIMESTAMP). timestamp is also accepted. |
gasLimit | hex number | The block gas limit (GASLIMIT). |
feeRecipient | address | The fee recipient (COINBASE). coinbase is also accepted. |
prevRandao | 32-byte hash | The randomness value (PREVRANDAO). random is also accepted. |
baseFeePerGas | hex number, wei | The base fee (BASEFEE). baseFee is also accepted. |
blockHash | object: block number in decimal to 32-byte hash | The answers of BLOCKHASH for these numbers. |
blobBaseFee | hex number, wei | The blob base fee (BLOBBASEFEE and the blob fee check of a blob call). |
difficulty | hex number | eth_simulateV1 only: the difficulty of the simulated block. |
beaconRoot | 32-byte hash | eth_simulateV1 only: the parentBeaconBlockRoot of the simulated block. |
Notes
difficultyandbeaconRoothave no effect on a call, as in reth.BLOCKHASHof a block above the head gives a zero hash, as in reth.BLOCKHASH(0)gives the genesis hash.BLOCKHASHof another block below the first header of the node gives the error 4444pruned history unavailable: requested N, earliest available M. reth gives the hash. The node has no headers below its first block before v1.0.- A value with the wrong format gives -32602
Invalid params, with the text of reth indata. Numbers can also be decimal strings or JSON numbers, as in reth.