From bcb97c6055f1bb7c5c8ca645a9cac6472e5cfcff Mon Sep 17 00:00:00 2001 From: absorprofess Date: Wed, 11 Jun 2025 11:08:27 +0800 Subject: [PATCH 1/2] v2.1.25 Added failOnAml field to Create a Transaction V3, and UTXO Batch Transaction --- safeheron_api_sdk_python/api/transaction_api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/safeheron_api_sdk_python/api/transaction_api.py b/safeheron_api_sdk_python/api/transaction_api.py index 9c3c5c8..019a4c6 100644 --- a/safeheron_api_sdk_python/api/transaction_api.py +++ b/safeheron_api_sdk_python/api/transaction_api.py @@ -147,6 +147,9 @@ def __init__(self): self.isRbf = None # The default setting for the parameter is [true]. This parameter determines whether a transaction can be created when the target address is a smart contract. If set to [false], a transaction can still be created for a contract address self.failOnContract = None + # Default value is true. When initiating and approving transactions, Safeheron assesses the destinationAddress for risk through its AML/KYT service provider. It then decides whether to permit the transaction based on this assessment. By default, if the destination address presents compliance risks, the system prohibits the transaction. + # If you fully understand the associated risks and still need to transfer funds to this address, you can explicitly set failOnAml to false. In this case, Safeheron will disregard the risk assessment results and allow the transaction to proceed. + self.failOnAml = None # Custom nonce self.nonce = None # Customizable sequence number on Aptos, similar to the nonce in the EVM. @@ -210,6 +213,9 @@ def __init__(self): self.destinationTag = None # Bitcoin enabled for RBF (Replace-by-fee is a protocol in the Bitcoin mempool that allows for the replacement of an unconfirmed transaction with another one) self.isRbf = None + # Default value is true. When initiating and approving transactions, Safeheron assesses the destinationAddress for risk through its AML/KYT service provider. It then decides whether to permit the transaction based on this assessment. By default, if the destination address presents compliance risks, the system prohibits the transaction. + # If you fully understand the associated risks and still need to transfer funds to this address, you can explicitly set failOnAml to false. In this case, Safeheron will disregard the risk assessment results and allow the transaction to proceed. + self.failOnAml = None def asDict(self): dict = self.__dict__ From 1903414d8255663753a24ce32df5b994fc0970db Mon Sep 17 00:00:00 2001 From: absorprofess Date: Wed, 11 Jun 2025 11:08:48 +0800 Subject: [PATCH 2/2] v2.1.25 Added failOnAml field to Create a Transaction V3, and UTXO Batch Transaction --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7dbe93f..06d342e 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ with open("README.rst", "r") as f: long_description = f.read() setup(name='safeheron_api_sdk_python', - version='1.1.15', + version='1.1.16', description='Python for Safeheron API', long_description=long_description, author='safeheron',