safeheron-api-sdk-python 1.1.23__tar.gz → 1.1.24__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.23 → safeheron_api_sdk_python-1.1.24}/PKG-INFO +1 -1
- safeheron_api_sdk_python-1.1.24/safeheron_api_sdk_python/api/compliance_api.py +68 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python/api/gas_api.py +5 -1
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python.egg-info/PKG-INFO +1 -1
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/setup.py +1 -1
- safeheron_api_sdk_python-1.1.23/safeheron_api_sdk_python/api/compliance_api.py +0 -19
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/LICENSE +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/README.rst +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python/api/account_api.py +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python/api/api_key_management_api.py +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python/api/coin_api.py +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python/api/mpc_sign_api.py +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python/api/tools_api.py +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python/api/transaction_api.py +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python/api/web3_api.py +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python/api/webhook_api.py +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python/api/whitelist_api.py +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python/client.py +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python/cosigner/co_signer_converter.py +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python/tools.py +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python/webhook/webhook_converter.py +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python.egg-info/SOURCES.txt +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python.egg-info/dependency_links.txt +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python.egg-info/requires.txt +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/safeheron_api_sdk_python.egg-info/top_level.txt +0 -0
- {safeheron_api_sdk_python-1.1.23 → safeheron_api_sdk_python-1.1.24}/setup.cfg +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
from safeheron_api_sdk_python.client import *
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class KytReportRequest:
|
|
5
|
+
def __init__(self):
|
|
6
|
+
# Transaction Key. Cannot be empty at the same time as customerRefId. If both are provided, txKey takes precedence
|
|
7
|
+
self.txKey = None
|
|
8
|
+
# Merchant unique business ID (100 characters max)
|
|
9
|
+
self.customerRefId = None
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class CreateKyaScreeningRequest:
|
|
13
|
+
def __init__(self):
|
|
14
|
+
# On-chain address to screen (not limited to Safeheron addresses)
|
|
15
|
+
self.address = None
|
|
16
|
+
# Chain type. See "Retrieve Supported Networks & Providers" for valid values
|
|
17
|
+
self.chainType = None
|
|
18
|
+
# Blockchain network identifier. Required when providers contains MistTrack
|
|
19
|
+
self.network = None
|
|
20
|
+
# Screening providers — at least one, no duplicates, screened in parallel. Valid values: MistTrack, Elliptic, Chainalysis
|
|
21
|
+
self.providers = None
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class KyaScreeningOneRequest:
|
|
25
|
+
def __init__(self):
|
|
26
|
+
# Screening request ID
|
|
27
|
+
self.screenId = None
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class KyaScreeningOrderOneRequest:
|
|
31
|
+
def __init__(self):
|
|
32
|
+
# Screening order ID
|
|
33
|
+
self.screenOrderId = None
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class KyaSupportedNetworksRequest:
|
|
37
|
+
def __init__(self):
|
|
38
|
+
pass
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class ComplianceApi:
|
|
42
|
+
|
|
43
|
+
def __init__(self, config):
|
|
44
|
+
self.api_client = Client(config)
|
|
45
|
+
|
|
46
|
+
# Retrieve Transaction KYT Report
|
|
47
|
+
def kyt_report(self, request: KytReportRequest):
|
|
48
|
+
return self.api_client.send_request(request, '/v1/compliance/kyt/report')
|
|
49
|
+
|
|
50
|
+
# Create KYA Screening Request
|
|
51
|
+
# Initiates an address screening request against one or more AML providers in parallel
|
|
52
|
+
def create_kya_screening(self, request: CreateKyaScreeningRequest):
|
|
53
|
+
return self.api_client.send_request(request, '/v1/compliance/kya/screening/create')
|
|
54
|
+
|
|
55
|
+
# Retrieve KYA Screening Summary
|
|
56
|
+
# Returns the overall status and per-order results for a screening request
|
|
57
|
+
def kya_screening_one(self, request: KyaScreeningOneRequest):
|
|
58
|
+
return self.api_client.send_request(request, '/v1/compliance/kya/screening/one')
|
|
59
|
+
|
|
60
|
+
# Retrieve KYA Screening Order Details
|
|
61
|
+
# Returns the detailed result of a single provider screening order, including the raw provider payload
|
|
62
|
+
def kya_screening_order_one(self, request: KyaScreeningOrderOneRequest):
|
|
63
|
+
return self.api_client.send_request(request, '/v1/compliance/kya/screening/order/one')
|
|
64
|
+
|
|
65
|
+
# Retrieve Supported Networks & Providers
|
|
66
|
+
# Returns the list of blockchain networks and the AML providers that support each network
|
|
67
|
+
def kya_supported_networks(self):
|
|
68
|
+
return self.api_client.send_request(KyaSupportedNetworksRequest(), '/v1/compliance/kya/supportedNetworks')
|
|
@@ -21,7 +21,11 @@ class GasApi:
|
|
|
21
21
|
def gas_status(self, request: GasStatusRequest):
|
|
22
22
|
return self.api_client.send_request(request, '/v1/gas/status')
|
|
23
23
|
|
|
24
|
+
#@deprecated: This method has been abandoned, please use the gas_transactions_get_by_tx_key
|
|
25
|
+
def gas_transactions_ge_b_tx_key(self, request: GasTransactionsGetByTxKeyRequest):
|
|
26
|
+
return self.api_client.send_request(request, '/v1/gas/transactions/getByTxKey')
|
|
27
|
+
|
|
24
28
|
# Retrieve Automatic Gas Records for Transactions
|
|
25
29
|
# When the TRON energy rental service is enabled, Safeheron automatically tops up the required Gas fees for TRON network transactions. This API allows you to query the energy rental records used by a transaction. A single transaction may have multiple records. The actual Gas fee consumed by the transaction is the sum of all records with SUCCESS and FAILURE_GAS_CONSUMED statuses.
|
|
26
|
-
def
|
|
30
|
+
def gas_transactions_get_by_tx_key(self, request: GasTransactionsGetByTxKeyRequest):
|
|
27
31
|
return self.api_client.send_request(request, '/v1/gas/transactions/getByTxKey')
|
|
@@ -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.24',
|
|
7
7
|
description='Python for Safeheron API',
|
|
8
8
|
long_description=long_description,
|
|
9
9
|
author='safeheron',
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
from safeheron_api_sdk_python.client import *
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
class KytReportRequest:
|
|
5
|
-
def __init__(self):
|
|
6
|
-
# Transaction Key. Cannot be empty at the same time as customerRefId. If both are provided, txKey takes precedence
|
|
7
|
-
self.txKey = None
|
|
8
|
-
# Merchant unique business ID (100 characters max)
|
|
9
|
-
self.customerRefId = None
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class ComplianceApi:
|
|
13
|
-
|
|
14
|
-
def __init__(self, config):
|
|
15
|
-
self.api_client = Client(config)
|
|
16
|
-
|
|
17
|
-
# Retrieve Transaction KYT Report
|
|
18
|
-
def kyt_report(self, request: KytReportRequest):
|
|
19
|
-
return self.api_client.send_request(request, '/v1/compliance/kyt/report')
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|