![Block Header Overrides](/content/images/2023/08/block-header-overrides.png)
Tenderly now allows you to set custom values for special Solidity variables. These overrides enable wallets and dapps to modify certain properties of the block header when executing a transaction simulation.
Block header overrides are available on the following RPC endpoints:
tenderly_simulateTransaction
(View in docs)tenderly_simulateBundle
(View in docs)eth_call
(View in docs)
Custom endpoints that are part of the tenderly_
namespace accept a Block Overrides object. This object, which is optional, allows you to override the following header fields in a block:
- number: Set a custom block number.
- difficulty: Modify the block's difficulty level.
- time: Adjust the block timestamp.
- gasLimit: Set a custom gas limit for the block.
- coinbase: Specify the miner address for the block.
- random: Provide custom extra data for the block, influencing the
RANDOM
opcode. - baseFee: Override the base fee for the block.
![2024 Recap: Tenderly’s Year of Rollups](/content/images/2024/12/Networks-galaxy.png)
Tenderly
Dec 26, 2024
2024 Recap: Tenderly’s Year of Rollups
![How Application-Specific L2s Drive Web3 Adoption](/content/images/2024/12/How-Application-Specific-L2s-Drive-Web3-Adoption.png)
Tenderly
Dec 10, 2024