You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/public-networks/how-to/use-besu-api/rpc-pubsub.md
+2-10Lines changed: 2 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,13 +31,13 @@ Unlike other [Besu API methods](../../reference/api/index.md), you cannot call t
31
31
32
32
[WebSockets](json-rpc.md#http-and-websocket-requests) supports the RPC Pub/Sub API.
33
33
34
-
To create subscriptions, use `eth_subscribe` or `priv_subscribe`. Once subscribed, the API publishes notifications using `eth_subscription` or `priv_subscription`.
34
+
To create subscriptions, use `eth_subscribe`. Once subscribed, the API publishes notifications using `eth_subscription`.
35
35
36
36
Subscriptions couple with connections. If a connection is closed, all subscriptions created over the connection are removed.
37
37
38
38
### Subscription ID
39
39
40
-
`eth_subscribe`and `priv_subscribe` return a subscription ID for each subscription created. Notifications include the subscription ID.
40
+
`eth_subscribe`returns a subscription ID for each subscription created. Notifications include the subscription ID.
41
41
42
42
For example, to create a synchronizing subscription:
43
43
@@ -82,14 +82,6 @@ Use `eth_subscribe` to create subscriptions for the following event types:
82
82
-[Dropped transactions](#dropped-transactions)
83
83
-[Synchronizing](#synchronizing)
84
84
85
-
Use `priv_subscribe` to [create subscriptions for logs on private contracts](#logs).
86
-
87
-
:::tip
88
-
89
-
Only logs subscriptions are relevant for private transactions because private transactions are anchored to the public chain rather than having their own private blockchain.
90
-
91
-
:::
92
-
93
85
### New headers
94
86
95
87
To notify you about each block added to the blockchain, use the `newHeads` parameter with `eth_subscribe`.
0 commit comments