Skip to content

Add example curl command to test Beacon API endpoint in blsync.md #31980

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

Open
wants to merge 2 commits into
base: website
Choose a base branch
from

Conversation

shazam8253
Copy link
Contributor

This adds a short example section showing how to use curl to verify that a Beacon API endpoint is reachable and returns valid light client headers. Helps developers quickly test endpoint connectivity before integration.

Copy link

netlify bot commented Jun 5, 2025

Deploy Preview for geth-website failed.

Built without sensitive environment variables

Name Link
🔨 Latest commit 9087111
🔍 Latest deploy log https://app.netlify.com/projects/geth-website/deploys/68501f3762b3fa0008fc0381

Copy link
Contributor

@tr1sm0s1n tr1sm0s1n left a comment

Choose a reason for hiding this comment

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

I see this endpoint belongs to the nimbus client. The docs are solely for geth related utilities.

Copy link
Member

@lightclient lightclient left a comment

Choose a reason for hiding this comment

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

Thanks Shanti! What I'm hoping for here in the example is more of a one line command that gets the checkpoint and starts geth using blsync with that root.

It should look something like this

export BEACON=<server URL>
geth --beacon.api=$BEACON --beacon.checkpoint=$(curl <rest of command to get the check point root>)

You'll want to use jq to access the exact values from the JSON response from the beacon api.

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.

4 participants