func (txStatuses TxStatuses) MarshalBinary() ([]byte, error) {
	buf := new(bytes.Buffer)
	if err := binary.Write(buf, binary.LittleEndian, uint64(len(txStatuses))); err != nil {
		return buf.Bytes(), fmt.Errorf("cannot write txStatuses len: %v", err)
	}
	for _, txStatus := range txStatuses {
		txStatusData, err := txStatus.MarshalBinary()
		if err != nil {
			return buf.Bytes(), fmt.Errorf("cannot marshal txStatus: %v", err)
		}
		if err := binary.Write(buf, binary.LittleEndian, uint64(len(txStatusData))); err != nil {
			return buf.Bytes(), fmt.Errorf("cannot write txStatus len: %v", err)
		}
		if err := binary.Write(buf, binary.LittleEndian, txStatusData); err != nil {
			return buf.Bytes(), fmt.Errorf("cannot write txStatus data: %v", err)
		}
	}
	return buf.Bytes(), nil
}
MarshalBinary implements the `encoding.BinaryMarshaler` interface for the
TxStatuses type.
package v0
import (
	"bytes"
	"encoding/binary"
	"encoding/json"
	"fmt"
)
type TxStatuses []TxStatus