跳转到内容

eth_unsubscribe

此内容尚不支持你的语言。

Protocol: WebSocket (WSS) only

Unsubscribe from a previously created subscription.

ParameterTypeRequiredDescription
subscriptionIdhexYesSubscription ID
{
"jsonrpc": "2.0",
"method": "eth_unsubscribe",
"params": [
"0x1"
],
"id": 1
}
Terminal window
curl -X POST https://eth-mainnet.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_unsubscribe","params":["0x1"],"id":1}'