Skip to main content

/eth/v1/events RPC Method

Subscribe to beacon node events.

Updated on
Oct 4, 2023

/eth/v1/events RPC Method

Parameters

topics
string
REQUIRED
The event types to subscribe to. The available values: head, block, attestation, voluntary_exit, finalized_checkpoint, chain_reorg, contribution_and_proof.

Returns

data
The object with the following values:
slot
string
The corresponding slot
block
string
The information about the specified block
state
string
The activation state
current_duty_dependent_root
string
The current duty dependent root
previous_duty_dependent_root
string
The previous duty dependent root
epoch_transition
boolean
The epoch transition
execution_optimistic
boolean
It's true if the response references an unverified execution payload. The optimistic information may be invalidated at a later time. If the field is not present, assume the false value
Request
1
curl -X GET \
2
"https://docs-demo.quiknode.pro/eth/v1/events?topics=head" \
3
-H "accept: text/event-stream"
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free