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
from_slot=362520000# Start from this historical slot
223
+
)
224
+
```
225
+
226
+
What is `from_slot`?
227
+
- Starts streaming from a specific slot instead of the current slot
228
+
- Useful for replaying missed events and backfilling after short downtime
229
+
- Limited by the data retention (usually a few minutes)
230
+
- If the requested slot is too old, you'll get an error with the oldest available slot
231
+
214
232
### Step 7: Instruction data decoding
215
233
216
234
This is where the magic happens - extracting meaningful data from raw blockchain bytes:
@@ -331,6 +349,7 @@ Here are short summaries of each learning example file, from basic to advanced,
331
349
### Other subscriptions
332
350
333
351
-**`slots_subscription.py`**: this example shows how to subscribe to slot updates, giving you a real-time feed of when new slots are processed by the validator.
352
+
-**`historical_replay_with_from_slot.py`**: demonstrates using the `from_slot` parameter to replay historical blockchain data from a specific slot instead of starting from the current slot.
334
353
-**`blocks_subscription.py`**: this script demonstrates how to subscribe to entire blocks that contain transactions interacting with a specific account.
335
354
-**`blocks_meta_subscription.py`**: this example shows how to subscribe to just the metadata of blocks, which is a lightweight way to track block production.
336
355
-**`entries_subscription.py`**: this script demonstrates how to subscribe to ledger entries, which provides a low-level stream of the changes being written to the Solana ledger.
0 commit comments