Skip to content

Latest commit

 

History

History
43 lines (24 loc) · 1.24 KB

EventsApi.md

File metadata and controls

43 lines (24 loc) · 1.24 KB

\EventsApi

All URIs are relative to http://public-mainnet-node.ethereum.org/api

Method HTTP request Description
Eventstream Get /eth/v1/events Subscribe to beacon node events

Eventstream

string Eventstream(ctx, topics)

Subscribe to beacon node events

Provides endpoint to subscribe to beacon node Server-Sent-Events stream. Consumers should use eventsource implementation to listen on those events.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
topics []string Event types to subscribe to

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/event-stream, application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]