@@ -926,7 +926,20 @@ def get_account_data(self, start=0, stop=None, inclusion_states=False, security_
926
926
included in the result.
927
927
928
928
If ``None`` (default), then this method will check every
929
- address until it finds one without any transfers.
929
+ address until it finds one that is unused.
930
+
931
+ .. note::
932
+ An unused address is an address that **has not been spent from**
933
+ and **has no transactions** referencing it on the Tangle.
934
+
935
+ A snapshot removes transactions from the Tangle. As a
936
+ consequence, after a snapshot, it may happen that this API does
937
+ not return the correct account data with ``stop`` being ``None``.
938
+
939
+ As a workaround, you can save your used addresses and their
940
+ ``key_index`` attribute in a local database. Use the
941
+ ``start`` and ``stop`` parameters to tell the API from where to
942
+ start checking and where to stop.
930
943
931
944
:param bool inclusion_states:
932
945
Whether to also fetch the inclusion states of the transfers.
@@ -1028,6 +1041,19 @@ def get_inputs(
1028
1041
If ``None`` (default), then this method will not stop until
1029
1042
it finds an unused address.
1030
1043
1044
+ .. note::
1045
+ An unused address is an address that **has not been spent from**
1046
+ and **has no transactions** referencing it on the Tangle.
1047
+
1048
+ A snapshot removes transactions from the Tangle. As a
1049
+ consequence, after a snapshot, it may happen that this API does
1050
+ not return the correct inputs with ``stop`` being ``None``.
1051
+
1052
+ As a workaround, you can save your used addresses and their
1053
+ ``key_index`` attribute in a local database. Use the
1054
+ ``start`` and ``stop`` parameters to tell the API from where to
1055
+ start checking for inputs and where to stop.
1056
+
1031
1057
:param Optional[int] threshold:
1032
1058
If set, determines the minimum threshold for a successful
1033
1059
result:
@@ -1236,7 +1262,20 @@ def get_transfers(self, start=0, stop=None, inclusion_states=False):
1236
1262
included in the result.
1237
1263
1238
1264
If ``None`` (default), then this method will check every
1239
- address until it finds one without any transfers.
1265
+ address until it finds one that is unused.
1266
+
1267
+ .. note::
1268
+ An unused address is an address that **has not been spent from**
1269
+ and **has no transactions** referencing it on the Tangle.
1270
+
1271
+ A snapshot removes transactions from the Tangle. As a
1272
+ consequence, after a snapshot, it may happen that this API does
1273
+ not return the expected transfers with ``stop`` being ``None``.
1274
+
1275
+ As a workaround, you can save your used addresses and their
1276
+ ``key_index`` attribute in a local database. Use the
1277
+ ``start`` and ``stop`` parameters to tell the API from where to
1278
+ start checking for transfers and where to stop.
1240
1279
1241
1280
:param bool inclusion_states:
1242
1281
Whether to also fetch the inclusion states of the transfers.
0 commit comments