Skip to content

getStateV3 with selection on fields #513

@arkh-consensys

Description

@arkh-consensys

Currently getStateV2 /eth/v2/debug/beacon/states/{state_id} returns the full beacon state which is heavy in response size +800MB ~ 1GB.
There are scenarios that the consumer is only interested in partial parts of the state, but still had to fetch the full beacon state which puts load on the beacon node to stream this response and also on the consumer itself to fetch and parse it.

I would like to propose a getStateV3 where we can pass a filter param to only retrieve a selected set of higher level fields from the state /eth/v2/debug/beacon/states/{state_id}?filter=nextWithdrawalValidatorIndex, totalActiveBalanceIncrements, pendingDepositBalanceToConsume` ...

With this approach we lower the barrier on accessing to the beacon state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions