def value_as_trytes(self): # type: () -> TryteString """ Returns a TryteString representation of the transaction's value. """ # Note that we are padding to 81 _trits_. return TryteString.from_trits(trits_from_int(self.value, pad=81))
def attachment_timestamp_upper_bound_as_trytes(self): # type: () -> TryteString """ Returns a TryteString representation of the transaction's attachment timestamp upper bound. """ #Note that we are padding to 27 _trits_. return TryteString.from_trits(trits_from_int(self.attachment_timestamp_upper_bound, pad=27))
def last_index_as_trytes(self): # type: () -> TryteString """ Returns a TryteString representation of the transaction's ``last_index`` value. """ # Note that we are padding to 27 _trits_. return TryteString.from_trits(trits_from_int(self.last_index, pad=27))
def timestamp_as_trytes(self): # type: () -> TryteString """ Returns a TryteString representation of the transaction's timestamp. """ # Note that we are padding to 27 _trits_. return TryteString.from_trits(trits_from_int(self.timestamp, pad=27))