func (tx *SignedTransaction) Serialize() ([]byte, error) {
	var b bytes.Buffer
	encoder := transaction.NewEncoder(&b)

	if err := encoder.Encode(tx.Transaction); err != nil {
		return nil, err
	}
	return b.Bytes(), nil
}
//Serialize function serializes a transaction
Serialize function serializes a transaction
// Serialize function serializes a transaction
func (tx *SignedTransaction) Serialize() ([]byte, error) {
	var b bytes.Buffer
	encoder := transaction.NewEncoder(&b)
	if err := encoder.Encode(tx.Transaction); err != nil {
		return nil, err
	}
	return b.Bytes(), nil
}
func ( tx * SignedTransaction ) Serialize ( ) ( [ ] byte , error ) { var b bytes . Buffer encoder := transaction . NewEncoder ( & b ) if err := encoder . Encode ( tx . Transaction ) ; err != nil { return nil , err } return b . Bytes ( ) , nil }
Serialize function serializes a transaction
Serialize function serializes a transaction