Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added withdrawals endpoint to fetch withdrawals from a parent state #304

Merged
merged 1 commit into from
Feb 24, 2023

Conversation

rolfyone
Copy link
Collaborator

Added into a new route, /eth/v1/builder, as it's different to the existing beacon state fetch paradigm, and a new Tag for builders seems appropriate.

This endpoint is probably suited to allowing for returning SSZ via octet-stream also, so added that in. The idea would be similar to blocks, it would just return the data object as the SSZ result.

It would be possible to add withdrawals_root, but it'd be at the same level as finalized, so it'd be a little less clean. I've left that out for now.

Fixes #301.

Added into a new route, `/eth/v1/builder`, as it's different to the existing beacon state fetch paradigm, and a new Tag for builders seems appropriate.

This endpoint is probably suited to allowing for returning SSZ via octet-stream also, so added that in. The idea would be similar to blocks, it would just return the data object as the SSZ result.

It would be possible to add withdrawals_root, but it'd be at the same level as finalized, so it'd be a little less clean. I've left that out for now.

Fixes ethereum#301.
Copy link
Collaborator

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@rolfyone rolfyone merged commit 8fc2729 into ethereum:master Feb 24, 2023
@rolfyone rolfyone deleted the 301 branch February 24, 2023 23:25
bors bot pushed a commit to sigp/lighthouse that referenced this pull request Aug 24, 2023
## Issue Addressed

[#4029](#4029)

## Proposed Changes

implement expected_withdrawals HTTP API per the spec 

ethereum/beacon-APIs#304

## Additional Info
bors bot pushed a commit to sigp/lighthouse that referenced this pull request Aug 24, 2023
## Issue Addressed

[#4029](#4029)

## Proposed Changes

implement expected_withdrawals HTTP API per the spec 

ethereum/beacon-APIs#304

## Additional Info
bors bot pushed a commit to sigp/lighthouse that referenced this pull request Aug 24, 2023
## Issue Addressed

[#4029](#4029)

## Proposed Changes

implement expected_withdrawals HTTP API per the spec 

ethereum/beacon-APIs#304

## Additional Info
Woodpile37 pushed a commit to Woodpile37/lighthouse that referenced this pull request Jan 6, 2024
Woodpile37 pushed a commit to Woodpile37/lighthouse that referenced this pull request Jan 6, 2024
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.

Endpoint for expected withdrawals for a slot
3 participants