订阅以接收来自验证器的每个 slot 上各种更新的通知。
wss://mainnet.helius-rpc.com/?api-key=<API_KEY>
wss://devnet.helius-rpc.com/?api-key=<API_KEY>
err: <string|undefined>
- 错误信息。仅在更新类型为 “dead” 时存在。parent: <u64|undefined>
- 父 slot。仅在更新类型为 “createdBank” 时存在。slot: <u64>
- 新更新的 slotstats: <object|undefined>
- 仅在更新类型为 “frozen” 时存在。一个包含以下字段的对象:
maxTransactionsPerEntry: <u64>
numFailedTransactions: <u64>
numSuccessfulTransactions: <u64>
numTransactionEntries: <u64>
timestamp: <i64>
- 更新的 Unix 时间戳(毫秒)type: <string>
- 更新类型之一: