code: def as_bin(self, *args, **kwargs):
          
          f = io.BytesIO()
          self.stream(f, *args, **kwargs)
          return f.getvalue()
docs: Returns a binary blob containing the streamed transaction.
  
          For information about the parameters, see :func:`Tx.stream <stream>`
  
          :return: binary blob that would parse to the given transaction