def to_hash
      {
        confirmations: self.confirmations.nil? ? 0 : self.confirmations,
        version: self.version,
        lock_time: self.lock_time,
        hash: self.hex_hash,
        fee: self.fee,
        inputs: self.inputs,
        outputs: self.outputs
      }
    end
def to_hash
      {
        confirmations: self.confirmations.nil? ? 0 : self.confirmations,
        version: self.version,
        lock_time: self.lock_time,
        hash: self.hex_hash,
        fee: self.fee,
        inputs: self.inputs,
        outputs: self.outputs
      }
    end
Returns a custom data structure representing the full transaction.
 Typically used only by #to_json.