code: def SerializeUnsigned(self, writer):
          
          writer.WriteByte(self.Type)
          writer.WriteByte(self.Version)
          self.SerializeExclusiveData(writer)
  
          if len(self.Attributes) > self.MAX_TX_ATTRIBUTES:
              raise Exception("Cannot have more than %s transaction attributes" % self.MAX_TX_ATTRIBUTES)
  
          writer.WriteSerializableArray(self.Attributes)
          writer.WriteSerializableArray(self.inputs)
          writer.WriteSerializableArray(self.outputs)
docs: Serialize object.
  
          Args:
              writer (neo.IO.BinaryWriter):