Skip to content

Commit 09688a6

Browse files
committed
remove reference to priv_subscribe from public reference
Signed-off-by: Sally MacFarlane <[email protected]>
1 parent 0c737c3 commit 09688a6

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

docs/public-networks/how-to/use-besu-api/rpc-pubsub.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ Unlike other [Besu API methods](../../reference/api/index.md), you cannot call t
3131

3232
[WebSockets](json-rpc.md#http-and-websocket-requests) supports the RPC Pub/Sub API.
3333

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`.
3535

3636
Subscriptions couple with connections. If a connection is closed, all subscriptions created over the connection are removed.
3737

3838
### Subscription ID
3939

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.
4141

4242
For example, to create a synchronizing subscription:
4343

@@ -82,14 +82,6 @@ Use `eth_subscribe` to create subscriptions for the following event types:
8282
- [Dropped transactions](#dropped-transactions)
8383
- [Synchronizing](#synchronizing)
8484

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-
9385
### New headers
9486

9587
To notify you about each block added to the blockchain, use the `newHeads` parameter with `eth_subscribe`.

0 commit comments

Comments
 (0)