Opcode to get the current slot number
Timeline
Key Benefits
- ● Removes hardcoded slot assumptions; apps remain correct if slot duration changes.
- ● Cheaper than proving slot via EIP-4788; simple 2-gas opcode call.
- ● Slot number available directly in block header and engine API.
- ● No added proving complexity; similar to TIMESTAMP for ZK-VMs.
Trade-offs & Considerations
No trade-offs documented yet.
Stakeholder Impact
End Users
Indirectly benefits from more reliable app timing if slot duration changes in future networks.
Application Developers
Simplifies reading beacon time onchain, avoiding timestamp math and EIP-4788 proofs; fewer assumptions about the slot schedule.
Wallet Developers
Little to no impact; wallets typically don't consume slot numbers. Optional UI or simulation support could display it.
Tooling / Infrastructure
Block explorers, RPC simulators, and debuggers may add opcode support and parse the new header slot_number field.
Layer 2s
Optional support; helpful if mirroring L1 semantics. Not required unless chains want SLOTNUM compatibility and header field parity.
Stakers & Node Operators
No operational changes expected; clients handle computation and propagation. Node operators shouldn't need configuration or workflow updates.
CL Client Developers
Must compute slot_number and include it in headers and engine API payloads; aligns with existing consensus-layer slot calculations.
EL Client Developers
Implement new opcode, validate header field, expose via RPC, and price gas; updates required across execution clients.
North Star Goal Alignment
- ● Improve UX: Enables more reliable time-based smart contracts and better coordination between consensus and execution layers.