Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
订阅 entry 哈希、索引和交易计数。需要完整交易数据时,使用交易或区块订阅。
stream.mts
import { subscribe } from "./stream.mts"; for await (const update of subscribe({ entry: { entries: {} } })) { const entry = update.entry; if (!entry) continue; console.log({ slot: entry.slot, index: entry.index, hash: Buffer.from(entry.hash).toString("hex"), numHashes: entry.numHashes, transactionCount: entry.executedTransactionCount, startingTransactionIndex: entry.startingTransactionIndex, }); }
npx tsx entries.mts
slot
index
hash
numHashes
executedTransactionCount
startingTransactionIndex
BigInt
此页面对您有帮助吗?