Skip to content

Add ancestryProof graphql endpoint#18371

Open
georgeee wants to merge 3 commits intocompatiblefrom
georgeee/ancestryProof-graphql
Open

Add ancestryProof graphql endpoint#18371
georgeee wants to merge 3 commits intocompatiblefrom
georgeee/ancestryProof-graphql

Conversation

@georgeee
Copy link
Member

@georgeee georgeee commented Jan 26, 2026

PR implements a new grapql endpoint ancestryProof that retrieves state body hash sequences along with intial state hash that results into target state hash.

Type of the new graphql query:

ancestryProof(stateHash: StateHash | null, depth: Int | null) : Pair<StateHash, StateBodyHash[]>

If stateHash isn't provided, best tip is used. If depth is not provided, 290 will be used as a value.

Explain how you tested your changes:

  • A new test suite for the graphql's implementation feature is added

Checklist:

  • Dependency versions are unchanged
    • Notify Velocity team if dependencies must change in CI
  • Modified the current draft of release notes with details on what is completed or incomplete within this project
  • Document code purpose, how to use it
    • Mention expected invariants, implicit constraints
  • Tests were added for the new behavior
    • Document test purpose, significance of failures
    • Test names should reflect their purpose
  • All tests pass (CI will check this if you didn't)
  • Serialized types are in stable-versioned modules
  • Does this close issues? List them

@georgeee georgeee requested a review from a team as a code owner January 26, 2026 21:02
@georgeee
Copy link
Member Author

!ci-build-me

Copy link
Member

@martyall martyall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work 🎉

@georgeee georgeee force-pushed the georgeee/ancestryProof-graphql branch from 5d0546b to 0caf0af Compare January 27, 2026 18:55
@georgeee
Copy link
Member Author

!ci-build-me

@georgeee georgeee force-pushed the georgeee/ancestryProof-graphql branch from 0caf0af to 9bb4a9c Compare February 2, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants