safeheron-api-sdk-python 1.1.14__tar.gz → 1.1.16__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/PKG-INFO +1 -1
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python/api/account_api.py +15 -4
- safeheron_api_sdk_python-1.1.16/safeheron_api_sdk_python/api/tools_api.py +32 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python/api/transaction_api.py +6 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python/api/web3_api.py +10 -5
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python.egg-info/PKG-INFO +1 -1
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python.egg-info/SOURCES.txt +1 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/setup.py +1 -1
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/LICENSE +0 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/README.rst +0 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python/api/coin_api.py +0 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python/api/mpc_sign_api.py +0 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python/api/webhook_api.py +0 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python/api/whitelist_api.py +0 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python/client.py +0 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python/cosigner/co_signer_converter.py +0 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python/tools.py +0 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python/webhook/webhook_converter.py +0 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python.egg-info/dependency_links.txt +0 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python.egg-info/requires.txt +0 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/safeheron_api_sdk_python.egg-info/top_level.txt +0 -0
- {safeheron_api_sdk_python-1.1.14 → safeheron_api_sdk_python-1.1.16}/setup.cfg +0 -0
|
@@ -31,7 +31,7 @@ class OneAccountRequest:
|
|
|
31
31
|
|
|
32
32
|
class CreateAccountRequest:
|
|
33
33
|
def __init__(self):
|
|
34
|
-
# Account name,
|
|
34
|
+
# Account name, 50 characters max
|
|
35
35
|
self.accountName = None
|
|
36
36
|
# Merchant unique business ID (100 characters max)
|
|
37
37
|
# The customerRefId uniquely represents a wallet. In the case of duplicate customerRefId values (for example, when resubmitting due to request timeouts or other errors), the data returned by the interface will remain consistent
|
|
@@ -49,7 +49,7 @@ class CreateAccountRequest:
|
|
|
49
49
|
|
|
50
50
|
class BatchCreateAccountRequest:
|
|
51
51
|
def __init__(self):
|
|
52
|
-
# The prefix of wallet account name,
|
|
52
|
+
# The prefix of wallet account name, 50 characters max
|
|
53
53
|
self.accountName = None
|
|
54
54
|
# Display status in Safeheron App
|
|
55
55
|
# True: not display
|
|
@@ -132,6 +132,11 @@ class InfoAccountCoinAddressRequest:
|
|
|
132
132
|
# Coin receiving address
|
|
133
133
|
self.address = None
|
|
134
134
|
|
|
135
|
+
class AccountCoinBalanceRequest:
|
|
136
|
+
def __init__(self):
|
|
137
|
+
# Coin Keys, max 10
|
|
138
|
+
self.coinKeyList = None
|
|
139
|
+
|
|
135
140
|
|
|
136
141
|
class RenameAccountCoinAddressRequest:
|
|
137
142
|
def __init__(self):
|
|
@@ -160,9 +165,9 @@ class BatchCreateAccountCoinUTXORequest:
|
|
|
160
165
|
self.coinKey = None
|
|
161
166
|
# Account key
|
|
162
167
|
self.accountKey = None
|
|
163
|
-
# Address group name, 30 characters max
|
|
164
|
-
self.count = None
|
|
165
168
|
# The number, max is 100
|
|
169
|
+
self.count = None
|
|
170
|
+
# Address group name, 30 characters max
|
|
166
171
|
self.addressGroupName = None
|
|
167
172
|
|
|
168
173
|
|
|
@@ -240,6 +245,12 @@ class AccountApi:
|
|
|
240
245
|
def info_account_coin_address(self, request: InfoAccountCoinAddressRequest):
|
|
241
246
|
return self.api_client.send_request(request, '/v1/account/coin/address/info')
|
|
242
247
|
|
|
248
|
+
# Retrieve Coin Balance
|
|
249
|
+
# Get the coin balance of all asset wallets under the team.
|
|
250
|
+
def account_coin_balance(self, request: AccountCoinBalanceRequest):
|
|
251
|
+
return self.api_client.send_request(request, '/v1/account/coin/balance')
|
|
252
|
+
|
|
253
|
+
|
|
243
254
|
# Rename Coin Address Group of a Wallet Account
|
|
244
255
|
# Rename a coin address group of a wallet account.
|
|
245
256
|
def rename_account_coin_address(self, request: RenameAccountCoinAddressRequest):
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from safeheron_api_sdk_python.client import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class AmlCheckerRequestRequest:
|
|
5
|
+
def __init__(self):
|
|
6
|
+
# Blockchain network, supports:
|
|
7
|
+
# Bitcoin
|
|
8
|
+
# Ethereum
|
|
9
|
+
# Tron
|
|
10
|
+
self.network = None
|
|
11
|
+
# Address
|
|
12
|
+
self.address = None
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class AmlCheckerRetrievesRequest:
|
|
16
|
+
def __init__(self):
|
|
17
|
+
# Risk assessment request ID, which can be created through the Create AML Risk Assessment Request interface.
|
|
18
|
+
self.requestId = None
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class ToolsApi:
|
|
22
|
+
|
|
23
|
+
def __init__(self, config):
|
|
24
|
+
self.api_client = Client(config)
|
|
25
|
+
|
|
26
|
+
# Create AML Risk Assessment Request
|
|
27
|
+
def aml_checker_request(self, request: AmlCheckerRequestRequest):
|
|
28
|
+
return self.api_client.send_request(request, '/v1/tools/aml-checker/request')
|
|
29
|
+
|
|
30
|
+
# Retrieve AML Risk Assessment Result
|
|
31
|
+
def aml_checker_retrieves(self, request: AmlCheckerRetrievesRequest):
|
|
32
|
+
return self.api_client.send_request(request, '/v1/tools/aml-checker/retrieves')
|
|
@@ -147,6 +147,9 @@ class CreateTransactionRequest:
|
|
|
147
147
|
self.isRbf = None
|
|
148
148
|
# 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
|
|
149
149
|
self.failOnContract = None
|
|
150
|
+
# 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.
|
|
151
|
+
# 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.
|
|
152
|
+
self.failOnAml = None
|
|
150
153
|
# Custom nonce
|
|
151
154
|
self.nonce = None
|
|
152
155
|
# Customizable sequence number on Aptos, similar to the nonce in the EVM.
|
|
@@ -210,6 +213,9 @@ class CreateTransactionsUTXOMultiDestRequest:
|
|
|
210
213
|
self.destinationTag = None
|
|
211
214
|
# 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)
|
|
212
215
|
self.isRbf = None
|
|
216
|
+
# 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.
|
|
217
|
+
# 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.
|
|
218
|
+
self.failOnAml = None
|
|
213
219
|
|
|
214
220
|
def asDict(self):
|
|
215
221
|
dict = self.__dict__
|
|
@@ -3,7 +3,7 @@ from safeheron_api_sdk_python.client import *
|
|
|
3
3
|
|
|
4
4
|
class CreateWeb3AccountRequest:
|
|
5
5
|
def __init__(self):
|
|
6
|
-
# Account name,
|
|
6
|
+
# Account name, 50 characters max
|
|
7
7
|
self.accountName = None
|
|
8
8
|
# Whether display in Safeheron Console
|
|
9
9
|
# True: not display
|
|
@@ -17,10 +17,15 @@ class CreateWeb3AccountRequest:
|
|
|
17
17
|
|
|
18
18
|
class BatchCreateWeb3AccountRequest:
|
|
19
19
|
def __init__(self):
|
|
20
|
-
#
|
|
21
|
-
self.
|
|
22
|
-
#
|
|
23
|
-
|
|
20
|
+
# The prefix of wallet account name, 50 characters max
|
|
21
|
+
self.accountName = None
|
|
22
|
+
# Whether display in Safeheron Console
|
|
23
|
+
# True: not display
|
|
24
|
+
# False: display
|
|
25
|
+
# Default: false
|
|
26
|
+
self.hiddenOnUI = None
|
|
27
|
+
# Number of wallets to be created, greater than 0, less than 100
|
|
28
|
+
self.count = None
|
|
24
29
|
|
|
25
30
|
|
|
26
31
|
class ListWeb3AccountRequest:
|
|
@@ -11,6 +11,7 @@ safeheron_api_sdk_python.egg-info/top_level.txt
|
|
|
11
11
|
safeheron_api_sdk_python/api/account_api.py
|
|
12
12
|
safeheron_api_sdk_python/api/coin_api.py
|
|
13
13
|
safeheron_api_sdk_python/api/mpc_sign_api.py
|
|
14
|
+
safeheron_api_sdk_python/api/tools_api.py
|
|
14
15
|
safeheron_api_sdk_python/api/transaction_api.py
|
|
15
16
|
safeheron_api_sdk_python/api/web3_api.py
|
|
16
17
|
safeheron_api_sdk_python/api/webhook_api.py
|
|
@@ -3,7 +3,7 @@ from setuptools import find_packages
|
|
|
3
3
|
with open("README.rst", "r") as f:
|
|
4
4
|
long_description = f.read()
|
|
5
5
|
setup(name='safeheron_api_sdk_python',
|
|
6
|
-
version='1.1.
|
|
6
|
+
version='1.1.16',
|
|
7
7
|
description='Python for Safeheron API',
|
|
8
8
|
long_description=long_description,
|
|
9
9
|
author='safeheron',
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|