Skip to main content

state_unsubscribeStorage

Allows clients to unsubscribe from receiving storage updates.

Shows that the unsubscription process was successful. The unsubscription was accomplished if this is true. If untrue, there may have been a problem with the unsubscribe request.

Example Request and Result for state_unsubscribeStorage method

In this section, we provide an illustrative example of a request made to retrieve details contents using the state_unsubscribeStorage method. Additionally, we present the resulting response containing information about unsubscribing to storage updates using WS subscription.

Parameters

  • none
info

The example in this section uses a non-existing project id.

Make sure you replace it with your Vara Mainnet endpoint when issuing the API calls.

Don't have a project id? Here's a straightforward guide on how to obtain one!

Allows clients to unsubscribe from receiving storage updates.

POST wss://vara-mainnet.blastapi.io/<project-id>

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

Curl Request example

wscat -c 'wss://vara-mainnet.blastapi.io/<project-id>'
# wait for connection
messasge:
{
"id": 1,
"jsonrpc": "2.0",
"method": "state_unsubscribeStorage",
"params": []
}