Skip to content

Expose chainwork in block API responses #651

Description

@asherp

Bitcoin Core exposes the cumulative chainwork for each block via the getblock RPC. This value is the canonical measure used to compare competing chains and determine the active chain.

It would be useful if Esplora included a chainwork field in /block/:hash responses. This would allow clients to compare competing branches, analyze reorgs, and display cumulative proof of work without having to recompute it from every block's bits value.

Since chainwork is already maintained by Bitcoin Core, this would be an additive, backward-compatible API enhancement.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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