
# 利用交易ID查询交易详情
1. 消息构建。 
   - 接口方法
     ```
     func (msg *QueryRawMessage) BuildTxRawMessage(chainID string, txHash []byte) (*common.RawMessage, error)
     ```
     
   
   - 参数说明
     
     | 参数      | 类型       | 说明    |
     |:---|:---|:---|
     | chainID | string   | 链名称。  |
     | txHash  | \[\]byte | 交易哈希。 |
        
     
   
   - 返回值
     
     | 类型                  | 说明                      |
     |:---|:---|
     | \*common.RawMessage | 根据交易ID查询交易详情需发送的消息。     |
     | error               | 构建成功返回类型为nil，反之返回error。 |
        
     
   
   
   
   
2. 消息发送。 
   - 接口方法
     QueryAction.class
     ```
     func (action *QueryAction) GetTxByHash(rawMsg *common.RawMessage) (*common.RawMessage, error)
     ```
     
   
   - 参数说明
     
     | 参数     | 类型                  | 说明                  |
     |:---|:---|:---|
     | rawMsg | \*common.RawMessage | 上述根据交易Hash查询交易详情消息。 |
        
     
   
   - 返回值
     
     | 类型                  | 说明                      |
     |:---|:---|
     | \*common.RawMessage | 用于获取包含发送结果的消息。          |
     | error               | 发送成功返回类型为nil，反之返回error。 |
        
     
   
   
   
   
 
