Add support for `block.slotnum`

Open
#5,259 2 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 3 days

@harkal is already working on this.

Since Sep 11, 2026.

Assessment

This issue has not been assessed yet.

Description

The next EVM version amsterdam will ship the new opcode SLOTNUM (0x4b) (see EIP-7843), which returns the beacon chain slot number of the current block. While technically uint64 is enough as return type (SLOTNUM is returned as a uint64 in big endian encoding), maybe it's better sticking to uint256 to be consistent with the other block properties. But this is up for discussion.

Dominant language
Python
Stars
5.2k
Forks
936
Avg merge
5d 16h
Merged PRs (30d)
34

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from vyperlang/vyper

All issues in vyperlang/vyper

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.