// GetTransaction calls the /tx endpoint to query a single transaction.
GetTransaction calls the /tx endpoint to query a single transaction.
// GetTransaction calls the / tx endpoint to query a single transaction .
func (c *Client) GetTransaction(txID [32]byte) (*Transaction, error) {
	path := RouteTxList + "/" + hex.EncodeToString(txID[:])
	var res Transaction
	if err := c.RequestJSON(path, ReqGet, nil, &res); err != nil {
		return nil, err
	}
	return &res, nil
}
func ( c * Client ) GetTransaction ( txID [ 32 ] byte ) ( * Transaction , error ) { path := RouteTxList + " " + hex . EncodeToString ( txID [ : ] ) var res Transaction if err := c . RequestJSON ( path , ReqGet , nil , & res ) ; err != nil { return nil , err } return & res , nil }
GetTransaction calls the /tx endpoint to query a single transaction.
GetTransaction calls the / tx endpoint to query a single transaction .