def get_address_transfers(self, inclusion_states=False): # type: (int, Optional[int], bool) -> dict """ Returns all transfers associated with an address. :param inclusion_states: Whether to also fetch the inclusion states of the transfers. This requires an additional API call to the node, so it is disabled by default. :return: Dict containing the following values:: { 'bundles': List[Bundle], Matching bundles, sorted by tail transaction timestamp. } References: - https://github.com/iotaledger/wiki/blob/master/api-proposal.md#gettransfers """ return extended.GetTransfersCommand(self.adapter)( address=self.address, inclusionStates=inclusion_states, )
def get_transfers(self, start=0, stop=None, inclusion_states=False): # type: (int, Optional[int], bool) -> dict """ Returns all transfers associated with the seed. :param start: Starting key index. :param stop: Stop before this index. Note that this parameter behaves like the ``stop`` attribute in a :py:class:`slice` object; the stop index is *not* included in the result. If ``None`` (default), then this method will check every address until it finds one without any transfers. :param inclusion_states: Whether to also fetch the inclusion states of the transfers. This requires an additional API call to the node, so it is disabled by default. :return: Dict with the following structure:: { 'bundles': List[Bundle], Matching bundles, sorted by tail transaction timestamp. This value is always a list, even if only one bundle was found. } References: - https://github.com/iotaledger/wiki/blob/master/api-proposal.md#gettransfers """ return extended.GetTransfersCommand(self.adapter)( seed=self.seed, start=start, stop=stop, inclusionStates=inclusion_states, )