Log In

eth_unsubscribe - Linea

Subscriptions are cancelled with a regular RPC call with eth_unsubscribe as method and the subscription id as first parameter.

Parameters

Subscription ID, as previously returned from an eth_subscribe call.

Returns

True if a subscription was successfully cancelled, or false if no subscription existed with the given ID.

Example

Request

wscat -c wss://linea-mainnet.unifra.io/v1/<key>

> {"jsonrpc":"2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0xc2d3d9c42bd58c3d3e95c108e50607e2"]}

Result

< {"jsonrpc":"2.0","id":1,"result":true}