Skip to main content

kaia_unsubscribe RPC Method

Cancels the subscription with a specific subscription id by using either RPC Pub/Sub over WebSockets or filters over HTTP. Only the connection that created a subscription can unsubscribe from it.

Updated on
Aug 7, 2024

kaia_unsubscribe RPC Method

Parameters

subscriptionID
string
REQUIRED
The subscription ID

Returns

result
boolean
Return true if the subscription was successfully canceled, otherwise false.
Request
1
curl https://docs-demo.kaia-kairos.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "kaia_unsubscribe",
6
"id": 1,
7
"jsonrpc": "2.0",
8
"params": ["SUBSCRIPTION_ID"]
9
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free