Dashboard
Tutorials
Community
Support
Search…
Welcome to Infura docs
Getting started
Dashboard stats
Networks
Ethereum (execution layer)
Concepts
How to
JSON-RPC methods
eth_accounts
eth_blockNumber
eth_call
eth_chainId
eth_coinbase
eth_estimateGas
eth_feeHistory
eth_getBalance
eth_gasPrice
eth_getBlockByHash
eth_getBlockByNumber
eth_getBlockTransactionCountByHash
eth_getBlockTransactionCountByNumber
eth_getCode
eth_getLogs
eth_getStorageAt
eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockNumberAndIndex
eth_getTransactionByHash
eth_getTransactionCount
eth_getTransactionReceipt
eth_getUncleByBlockHashAndIndex
eth_getUncleByBlockNumberAndIndex
eth_getUncleCountByBlockHash
eth_getUncleCountByBlockNumber
eth_getWork
eth_mining
eth_hashrate
eth_protocolVersion
eth_sendTransaction
eth_sendRawTransaction
eth_sign
eth_submitWork
eth_syncing
net_listening
net_peerCount
net_version
parity_nextNonce
web3_clientVersion
Filter methods
Subscription methods
eth_subscribe
eth_unsubscribe
ETH2 (consensus layer)
IPFS
Filecoin
Polygon PoS
Palm
Optimism
Arbitrum
NEAR
Aurora
Features
Archive data
Infura transactions (ITX)
Tutorials
Ethereum transactions
Filecoin
NEAR
Layer 2 networks
LEARN
curl
JSON Web Token (JWT)
Web3 libraries
Powered By
GitBook
eth_unsubscribe
Subscriptions are cancelled with a regular RPC call with eth_unsubscribe as method and the subscription id as first parameter. It returns a bool indicating if the subscription was cancelled successful.
REQUEST PARAMS
SUBSCRIPTION ID
[required]
EXAMPLE
1
>
wscat -c wss://mainnet.infura.io/ws/v3/YOUR-PROJECT-ID
2
​
3
>
{
"jsonrpc"
:
"2.0"
,
"id"
:
1
,
"method"
:
"eth_unsubscribe"
,
"params"
:
[
"0x9cef478923ff08bf67fde6c64013158d"
]}
Copied!
RESPONSE
RESULT FIELDS
UNSUBSCRIBED FLAG
- true if the subscription was cancelled successful.
BODY
1
{
2
"id"
:
1
,
3
"jsonrpc"
:
"2.0"
,
4
"result"
:
true
5
}
Copied!
Previous
eth_subscribe
Next - Networks
ETH2 (consensus layer)
Last modified
1mo ago
Copy link
Contents
REQUEST PARAMS
RESPONSE