func (o *PostTxsEncodeBody) Validate(formats strfmt.Registry) error {
	var res []error
	if err := o.validateTx(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
Validate validates this post txs encode body
package transactions
import (
	"fmt"
	"io"
	"github.com/go-openapi/errors"
	"github.com/go-openapi/runtime"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/terra-project/mantle-sdk/lcd/models"
)
type PostTxsEncodeReader struct {
	formats strfmt.Registry
}
func (o *PostTxsEncodeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) {
	switch response.Code() {
	case 200:
		result := NewPostTxsEncodeOK()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return result, nil
	case 400:
		result := NewPostTxsEncodeBadRequest()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	case 500:
		result := NewPostTxsEncodeInternalServerError()
		if err := result.readResponse(response, consumer, o.formats); err != nil {
			return nil, err
		}
		return nil, result
	default:
		return nil, runtime.NewAPIError("response status code does not match any response statuses defined for this endpoint in the swagger spec", response, response.Code())
	}
}
func NewPostTxsEncodeOK() *PostTxsEncodeOK {
	return &PostTxsEncodeOK{}
}
type PostTxsEncodeOK struct {
	Payload *PostTxsEncodeOKBody
}
func (o *PostTxsEncodeOK) Error() string {
	return fmt.Sprintf("[POST /txs/encode][%d] postTxsEncodeOK  %+v", 200, o.Payload)
}
func (o *PostTxsEncodeOK) GetPayload() *PostTxsEncodeOKBody {
	return o.Payload
}
func (o *PostTxsEncodeOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	o.Payload = new(PostTxsEncodeOKBody)
	if err := consumer.Consume(response.Body(), o.Payload); err != nil && err != io.EOF {
		return err
	}
	return nil
}
func NewPostTxsEncodeBadRequest() *PostTxsEncodeBadRequest {
	return &PostTxsEncodeBadRequest{}
}
type PostTxsEncodeBadRequest struct {
}
func (o *PostTxsEncodeBadRequest) Error() string {
	return fmt.Sprintf("[POST /txs/encode][%d] postTxsEncodeBadRequest ", 400)
}
func (o *PostTxsEncodeBadRequest) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
func NewPostTxsEncodeInternalServerError() *PostTxsEncodeInternalServerError {
	return &PostTxsEncodeInternalServerError{}
}
type PostTxsEncodeInternalServerError struct {
}
func (o *PostTxsEncodeInternalServerError) Error() string {
	return fmt.Sprintf("[POST /txs/encode][%d] postTxsEncodeInternalServerError ", 500)
}
func (o *PostTxsEncodeInternalServerError) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error {
	return nil
}
type PostTxsEncodeBody struct {
	Tx *models.StdTx `json:"tx,omitempty"`
}