Tenderly DevNets: Faster smart contract development and testing on production data from 30+ networks. Start building! 🚀


Block Header Overrides

Aug 9, 2023 (2 months ago)

Block Header Overrides

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:

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.

Use Tenderly DevNets to build, test, and debug smart contracts against production data of 30+ EVM networks. Get an unlimited faucet, reusable YAML templates, and built-in debugging tools to deploy on-chain faster.

Start building with DevNets!