Skip to main content
Ethereum API
Multichain API

eth_unsubscribe

Summary: Unsubscribes from a specific Ethereum event, using the subscription ID provided by eth_subscribe.

Unsubscribes from specific events on the Ethereum network, to which the client has been previously subscribed using eth_subscribe. The client must provide the subscription ID obtained from eth_subscribe to stop receiving notifications for the corresponding event.

Parameters

subscriptionId string
required

The unique subscription ID obtained from eth_subscribe, used to identify the subscription to be unsubscribed.

Returns

A boolean value indicating whether the unsubscription was successful.
unsubscribed boolean

A boolean value indicating whether the unsubscription was successful.

Customize request
Parameter
Value
string
Connect your MetaMask wallet to run requests successfully.
Request
await window.ethereum.request({
"method": "eth_unsubscribe",
"params": [
"0x1b84f2cdf29a204b79e450c1939b30c1"
],
});
Example response
true