func (m *TxQuery) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateEvents(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateLogs(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateTx(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this tx query
package models
import (
	"github.com/go-openapi/errors"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)
type TxQuery struct {
	Events TxEvents `json:"events,omitempty"`
	GasUsed string `json:"gas_used,omitempty"`
	GasWanted string `json:"gas_wanted,omitempty"`
	Height string `json:"height,omitempty"`
	Logs TxLogs `json:"logs,omitempty"`
	RawLogs string `json:"raw_logs,omitempty"`
	Timestamp string `json:"timestamp,omitempty"`
	Tx *TxQueryTx `json:"tx,omitempty"`
	Txhash string `json:"txhash,omitempty"`
}