eth_unsubscribe - Ethereum
The eth_unsubscribe method is part of the Ethereum JSON-RPC Core API and is used to cancel a specified subscription by its ID. It helps developers manage active subscriptions, optimizing resource.
Supported Networks
Parameters
Request
https://go.getblock.io/<ACCESS-TOKEN>/curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "eth_unsubscribe",
"params": [
"0xe5af64ddfd365b4632988c5935cfedb7"
],
"id": "getblock.io"
}'wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body
{"jsonrpc": "2.0",
"method": "eth_unsubscribe",
"params": ["0xe5af64ddfd365b4632988c5935cfedb7"],
"id": "getblock.io"}Response
Use Case
Code Example
Last updated
Was this helpful?