eth_subscribe
POST
/{apiKey}
Subscribes to specific event types and returns a subscription ID to receive asynchronous notifications via the eth_subscription method.
⚠️ WARNING: WebSocket-Only Method ⚠️
This method REQUIRES a WebSocket connection using
wss://protocol. It will NOT work with standard HTTP/HTTPS requests orcurl. See the WebSocket documentation for examples.
Path Parameters
stringrequireddefaults to
docs-demoFor higher throughput, create your own API key
Request
string
The type of event to subscribe to (e.g., "newHeads", "logs", "newPendingTransactions", "syncing").
object
Optional subscription parameters, such as filtering topics for logs.
Responses
200
A unique identifier for the subscription, returned as a 32-byte hex string.
Was this page helpful?