EVM
eth_subscribe
Starts a subscription (on WebSockets / IPC / TCP transports) to a particular event. For every event that matches the subscription a JSON-RPC notification with event details and subscription ID will be sent to a client.
POST
Parameters
Unique identifier for a blockchain network.
Request identifier used to match responses.
JSON-RPC version.
JSON-RPC method name.
Parameters for eth_subscribe: [subscriptionType, options]. The second parameter is required only for “logs”.Positional parameters for
eth_subscribe:params[0]: Subscription type. Must be either “newHeads” or “logs”.params[1]: Filter options for “logs” subscription, or empty object for “newHeads”.
Returns
Assigned subscription ID Example:
“0xb53c4832f1dca4a5”.