Skip to content

Add staking history to the validator detail page #252

Description

@begonaalvarezd

Context

The validator detail page (validator/:id, ValidatorDetails.tsx) shows the current validator info (meta, stats, previous/next epoch panels) but has no historical view. We want to add a staking-history section at the bottom of the page.

Plan

Staking History section (node RPC, no indexer). Add a section at the bottom of the existing validator page showing the stake history

  • Note: limited by full-node event retention and pagination cost over long ranges. Fine for a bounded recent window; deep history would need a dedicated indexer (out of scope here).

Out of scope

  • Delegators list (addresses staking with the validator): not possible on node RPC (no validator -> stakers reverse lookup; only owner-scoped getStakes and a network-wide count exist). Needs a custom indexer. Tracking separately.

References

  • Page: apps/explorer/src/pages/validator/ValidatorDetails.tsx; sections apps/explorer/src/components/validator/{ValidatorMeta,ValidatorStats,ValidatorStatusLegend}.tsx.
  • Events/APY hooks: apps/core/src/hooks/useGetValidatorsEvents.ts, useGetValidatorsApy.ts.
  • Validator fields: IotaValidatorSummary in sdk/typescript/src/client/types/generated.ts.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions