iota/transaction/base.py
def as_json_compatible(self):
        # type: () -> dict
        """
        Returns a JSON-compatible representation of the object.

        References:

        - :py:class:`iota.json.JsonEncoder`.
        """
        return {
            'hash_': self.hash,
            'signature_message_fragment': self.signature_message_fragment,
            'address': self.address,
            'value': self.value,
            'legacy_tag': self.legacy_tag,
            'timestamp': self.timestamp,
            'current_index': self.current_index,
            'last_index': self.last_index,
            'bundle_hash': self.bundle_hash,
            'trunk_transaction_hash': self.trunk_transaction_hash,
            'branch_transaction_hash': self.branch_transaction_hash,
            'tag': self.tag,
            'attachment_timestamp': self.attachment_timestamp,

            'attachment_timestamp_lower_bound':
                self.attachment_timestamp_lower_bound,

            'attachment_timestamp_upper_bound':
                self.attachment_timestamp_upper_bound,

            'nonce': self.nonce,
        }
def as_json_compatible(self):
        # type: () -> dict
        """
        Returns a JSON-compatible representation of the object.

        References:

        - :py:class:`iota.json.JsonEncoder`.
        """
        return {
            'hash_': self.hash,
            'signature_message_fragment': self.signature_message_fragment,
            'address': self.address,
            'value': self.value,
            'legacy_tag': self.legacy_tag,
            'timestamp': self.timestamp,
            'current_index': self.current_index,
            'last_index': self.last_index,
            'bundle_hash': self.bundle_hash,
            'trunk_transaction_hash': self.trunk_transaction_hash,
            'branch_transaction_hash': self.branch_transaction_hash,
            'tag': self.tag,
            'attachment_timestamp': self.attachment_timestamp,

            'attachment_timestamp_lower_bound':
                self.attachment_timestamp_lower_bound,

            'attachment_timestamp_upper_bound':
                self.attachment_timestamp_upper_bound,

            'nonce': self.nonce,
        }
Returns a JSON-compatible representation of the object.

        References:

        - :py:class:`iota.json.JsonEncoder`.