Event Endpoints
beacon_client.event_endpoints.EventEndpoints
Source code in beacon_client/event_endpoints.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
|
stream_events(head=False, block=False, attestation=False, voluntary_exit=False, finalized_checkpoint=False, chain_reorg=False, contribution_and_proof=False)
Provides endpoint to subscribe to beacon node Server-Sent-Events stream Returns an Event object with the event name (event.name: str) and the contents (event.data: str)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
head |
bool
|
If true return events of type head |
False
|
block |
bool
|
If true return events of type block |
False
|
attestation |
bool
|
If true return events of type attestation |
False
|
voluntary_exit |
bool
|
If true return events of type voluntary_exit |
False
|
finalized_checkpoint |
bool
|
If true return events of type finalized_checkpoint |
False
|
chain_reorg |
bool
|
If true return events of type chain_reorg |
False
|
contribution_and_proof |
bool
|
If true return events of type contribution_and_proof |
False
|
Source code in beacon_client/event_endpoints.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|