Skip to main content
The newHeads subscription type emits an event any time a new header (block) is added to the chain, including during a chain reorganization.

Body

number
Serves as a unique identifier for the request
string
Indicates the version of JSON-RPC being used
string
Represents the name of the remote procedure or method to be called
array
Contains the list of parameters passed to the remote method

Response

string
Returns the version of JSON-RPC being used
string
Returns the method of JSON-RPC call
object
Subscription result