Skip to content

Commit

Permalink
revert versioned docs changes
Browse files Browse the repository at this point in the history
  • Loading branch information
weiihann committed Oct 14, 2024
1 parent 20fe851 commit ab52006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/versioned_docs/version-0.11.8/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ docker logs -f juno
<details>
<summary>How can I get real-time updates of new blocks?</summary>

The [WebSocket](websocket#subscribe-to-newly-created-blocks) interface provides a `starknet_subscribeNewHeads` method that emits an event when new blocks are added to the blockchain.
The [WebSocket](websocket#subscribe-to-newly-created-blocks) interface provides a `juno_subscribeNewHeads` method that emits an event when new blocks are added to the blockchain.

</details>

Expand Down
6 changes: 3 additions & 3 deletions docs/versioned_docs/version-0.11.8/websocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,15 @@ Get the most recent accepted block hash and number with the `starknet_blockHashA

## Subscribe to newly created blocks

The WebSocket server provides a `starknet_subscribeNewHeads` method that emits an event when new blocks are added to the blockchain:
The WebSocket server provides a `juno_subscribeNewHeads` method that emits an event when new blocks are added to the blockchain:

<Tabs>
<TabItem value="request" label="Request">

```json
{
"jsonrpc": "2.0",
"method": "starknet_subscribeNewHeads",
"method": "juno_subscribeNewHeads",
"params": [],
"id": 1
}
Expand All @@ -129,7 +129,7 @@ When a new block is added, you will receive a message like this:
```json
{
"jsonrpc": "2.0",
"method": "starknet_subscribeNewHeads",
"method": "juno_subscribeNewHeads",
"params": {
"result": {
"block_hash": "0x840660a07a17ae6a55d39fb6d366698ecda11e02280ca3e9ca4b4f1bad741c",
Expand Down

0 comments on commit ab52006

Please sign in to comment.