BlockPI Network
Search
⌃K

eth_unsubscribe

Subscriptions are cancelled with a regular RPC call with eth_unsubscribe as a method and the subscription id as the first parameter. It returns a bool indicating if the subscription was cancelled.

Parameters:

SUBSCRIPTION ID

Returns:

UNSUBSCRIBED FLAG - true if the subscription was cancelled successful.

Example:

// Request
curl https://arbitrum.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_unsubscribe","params":["0xf13f7073ddef66a8c1b0c9c9f0e543c3"],"id":1}'
​
// Result
{
"jsonrpc": "2.0",
"id": 1,
"result": ture
}