Supported Subscriptions
web3.js supports the standard Ethereum subscriptions out of the box. And they are the ones registered inside registeredSubscriptions object. Here are a list of them:
logs
: implemented in the classLogsSubscription
.newBlockHeaders
: implemented in the classNewHeadsSubscription
.newHeads
same asnewBlockHeaders
.newPendingTransactions
: implemented in the classNewPendingTransactionsSubscription
.pendingTransactions
: same asnewPendingTransactions
.syncing
: implemented in the classSyncingSubscription