Skip to main content

pathfinder_unsubscribe RPC Method

Closes a websocket subscription.

Updated on
Jun 26, 2024

pathfinder_unsubscribe RPC Method

Parameters

subscriptionID
integer
REQUIRED
The subscription to close

Returns

result
boolean
Returns true if the unsubscription was successful, otherwise false
Request
1
wscat -c ws \
2
# wait for connection
3
{"id":1,"jsonrpc":"2.0","method":"pathfinder_unsubscribe","params":[1]}
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free