eth_unsubscribe - Ethereum
eth_unsubscribe. Unsubscribes from a subscription using the specified subscription ID
eth_unsubscribe - ethereum [Value: 10CU]
Unsubscribes from a subscription using the specified subscription ID
Use cases
- Stop receiving updates for specific blockchain events
- Unsubscribe from new block notifications
- Cancel pending transaction monitoring subscription
Constraints
- Requires valid subscription ID for unsubscription
- Node must support the eth_unsubscribe method
- Continuous connection needed until unsubscription confirmation
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
wscat -c wss://eth.drpc.org \
{"id":1,"jsonrpc":"2.0","method":"eth_unsubscribe","params":["0xe9549ac54eeec07f"]}
Response
200
{
"jsonrpc":"2.0",
"id":1,
"result":true
}
Request params
idinteger
jsonrpcstring
methodstring
string
subscription_idstring
The ID of the subscription to unsubscribe from
Response
200
Returns true if the subscription was successfully unsubscribed, false otherwise.Response params
object
idinteger
jsonrpcstring
resultboolean