@@ -316,13 +316,11 @@ async def find_transactions(
316
316
async def get_balances (
317
317
self ,
318
318
addresses : Iterable [Address ],
319
- threshold : int = 100 ,
320
319
tips : Optional [Iterable [TransactionHash ]] = None ,
321
320
) -> dict :
322
321
"""
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.
326
324
327
325
In addition to the balances, it also returns the milestone as
328
326
well as the index with which the confirmed balance was
@@ -332,9 +330,6 @@ async def get_balances(
332
330
:param Iterable[Address] addresses:
333
331
List of addresses to get the confirmed balance for.
334
332
335
- :param int threshold:
336
- Confirmation threshold between 0 and 100.
337
-
338
333
:param Optional[Iterable[TransactionHash]] tips:
339
334
Tips whose history of transactions to traverse to find the balance.
340
335
@@ -362,29 +357,22 @@ async def get_balances(
362
357
"""
363
358
return await core .GetBalancesCommand (self .adapter )(
364
359
addresses = addresses ,
365
- threshold = threshold ,
366
360
tips = tips ,
367
361
)
368
362
369
363
async def get_inclusion_states (
370
364
self ,
371
365
transactions : Iterable [TransactionHash ],
372
- tips : Iterable [TransactionHash ]
373
366
) -> dict :
374
367
"""
375
368
Get the inclusion states of a set of transactions. This is for
376
369
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.
379
371
380
372
:param Iterable[TransactionHash] transactions:
381
373
List of transactions you want to get the inclusion state
382
374
for.
383
375
384
- :param Iterable[TransactionHash] tips:
385
- List of tips (including milestones) you want to search for
386
- the inclusion state.
387
-
388
376
:return:
389
377
``dict`` with the following structure::
390
378
@@ -403,9 +391,11 @@ async def get_inclusion_states(
403
391
"""
404
392
return await core .GetInclusionStatesCommand (self .adapter )(
405
393
transactions = transactions ,
406
- tips = tips ,
407
394
)
408
395
396
+ # Add an alias, more descriptive
397
+ is_confirmed = get_inclusion_states
398
+
409
399
async def get_missing_transactions (self ) -> dict :
410
400
"""
411
401
Returns all transaction hashes that a node is currently requesting
@@ -540,28 +530,6 @@ async def get_node_info(self) -> dict:
540
530
"""
541
531
return await core .GetNodeInfoCommand (self .adapter )()
542
532
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
-
565
533
async def get_transactions_to_approve (
566
534
self ,
567
535
depth : int ,
@@ -1123,32 +1091,6 @@ async def get_inputs(
1123
1091
securityLevel = security_level
1124
1092
)
1125
1093
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
-
1152
1094
async def get_new_addresses (
1153
1095
self ,
1154
1096
index : int = 0 ,
0 commit comments