Block context
Stagenets run historical blocks from the chain they are replaying. Via Mainnet Replay, this replay advances the Stagenet and updates any untouched state to match that block.
Transactions sent to your Stagenet are executed inside these blocks. They see block values drawn from both the replayed chain and your Stagenet configuration.
Block number
block.number matches the block currently being replayed from the chain your Stagenet follows.
Block timestamp
block.timestamp is the timestamp of the replayed block.
This lets time-dependent contracts behave as they would at that point on the replayed chain.
Chain ID
By default, a Stagenet uses a randomly generated chain ID.
This ID is what the CHAINID opcode and the eth_chainId RPC method return.
You can set a custom chain ID for your Stagenet in your project settings.
Gas
Stagenets use standard EVM gas metering.
Gas-related block fields, such as gasPrice and baseFee, follow the block currently being replayed.
Transactions still require the chain’s native gas token, such as ETH on an Ethereum or Base Stagenet. You can fund wallets using your Stagenet’s Faucet.