Build more with QuickNode - New pricing plans and a free tier! Read the press release

Contents

eth-v1-events RPC method

Provides endpoint to subscribe to beacon node Server-Sent-Events stream. Consumers should use eventsource implementation to listen on those events. Servers may send SSE comments beginning with : for any purpose, including to keep the event stream connection alive in the presence of proxy servers.

Parameters:

  1. topics - array[string] - (Required) Event types to subscribe to. Available values: head, block, attestation, voluntary_exit, finalized_checkpoint, chain_reorg, contribution_and_proof.

Returns:

  1. data - object - with the following values:

    slot - string

    block - string

    state - string

    epoch_transition - boolean

    previous_duty_dependent_root - string

    current_duty_dependent_root - string

    execution_optimistic - boolean

Code Examples:

curl -X GET \ 
    "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/events?topics=head" \
    -H "accept: text/event-stream"
Ready to try QuickNode? Get Started