circle-developer-controlled-wallets 0.1.0b1__py3-none-any.whl
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.
Potentially problematic release.
This version of circle-developer-controlled-wallets might be problematic. Click here for more details.
- circle/__init__.py +0 -0
- circle/web3/__init__.py +0 -0
- circle/web3/developer_controlled_wallets/__init__.py +108 -0
- circle/web3/developer_controlled_wallets/api/__init__.py +9 -0
- circle/web3/developer_controlled_wallets/api/signing_api.py +356 -0
- circle/web3/developer_controlled_wallets/api/token_lookup_api.py +198 -0
- circle/web3/developer_controlled_wallets/api/transactions_api.py +1527 -0
- circle/web3/developer_controlled_wallets/api/wallet_sets_api.py +691 -0
- circle/web3/developer_controlled_wallets/api/wallets_api.py +1118 -0
- circle/web3/developer_controlled_wallets/api_client.py +789 -0
- circle/web3/developer_controlled_wallets/api_response.py +25 -0
- circle/web3/developer_controlled_wallets/configuration.py +455 -0
- circle/web3/developer_controlled_wallets/exceptions.py +162 -0
- circle/web3/developer_controlled_wallets/models/__init__.py +87 -0
- circle/web3/developer_controlled_wallets/models/abi_parameters_inner.py +168 -0
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_request.py +85 -0
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_response.py +83 -0
- circle/web3/developer_controlled_wallets/models/account_type.py +36 -0
- circle/web3/developer_controlled_wallets/models/balance.py +91 -0
- circle/web3/developer_controlled_wallets/models/blockchain.py +40 -0
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_request.py +85 -0
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_response.py +86 -0
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +118 -0
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_response.py +86 -0
- circle/web3/developer_controlled_wallets/models/create_developer_transaction_accelerate200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_developer_transaction_cancel200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_developer_transaction_contract_execution200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_developer_transaction_transfer200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_developer_wallet200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_developer_wallet_request.py +105 -0
- circle/web3/developer_controlled_wallets/models/create_developer_wallet_response.py +91 -0
- circle/web3/developer_controlled_wallets/models/create_developer_wallet_set_request.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_developer_wallet_set_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_transfer_estimate_fee200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +112 -0
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +86 -0
- circle/web3/developer_controlled_wallets/models/create_validate_address200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_wallet_set200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/custody_type.py +36 -0
- circle/web3/developer_controlled_wallets/models/error.py +85 -0
- circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +106 -0
- circle/web3/developer_controlled_wallets/models/estimate_transaction_fee_response.py +103 -0
- circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +97 -0
- circle/web3/developer_controlled_wallets/models/estimated_transaction_fee.py +91 -0
- circle/web3/developer_controlled_wallets/models/ext_get_all_wallets_response.py +91 -0
- circle/web3/developer_controlled_wallets/models/ext_get_wallet_by_id_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/ext_update_wallet_metadata_request.py +85 -0
- circle/web3/developer_controlled_wallets/models/ext_wallet_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/ext_wallet_response_wallet.py +111 -0
- circle/web3/developer_controlled_wallets/models/fee_level.py +37 -0
- circle/web3/developer_controlled_wallets/models/get_balances_response.py +91 -0
- circle/web3/developer_controlled_wallets/models/get_nfts_response.py +91 -0
- circle/web3/developer_controlled_wallets/models/get_token_by_id_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/get_token_id200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/get_transaction200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/get_transaction_by_id_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/get_transactions_response.py +91 -0
- circle/web3/developer_controlled_wallets/models/get_wallet200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/get_wallet_set200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/get_wallet_set_by_id_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/get_wallet_sets_response.py +91 -0
- circle/web3/developer_controlled_wallets/models/list_transactions200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/list_wallet_ballance200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/list_wallet_nfts200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/list_wallet_sets200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/list_wallets200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/nft.py +95 -0
- circle/web3/developer_controlled_wallets/models/operation.py +37 -0
- circle/web3/developer_controlled_wallets/models/sign_developer_message200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/sign_developer_typed_data200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/sign_message_for_developer_request.py +91 -0
- circle/web3/developer_controlled_wallets/models/sign_message_for_developer_response.py +83 -0
- circle/web3/developer_controlled_wallets/models/sign_typed_data_for_developer_request.py +89 -0
- circle/web3/developer_controlled_wallets/models/sign_typed_data_for_developer_response.py +83 -0
- circle/web3/developer_controlled_wallets/models/token_response.py +103 -0
- circle/web3/developer_controlled_wallets/models/token_standard.py +37 -0
- circle/web3/developer_controlled_wallets/models/transaction.py +159 -0
- circle/web3/developer_controlled_wallets/models/transaction_state.py +43 -0
- circle/web3/developer_controlled_wallets/models/transaction_type.py +36 -0
- circle/web3/developer_controlled_wallets/models/update_wallet200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/update_wallet_set200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/update_wallet_set_metadata_request.py +83 -0
- circle/web3/developer_controlled_wallets/models/update_wallet_set_metadata_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/validate_address_request.py +86 -0
- circle/web3/developer_controlled_wallets/models/validate_address_response.py +83 -0
- circle/web3/developer_controlled_wallets/models/wallet_metadata.py +85 -0
- circle/web3/developer_controlled_wallets/models/wallet_response.py +111 -0
- circle/web3/developer_controlled_wallets/models/wallet_set_response.py +94 -0
- circle/web3/developer_controlled_wallets/models/wallet_state.py +36 -0
- circle/web3/developer_controlled_wallets/py.typed +0 -0
- circle/web3/developer_controlled_wallets/rest.py +299 -0
- circle_developer_controlled_wallets-0.1.0b1.dist-info/METADATA +112 -0
- circle_developer_controlled_wallets-0.1.0b1.dist-info/RECORD +95 -0
- circle_developer_controlled_wallets-0.1.0b1.dist-info/WHEEL +5 -0
- circle_developer_controlled_wallets-0.1.0b1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,1527 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
The version of the OpenAPI document: 1.0
|
|
5
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
+
|
|
7
|
+
Do not edit the class manually.
|
|
8
|
+
""" # noqa: E501
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import re # noqa: F401
|
|
12
|
+
import io
|
|
13
|
+
import warnings
|
|
14
|
+
import functools
|
|
15
|
+
|
|
16
|
+
from pydantic import validate_arguments, ValidationError
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from datetime import datetime
|
|
20
|
+
|
|
21
|
+
from pydantic import Field, StrictBool, StrictStr, conint
|
|
22
|
+
|
|
23
|
+
from typing import Optional
|
|
24
|
+
|
|
25
|
+
from circle.web3.developer_controlled_wallets.models.accelerate_transaction_for_developer_request import AccelerateTransactionForDeveloperRequest
|
|
26
|
+
from circle.web3.developer_controlled_wallets.models.cancel_transaction_for_developer_request import CancelTransactionForDeveloperRequest
|
|
27
|
+
from circle.web3.developer_controlled_wallets.models.create_contract_execution_transaction_for_developer_request import CreateContractExecutionTransactionForDeveloperRequest
|
|
28
|
+
from circle.web3.developer_controlled_wallets.models.create_developer_transaction_accelerate200_response import CreateDeveloperTransactionAccelerate200Response
|
|
29
|
+
from circle.web3.developer_controlled_wallets.models.create_developer_transaction_cancel200_response import CreateDeveloperTransactionCancel200Response
|
|
30
|
+
from circle.web3.developer_controlled_wallets.models.create_developer_transaction_contract_execution200_response import CreateDeveloperTransactionContractExecution200Response
|
|
31
|
+
from circle.web3.developer_controlled_wallets.models.create_developer_transaction_transfer200_response import CreateDeveloperTransactionTransfer200Response
|
|
32
|
+
from circle.web3.developer_controlled_wallets.models.create_transfer_estimate_fee200_response import CreateTransferEstimateFee200Response
|
|
33
|
+
from circle.web3.developer_controlled_wallets.models.create_transfer_transaction_for_developer_request import CreateTransferTransactionForDeveloperRequest
|
|
34
|
+
from circle.web3.developer_controlled_wallets.models.create_validate_address200_response import CreateValidateAddress200Response
|
|
35
|
+
from circle.web3.developer_controlled_wallets.models.estimate_contract_execution_transaction_fee_request import EstimateContractExecutionTransactionFeeRequest
|
|
36
|
+
from circle.web3.developer_controlled_wallets.models.estimate_transfer_transaction_fee_request import EstimateTransferTransactionFeeRequest
|
|
37
|
+
from circle.web3.developer_controlled_wallets.models.get_transaction200_response import GetTransaction200Response
|
|
38
|
+
from circle.web3.developer_controlled_wallets.models.list_transactions200_response import ListTransactions200Response
|
|
39
|
+
from circle.web3.developer_controlled_wallets.models.validate_address_request import ValidateAddressRequest
|
|
40
|
+
|
|
41
|
+
from circle.web3.developer_controlled_wallets.api_client import ApiClient
|
|
42
|
+
from circle.web3.developer_controlled_wallets.api_response import ApiResponse
|
|
43
|
+
from circle.web3.developer_controlled_wallets.exceptions import ( # noqa: F401
|
|
44
|
+
ApiTypeError,
|
|
45
|
+
ApiValueError
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def auto_fill(func):
|
|
50
|
+
functools.wraps(func)
|
|
51
|
+
|
|
52
|
+
def wrapper(*args, **kwargs):
|
|
53
|
+
api = args[0]
|
|
54
|
+
for arg in args:
|
|
55
|
+
api.api_client.fill_entity_secret_ciphertext(arg)
|
|
56
|
+
api.api_client.fill_idempotency_key(arg)
|
|
57
|
+
for name, arg in kwargs.items():
|
|
58
|
+
api.api_client.fill_entity_secret_ciphertext(arg)
|
|
59
|
+
api.api_client.fill_idempotency_key(arg)
|
|
60
|
+
return func(*args, **kwargs)
|
|
61
|
+
|
|
62
|
+
return wrapper
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class TransactionsApi(object):
|
|
66
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
67
|
+
Ref: https://openapi-generator.tech
|
|
68
|
+
|
|
69
|
+
Do not edit the class manually.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
def __init__(self, api_client=None):
|
|
73
|
+
if api_client is None:
|
|
74
|
+
api_client = ApiClient.get_default()
|
|
75
|
+
self.api_client = api_client
|
|
76
|
+
|
|
77
|
+
@auto_fill
|
|
78
|
+
@validate_arguments
|
|
79
|
+
def create_developer_transaction_accelerate(self, id : Annotated[StrictStr, Field(..., description="Transaction ID")], accelerate_transaction_for_developer_request : Annotated[AccelerateTransactionForDeveloperRequest, Field(..., description="Accelerate transaction for developer request")], **kwargs) -> CreateDeveloperTransactionAccelerate200Response: # noqa: E501
|
|
80
|
+
"""Accelerate a transaction # noqa: E501
|
|
81
|
+
|
|
82
|
+
Accelerates a specified on-chain digital asset transfer from a developer-controlled wallet. Additional gas fees may be incurred. # noqa: E501
|
|
83
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
84
|
+
asynchronous HTTP request, please pass async_req=True
|
|
85
|
+
|
|
86
|
+
>>> thread = api.create_developer_transaction_accelerate(id, accelerate_transaction_for_developer_request, async_req=True)
|
|
87
|
+
>>> result = thread.get()
|
|
88
|
+
|
|
89
|
+
:param id: Transaction ID (required)
|
|
90
|
+
:type id: str
|
|
91
|
+
:param accelerate_transaction_for_developer_request: Accelerate transaction for developer request (required)
|
|
92
|
+
:type accelerate_transaction_for_developer_request: AccelerateTransactionForDeveloperRequest
|
|
93
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
94
|
+
:type async_req: bool, optional
|
|
95
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
96
|
+
number provided, it will be total request
|
|
97
|
+
timeout. It can also be a pair (tuple) of
|
|
98
|
+
(connection, read) timeouts.
|
|
99
|
+
:return: Returns the result object.
|
|
100
|
+
If the method is called asynchronously,
|
|
101
|
+
returns the request thread.
|
|
102
|
+
:rtype: CreateDeveloperTransactionAccelerate200Response
|
|
103
|
+
"""
|
|
104
|
+
kwargs['_return_http_data_only'] = True
|
|
105
|
+
if '_preload_content' in kwargs:
|
|
106
|
+
raise ValueError("Error! Please call the create_developer_transaction_accelerate_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
107
|
+
return self.create_developer_transaction_accelerate_with_http_info(id, accelerate_transaction_for_developer_request, **kwargs) # noqa: E501
|
|
108
|
+
|
|
109
|
+
@auto_fill
|
|
110
|
+
@validate_arguments
|
|
111
|
+
def create_developer_transaction_accelerate_with_http_info(self, id : Annotated[StrictStr, Field(..., description="Transaction ID")], accelerate_transaction_for_developer_request : Annotated[AccelerateTransactionForDeveloperRequest, Field(..., description="Accelerate transaction for developer request")], **kwargs) -> ApiResponse: # noqa: E501
|
|
112
|
+
"""Accelerate a transaction # noqa: E501
|
|
113
|
+
|
|
114
|
+
Accelerates a specified on-chain digital asset transfer from a developer-controlled wallet. Additional gas fees may be incurred. # noqa: E501
|
|
115
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
116
|
+
asynchronous HTTP request, please pass async_req=True
|
|
117
|
+
|
|
118
|
+
>>> thread = api.create_developer_transaction_accelerate_with_http_info(id, accelerate_transaction_for_developer_request, async_req=True)
|
|
119
|
+
>>> result = thread.get()
|
|
120
|
+
|
|
121
|
+
:param id: Transaction ID (required)
|
|
122
|
+
:type id: str
|
|
123
|
+
:param accelerate_transaction_for_developer_request: Accelerate transaction for developer request (required)
|
|
124
|
+
:type accelerate_transaction_for_developer_request: AccelerateTransactionForDeveloperRequest
|
|
125
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
126
|
+
:type async_req: bool, optional
|
|
127
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
128
|
+
be set to none and raw_data will store the
|
|
129
|
+
HTTP response body without reading/decoding.
|
|
130
|
+
Default is True.
|
|
131
|
+
:type _preload_content: bool, optional
|
|
132
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
133
|
+
object with status code, headers, etc
|
|
134
|
+
:type _return_http_data_only: bool, optional
|
|
135
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
136
|
+
number provided, it will be total request
|
|
137
|
+
timeout. It can also be a pair (tuple) of
|
|
138
|
+
(connection, read) timeouts.
|
|
139
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
140
|
+
request; this effectively ignores the authentication
|
|
141
|
+
in the spec for a single request.
|
|
142
|
+
:type _request_auth: dict, optional
|
|
143
|
+
:type _content_type: string, optional: force content-type for the request
|
|
144
|
+
:return: Returns the result object.
|
|
145
|
+
If the method is called asynchronously,
|
|
146
|
+
returns the request thread.
|
|
147
|
+
:rtype: tuple(CreateDeveloperTransactionAccelerate200Response, status_code(int), headers(HTTPHeaderDict))
|
|
148
|
+
"""
|
|
149
|
+
|
|
150
|
+
_params = locals()
|
|
151
|
+
|
|
152
|
+
_all_params = [
|
|
153
|
+
'id',
|
|
154
|
+
'accelerate_transaction_for_developer_request'
|
|
155
|
+
]
|
|
156
|
+
_all_params.extend(
|
|
157
|
+
[
|
|
158
|
+
'async_req',
|
|
159
|
+
'_return_http_data_only',
|
|
160
|
+
'_preload_content',
|
|
161
|
+
'_request_timeout',
|
|
162
|
+
'_request_auth',
|
|
163
|
+
'_content_type',
|
|
164
|
+
'_headers'
|
|
165
|
+
]
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
# validate the arguments
|
|
169
|
+
for _key, _val in _params['kwargs'].items():
|
|
170
|
+
if _key not in _all_params:
|
|
171
|
+
raise ApiTypeError(
|
|
172
|
+
"Got an unexpected keyword argument '%s'"
|
|
173
|
+
" to method create_developer_transaction_accelerate" % _key
|
|
174
|
+
)
|
|
175
|
+
_params[_key] = _val
|
|
176
|
+
del _params['kwargs']
|
|
177
|
+
|
|
178
|
+
_collection_formats = {}
|
|
179
|
+
|
|
180
|
+
# process the path parameters
|
|
181
|
+
_path_params = {}
|
|
182
|
+
if _params['id']:
|
|
183
|
+
_path_params['id'] = _params['id']
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
# process the query parameters
|
|
187
|
+
_query_params = []
|
|
188
|
+
# process the header parameters
|
|
189
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
190
|
+
# process the form parameters
|
|
191
|
+
_form_params = []
|
|
192
|
+
_files = {}
|
|
193
|
+
# process the body parameter
|
|
194
|
+
_body_params = None
|
|
195
|
+
if _params['accelerate_transaction_for_developer_request'] is not None:
|
|
196
|
+
_body_params = _params['accelerate_transaction_for_developer_request']
|
|
197
|
+
|
|
198
|
+
# set the HTTP header `Accept`
|
|
199
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
200
|
+
['application/json']) # noqa: E501
|
|
201
|
+
|
|
202
|
+
# set the HTTP header `Content-Type`
|
|
203
|
+
_content_types_list = _params.get('_content_type',
|
|
204
|
+
self.api_client.select_header_content_type(
|
|
205
|
+
['application/json']))
|
|
206
|
+
if _content_types_list:
|
|
207
|
+
_header_params['Content-Type'] = _content_types_list
|
|
208
|
+
|
|
209
|
+
# authentication setting
|
|
210
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
211
|
+
|
|
212
|
+
_response_types_map = {
|
|
213
|
+
'200': "CreateDeveloperTransactionAccelerate200Response",
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
return self.api_client.call_api(
|
|
217
|
+
'/developer/transactions/{id}/accelerate', 'POST',
|
|
218
|
+
_path_params,
|
|
219
|
+
_query_params,
|
|
220
|
+
_header_params,
|
|
221
|
+
body=_body_params,
|
|
222
|
+
post_params=_form_params,
|
|
223
|
+
files=_files,
|
|
224
|
+
response_types_map=_response_types_map,
|
|
225
|
+
auth_settings=_auth_settings,
|
|
226
|
+
async_req=_params.get('async_req'),
|
|
227
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
228
|
+
_preload_content=_params.get('_preload_content', True),
|
|
229
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
230
|
+
collection_formats=_collection_formats,
|
|
231
|
+
_request_auth=_params.get('_request_auth'))
|
|
232
|
+
|
|
233
|
+
@auto_fill
|
|
234
|
+
@validate_arguments
|
|
235
|
+
def create_developer_transaction_cancel(self, id : Annotated[StrictStr, Field(..., description="Transaction ID")], cancel_transaction_for_developer_request : Annotated[CancelTransactionForDeveloperRequest, Field(..., description="Cancel transaction for developer request")], **kwargs) -> CreateDeveloperTransactionCancel200Response: # noqa: E501
|
|
236
|
+
"""Cancel a transaction # noqa: E501
|
|
237
|
+
|
|
238
|
+
Cancels a specified on-chain digital asset transfer from a developer-controlled wallet. Gas fees may still be incurred. # noqa: E501
|
|
239
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
240
|
+
asynchronous HTTP request, please pass async_req=True
|
|
241
|
+
|
|
242
|
+
>>> thread = api.create_developer_transaction_cancel(id, cancel_transaction_for_developer_request, async_req=True)
|
|
243
|
+
>>> result = thread.get()
|
|
244
|
+
|
|
245
|
+
:param id: Transaction ID (required)
|
|
246
|
+
:type id: str
|
|
247
|
+
:param cancel_transaction_for_developer_request: Cancel transaction for developer request (required)
|
|
248
|
+
:type cancel_transaction_for_developer_request: CancelTransactionForDeveloperRequest
|
|
249
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
250
|
+
:type async_req: bool, optional
|
|
251
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
252
|
+
number provided, it will be total request
|
|
253
|
+
timeout. It can also be a pair (tuple) of
|
|
254
|
+
(connection, read) timeouts.
|
|
255
|
+
:return: Returns the result object.
|
|
256
|
+
If the method is called asynchronously,
|
|
257
|
+
returns the request thread.
|
|
258
|
+
:rtype: CreateDeveloperTransactionCancel200Response
|
|
259
|
+
"""
|
|
260
|
+
kwargs['_return_http_data_only'] = True
|
|
261
|
+
if '_preload_content' in kwargs:
|
|
262
|
+
raise ValueError("Error! Please call the create_developer_transaction_cancel_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
263
|
+
return self.create_developer_transaction_cancel_with_http_info(id, cancel_transaction_for_developer_request, **kwargs) # noqa: E501
|
|
264
|
+
|
|
265
|
+
@auto_fill
|
|
266
|
+
@validate_arguments
|
|
267
|
+
def create_developer_transaction_cancel_with_http_info(self, id : Annotated[StrictStr, Field(..., description="Transaction ID")], cancel_transaction_for_developer_request : Annotated[CancelTransactionForDeveloperRequest, Field(..., description="Cancel transaction for developer request")], **kwargs) -> ApiResponse: # noqa: E501
|
|
268
|
+
"""Cancel a transaction # noqa: E501
|
|
269
|
+
|
|
270
|
+
Cancels a specified on-chain digital asset transfer from a developer-controlled wallet. Gas fees may still be incurred. # noqa: E501
|
|
271
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
272
|
+
asynchronous HTTP request, please pass async_req=True
|
|
273
|
+
|
|
274
|
+
>>> thread = api.create_developer_transaction_cancel_with_http_info(id, cancel_transaction_for_developer_request, async_req=True)
|
|
275
|
+
>>> result = thread.get()
|
|
276
|
+
|
|
277
|
+
:param id: Transaction ID (required)
|
|
278
|
+
:type id: str
|
|
279
|
+
:param cancel_transaction_for_developer_request: Cancel transaction for developer request (required)
|
|
280
|
+
:type cancel_transaction_for_developer_request: CancelTransactionForDeveloperRequest
|
|
281
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
282
|
+
:type async_req: bool, optional
|
|
283
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
284
|
+
be set to none and raw_data will store the
|
|
285
|
+
HTTP response body without reading/decoding.
|
|
286
|
+
Default is True.
|
|
287
|
+
:type _preload_content: bool, optional
|
|
288
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
289
|
+
object with status code, headers, etc
|
|
290
|
+
:type _return_http_data_only: bool, optional
|
|
291
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
292
|
+
number provided, it will be total request
|
|
293
|
+
timeout. It can also be a pair (tuple) of
|
|
294
|
+
(connection, read) timeouts.
|
|
295
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
296
|
+
request; this effectively ignores the authentication
|
|
297
|
+
in the spec for a single request.
|
|
298
|
+
:type _request_auth: dict, optional
|
|
299
|
+
:type _content_type: string, optional: force content-type for the request
|
|
300
|
+
:return: Returns the result object.
|
|
301
|
+
If the method is called asynchronously,
|
|
302
|
+
returns the request thread.
|
|
303
|
+
:rtype: tuple(CreateDeveloperTransactionCancel200Response, status_code(int), headers(HTTPHeaderDict))
|
|
304
|
+
"""
|
|
305
|
+
|
|
306
|
+
_params = locals()
|
|
307
|
+
|
|
308
|
+
_all_params = [
|
|
309
|
+
'id',
|
|
310
|
+
'cancel_transaction_for_developer_request'
|
|
311
|
+
]
|
|
312
|
+
_all_params.extend(
|
|
313
|
+
[
|
|
314
|
+
'async_req',
|
|
315
|
+
'_return_http_data_only',
|
|
316
|
+
'_preload_content',
|
|
317
|
+
'_request_timeout',
|
|
318
|
+
'_request_auth',
|
|
319
|
+
'_content_type',
|
|
320
|
+
'_headers'
|
|
321
|
+
]
|
|
322
|
+
)
|
|
323
|
+
|
|
324
|
+
# validate the arguments
|
|
325
|
+
for _key, _val in _params['kwargs'].items():
|
|
326
|
+
if _key not in _all_params:
|
|
327
|
+
raise ApiTypeError(
|
|
328
|
+
"Got an unexpected keyword argument '%s'"
|
|
329
|
+
" to method create_developer_transaction_cancel" % _key
|
|
330
|
+
)
|
|
331
|
+
_params[_key] = _val
|
|
332
|
+
del _params['kwargs']
|
|
333
|
+
|
|
334
|
+
_collection_formats = {}
|
|
335
|
+
|
|
336
|
+
# process the path parameters
|
|
337
|
+
_path_params = {}
|
|
338
|
+
if _params['id']:
|
|
339
|
+
_path_params['id'] = _params['id']
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
# process the query parameters
|
|
343
|
+
_query_params = []
|
|
344
|
+
# process the header parameters
|
|
345
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
346
|
+
# process the form parameters
|
|
347
|
+
_form_params = []
|
|
348
|
+
_files = {}
|
|
349
|
+
# process the body parameter
|
|
350
|
+
_body_params = None
|
|
351
|
+
if _params['cancel_transaction_for_developer_request'] is not None:
|
|
352
|
+
_body_params = _params['cancel_transaction_for_developer_request']
|
|
353
|
+
|
|
354
|
+
# set the HTTP header `Accept`
|
|
355
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
356
|
+
['application/json']) # noqa: E501
|
|
357
|
+
|
|
358
|
+
# set the HTTP header `Content-Type`
|
|
359
|
+
_content_types_list = _params.get('_content_type',
|
|
360
|
+
self.api_client.select_header_content_type(
|
|
361
|
+
['application/json']))
|
|
362
|
+
if _content_types_list:
|
|
363
|
+
_header_params['Content-Type'] = _content_types_list
|
|
364
|
+
|
|
365
|
+
# authentication setting
|
|
366
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
367
|
+
|
|
368
|
+
_response_types_map = {
|
|
369
|
+
'200': "CreateDeveloperTransactionCancel200Response",
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
return self.api_client.call_api(
|
|
373
|
+
'/developer/transactions/{id}/cancel', 'POST',
|
|
374
|
+
_path_params,
|
|
375
|
+
_query_params,
|
|
376
|
+
_header_params,
|
|
377
|
+
body=_body_params,
|
|
378
|
+
post_params=_form_params,
|
|
379
|
+
files=_files,
|
|
380
|
+
response_types_map=_response_types_map,
|
|
381
|
+
auth_settings=_auth_settings,
|
|
382
|
+
async_req=_params.get('async_req'),
|
|
383
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
384
|
+
_preload_content=_params.get('_preload_content', True),
|
|
385
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
386
|
+
collection_formats=_collection_formats,
|
|
387
|
+
_request_auth=_params.get('_request_auth'))
|
|
388
|
+
|
|
389
|
+
@auto_fill
|
|
390
|
+
@validate_arguments
|
|
391
|
+
def create_developer_transaction_contract_execution(self, create_contract_execution_transaction_for_developer_request : Annotated[CreateContractExecutionTransactionForDeveloperRequest, Field(..., description="Create transaction for developer request")], **kwargs) -> CreateDeveloperTransactionContractExecution200Response: # noqa: E501
|
|
392
|
+
"""Create a contract execution transaction # noqa: E501
|
|
393
|
+
|
|
394
|
+
Creates a transaction which executes a smart contract. ABI parameters must be passed in the request. # noqa: E501
|
|
395
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
396
|
+
asynchronous HTTP request, please pass async_req=True
|
|
397
|
+
|
|
398
|
+
>>> thread = api.create_developer_transaction_contract_execution(create_contract_execution_transaction_for_developer_request, async_req=True)
|
|
399
|
+
>>> result = thread.get()
|
|
400
|
+
|
|
401
|
+
:param create_contract_execution_transaction_for_developer_request: Create transaction for developer request (required)
|
|
402
|
+
:type create_contract_execution_transaction_for_developer_request: CreateContractExecutionTransactionForDeveloperRequest
|
|
403
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
404
|
+
:type async_req: bool, optional
|
|
405
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
406
|
+
number provided, it will be total request
|
|
407
|
+
timeout. It can also be a pair (tuple) of
|
|
408
|
+
(connection, read) timeouts.
|
|
409
|
+
:return: Returns the result object.
|
|
410
|
+
If the method is called asynchronously,
|
|
411
|
+
returns the request thread.
|
|
412
|
+
:rtype: CreateDeveloperTransactionContractExecution200Response
|
|
413
|
+
"""
|
|
414
|
+
kwargs['_return_http_data_only'] = True
|
|
415
|
+
if '_preload_content' in kwargs:
|
|
416
|
+
raise ValueError("Error! Please call the create_developer_transaction_contract_execution_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
417
|
+
return self.create_developer_transaction_contract_execution_with_http_info(create_contract_execution_transaction_for_developer_request, **kwargs) # noqa: E501
|
|
418
|
+
|
|
419
|
+
@auto_fill
|
|
420
|
+
@validate_arguments
|
|
421
|
+
def create_developer_transaction_contract_execution_with_http_info(self, create_contract_execution_transaction_for_developer_request : Annotated[CreateContractExecutionTransactionForDeveloperRequest, Field(..., description="Create transaction for developer request")], **kwargs) -> ApiResponse: # noqa: E501
|
|
422
|
+
"""Create a contract execution transaction # noqa: E501
|
|
423
|
+
|
|
424
|
+
Creates a transaction which executes a smart contract. ABI parameters must be passed in the request. # noqa: E501
|
|
425
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
426
|
+
asynchronous HTTP request, please pass async_req=True
|
|
427
|
+
|
|
428
|
+
>>> thread = api.create_developer_transaction_contract_execution_with_http_info(create_contract_execution_transaction_for_developer_request, async_req=True)
|
|
429
|
+
>>> result = thread.get()
|
|
430
|
+
|
|
431
|
+
:param create_contract_execution_transaction_for_developer_request: Create transaction for developer request (required)
|
|
432
|
+
:type create_contract_execution_transaction_for_developer_request: CreateContractExecutionTransactionForDeveloperRequest
|
|
433
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
434
|
+
:type async_req: bool, optional
|
|
435
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
436
|
+
be set to none and raw_data will store the
|
|
437
|
+
HTTP response body without reading/decoding.
|
|
438
|
+
Default is True.
|
|
439
|
+
:type _preload_content: bool, optional
|
|
440
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
441
|
+
object with status code, headers, etc
|
|
442
|
+
:type _return_http_data_only: bool, optional
|
|
443
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
444
|
+
number provided, it will be total request
|
|
445
|
+
timeout. It can also be a pair (tuple) of
|
|
446
|
+
(connection, read) timeouts.
|
|
447
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
448
|
+
request; this effectively ignores the authentication
|
|
449
|
+
in the spec for a single request.
|
|
450
|
+
:type _request_auth: dict, optional
|
|
451
|
+
:type _content_type: string, optional: force content-type for the request
|
|
452
|
+
:return: Returns the result object.
|
|
453
|
+
If the method is called asynchronously,
|
|
454
|
+
returns the request thread.
|
|
455
|
+
:rtype: tuple(CreateDeveloperTransactionContractExecution200Response, status_code(int), headers(HTTPHeaderDict))
|
|
456
|
+
"""
|
|
457
|
+
|
|
458
|
+
_params = locals()
|
|
459
|
+
|
|
460
|
+
_all_params = [
|
|
461
|
+
'create_contract_execution_transaction_for_developer_request'
|
|
462
|
+
]
|
|
463
|
+
_all_params.extend(
|
|
464
|
+
[
|
|
465
|
+
'async_req',
|
|
466
|
+
'_return_http_data_only',
|
|
467
|
+
'_preload_content',
|
|
468
|
+
'_request_timeout',
|
|
469
|
+
'_request_auth',
|
|
470
|
+
'_content_type',
|
|
471
|
+
'_headers'
|
|
472
|
+
]
|
|
473
|
+
)
|
|
474
|
+
|
|
475
|
+
# validate the arguments
|
|
476
|
+
for _key, _val in _params['kwargs'].items():
|
|
477
|
+
if _key not in _all_params:
|
|
478
|
+
raise ApiTypeError(
|
|
479
|
+
"Got an unexpected keyword argument '%s'"
|
|
480
|
+
" to method create_developer_transaction_contract_execution" % _key
|
|
481
|
+
)
|
|
482
|
+
_params[_key] = _val
|
|
483
|
+
del _params['kwargs']
|
|
484
|
+
|
|
485
|
+
_collection_formats = {}
|
|
486
|
+
|
|
487
|
+
# process the path parameters
|
|
488
|
+
_path_params = {}
|
|
489
|
+
|
|
490
|
+
# process the query parameters
|
|
491
|
+
_query_params = []
|
|
492
|
+
# process the header parameters
|
|
493
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
494
|
+
# process the form parameters
|
|
495
|
+
_form_params = []
|
|
496
|
+
_files = {}
|
|
497
|
+
# process the body parameter
|
|
498
|
+
_body_params = None
|
|
499
|
+
if _params['create_contract_execution_transaction_for_developer_request'] is not None:
|
|
500
|
+
_body_params = _params['create_contract_execution_transaction_for_developer_request']
|
|
501
|
+
|
|
502
|
+
# set the HTTP header `Accept`
|
|
503
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
504
|
+
['application/json']) # noqa: E501
|
|
505
|
+
|
|
506
|
+
# set the HTTP header `Content-Type`
|
|
507
|
+
_content_types_list = _params.get('_content_type',
|
|
508
|
+
self.api_client.select_header_content_type(
|
|
509
|
+
['application/json']))
|
|
510
|
+
if _content_types_list:
|
|
511
|
+
_header_params['Content-Type'] = _content_types_list
|
|
512
|
+
|
|
513
|
+
# authentication setting
|
|
514
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
515
|
+
|
|
516
|
+
_response_types_map = {
|
|
517
|
+
'200': "CreateDeveloperTransactionContractExecution200Response",
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
return self.api_client.call_api(
|
|
521
|
+
'/developer/transactions/contractExecution', 'POST',
|
|
522
|
+
_path_params,
|
|
523
|
+
_query_params,
|
|
524
|
+
_header_params,
|
|
525
|
+
body=_body_params,
|
|
526
|
+
post_params=_form_params,
|
|
527
|
+
files=_files,
|
|
528
|
+
response_types_map=_response_types_map,
|
|
529
|
+
auth_settings=_auth_settings,
|
|
530
|
+
async_req=_params.get('async_req'),
|
|
531
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
532
|
+
_preload_content=_params.get('_preload_content', True),
|
|
533
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
534
|
+
collection_formats=_collection_formats,
|
|
535
|
+
_request_auth=_params.get('_request_auth'))
|
|
536
|
+
|
|
537
|
+
@auto_fill
|
|
538
|
+
@validate_arguments
|
|
539
|
+
def create_developer_transaction_transfer(self, create_transfer_transaction_for_developer_request : Annotated[CreateTransferTransactionForDeveloperRequest, Field(..., description="Create transaction for developer request")], **kwargs) -> CreateDeveloperTransactionTransfer200Response: # noqa: E501
|
|
540
|
+
"""Create a transfer transaction # noqa: E501
|
|
541
|
+
|
|
542
|
+
Initiates an on-chain digital asset transfer from a specified developer-controlled wallet. # noqa: E501
|
|
543
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
544
|
+
asynchronous HTTP request, please pass async_req=True
|
|
545
|
+
|
|
546
|
+
>>> thread = api.create_developer_transaction_transfer(create_transfer_transaction_for_developer_request, async_req=True)
|
|
547
|
+
>>> result = thread.get()
|
|
548
|
+
|
|
549
|
+
:param create_transfer_transaction_for_developer_request: Create transaction for developer request (required)
|
|
550
|
+
:type create_transfer_transaction_for_developer_request: CreateTransferTransactionForDeveloperRequest
|
|
551
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
552
|
+
:type async_req: bool, optional
|
|
553
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
554
|
+
number provided, it will be total request
|
|
555
|
+
timeout. It can also be a pair (tuple) of
|
|
556
|
+
(connection, read) timeouts.
|
|
557
|
+
:return: Returns the result object.
|
|
558
|
+
If the method is called asynchronously,
|
|
559
|
+
returns the request thread.
|
|
560
|
+
:rtype: CreateDeveloperTransactionTransfer200Response
|
|
561
|
+
"""
|
|
562
|
+
kwargs['_return_http_data_only'] = True
|
|
563
|
+
if '_preload_content' in kwargs:
|
|
564
|
+
raise ValueError("Error! Please call the create_developer_transaction_transfer_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
565
|
+
return self.create_developer_transaction_transfer_with_http_info(create_transfer_transaction_for_developer_request, **kwargs) # noqa: E501
|
|
566
|
+
|
|
567
|
+
@auto_fill
|
|
568
|
+
@validate_arguments
|
|
569
|
+
def create_developer_transaction_transfer_with_http_info(self, create_transfer_transaction_for_developer_request : Annotated[CreateTransferTransactionForDeveloperRequest, Field(..., description="Create transaction for developer request")], **kwargs) -> ApiResponse: # noqa: E501
|
|
570
|
+
"""Create a transfer transaction # noqa: E501
|
|
571
|
+
|
|
572
|
+
Initiates an on-chain digital asset transfer from a specified developer-controlled wallet. # noqa: E501
|
|
573
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
574
|
+
asynchronous HTTP request, please pass async_req=True
|
|
575
|
+
|
|
576
|
+
>>> thread = api.create_developer_transaction_transfer_with_http_info(create_transfer_transaction_for_developer_request, async_req=True)
|
|
577
|
+
>>> result = thread.get()
|
|
578
|
+
|
|
579
|
+
:param create_transfer_transaction_for_developer_request: Create transaction for developer request (required)
|
|
580
|
+
:type create_transfer_transaction_for_developer_request: CreateTransferTransactionForDeveloperRequest
|
|
581
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
582
|
+
:type async_req: bool, optional
|
|
583
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
584
|
+
be set to none and raw_data will store the
|
|
585
|
+
HTTP response body without reading/decoding.
|
|
586
|
+
Default is True.
|
|
587
|
+
:type _preload_content: bool, optional
|
|
588
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
589
|
+
object with status code, headers, etc
|
|
590
|
+
:type _return_http_data_only: bool, optional
|
|
591
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
592
|
+
number provided, it will be total request
|
|
593
|
+
timeout. It can also be a pair (tuple) of
|
|
594
|
+
(connection, read) timeouts.
|
|
595
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
596
|
+
request; this effectively ignores the authentication
|
|
597
|
+
in the spec for a single request.
|
|
598
|
+
:type _request_auth: dict, optional
|
|
599
|
+
:type _content_type: string, optional: force content-type for the request
|
|
600
|
+
:return: Returns the result object.
|
|
601
|
+
If the method is called asynchronously,
|
|
602
|
+
returns the request thread.
|
|
603
|
+
:rtype: tuple(CreateDeveloperTransactionTransfer200Response, status_code(int), headers(HTTPHeaderDict))
|
|
604
|
+
"""
|
|
605
|
+
|
|
606
|
+
_params = locals()
|
|
607
|
+
|
|
608
|
+
_all_params = [
|
|
609
|
+
'create_transfer_transaction_for_developer_request'
|
|
610
|
+
]
|
|
611
|
+
_all_params.extend(
|
|
612
|
+
[
|
|
613
|
+
'async_req',
|
|
614
|
+
'_return_http_data_only',
|
|
615
|
+
'_preload_content',
|
|
616
|
+
'_request_timeout',
|
|
617
|
+
'_request_auth',
|
|
618
|
+
'_content_type',
|
|
619
|
+
'_headers'
|
|
620
|
+
]
|
|
621
|
+
)
|
|
622
|
+
|
|
623
|
+
# validate the arguments
|
|
624
|
+
for _key, _val in _params['kwargs'].items():
|
|
625
|
+
if _key not in _all_params:
|
|
626
|
+
raise ApiTypeError(
|
|
627
|
+
"Got an unexpected keyword argument '%s'"
|
|
628
|
+
" to method create_developer_transaction_transfer" % _key
|
|
629
|
+
)
|
|
630
|
+
_params[_key] = _val
|
|
631
|
+
del _params['kwargs']
|
|
632
|
+
|
|
633
|
+
_collection_formats = {}
|
|
634
|
+
|
|
635
|
+
# process the path parameters
|
|
636
|
+
_path_params = {}
|
|
637
|
+
|
|
638
|
+
# process the query parameters
|
|
639
|
+
_query_params = []
|
|
640
|
+
# process the header parameters
|
|
641
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
642
|
+
# process the form parameters
|
|
643
|
+
_form_params = []
|
|
644
|
+
_files = {}
|
|
645
|
+
# process the body parameter
|
|
646
|
+
_body_params = None
|
|
647
|
+
if _params['create_transfer_transaction_for_developer_request'] is not None:
|
|
648
|
+
_body_params = _params['create_transfer_transaction_for_developer_request']
|
|
649
|
+
|
|
650
|
+
# set the HTTP header `Accept`
|
|
651
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
652
|
+
['application/json']) # noqa: E501
|
|
653
|
+
|
|
654
|
+
# set the HTTP header `Content-Type`
|
|
655
|
+
_content_types_list = _params.get('_content_type',
|
|
656
|
+
self.api_client.select_header_content_type(
|
|
657
|
+
['application/json']))
|
|
658
|
+
if _content_types_list:
|
|
659
|
+
_header_params['Content-Type'] = _content_types_list
|
|
660
|
+
|
|
661
|
+
# authentication setting
|
|
662
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
663
|
+
|
|
664
|
+
_response_types_map = {
|
|
665
|
+
'200': "CreateDeveloperTransactionTransfer200Response",
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
return self.api_client.call_api(
|
|
669
|
+
'/developer/transactions/transfer', 'POST',
|
|
670
|
+
_path_params,
|
|
671
|
+
_query_params,
|
|
672
|
+
_header_params,
|
|
673
|
+
body=_body_params,
|
|
674
|
+
post_params=_form_params,
|
|
675
|
+
files=_files,
|
|
676
|
+
response_types_map=_response_types_map,
|
|
677
|
+
auth_settings=_auth_settings,
|
|
678
|
+
async_req=_params.get('async_req'),
|
|
679
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
680
|
+
_preload_content=_params.get('_preload_content', True),
|
|
681
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
682
|
+
collection_formats=_collection_formats,
|
|
683
|
+
_request_auth=_params.get('_request_auth'))
|
|
684
|
+
|
|
685
|
+
@auto_fill
|
|
686
|
+
@validate_arguments
|
|
687
|
+
def create_transaction_estimate_fee(self, estimate_contract_execution_transaction_fee_request : Annotated[EstimateContractExecutionTransactionFeeRequest, Field(..., description="Estimate transaction fee request")], **kwargs) -> CreateTransferEstimateFee200Response: # noqa: E501
|
|
688
|
+
"""Estimate fee for a contract execution transaction # noqa: E501
|
|
689
|
+
|
|
690
|
+
Estimates gas fees that will be incurred for a contract execution transaction, given its ABI parameters and blockchain. # noqa: E501
|
|
691
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
692
|
+
asynchronous HTTP request, please pass async_req=True
|
|
693
|
+
|
|
694
|
+
>>> thread = api.create_transaction_estimate_fee(estimate_contract_execution_transaction_fee_request, async_req=True)
|
|
695
|
+
>>> result = thread.get()
|
|
696
|
+
|
|
697
|
+
:param estimate_contract_execution_transaction_fee_request: Estimate transaction fee request (required)
|
|
698
|
+
:type estimate_contract_execution_transaction_fee_request: EstimateContractExecutionTransactionFeeRequest
|
|
699
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
700
|
+
:type async_req: bool, optional
|
|
701
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
702
|
+
number provided, it will be total request
|
|
703
|
+
timeout. It can also be a pair (tuple) of
|
|
704
|
+
(connection, read) timeouts.
|
|
705
|
+
:return: Returns the result object.
|
|
706
|
+
If the method is called asynchronously,
|
|
707
|
+
returns the request thread.
|
|
708
|
+
:rtype: CreateTransferEstimateFee200Response
|
|
709
|
+
"""
|
|
710
|
+
kwargs['_return_http_data_only'] = True
|
|
711
|
+
if '_preload_content' in kwargs:
|
|
712
|
+
raise ValueError("Error! Please call the create_transaction_estimate_fee_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
713
|
+
return self.create_transaction_estimate_fee_with_http_info(estimate_contract_execution_transaction_fee_request, **kwargs) # noqa: E501
|
|
714
|
+
|
|
715
|
+
@auto_fill
|
|
716
|
+
@validate_arguments
|
|
717
|
+
def create_transaction_estimate_fee_with_http_info(self, estimate_contract_execution_transaction_fee_request : Annotated[EstimateContractExecutionTransactionFeeRequest, Field(..., description="Estimate transaction fee request")], **kwargs) -> ApiResponse: # noqa: E501
|
|
718
|
+
"""Estimate fee for a contract execution transaction # noqa: E501
|
|
719
|
+
|
|
720
|
+
Estimates gas fees that will be incurred for a contract execution transaction, given its ABI parameters and blockchain. # noqa: E501
|
|
721
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
722
|
+
asynchronous HTTP request, please pass async_req=True
|
|
723
|
+
|
|
724
|
+
>>> thread = api.create_transaction_estimate_fee_with_http_info(estimate_contract_execution_transaction_fee_request, async_req=True)
|
|
725
|
+
>>> result = thread.get()
|
|
726
|
+
|
|
727
|
+
:param estimate_contract_execution_transaction_fee_request: Estimate transaction fee request (required)
|
|
728
|
+
:type estimate_contract_execution_transaction_fee_request: EstimateContractExecutionTransactionFeeRequest
|
|
729
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
730
|
+
:type async_req: bool, optional
|
|
731
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
732
|
+
be set to none and raw_data will store the
|
|
733
|
+
HTTP response body without reading/decoding.
|
|
734
|
+
Default is True.
|
|
735
|
+
:type _preload_content: bool, optional
|
|
736
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
737
|
+
object with status code, headers, etc
|
|
738
|
+
:type _return_http_data_only: bool, optional
|
|
739
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
740
|
+
number provided, it will be total request
|
|
741
|
+
timeout. It can also be a pair (tuple) of
|
|
742
|
+
(connection, read) timeouts.
|
|
743
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
744
|
+
request; this effectively ignores the authentication
|
|
745
|
+
in the spec for a single request.
|
|
746
|
+
:type _request_auth: dict, optional
|
|
747
|
+
:type _content_type: string, optional: force content-type for the request
|
|
748
|
+
:return: Returns the result object.
|
|
749
|
+
If the method is called asynchronously,
|
|
750
|
+
returns the request thread.
|
|
751
|
+
:rtype: tuple(CreateTransferEstimateFee200Response, status_code(int), headers(HTTPHeaderDict))
|
|
752
|
+
"""
|
|
753
|
+
|
|
754
|
+
_params = locals()
|
|
755
|
+
|
|
756
|
+
_all_params = [
|
|
757
|
+
'estimate_contract_execution_transaction_fee_request'
|
|
758
|
+
]
|
|
759
|
+
_all_params.extend(
|
|
760
|
+
[
|
|
761
|
+
'async_req',
|
|
762
|
+
'_return_http_data_only',
|
|
763
|
+
'_preload_content',
|
|
764
|
+
'_request_timeout',
|
|
765
|
+
'_request_auth',
|
|
766
|
+
'_content_type',
|
|
767
|
+
'_headers'
|
|
768
|
+
]
|
|
769
|
+
)
|
|
770
|
+
|
|
771
|
+
# validate the arguments
|
|
772
|
+
for _key, _val in _params['kwargs'].items():
|
|
773
|
+
if _key not in _all_params:
|
|
774
|
+
raise ApiTypeError(
|
|
775
|
+
"Got an unexpected keyword argument '%s'"
|
|
776
|
+
" to method create_transaction_estimate_fee" % _key
|
|
777
|
+
)
|
|
778
|
+
_params[_key] = _val
|
|
779
|
+
del _params['kwargs']
|
|
780
|
+
|
|
781
|
+
_collection_formats = {}
|
|
782
|
+
|
|
783
|
+
# process the path parameters
|
|
784
|
+
_path_params = {}
|
|
785
|
+
|
|
786
|
+
# process the query parameters
|
|
787
|
+
_query_params = []
|
|
788
|
+
# process the header parameters
|
|
789
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
790
|
+
# process the form parameters
|
|
791
|
+
_form_params = []
|
|
792
|
+
_files = {}
|
|
793
|
+
# process the body parameter
|
|
794
|
+
_body_params = None
|
|
795
|
+
if _params['estimate_contract_execution_transaction_fee_request'] is not None:
|
|
796
|
+
_body_params = _params['estimate_contract_execution_transaction_fee_request']
|
|
797
|
+
|
|
798
|
+
# set the HTTP header `Accept`
|
|
799
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
800
|
+
['application/json']) # noqa: E501
|
|
801
|
+
|
|
802
|
+
# set the HTTP header `Content-Type`
|
|
803
|
+
_content_types_list = _params.get('_content_type',
|
|
804
|
+
self.api_client.select_header_content_type(
|
|
805
|
+
['application/json']))
|
|
806
|
+
if _content_types_list:
|
|
807
|
+
_header_params['Content-Type'] = _content_types_list
|
|
808
|
+
|
|
809
|
+
# authentication setting
|
|
810
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
811
|
+
|
|
812
|
+
_response_types_map = {
|
|
813
|
+
'200': "CreateTransferEstimateFee200Response",
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
return self.api_client.call_api(
|
|
817
|
+
'/transactions/contractExecution/estimateFee', 'POST',
|
|
818
|
+
_path_params,
|
|
819
|
+
_query_params,
|
|
820
|
+
_header_params,
|
|
821
|
+
body=_body_params,
|
|
822
|
+
post_params=_form_params,
|
|
823
|
+
files=_files,
|
|
824
|
+
response_types_map=_response_types_map,
|
|
825
|
+
auth_settings=_auth_settings,
|
|
826
|
+
async_req=_params.get('async_req'),
|
|
827
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
828
|
+
_preload_content=_params.get('_preload_content', True),
|
|
829
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
830
|
+
collection_formats=_collection_formats,
|
|
831
|
+
_request_auth=_params.get('_request_auth'))
|
|
832
|
+
|
|
833
|
+
@auto_fill
|
|
834
|
+
@validate_arguments
|
|
835
|
+
def create_transfer_estimate_fee(self, estimate_transfer_transaction_fee_request : Annotated[EstimateTransferTransactionFeeRequest, Field(..., description="Estimate transaction fee request")], **kwargs) -> CreateTransferEstimateFee200Response: # noqa: E501
|
|
836
|
+
"""Estimate fee for a transfer transaction # noqa: E501
|
|
837
|
+
|
|
838
|
+
Estimates gas fees that will be incurred for a transfer transaction; given its amount, blockchain, and token. # noqa: E501
|
|
839
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
840
|
+
asynchronous HTTP request, please pass async_req=True
|
|
841
|
+
|
|
842
|
+
>>> thread = api.create_transfer_estimate_fee(estimate_transfer_transaction_fee_request, async_req=True)
|
|
843
|
+
>>> result = thread.get()
|
|
844
|
+
|
|
845
|
+
:param estimate_transfer_transaction_fee_request: Estimate transaction fee request (required)
|
|
846
|
+
:type estimate_transfer_transaction_fee_request: EstimateTransferTransactionFeeRequest
|
|
847
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
848
|
+
:type async_req: bool, optional
|
|
849
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
850
|
+
number provided, it will be total request
|
|
851
|
+
timeout. It can also be a pair (tuple) of
|
|
852
|
+
(connection, read) timeouts.
|
|
853
|
+
:return: Returns the result object.
|
|
854
|
+
If the method is called asynchronously,
|
|
855
|
+
returns the request thread.
|
|
856
|
+
:rtype: CreateTransferEstimateFee200Response
|
|
857
|
+
"""
|
|
858
|
+
kwargs['_return_http_data_only'] = True
|
|
859
|
+
if '_preload_content' in kwargs:
|
|
860
|
+
raise ValueError("Error! Please call the create_transfer_estimate_fee_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
861
|
+
return self.create_transfer_estimate_fee_with_http_info(estimate_transfer_transaction_fee_request, **kwargs) # noqa: E501
|
|
862
|
+
|
|
863
|
+
@auto_fill
|
|
864
|
+
@validate_arguments
|
|
865
|
+
def create_transfer_estimate_fee_with_http_info(self, estimate_transfer_transaction_fee_request : Annotated[EstimateTransferTransactionFeeRequest, Field(..., description="Estimate transaction fee request")], **kwargs) -> ApiResponse: # noqa: E501
|
|
866
|
+
"""Estimate fee for a transfer transaction # noqa: E501
|
|
867
|
+
|
|
868
|
+
Estimates gas fees that will be incurred for a transfer transaction; given its amount, blockchain, and token. # noqa: E501
|
|
869
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
870
|
+
asynchronous HTTP request, please pass async_req=True
|
|
871
|
+
|
|
872
|
+
>>> thread = api.create_transfer_estimate_fee_with_http_info(estimate_transfer_transaction_fee_request, async_req=True)
|
|
873
|
+
>>> result = thread.get()
|
|
874
|
+
|
|
875
|
+
:param estimate_transfer_transaction_fee_request: Estimate transaction fee request (required)
|
|
876
|
+
:type estimate_transfer_transaction_fee_request: EstimateTransferTransactionFeeRequest
|
|
877
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
878
|
+
:type async_req: bool, optional
|
|
879
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
880
|
+
be set to none and raw_data will store the
|
|
881
|
+
HTTP response body without reading/decoding.
|
|
882
|
+
Default is True.
|
|
883
|
+
:type _preload_content: bool, optional
|
|
884
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
885
|
+
object with status code, headers, etc
|
|
886
|
+
:type _return_http_data_only: bool, optional
|
|
887
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
888
|
+
number provided, it will be total request
|
|
889
|
+
timeout. It can also be a pair (tuple) of
|
|
890
|
+
(connection, read) timeouts.
|
|
891
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
892
|
+
request; this effectively ignores the authentication
|
|
893
|
+
in the spec for a single request.
|
|
894
|
+
:type _request_auth: dict, optional
|
|
895
|
+
:type _content_type: string, optional: force content-type for the request
|
|
896
|
+
:return: Returns the result object.
|
|
897
|
+
If the method is called asynchronously,
|
|
898
|
+
returns the request thread.
|
|
899
|
+
:rtype: tuple(CreateTransferEstimateFee200Response, status_code(int), headers(HTTPHeaderDict))
|
|
900
|
+
"""
|
|
901
|
+
|
|
902
|
+
_params = locals()
|
|
903
|
+
|
|
904
|
+
_all_params = [
|
|
905
|
+
'estimate_transfer_transaction_fee_request'
|
|
906
|
+
]
|
|
907
|
+
_all_params.extend(
|
|
908
|
+
[
|
|
909
|
+
'async_req',
|
|
910
|
+
'_return_http_data_only',
|
|
911
|
+
'_preload_content',
|
|
912
|
+
'_request_timeout',
|
|
913
|
+
'_request_auth',
|
|
914
|
+
'_content_type',
|
|
915
|
+
'_headers'
|
|
916
|
+
]
|
|
917
|
+
)
|
|
918
|
+
|
|
919
|
+
# validate the arguments
|
|
920
|
+
for _key, _val in _params['kwargs'].items():
|
|
921
|
+
if _key not in _all_params:
|
|
922
|
+
raise ApiTypeError(
|
|
923
|
+
"Got an unexpected keyword argument '%s'"
|
|
924
|
+
" to method create_transfer_estimate_fee" % _key
|
|
925
|
+
)
|
|
926
|
+
_params[_key] = _val
|
|
927
|
+
del _params['kwargs']
|
|
928
|
+
|
|
929
|
+
_collection_formats = {}
|
|
930
|
+
|
|
931
|
+
# process the path parameters
|
|
932
|
+
_path_params = {}
|
|
933
|
+
|
|
934
|
+
# process the query parameters
|
|
935
|
+
_query_params = []
|
|
936
|
+
# process the header parameters
|
|
937
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
938
|
+
# process the form parameters
|
|
939
|
+
_form_params = []
|
|
940
|
+
_files = {}
|
|
941
|
+
# process the body parameter
|
|
942
|
+
_body_params = None
|
|
943
|
+
if _params['estimate_transfer_transaction_fee_request'] is not None:
|
|
944
|
+
_body_params = _params['estimate_transfer_transaction_fee_request']
|
|
945
|
+
|
|
946
|
+
# set the HTTP header `Accept`
|
|
947
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
948
|
+
['application/json']) # noqa: E501
|
|
949
|
+
|
|
950
|
+
# set the HTTP header `Content-Type`
|
|
951
|
+
_content_types_list = _params.get('_content_type',
|
|
952
|
+
self.api_client.select_header_content_type(
|
|
953
|
+
['application/json']))
|
|
954
|
+
if _content_types_list:
|
|
955
|
+
_header_params['Content-Type'] = _content_types_list
|
|
956
|
+
|
|
957
|
+
# authentication setting
|
|
958
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
959
|
+
|
|
960
|
+
_response_types_map = {
|
|
961
|
+
'200': "CreateTransferEstimateFee200Response",
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
return self.api_client.call_api(
|
|
965
|
+
'/transactions/transfer/estimateFee', 'POST',
|
|
966
|
+
_path_params,
|
|
967
|
+
_query_params,
|
|
968
|
+
_header_params,
|
|
969
|
+
body=_body_params,
|
|
970
|
+
post_params=_form_params,
|
|
971
|
+
files=_files,
|
|
972
|
+
response_types_map=_response_types_map,
|
|
973
|
+
auth_settings=_auth_settings,
|
|
974
|
+
async_req=_params.get('async_req'),
|
|
975
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
976
|
+
_preload_content=_params.get('_preload_content', True),
|
|
977
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
978
|
+
collection_formats=_collection_formats,
|
|
979
|
+
_request_auth=_params.get('_request_auth'))
|
|
980
|
+
|
|
981
|
+
@auto_fill
|
|
982
|
+
@validate_arguments
|
|
983
|
+
def create_validate_address(self, validate_address_request : Annotated[ValidateAddressRequest, Field(..., description="Validate address request")], **kwargs) -> CreateValidateAddress200Response: # noqa: E501
|
|
984
|
+
"""Validate an address # noqa: E501
|
|
985
|
+
|
|
986
|
+
Confirms that a specified address is valid for a given token on a certain blockchain. # noqa: E501
|
|
987
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
988
|
+
asynchronous HTTP request, please pass async_req=True
|
|
989
|
+
|
|
990
|
+
>>> thread = api.create_validate_address(validate_address_request, async_req=True)
|
|
991
|
+
>>> result = thread.get()
|
|
992
|
+
|
|
993
|
+
:param validate_address_request: Validate address request (required)
|
|
994
|
+
:type validate_address_request: ValidateAddressRequest
|
|
995
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
996
|
+
:type async_req: bool, optional
|
|
997
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
998
|
+
number provided, it will be total request
|
|
999
|
+
timeout. It can also be a pair (tuple) of
|
|
1000
|
+
(connection, read) timeouts.
|
|
1001
|
+
:return: Returns the result object.
|
|
1002
|
+
If the method is called asynchronously,
|
|
1003
|
+
returns the request thread.
|
|
1004
|
+
:rtype: CreateValidateAddress200Response
|
|
1005
|
+
"""
|
|
1006
|
+
kwargs['_return_http_data_only'] = True
|
|
1007
|
+
if '_preload_content' in kwargs:
|
|
1008
|
+
raise ValueError("Error! Please call the create_validate_address_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
1009
|
+
return self.create_validate_address_with_http_info(validate_address_request, **kwargs) # noqa: E501
|
|
1010
|
+
|
|
1011
|
+
@auto_fill
|
|
1012
|
+
@validate_arguments
|
|
1013
|
+
def create_validate_address_with_http_info(self, validate_address_request : Annotated[ValidateAddressRequest, Field(..., description="Validate address request")], **kwargs) -> ApiResponse: # noqa: E501
|
|
1014
|
+
"""Validate an address # noqa: E501
|
|
1015
|
+
|
|
1016
|
+
Confirms that a specified address is valid for a given token on a certain blockchain. # noqa: E501
|
|
1017
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1018
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1019
|
+
|
|
1020
|
+
>>> thread = api.create_validate_address_with_http_info(validate_address_request, async_req=True)
|
|
1021
|
+
>>> result = thread.get()
|
|
1022
|
+
|
|
1023
|
+
:param validate_address_request: Validate address request (required)
|
|
1024
|
+
:type validate_address_request: ValidateAddressRequest
|
|
1025
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
1026
|
+
:type async_req: bool, optional
|
|
1027
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
1028
|
+
be set to none and raw_data will store the
|
|
1029
|
+
HTTP response body without reading/decoding.
|
|
1030
|
+
Default is True.
|
|
1031
|
+
:type _preload_content: bool, optional
|
|
1032
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
1033
|
+
object with status code, headers, etc
|
|
1034
|
+
:type _return_http_data_only: bool, optional
|
|
1035
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1036
|
+
number provided, it will be total request
|
|
1037
|
+
timeout. It can also be a pair (tuple) of
|
|
1038
|
+
(connection, read) timeouts.
|
|
1039
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1040
|
+
request; this effectively ignores the authentication
|
|
1041
|
+
in the spec for a single request.
|
|
1042
|
+
:type _request_auth: dict, optional
|
|
1043
|
+
:type _content_type: string, optional: force content-type for the request
|
|
1044
|
+
:return: Returns the result object.
|
|
1045
|
+
If the method is called asynchronously,
|
|
1046
|
+
returns the request thread.
|
|
1047
|
+
:rtype: tuple(CreateValidateAddress200Response, status_code(int), headers(HTTPHeaderDict))
|
|
1048
|
+
"""
|
|
1049
|
+
|
|
1050
|
+
_params = locals()
|
|
1051
|
+
|
|
1052
|
+
_all_params = [
|
|
1053
|
+
'validate_address_request'
|
|
1054
|
+
]
|
|
1055
|
+
_all_params.extend(
|
|
1056
|
+
[
|
|
1057
|
+
'async_req',
|
|
1058
|
+
'_return_http_data_only',
|
|
1059
|
+
'_preload_content',
|
|
1060
|
+
'_request_timeout',
|
|
1061
|
+
'_request_auth',
|
|
1062
|
+
'_content_type',
|
|
1063
|
+
'_headers'
|
|
1064
|
+
]
|
|
1065
|
+
)
|
|
1066
|
+
|
|
1067
|
+
# validate the arguments
|
|
1068
|
+
for _key, _val in _params['kwargs'].items():
|
|
1069
|
+
if _key not in _all_params:
|
|
1070
|
+
raise ApiTypeError(
|
|
1071
|
+
"Got an unexpected keyword argument '%s'"
|
|
1072
|
+
" to method create_validate_address" % _key
|
|
1073
|
+
)
|
|
1074
|
+
_params[_key] = _val
|
|
1075
|
+
del _params['kwargs']
|
|
1076
|
+
|
|
1077
|
+
_collection_formats = {}
|
|
1078
|
+
|
|
1079
|
+
# process the path parameters
|
|
1080
|
+
_path_params = {}
|
|
1081
|
+
|
|
1082
|
+
# process the query parameters
|
|
1083
|
+
_query_params = []
|
|
1084
|
+
# process the header parameters
|
|
1085
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
1086
|
+
# process the form parameters
|
|
1087
|
+
_form_params = []
|
|
1088
|
+
_files = {}
|
|
1089
|
+
# process the body parameter
|
|
1090
|
+
_body_params = None
|
|
1091
|
+
if _params['validate_address_request'] is not None:
|
|
1092
|
+
_body_params = _params['validate_address_request']
|
|
1093
|
+
|
|
1094
|
+
# set the HTTP header `Accept`
|
|
1095
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1096
|
+
['application/json']) # noqa: E501
|
|
1097
|
+
|
|
1098
|
+
# set the HTTP header `Content-Type`
|
|
1099
|
+
_content_types_list = _params.get('_content_type',
|
|
1100
|
+
self.api_client.select_header_content_type(
|
|
1101
|
+
['application/json']))
|
|
1102
|
+
if _content_types_list:
|
|
1103
|
+
_header_params['Content-Type'] = _content_types_list
|
|
1104
|
+
|
|
1105
|
+
# authentication setting
|
|
1106
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
1107
|
+
|
|
1108
|
+
_response_types_map = {
|
|
1109
|
+
'200': "CreateValidateAddress200Response",
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
return self.api_client.call_api(
|
|
1113
|
+
'/transactions/validateAddress', 'POST',
|
|
1114
|
+
_path_params,
|
|
1115
|
+
_query_params,
|
|
1116
|
+
_header_params,
|
|
1117
|
+
body=_body_params,
|
|
1118
|
+
post_params=_form_params,
|
|
1119
|
+
files=_files,
|
|
1120
|
+
response_types_map=_response_types_map,
|
|
1121
|
+
auth_settings=_auth_settings,
|
|
1122
|
+
async_req=_params.get('async_req'),
|
|
1123
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
1124
|
+
_preload_content=_params.get('_preload_content', True),
|
|
1125
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
1126
|
+
collection_formats=_collection_formats,
|
|
1127
|
+
_request_auth=_params.get('_request_auth'))
|
|
1128
|
+
|
|
1129
|
+
@auto_fill
|
|
1130
|
+
@validate_arguments
|
|
1131
|
+
def get_transaction(self, id : Annotated[StrictStr, Field(..., description="Transaction id")], tx_type : Annotated[Optional[StrictStr], Field(description="Filter by on the transaction type.")] = None, **kwargs) -> GetTransaction200Response: # noqa: E501
|
|
1132
|
+
"""Get a transaction # noqa: E501
|
|
1133
|
+
|
|
1134
|
+
Retrieves info for a single transaction using it's unique identifier. # noqa: E501
|
|
1135
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1136
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1137
|
+
|
|
1138
|
+
>>> thread = api.get_transaction(id, tx_type, async_req=True)
|
|
1139
|
+
>>> result = thread.get()
|
|
1140
|
+
|
|
1141
|
+
:param id: Transaction id (required)
|
|
1142
|
+
:type id: str
|
|
1143
|
+
:param tx_type: Filter by on the transaction type.
|
|
1144
|
+
:type tx_type: str
|
|
1145
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
1146
|
+
:type async_req: bool, optional
|
|
1147
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1148
|
+
number provided, it will be total request
|
|
1149
|
+
timeout. It can also be a pair (tuple) of
|
|
1150
|
+
(connection, read) timeouts.
|
|
1151
|
+
:return: Returns the result object.
|
|
1152
|
+
If the method is called asynchronously,
|
|
1153
|
+
returns the request thread.
|
|
1154
|
+
:rtype: GetTransaction200Response
|
|
1155
|
+
"""
|
|
1156
|
+
kwargs['_return_http_data_only'] = True
|
|
1157
|
+
if '_preload_content' in kwargs:
|
|
1158
|
+
raise ValueError("Error! Please call the get_transaction_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
1159
|
+
return self.get_transaction_with_http_info(id, tx_type, **kwargs) # noqa: E501
|
|
1160
|
+
|
|
1161
|
+
@auto_fill
|
|
1162
|
+
@validate_arguments
|
|
1163
|
+
def get_transaction_with_http_info(self, id : Annotated[StrictStr, Field(..., description="Transaction id")], tx_type : Annotated[Optional[StrictStr], Field(description="Filter by on the transaction type.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
1164
|
+
"""Get a transaction # noqa: E501
|
|
1165
|
+
|
|
1166
|
+
Retrieves info for a single transaction using it's unique identifier. # noqa: E501
|
|
1167
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1168
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1169
|
+
|
|
1170
|
+
>>> thread = api.get_transaction_with_http_info(id, tx_type, async_req=True)
|
|
1171
|
+
>>> result = thread.get()
|
|
1172
|
+
|
|
1173
|
+
:param id: Transaction id (required)
|
|
1174
|
+
:type id: str
|
|
1175
|
+
:param tx_type: Filter by on the transaction type.
|
|
1176
|
+
:type tx_type: str
|
|
1177
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
1178
|
+
:type async_req: bool, optional
|
|
1179
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
1180
|
+
be set to none and raw_data will store the
|
|
1181
|
+
HTTP response body without reading/decoding.
|
|
1182
|
+
Default is True.
|
|
1183
|
+
:type _preload_content: bool, optional
|
|
1184
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
1185
|
+
object with status code, headers, etc
|
|
1186
|
+
:type _return_http_data_only: bool, optional
|
|
1187
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1188
|
+
number provided, it will be total request
|
|
1189
|
+
timeout. It can also be a pair (tuple) of
|
|
1190
|
+
(connection, read) timeouts.
|
|
1191
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1192
|
+
request; this effectively ignores the authentication
|
|
1193
|
+
in the spec for a single request.
|
|
1194
|
+
:type _request_auth: dict, optional
|
|
1195
|
+
:type _content_type: string, optional: force content-type for the request
|
|
1196
|
+
:return: Returns the result object.
|
|
1197
|
+
If the method is called asynchronously,
|
|
1198
|
+
returns the request thread.
|
|
1199
|
+
:rtype: tuple(GetTransaction200Response, status_code(int), headers(HTTPHeaderDict))
|
|
1200
|
+
"""
|
|
1201
|
+
|
|
1202
|
+
_params = locals()
|
|
1203
|
+
|
|
1204
|
+
_all_params = [
|
|
1205
|
+
'id',
|
|
1206
|
+
'tx_type'
|
|
1207
|
+
]
|
|
1208
|
+
_all_params.extend(
|
|
1209
|
+
[
|
|
1210
|
+
'async_req',
|
|
1211
|
+
'_return_http_data_only',
|
|
1212
|
+
'_preload_content',
|
|
1213
|
+
'_request_timeout',
|
|
1214
|
+
'_request_auth',
|
|
1215
|
+
'_content_type',
|
|
1216
|
+
'_headers'
|
|
1217
|
+
]
|
|
1218
|
+
)
|
|
1219
|
+
|
|
1220
|
+
# validate the arguments
|
|
1221
|
+
for _key, _val in _params['kwargs'].items():
|
|
1222
|
+
if _key not in _all_params:
|
|
1223
|
+
raise ApiTypeError(
|
|
1224
|
+
"Got an unexpected keyword argument '%s'"
|
|
1225
|
+
" to method get_transaction" % _key
|
|
1226
|
+
)
|
|
1227
|
+
_params[_key] = _val
|
|
1228
|
+
del _params['kwargs']
|
|
1229
|
+
|
|
1230
|
+
_collection_formats = {}
|
|
1231
|
+
|
|
1232
|
+
# process the path parameters
|
|
1233
|
+
_path_params = {}
|
|
1234
|
+
if _params['id']:
|
|
1235
|
+
_path_params['id'] = _params['id']
|
|
1236
|
+
|
|
1237
|
+
|
|
1238
|
+
# process the query parameters
|
|
1239
|
+
_query_params = []
|
|
1240
|
+
if _params.get('tx_type') is not None: # noqa: E501
|
|
1241
|
+
_query_params.append(('txType', _params['tx_type']))
|
|
1242
|
+
|
|
1243
|
+
# process the header parameters
|
|
1244
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
1245
|
+
# process the form parameters
|
|
1246
|
+
_form_params = []
|
|
1247
|
+
_files = {}
|
|
1248
|
+
# process the body parameter
|
|
1249
|
+
_body_params = None
|
|
1250
|
+
# set the HTTP header `Accept`
|
|
1251
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1252
|
+
['application/json']) # noqa: E501
|
|
1253
|
+
|
|
1254
|
+
# authentication setting
|
|
1255
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
1256
|
+
|
|
1257
|
+
_response_types_map = {
|
|
1258
|
+
'200': "GetTransaction200Response",
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1261
|
+
return self.api_client.call_api(
|
|
1262
|
+
'/transactions/{id}', 'GET',
|
|
1263
|
+
_path_params,
|
|
1264
|
+
_query_params,
|
|
1265
|
+
_header_params,
|
|
1266
|
+
body=_body_params,
|
|
1267
|
+
post_params=_form_params,
|
|
1268
|
+
files=_files,
|
|
1269
|
+
response_types_map=_response_types_map,
|
|
1270
|
+
auth_settings=_auth_settings,
|
|
1271
|
+
async_req=_params.get('async_req'),
|
|
1272
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
1273
|
+
_preload_content=_params.get('_preload_content', True),
|
|
1274
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
1275
|
+
collection_formats=_collection_formats,
|
|
1276
|
+
_request_auth=_params.get('_request_auth'))
|
|
1277
|
+
|
|
1278
|
+
@auto_fill
|
|
1279
|
+
@validate_arguments
|
|
1280
|
+
def list_transactions(self, blockchain : Annotated[Optional[StrictStr], Field(description="Filter by blockchain.")] = None, custody_type : Annotated[Optional[StrictStr], Field(description="Filter by the custody type.")] = None, destination_address : Annotated[Optional[StrictStr], Field(description="Filter by the destination address.")] = None, include_all : Annotated[Optional[StrictBool], Field(description="Return all recourses with monitored and non-monitored tokens.")] = None, operation : Annotated[Optional[StrictStr], Field(description="Filter by on the operation of the transaction.")] = None, state : Annotated[Optional[StrictStr], Field(description="Filter by the state of the transaction.")] = None, tx_hash : Annotated[Optional[StrictStr], Field(description="Filter on the transaction hash of the transaction.")] = None, tx_type : Annotated[Optional[StrictStr], Field(description="Filter by on the transaction type.")] = None, wallet_ids : Annotated[Optional[StrictStr], Field(description="Filter by the wallet IDs of the transaction.")] = None, var_from : Annotated[Optional[datetime], Field(description="Queries items created since the specified date-time (inclusive) in ISO 8601 format.")] = None, to : Annotated[Optional[datetime], Field(description="Queries items created before the specified date-time (inclusive) in ISO 8601 format.")] = None, page_before : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageAfter. ")] = None, page_after : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageBefore. ")] = None, page_size : Annotated[Optional[conint(strict=True, le=50, ge=1)], Field(description="Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself. ")] = None, **kwargs) -> ListTransactions200Response: # noqa: E501
|
|
1281
|
+
"""List transactions # noqa: E501
|
|
1282
|
+
|
|
1283
|
+
Lists all transactions. Includes details such as status, source/destination, and transaction hash. # noqa: E501
|
|
1284
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1285
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1286
|
+
|
|
1287
|
+
>>> thread = api.list_transactions(blockchain, custody_type, destination_address, include_all, operation, state, tx_hash, tx_type, wallet_ids, var_from, to, page_before, page_after, page_size, async_req=True)
|
|
1288
|
+
>>> result = thread.get()
|
|
1289
|
+
|
|
1290
|
+
:param blockchain: Filter by blockchain.
|
|
1291
|
+
:type blockchain: str
|
|
1292
|
+
:param custody_type: Filter by the custody type.
|
|
1293
|
+
:type custody_type: str
|
|
1294
|
+
:param destination_address: Filter by the destination address.
|
|
1295
|
+
:type destination_address: str
|
|
1296
|
+
:param include_all: Return all recourses with monitored and non-monitored tokens.
|
|
1297
|
+
:type include_all: bool
|
|
1298
|
+
:param operation: Filter by on the operation of the transaction.
|
|
1299
|
+
:type operation: str
|
|
1300
|
+
:param state: Filter by the state of the transaction.
|
|
1301
|
+
:type state: str
|
|
1302
|
+
:param tx_hash: Filter on the transaction hash of the transaction.
|
|
1303
|
+
:type tx_hash: str
|
|
1304
|
+
:param tx_type: Filter by on the transaction type.
|
|
1305
|
+
:type tx_type: str
|
|
1306
|
+
:param wallet_ids: Filter by the wallet IDs of the transaction.
|
|
1307
|
+
:type wallet_ids: str
|
|
1308
|
+
:param var_from: Queries items created since the specified date-time (inclusive) in ISO 8601 format.
|
|
1309
|
+
:type var_from: datetime
|
|
1310
|
+
:param to: Queries items created before the specified date-time (inclusive) in ISO 8601 format.
|
|
1311
|
+
:type to: datetime
|
|
1312
|
+
:param page_before: A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageAfter.
|
|
1313
|
+
:type page_before: str
|
|
1314
|
+
:param page_after: A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageBefore.
|
|
1315
|
+
:type page_after: str
|
|
1316
|
+
:param page_size: Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself.
|
|
1317
|
+
:type page_size: int
|
|
1318
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
1319
|
+
:type async_req: bool, optional
|
|
1320
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1321
|
+
number provided, it will be total request
|
|
1322
|
+
timeout. It can also be a pair (tuple) of
|
|
1323
|
+
(connection, read) timeouts.
|
|
1324
|
+
:return: Returns the result object.
|
|
1325
|
+
If the method is called asynchronously,
|
|
1326
|
+
returns the request thread.
|
|
1327
|
+
:rtype: ListTransactions200Response
|
|
1328
|
+
"""
|
|
1329
|
+
kwargs['_return_http_data_only'] = True
|
|
1330
|
+
if '_preload_content' in kwargs:
|
|
1331
|
+
raise ValueError("Error! Please call the list_transactions_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
1332
|
+
return self.list_transactions_with_http_info(blockchain, custody_type, destination_address, include_all, operation, state, tx_hash, tx_type, wallet_ids, var_from, to, page_before, page_after, page_size, **kwargs) # noqa: E501
|
|
1333
|
+
|
|
1334
|
+
@auto_fill
|
|
1335
|
+
@validate_arguments
|
|
1336
|
+
def list_transactions_with_http_info(self, blockchain : Annotated[Optional[StrictStr], Field(description="Filter by blockchain.")] = None, custody_type : Annotated[Optional[StrictStr], Field(description="Filter by the custody type.")] = None, destination_address : Annotated[Optional[StrictStr], Field(description="Filter by the destination address.")] = None, include_all : Annotated[Optional[StrictBool], Field(description="Return all recourses with monitored and non-monitored tokens.")] = None, operation : Annotated[Optional[StrictStr], Field(description="Filter by on the operation of the transaction.")] = None, state : Annotated[Optional[StrictStr], Field(description="Filter by the state of the transaction.")] = None, tx_hash : Annotated[Optional[StrictStr], Field(description="Filter on the transaction hash of the transaction.")] = None, tx_type : Annotated[Optional[StrictStr], Field(description="Filter by on the transaction type.")] = None, wallet_ids : Annotated[Optional[StrictStr], Field(description="Filter by the wallet IDs of the transaction.")] = None, var_from : Annotated[Optional[datetime], Field(description="Queries items created since the specified date-time (inclusive) in ISO 8601 format.")] = None, to : Annotated[Optional[datetime], Field(description="Queries items created before the specified date-time (inclusive) in ISO 8601 format.")] = None, page_before : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageAfter. ")] = None, page_after : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageBefore. ")] = None, page_size : Annotated[Optional[conint(strict=True, le=50, ge=1)], Field(description="Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself. ")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
1337
|
+
"""List transactions # noqa: E501
|
|
1338
|
+
|
|
1339
|
+
Lists all transactions. Includes details such as status, source/destination, and transaction hash. # noqa: E501
|
|
1340
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1341
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1342
|
+
|
|
1343
|
+
>>> thread = api.list_transactions_with_http_info(blockchain, custody_type, destination_address, include_all, operation, state, tx_hash, tx_type, wallet_ids, var_from, to, page_before, page_after, page_size, async_req=True)
|
|
1344
|
+
>>> result = thread.get()
|
|
1345
|
+
|
|
1346
|
+
:param blockchain: Filter by blockchain.
|
|
1347
|
+
:type blockchain: str
|
|
1348
|
+
:param custody_type: Filter by the custody type.
|
|
1349
|
+
:type custody_type: str
|
|
1350
|
+
:param destination_address: Filter by the destination address.
|
|
1351
|
+
:type destination_address: str
|
|
1352
|
+
:param include_all: Return all recourses with monitored and non-monitored tokens.
|
|
1353
|
+
:type include_all: bool
|
|
1354
|
+
:param operation: Filter by on the operation of the transaction.
|
|
1355
|
+
:type operation: str
|
|
1356
|
+
:param state: Filter by the state of the transaction.
|
|
1357
|
+
:type state: str
|
|
1358
|
+
:param tx_hash: Filter on the transaction hash of the transaction.
|
|
1359
|
+
:type tx_hash: str
|
|
1360
|
+
:param tx_type: Filter by on the transaction type.
|
|
1361
|
+
:type tx_type: str
|
|
1362
|
+
:param wallet_ids: Filter by the wallet IDs of the transaction.
|
|
1363
|
+
:type wallet_ids: str
|
|
1364
|
+
:param var_from: Queries items created since the specified date-time (inclusive) in ISO 8601 format.
|
|
1365
|
+
:type var_from: datetime
|
|
1366
|
+
:param to: Queries items created before the specified date-time (inclusive) in ISO 8601 format.
|
|
1367
|
+
:type to: datetime
|
|
1368
|
+
:param page_before: A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageAfter.
|
|
1369
|
+
:type page_before: str
|
|
1370
|
+
:param page_after: A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjuction with pageBefore.
|
|
1371
|
+
:type page_after: str
|
|
1372
|
+
:param page_size: Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself.
|
|
1373
|
+
:type page_size: int
|
|
1374
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
1375
|
+
:type async_req: bool, optional
|
|
1376
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
1377
|
+
be set to none and raw_data will store the
|
|
1378
|
+
HTTP response body without reading/decoding.
|
|
1379
|
+
Default is True.
|
|
1380
|
+
:type _preload_content: bool, optional
|
|
1381
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
1382
|
+
object with status code, headers, etc
|
|
1383
|
+
:type _return_http_data_only: bool, optional
|
|
1384
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1385
|
+
number provided, it will be total request
|
|
1386
|
+
timeout. It can also be a pair (tuple) of
|
|
1387
|
+
(connection, read) timeouts.
|
|
1388
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1389
|
+
request; this effectively ignores the authentication
|
|
1390
|
+
in the spec for a single request.
|
|
1391
|
+
:type _request_auth: dict, optional
|
|
1392
|
+
:type _content_type: string, optional: force content-type for the request
|
|
1393
|
+
:return: Returns the result object.
|
|
1394
|
+
If the method is called asynchronously,
|
|
1395
|
+
returns the request thread.
|
|
1396
|
+
:rtype: tuple(ListTransactions200Response, status_code(int), headers(HTTPHeaderDict))
|
|
1397
|
+
"""
|
|
1398
|
+
|
|
1399
|
+
_params = locals()
|
|
1400
|
+
|
|
1401
|
+
_all_params = [
|
|
1402
|
+
'blockchain',
|
|
1403
|
+
'custody_type',
|
|
1404
|
+
'destination_address',
|
|
1405
|
+
'include_all',
|
|
1406
|
+
'operation',
|
|
1407
|
+
'state',
|
|
1408
|
+
'tx_hash',
|
|
1409
|
+
'tx_type',
|
|
1410
|
+
'wallet_ids',
|
|
1411
|
+
'var_from',
|
|
1412
|
+
'to',
|
|
1413
|
+
'page_before',
|
|
1414
|
+
'page_after',
|
|
1415
|
+
'page_size'
|
|
1416
|
+
]
|
|
1417
|
+
_all_params.extend(
|
|
1418
|
+
[
|
|
1419
|
+
'async_req',
|
|
1420
|
+
'_return_http_data_only',
|
|
1421
|
+
'_preload_content',
|
|
1422
|
+
'_request_timeout',
|
|
1423
|
+
'_request_auth',
|
|
1424
|
+
'_content_type',
|
|
1425
|
+
'_headers'
|
|
1426
|
+
]
|
|
1427
|
+
)
|
|
1428
|
+
|
|
1429
|
+
# validate the arguments
|
|
1430
|
+
for _key, _val in _params['kwargs'].items():
|
|
1431
|
+
if _key not in _all_params:
|
|
1432
|
+
raise ApiTypeError(
|
|
1433
|
+
"Got an unexpected keyword argument '%s'"
|
|
1434
|
+
" to method list_transactions" % _key
|
|
1435
|
+
)
|
|
1436
|
+
_params[_key] = _val
|
|
1437
|
+
del _params['kwargs']
|
|
1438
|
+
|
|
1439
|
+
_collection_formats = {}
|
|
1440
|
+
|
|
1441
|
+
# process the path parameters
|
|
1442
|
+
_path_params = {}
|
|
1443
|
+
|
|
1444
|
+
# process the query parameters
|
|
1445
|
+
_query_params = []
|
|
1446
|
+
if _params.get('blockchain') is not None: # noqa: E501
|
|
1447
|
+
_query_params.append(('blockchain', _params['blockchain']))
|
|
1448
|
+
|
|
1449
|
+
if _params.get('custody_type') is not None: # noqa: E501
|
|
1450
|
+
_query_params.append(('custodyType', _params['custody_type']))
|
|
1451
|
+
|
|
1452
|
+
if _params.get('destination_address') is not None: # noqa: E501
|
|
1453
|
+
_query_params.append(('destinationAddress', _params['destination_address']))
|
|
1454
|
+
|
|
1455
|
+
if _params.get('include_all') is not None: # noqa: E501
|
|
1456
|
+
_query_params.append(('includeAll', _params['include_all']))
|
|
1457
|
+
|
|
1458
|
+
if _params.get('operation') is not None: # noqa: E501
|
|
1459
|
+
_query_params.append(('operation', _params['operation']))
|
|
1460
|
+
|
|
1461
|
+
if _params.get('state') is not None: # noqa: E501
|
|
1462
|
+
_query_params.append(('state', _params['state']))
|
|
1463
|
+
|
|
1464
|
+
if _params.get('tx_hash') is not None: # noqa: E501
|
|
1465
|
+
_query_params.append(('txHash', _params['tx_hash']))
|
|
1466
|
+
|
|
1467
|
+
if _params.get('tx_type') is not None: # noqa: E501
|
|
1468
|
+
_query_params.append(('txType', _params['tx_type']))
|
|
1469
|
+
|
|
1470
|
+
if _params.get('wallet_ids') is not None: # noqa: E501
|
|
1471
|
+
_query_params.append(('walletIds', _params['wallet_ids']))
|
|
1472
|
+
|
|
1473
|
+
if _params.get('var_from') is not None: # noqa: E501
|
|
1474
|
+
if isinstance(_params['var_from'], datetime):
|
|
1475
|
+
_query_params.append(('from', _params['var_from'].strftime(self.api_client.configuration.datetime_format)))
|
|
1476
|
+
else:
|
|
1477
|
+
_query_params.append(('from', _params['var_from']))
|
|
1478
|
+
|
|
1479
|
+
if _params.get('to') is not None: # noqa: E501
|
|
1480
|
+
if isinstance(_params['to'], datetime):
|
|
1481
|
+
_query_params.append(('to', _params['to'].strftime(self.api_client.configuration.datetime_format)))
|
|
1482
|
+
else:
|
|
1483
|
+
_query_params.append(('to', _params['to']))
|
|
1484
|
+
|
|
1485
|
+
if _params.get('page_before') is not None: # noqa: E501
|
|
1486
|
+
_query_params.append(('pageBefore', _params['page_before']))
|
|
1487
|
+
|
|
1488
|
+
if _params.get('page_after') is not None: # noqa: E501
|
|
1489
|
+
_query_params.append(('pageAfter', _params['page_after']))
|
|
1490
|
+
|
|
1491
|
+
if _params.get('page_size') is not None: # noqa: E501
|
|
1492
|
+
_query_params.append(('pageSize', _params['page_size']))
|
|
1493
|
+
|
|
1494
|
+
# process the header parameters
|
|
1495
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
1496
|
+
# process the form parameters
|
|
1497
|
+
_form_params = []
|
|
1498
|
+
_files = {}
|
|
1499
|
+
# process the body parameter
|
|
1500
|
+
_body_params = None
|
|
1501
|
+
# set the HTTP header `Accept`
|
|
1502
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1503
|
+
['application/json']) # noqa: E501
|
|
1504
|
+
|
|
1505
|
+
# authentication setting
|
|
1506
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
1507
|
+
|
|
1508
|
+
_response_types_map = {
|
|
1509
|
+
'200': "ListTransactions200Response",
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
return self.api_client.call_api(
|
|
1513
|
+
'/transactions', 'GET',
|
|
1514
|
+
_path_params,
|
|
1515
|
+
_query_params,
|
|
1516
|
+
_header_params,
|
|
1517
|
+
body=_body_params,
|
|
1518
|
+
post_params=_form_params,
|
|
1519
|
+
files=_files,
|
|
1520
|
+
response_types_map=_response_types_map,
|
|
1521
|
+
auth_settings=_auth_settings,
|
|
1522
|
+
async_req=_params.get('async_req'),
|
|
1523
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
1524
|
+
_preload_content=_params.get('_preload_content', True),
|
|
1525
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
1526
|
+
collection_formats=_collection_formats,
|
|
1527
|
+
_request_auth=_params.get('_request_auth'))
|