From 2ad9b09d7cd1719f65a76ebdb9eb720b889e75bf Mon Sep 17 00:00:00 2001 From: Sahil Aujla Date: Fri, 6 Feb 2026 12:51:28 -0500 Subject: [PATCH] fix: correct syntax highlighting for websocket tutorial Results block The second Results code block used JS object notation (unquoted keys, single-quoted strings) with a json language tag, causing broken syntax highlighting. Converted to valid JSON: double-quoted keys/strings, wrapped in an array, removed trailing `....`, and truncated the long input field for readability. Co-Authored-By: Claude Opus 4.6 --- ...o-transactions-via-websocket-endpoints.mdx | 71 ++++++++++--------- 1 file changed, 36 insertions(+), 35 deletions(-) diff --git a/fern/tutorials/streaming-data/websocket-subscriptions/how-to-subscribe-to-transactions-via-websocket-endpoints.mdx b/fern/tutorials/streaming-data/websocket-subscriptions/how-to-subscribe-to-transactions-via-websocket-endpoints.mdx index 1d77aa3cf..e9fc933bf 100644 --- a/fern/tutorials/streaming-data/websocket-subscriptions/how-to-subscribe-to-transactions-via-websocket-endpoints.mdx +++ b/fern/tutorials/streaming-data/websocket-subscriptions/how-to-subscribe-to-transactions-via-websocket-endpoints.mdx @@ -201,41 +201,42 @@ If successful, you should see a stream of transactions as the result. This strea ```json Results - { - blockHash: null, - blockNumber: null, - from: '0x0dd25571522e0ac38712b56834dc6081cde33325', - gas: '0x8b5d7', - gasPrice: '0xd09dc30c', - hash: '0x9575c90c4923d7d1981029bfcfc3f23b91ec78683b881b571763dff0c00a72da', - input: '0x0357371d0000000000000000000000000dd25571522e0ac38712b56834dc6081cde3332500000000000000000000000000000000000000000000000000b1a2bc2ec50000', - nonce: '0x14c', - to: '0xfebfd3467c4362eee971c433e3613c009ab55ce4', - transactionIndex: null, - value: '0x0', - type: '0x0', - v: '0x27125', - r: '0xdc427da8df7cd9a4e831734a9ec4d8127d2c068497e667138b0092635157c5db', - s: '0x5d4b996fd467702e7602030de3517e024a31085d57cfe2ff064e98460bc2da28' - } - { - blockHash: null, - blockNumber: null, - from: '0x61141bce5352fc9b5ff648468676e356518d86ab', - gas: '0x55730', - gasPrice: '0x77359410', - hash: '0xc81a148daba8bb67daca8b3e645d07c9caaf2977ebdd46245f97f12cc3737dd2', - input: '0x29dd214d00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000005000000000000000000000000af28cb0d9e045170e1642321b964740784e7dc640000000000000000000000000000000000000000000000000ddf17ab47bc33b40000000000000000000000000000000000000000000000000000000000000100ee569c3895715793e17640229cd2462886335a0940e299921bb2eef69618bb730000000000000000000000000000000000000000000000000000000000000014805fe47d1fe7d86496753bb4b36206953c1ae660000000000000000000000000000000000000000000000000000000000000000000000000000000000000016065f49bd49de252a7f0d9100776c70f0da398368ef9866f8e21fbb0e3e630e74f00000000000000000000000090294dca1861b78d8aaa4acd1abf4c9b535c490e000000000000000000000000cc7bb2d219a0fc08033e130629c2b854b7ba919500000000000000000000000000000000000000000000000029a2241af62c00000000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000080383847bd75f91c168269aa74004877592f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001490294dca1861b78d8aaa4acd1abf4c9b535c490e000000000000000000000000', - nonce: '0x3f927', - to: '0x000054d3a0bc83ec7808f52fcdc28a96c89f6c5c', - transactionIndex: null, - value: '0x0', - type: '0x0', - v: '0x27125', - r: '0x5466a7a7d1823c2290fc4803cac0340dcab34e843a8c0681763ca60fd7ccc7b2', - s: '0x3030ce868c4d09b71009af597175bdecace2f081a0f78f0e4705e318d19076a9' - } - .... + [ + { + "blockHash": null, + "blockNumber": null, + "from": "0x0dd25571522e0ac38712b56834dc6081cde33325", + "gas": "0x8b5d7", + "gasPrice": "0xd09dc30c", + "hash": "0x9575c90c4923d7d1981029bfcfc3f23b91ec78683b881b571763dff0c00a72da", + "input": "0x0357371d0000000000000000000000000dd25571522e0ac38712b56834dc6081cde3332500000000000000000000000000000000000000000000000000b1a2bc2ec50000", + "nonce": "0x14c", + "to": "0xfebfd3467c4362eee971c433e3613c009ab55ce4", + "transactionIndex": null, + "value": "0x0", + "type": "0x0", + "v": "0x27125", + "r": "0xdc427da8df7cd9a4e831734a9ec4d8127d2c068497e667138b0092635157c5db", + "s": "0x5d4b996fd467702e7602030de3517e024a31085d57cfe2ff064e98460bc2da28" + }, + { + "blockHash": null, + "blockNumber": null, + "from": "0x61141bce5352fc9b5ff648468676e356518d86ab", + "gas": "0x55730", + "gasPrice": "0x77359410", + "hash": "0xc81a148daba8bb67daca8b3e645d07c9caaf2977ebdd46245f97f12cc3737dd2", + "input": "0x29dd214d00000000000000000000000000000000000000000000000000000000000000c0...", + "nonce": "0x3f927", + "to": "0x000054d3a0bc83ec7808f52fcdc28a96c89f6c5c", + "transactionIndex": null, + "value": "0x0", + "type": "0x0", + "v": "0x27125", + "r": "0x5466a7a7d1823c2290fc4803cac0340dcab34e843a8c0681763ca60fd7ccc7b2", + "s": "0x3030ce868c4d09b71009af597175bdecace2f081a0f78f0e4705e318d19076a9" + } + ] ```