attestantio/go-eth2-client

Force SSZ?

Closed this issue · 1 comments

Is there a mechanism to force SSZ when downloading the beacon state? The SSZ size is significantly smaller (650mb vs. 160mb)

re:

func (s *Service) BeaconState(ctx context.Context,

Thanks!

SSZ is the preferred content type for the beacon state request. JSON will be returned only if the server does not support SSZ, or if the EnforceJSON() option is supplied to the client.