> ## Documentation Index
> Fetch the complete documentation index at: https://www.helius.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 日志截断与未截断日志流

> LaserStream 默认将事务日志消息截断至 10 KB 以提高速度和性能。通过专用的未截断端点流式传输完整日志。

默认情况下，LaserStream 将事务日志消息截断至 **10 KB** 以提高速度和性能。较小的消息意味着每个消费者的带宽使用更低，延迟更低，并且大多数事务生成的日志都远低于此限制。

如果您的用例依赖完整日志——例如，解析程序日志以获取事件或索引详细的 CPI 重事务——请改用专用的未截断端点。

## 未截断端点

这些端点流式传输完整且未截断的事务日志消息：

| 地区      | 位置           | 端点                                                           |
| ------- | ------------ | ------------------------------------------------------------ |
| **ewr** | 新泽西州纽瓦克（近纽约） | `https://laserstream-mainnet-ewr-untruncated.helius-rpc.com` |
| **fra** | 德国法兰克福，欧洲    | `https://laserstream-mainnet-fra-untruncated.helius-rpc.com` |

它们使用与[标准端点](/zh/laserstream/grpc#mainnet-endpoints)相同的 API 密钥、订阅请求和客户端——日志消息不会被截断。一个限制：未截断端点目前不支持[历史重播](/zh/laserstream/historical-replay)。

要切换，请将您的客户端指向未截断 URL：

```typescript index.ts theme={"system"}
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
};
```

## 选择端点

* **标准端点**（默认）：适用于大多数工作负载。截断日志保持消息较小，从而减少带宽和延迟。
* **未截断端点**：当您需要完整的事务日志并能接受随之而来的较大消息大小时使用。目前不兼容历史重播。
