未截断端点
这些端点流式传输完整且未截断的事务日志消息:
它们使用与标准端点相同的 API 密钥、订阅请求和客户端——日志消息不会被截断。一个限制:未截断端点目前不支持历史重播。
要切换,请将您的客户端指向未截断 URL:
index.ts
选择端点
- 标准端点(默认):适用于大多数工作负载。截断日志保持消息较小,从而减少带宽和延迟。
- 未截断端点:当您需要完整的事务日志并能接受随之而来的较大消息大小时使用。目前不兼容历史重播。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
New: Try Gatekeeper (Beta) for significantly lower latency. Learn More
LaserStream 默认将事务日志消息截断至 10 KB 以提高速度和性能。通过专用的未截断端点流式传输完整日志。
| 地区 | 位置 | 端点 |
|---|---|---|
| ewr | 新泽西州纽瓦克(近纽约) | https://laserstream-mainnet-ewr-untruncated.helius-rpc.com |
| fra | 德国法兰克福,欧洲 | https://laserstream-mainnet-fra-untruncated.helius-rpc.com |
import { subscribe, CommitmentLevel, LaserstreamConfig, SubscribeRequest } from 'helius-laserstream';
const config: LaserstreamConfig = {
apiKey: 'YOUR_API_KEY',
endpoint: 'https://laserstream-mainnet-ewr-untruncated.helius-rpc.com', // Untruncated logs
};
此页面对您有帮助吗?