pub fn eth_payload_attributes_for_fork(
fork: EthereumHardfork,
timestamp: u64,
) -> PayloadAttributesExpand description
Creates Ethereum [PayloadAttributes] valid for the given hardfork, allowing the same test
to be run against multiple hardfork targets.
Withdrawals are set once Shanghai is active, the parent beacon block root once Cancun is active, and a slot number once Amsterdam is active. The payload builder requires a slot number for EIP-7843; tests use the timestamp as a deterministic dummy slot because the exact beacon slot is irrelevant for local e2e payloads.