stream.mts in the same directory. These examples use the same environment variables and dependencies.
Subscribe to slots and metadata
slots.mts
filterByCommitment: true aligns slot notifications with the request commitment. A slot can have several status updates; keep status as well as slot number when recording transitions.
Request filtered blocks
filtered-blocks.mts