diff --git a/iota/api.py b/iota/api.py index a932ab11..c7e3c4cf 100644 --- a/iota/api.py +++ b/iota/api.py @@ -894,7 +894,7 @@ def prepare_transfer( def promote_transaction( self, transaction, - depth, + depth=3, min_weight_magnitude=None, ): # type: (TransactionHash, int, Optional[int]) -> dict @@ -921,7 +921,7 @@ def promote_transaction( def replay_bundle( self, transaction, - depth, + depth=3, min_weight_magnitude=None, ): # type: (TransactionHash, int, Optional[int]) -> dict @@ -935,6 +935,7 @@ def replay_bundle( :param depth: Depth at which to attach the bundle. + Defaults to 3. :param min_weight_magnitude: Min weight magnitude, used by the node to calibrate Proof of @@ -965,8 +966,8 @@ def replay_bundle( def send_transfer( self, - depth, # type: int transfers, # type: Iterable[ProposedTransaction] + depth=3, # type: int inputs=None, # type: Optional[Iterable[Address]] change_address=None, # type: Optional[Address] min_weight_magnitude=None, # type: Optional[int] @@ -978,12 +979,13 @@ def send_transfer( attaches the bundle to the Tangle, and broadcasts and stores the transactions. - :param depth: - Depth at which to attach the bundle. - :param transfers: Transfers to include in the bundle. + :param depth: + Depth at which to attach the bundle. + Defaults to 3. + :param inputs: List of inputs used to fund the transfer. Not needed for zero-value transfers. @@ -1035,7 +1037,7 @@ def send_transfer( securityLevel=security_level, ) - def send_trytes(self, trytes, depth, min_weight_magnitude=None): + def send_trytes(self, trytes, depth=3, min_weight_magnitude=None): # type: (Iterable[TransactionTrytes], int, Optional[int]) -> dict """ Attaches transaction trytes to the Tangle, then broadcasts and @@ -1046,6 +1048,7 @@ def send_trytes(self, trytes, depth, min_weight_magnitude=None): :param depth: Depth at which to attach the bundle. + Defaults to 3. :param min_weight_magnitude: Min weight magnitude, used by the node to calibrate Proof of