From fd1f9cf0dd04b62e5b70eb1e088b38c3b9a6532a Mon Sep 17 00:00:00 2001 From: MariusVanDerWijden Date: Mon, 12 Jan 2026 22:52:17 +0100 Subject: [PATCH] core/vm: implement eip-7843 --- graphql/graphql.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/graphql/graphql.go b/graphql/graphql.go index f5eec210a5..f25bfd127a 100644 --- a/graphql/graphql.go +++ b/graphql/graphql.go @@ -1093,6 +1093,18 @@ func (b *Block) ExcessBlobGas(ctx context.Context) (*hexutil.Uint64, error) { return &ret, nil } +func (b *Block) SlotNumber(ctx context.Context) (*hexutil.Uint64, error) { + header, err := b.resolveHeader(ctx) + if err != nil { + return nil, err + } + if header.SlotNumber == nil { + return nil, nil + } + ret := hexutil.Uint64(*header.SlotNumber) + return &ret, nil +} + // BlockFilterCriteria encapsulates criteria passed to a `logs` accessor inside // a block. type BlockFilterCriteria struct {