Polygon PoS
eth_unsubscribe0 크레딧
Cancels a WebSocket subscription.
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
| subscriptionId | string | Subscription id returned by eth_subscribe. |
반환값
타입
boolean
true if the subscription was cancelled.
코드 예제
wscat -c wss://holy-burned-sky-matic-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7
> {"jsonrpc":"2.0","id":1,"method":"eth_unsubscribe","params":["0x9ce59a13059e417087c02d3236a0b1cc"]}