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โ.