ultralight icon indicating copy to clipboard operation
ultralight copied to clipboard

Add new RPC endpoints to support Beacon network data

Open acolytec3 opened this issue 2 years ago • 6 comments

We should some higher level endpoints to the RPC for things like beacon_getLightClientUpdate and beacon_getBootstrap and maybe beacon_lightClientStatus to allow visibility into how our embedded light client is doing (i.e. is it tracking the head of the chain, etc).

acolytec3 avatar Nov 17 '23 19:11 acolytec3

@holgerd77 I'm guessing this question is related to this tracking issue maybe? If so, then this is specifically the lodestar light client and not the full beacon client. It's quite light weight but it runs inside of Ultralight and essentially just listens for beacon light client data objects that are gossiped over the portal network and updates its own internal state when it finds things its looking for (i.e. light client updates and optimistic updates).

acolytec3 avatar Nov 17 '23 19:11 acolytec3

Haha, yes.

holgerd77 avatar Nov 17 '23 20:11 holgerd77

Have added:

  • beacon_getHead - returns the capella fork Light Client Header corresponding to the current known head block
  • beacon_getFinalized - returns the capella fork Light Client Header corresponding to the current known Finalized block

acolytec3 avatar Nov 21 '23 19:11 acolytec3

Added beacon_getLightClientUpdate was added in #530

acolytec3 avatar Nov 28 '23 19:11 acolytec3

This PR documents all the official beacon RPC endpoints we should implement. I think we have most of them already but should confirm against this list.

acolytec3 avatar Jun 27 '24 17:06 acolytec3

We're missing quite a few after referencing the list above. But, we're missing lots of endpoints all around, the entire trace sub-namespace is missing so we should think about implementing some of these.

acolytec3 avatar Jul 05 '24 20:07 acolytec3