stream.mts in the same directory. These examples use the same environment variables and dependencies.
Subscribe to entry metadata
entries.mts
Read entry fields
slotandindexlocate the entry within a slot.hashis binary; the example displays it as hex.numHashesrecords the hash count for the entry.executedTransactionCountis a count, not a transaction array.startingTransactionIndexlocates its first transaction within the block.
BigInt. A zero transaction count is valid.