curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "kaia_unsubscribe",
"params": [
""
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
Cancels a websocket subscription previously created with kaia_subscribe.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "kaia_unsubscribe",
"params": [
""
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
kaia_unsubscribe:params[]: Subscription identifier.true.curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=56 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "kaia_unsubscribe",
"params": [
""
]
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
Was this page helpful?