@@ -316,13 +316,11 @@ async def find_transactions(
316316 async def get_balances (
317317 self ,
318318 addresses : Iterable [Address ],
319- threshold : int = 100 ,
320319 tips : Optional [Iterable [TransactionHash ]] = None ,
321320 ) -> dict :
322321 """
323- Similar to :py:meth:`get_inclusion_states`. Returns the
324- confirmed balance which a list of addresses have at the latest
325- confirmed milestone.
322+ Returns the confirmed balance which a list of addresses have at the
323+ latest confirmed milestone.
326324
327325 In addition to the balances, it also returns the milestone as
328326 well as the index with which the confirmed balance was
@@ -332,9 +330,6 @@ async def get_balances(
332330 :param Iterable[Address] addresses:
333331 List of addresses to get the confirmed balance for.
334332
335- :param int threshold:
336- Confirmation threshold between 0 and 100.
337-
338333 :param Optional[Iterable[TransactionHash]] tips:
339334 Tips whose history of transactions to traverse to find the balance.
340335
@@ -362,29 +357,22 @@ async def get_balances(
362357 """
363358 return await core .GetBalancesCommand (self .adapter )(
364359 addresses = addresses ,
365- threshold = threshold ,
366360 tips = tips ,
367361 )
368362
369363 async def get_inclusion_states (
370364 self ,
371365 transactions : Iterable [TransactionHash ],
372- tips : Iterable [TransactionHash ]
373366 ) -> dict :
374367 """
375368 Get the inclusion states of a set of transactions. This is for
376369 determining if a transaction was accepted and confirmed by the
377- network or not. You can search for multiple tips (and thus,
378- milestones) to get past inclusion states of transactions.
370+ network or not.
379371
380372 :param Iterable[TransactionHash] transactions:
381373 List of transactions you want to get the inclusion state
382374 for.
383375
384- :param Iterable[TransactionHash] tips:
385- List of tips (including milestones) you want to search for
386- the inclusion state.
387-
388376 :return:
389377 ``dict`` with the following structure::
390378
@@ -403,9 +391,11 @@ async def get_inclusion_states(
403391 """
404392 return await core .GetInclusionStatesCommand (self .adapter )(
405393 transactions = transactions ,
406- tips = tips ,
407394 )
408395
396+ # Add an alias, more descriptive
397+ is_confirmed = get_inclusion_states
398+
409399 async def get_missing_transactions (self ) -> dict :
410400 """
411401 Returns all transaction hashes that a node is currently requesting
@@ -540,28 +530,6 @@ async def get_node_info(self) -> dict:
540530 """
541531 return await core .GetNodeInfoCommand (self .adapter )()
542532
543- async def get_tips (self ) -> dict :
544- """
545- Returns the list of tips (transactions which have no other
546- transactions referencing them).
547-
548- :return:
549- ``dict`` with the following structure::
550-
551- {
552- 'hashes': List[TransactionHash],
553- List of tip transaction hashes.
554- 'duration': int,
555- Number of milliseconds it took to complete the request.
556- }
557-
558- References:
559-
560- - https://docs.iota.org/docs/node-software/0.1/iri/references/api-reference#gettips
561- - https://docs.iota.org/docs/dev-essentials/0.1/references/glossary
562- """
563- return await core .GetTipsCommand (self .adapter )()
564-
565533 async def get_transactions_to_approve (
566534 self ,
567535 depth : int ,
@@ -1123,32 +1091,6 @@ async def get_inputs(
11231091 securityLevel = security_level
11241092 )
11251093
1126- async def get_latest_inclusion (
1127- self ,
1128- hashes : Iterable [TransactionHash ]
1129- ) -> Dict [str , Dict [TransactionHash , bool ]]:
1130- """
1131- Fetches the inclusion state for the specified transaction
1132- hashes, as of the latest milestone that the node has processed.
1133-
1134- Effectively, this is :py:meth:`get_node_info` +
1135- :py:meth:`get_inclusion_states`.
1136-
1137- :param Iterable[TransactionHash] hashes:
1138- List of transaction hashes.
1139-
1140- :return:
1141- ``dict`` with the following structure::
1142-
1143- {
1144- "states": Dict[TransactionHash, bool]
1145- ``dict`` with one boolean per transaction hash in
1146- ``hashes``.
1147- }
1148-
1149- """
1150- return await extended .GetLatestInclusionCommand (self .adapter )(hashes = hashes )
1151-
11521094 async def get_new_addresses (
11531095 self ,
11541096 index : int = 0 ,
0 commit comments