---
title: GetTransactionId
description: "| 产品 | 是否支持 |"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/others/dataflowdevg/dfrefc_23_0082.html
sourcePath: /source/zh/canncommercial/900/others/dataflowdevg/dfrefc_23_0082.html
indexId: e269abc9aae993065b2fb7ea438d7d870c56a4c56f1d1eadf604e4dd798306f969
---
# GetTransactionId

#### 产品支持情况

| 产品 | 是否支持 |
| --- | --- |
| Atlas A3 训练系列产品 / Atlas A3 推理系列产品 | √ |
| Atlas A2 训练系列产品 / Atlas A2 推理系列产品 | √ |
| Atlas 200I/500 A2 推理产品 | x |
| Atlas 推理系列产品 | x |
| Atlas 训练系列产品 | x |


#### 函数功能

获取DataFlow数据传输使用的事务ID。


#### 函数原型

```
uint64_t GetTransactionId() const
```


#### 参数说明

无。


#### 返回值

返回DataFlow数据传输使用的transaction_id。


#### 异常处理

无。


#### 约束说明

无。
