Log In

eth_unsubscribe - Arbitrum

Arbitrum API - Cancels an existing subscription so that no further events are sent.

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://arb-mainnet.g.unifra.com/v2/your-api-key

{"jsonrpc":"2.0", "id": 1, "method": "eth_unsubscribe", "params": ["0x9cef478923ff08bf67fde6c64013158d"]}
URL: https://arb-mainnet.g.unifra.com/v2/your-api-key
RequestType: POST
Body: 
{
    "jsonrpc":"2.0",
    "method":"eth_blockNumber",
    "params":[],
    "id":0
}

Result

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