circle-developer-controlled-wallets 6.0.0__py3-none-any.whl → 8.1.1__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.
- circle/web3/developer_controlled_wallets/__init__.py +6 -1
- circle/web3/developer_controlled_wallets/api/signing_api.py +65 -31
- circle/web3/developer_controlled_wallets/api/transactions_api.py +299 -58
- circle/web3/developer_controlled_wallets/api/wallet_sets_api.py +16 -8
- circle/web3/developer_controlled_wallets/api/wallets_api.py +62 -30
- circle/web3/developer_controlled_wallets/api_client.py +1 -1
- circle/web3/developer_controlled_wallets/configuration.py +9 -2
- circle/web3/developer_controlled_wallets/models/__init__.py +5 -0
- circle/web3/developer_controlled_wallets/models/abi_parameters_inner.py +5 -5
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer.py +10 -2
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_request.py +11 -3
- circle/web3/developer_controlled_wallets/models/account_type.py +1 -1
- circle/web3/developer_controlled_wallets/models/bad_request_response.py +11 -3
- circle/web3/developer_controlled_wallets/models/balance.py +12 -4
- circle/web3/developer_controlled_wallets/models/balances.py +10 -2
- circle/web3/developer_controlled_wallets/models/balances_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/base_screening_decision.py +12 -4
- circle/web3/developer_controlled_wallets/models/blockchain.py +3 -0
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer.py +10 -2
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_request.py +11 -3
- circle/web3/developer_controlled_wallets/models/contract_execution_blockchain.py +2 -1
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer.py +10 -2
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +34 -21
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +37 -24
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request_blockchain.py +130 -0
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response_data.py +11 -3
- circle/web3/developer_controlled_wallets/models/create_wallet_request.py +16 -8
- circle/web3/developer_controlled_wallets/models/create_wallet_set_request.py +12 -4
- circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer.py +10 -2
- circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer_request.py +24 -16
- circle/web3/developer_controlled_wallets/models/derive_wallet_request.py +10 -2
- circle/web3/developer_controlled_wallets/models/developer_wallet_set.py +13 -5
- circle/web3/developer_controlled_wallets/models/end_user_wallet_set.py +14 -6
- circle/web3/developer_controlled_wallets/models/eoa_wallet.py +23 -15
- circle/web3/developer_controlled_wallets/models/eoa_wallet_with_balances.py +24 -16
- circle/web3/developer_controlled_wallets/models/error.py +11 -3
- circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +18 -10
- circle/web3/developer_controlled_wallets/models/estimate_transaction_fee.py +10 -2
- circle/web3/developer_controlled_wallets/models/estimate_transaction_fee_data.py +15 -7
- circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +18 -10
- circle/web3/developer_controlled_wallets/models/evm_blockchain.py +2 -0
- circle/web3/developer_controlled_wallets/models/fee_level.py +1 -1
- circle/web3/developer_controlled_wallets/models/get_lowest_nonce_transaction_response.py +95 -0
- circle/web3/developer_controlled_wallets/models/get_lowest_nonce_transaction_response_data.py +101 -0
- circle/web3/developer_controlled_wallets/models/lowest_nonce_transaction_fee_info.py +97 -0
- circle/web3/developer_controlled_wallets/models/nft.py +14 -6
- circle/web3/developer_controlled_wallets/models/nfts.py +10 -2
- circle/web3/developer_controlled_wallets/models/nfts_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/not_authorized_response.py +11 -3
- circle/web3/developer_controlled_wallets/models/not_found_response.py +11 -3
- circle/web3/developer_controlled_wallets/models/risk_signal.py +14 -6
- circle/web3/developer_controlled_wallets/models/sca_wallet.py +24 -16
- circle/web3/developer_controlled_wallets/models/sca_wallet_with_balances.py +25 -17
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_request.py +12 -4
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_response_data.py +11 -3
- circle/web3/developer_controlled_wallets/models/sign_message_request.py +21 -8
- circle/web3/developer_controlled_wallets/models/sign_transaction_request.py +21 -8
- circle/web3/developer_controlled_wallets/models/sign_transaction_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/sign_transaction_response_data.py +12 -4
- circle/web3/developer_controlled_wallets/models/sign_typed_data_request.py +20 -7
- circle/web3/developer_controlled_wallets/models/signature_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/signature_response_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/token.py +19 -11
- circle/web3/developer_controlled_wallets/models/token_blockchain.py +3 -0
- circle/web3/developer_controlled_wallets/models/token_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/token_response_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/transaction.py +41 -33
- circle/web3/developer_controlled_wallets/models/transaction_fee.py +24 -12
- circle/web3/developer_controlled_wallets/models/transaction_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/transaction_response_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/transaction_screening_decision.py +13 -5
- circle/web3/developer_controlled_wallets/models/transaction_state.py +2 -1
- circle/web3/developer_controlled_wallets/models/transactions.py +10 -2
- circle/web3/developer_controlled_wallets/models/transactions_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/transfer_blockchain.py +53 -0
- circle/web3/developer_controlled_wallets/models/update_wallet_request.py +11 -3
- circle/web3/developer_controlled_wallets/models/update_wallet_set_request.py +10 -2
- circle/web3/developer_controlled_wallets/models/validate_address.py +10 -2
- circle/web3/developer_controlled_wallets/models/validate_address_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/validate_address_request.py +11 -3
- circle/web3/developer_controlled_wallets/models/wallet.py +21 -13
- circle/web3/developer_controlled_wallets/models/wallet_metadata.py +11 -3
- circle/web3/developer_controlled_wallets/models/wallet_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallet_response_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallet_set.py +12 -4
- circle/web3/developer_controlled_wallets/models/wallet_set_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallet_set_response_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallet_sets.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallet_sets_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallets.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallets_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallets_with_balances.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallets_with_balances_data.py +10 -2
- {circle_developer_controlled_wallets-6.0.0.dist-info → circle_developer_controlled_wallets-8.1.1.dist-info}/METADATA +4 -4
- {circle_developer_controlled_wallets-6.0.0.dist-info → circle_developer_controlled_wallets-8.1.1.dist-info}/RECORD +100 -95
- {circle_developer_controlled_wallets-6.0.0.dist-info → circle_developer_controlled_wallets-8.1.1.dist-info}/WHEEL +1 -1
- {circle_developer_controlled_wallets-6.0.0.dist-info → circle_developer_controlled_wallets-8.1.1.dist-info}/top_level.txt +0 -0
|
@@ -37,6 +37,7 @@ from circle.web3.developer_controlled_wallets.models.custody_type import Custody
|
|
|
37
37
|
from circle.web3.developer_controlled_wallets.models.estimate_contract_execution_transaction_fee_request import EstimateContractExecutionTransactionFeeRequest
|
|
38
38
|
from circle.web3.developer_controlled_wallets.models.estimate_transaction_fee import EstimateTransactionFee
|
|
39
39
|
from circle.web3.developer_controlled_wallets.models.estimate_transfer_transaction_fee_request import EstimateTransferTransactionFeeRequest
|
|
40
|
+
from circle.web3.developer_controlled_wallets.models.get_lowest_nonce_transaction_response import GetLowestNonceTransactionResponse
|
|
40
41
|
from circle.web3.developer_controlled_wallets.models.transaction_response import TransactionResponse
|
|
41
42
|
from circle.web3.developer_controlled_wallets.models.transaction_state import TransactionState
|
|
42
43
|
from circle.web3.developer_controlled_wallets.models.transaction_type import TransactionType
|
|
@@ -82,20 +83,22 @@ class TransactionsApi(object):
|
|
|
82
83
|
|
|
83
84
|
@auto_fill
|
|
84
85
|
@validate_arguments
|
|
85
|
-
def create_developer_transaction_accelerate(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the resource.")], accelerate_transaction_for_developer_request : Annotated[AccelerateTransactionForDeveloperRequest, Field(..., description="Accelerate transaction for developer request")], **kwargs) -> AccelerateTransactionForDeveloper: # noqa: E501
|
|
86
|
+
def create_developer_transaction_accelerate(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the resource.")], accelerate_transaction_for_developer_request : Annotated[AccelerateTransactionForDeveloperRequest, Field(..., description="Accelerate transaction for developer request")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> AccelerateTransactionForDeveloper: # noqa: E501
|
|
86
87
|
"""Accelerate a transaction # noqa: E501
|
|
87
88
|
|
|
88
89
|
Accelerates a specified transaction from a developer-controlled wallet. Additional gas fees may be incurred. # noqa: E501
|
|
89
90
|
This method makes a synchronous HTTP request by default. To make an
|
|
90
91
|
asynchronous HTTP request, please pass async_req=True
|
|
91
92
|
|
|
92
|
-
>>> thread = api.create_developer_transaction_accelerate(id, accelerate_transaction_for_developer_request, async_req=True)
|
|
93
|
+
>>> thread = api.create_developer_transaction_accelerate(id, accelerate_transaction_for_developer_request, x_request_id, async_req=True)
|
|
93
94
|
>>> result = thread.get()
|
|
94
95
|
|
|
95
96
|
:param id: The universally unique identifier of the resource. (required)
|
|
96
97
|
:type id: str
|
|
97
98
|
:param accelerate_transaction_for_developer_request: Accelerate transaction for developer request (required)
|
|
98
99
|
:type accelerate_transaction_for_developer_request: AccelerateTransactionForDeveloperRequest
|
|
100
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
101
|
+
:type x_request_id: str
|
|
99
102
|
:param async_req: Whether to execute the request asynchronously.
|
|
100
103
|
:type async_req: bool, optional
|
|
101
104
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -110,24 +113,26 @@ class TransactionsApi(object):
|
|
|
110
113
|
kwargs['_return_http_data_only'] = True
|
|
111
114
|
if '_preload_content' in kwargs:
|
|
112
115
|
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")
|
|
113
|
-
return self.create_developer_transaction_accelerate_with_http_info(id, accelerate_transaction_for_developer_request, **kwargs) # noqa: E501
|
|
116
|
+
return self.create_developer_transaction_accelerate_with_http_info(id, accelerate_transaction_for_developer_request, x_request_id, **kwargs) # noqa: E501
|
|
114
117
|
|
|
115
118
|
@auto_fill
|
|
116
119
|
@validate_arguments
|
|
117
|
-
def create_developer_transaction_accelerate_with_http_info(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the resource.")], accelerate_transaction_for_developer_request : Annotated[AccelerateTransactionForDeveloperRequest, Field(..., description="Accelerate transaction for developer request")], **kwargs) -> ApiResponse: # noqa: E501
|
|
120
|
+
def create_developer_transaction_accelerate_with_http_info(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the resource.")], accelerate_transaction_for_developer_request : Annotated[AccelerateTransactionForDeveloperRequest, Field(..., description="Accelerate transaction for developer request")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
118
121
|
"""Accelerate a transaction # noqa: E501
|
|
119
122
|
|
|
120
123
|
Accelerates a specified transaction from a developer-controlled wallet. Additional gas fees may be incurred. # noqa: E501
|
|
121
124
|
This method makes a synchronous HTTP request by default. To make an
|
|
122
125
|
asynchronous HTTP request, please pass async_req=True
|
|
123
126
|
|
|
124
|
-
>>> thread = api.create_developer_transaction_accelerate_with_http_info(id, accelerate_transaction_for_developer_request, async_req=True)
|
|
127
|
+
>>> thread = api.create_developer_transaction_accelerate_with_http_info(id, accelerate_transaction_for_developer_request, x_request_id, async_req=True)
|
|
125
128
|
>>> result = thread.get()
|
|
126
129
|
|
|
127
130
|
:param id: The universally unique identifier of the resource. (required)
|
|
128
131
|
:type id: str
|
|
129
132
|
:param accelerate_transaction_for_developer_request: Accelerate transaction for developer request (required)
|
|
130
133
|
:type accelerate_transaction_for_developer_request: AccelerateTransactionForDeveloperRequest
|
|
134
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
135
|
+
:type x_request_id: str
|
|
131
136
|
:param async_req: Whether to execute the request asynchronously.
|
|
132
137
|
:type async_req: bool, optional
|
|
133
138
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -157,7 +162,8 @@ class TransactionsApi(object):
|
|
|
157
162
|
|
|
158
163
|
_all_params = [
|
|
159
164
|
'id',
|
|
160
|
-
'accelerate_transaction_for_developer_request'
|
|
165
|
+
'accelerate_transaction_for_developer_request',
|
|
166
|
+
'x_request_id'
|
|
161
167
|
]
|
|
162
168
|
_all_params.extend(
|
|
163
169
|
[
|
|
@@ -193,6 +199,9 @@ class TransactionsApi(object):
|
|
|
193
199
|
_query_params = []
|
|
194
200
|
# process the header parameters
|
|
195
201
|
_header_params = dict(_params.get('_headers', {}))
|
|
202
|
+
if _params['x_request_id']:
|
|
203
|
+
_header_params['X-Request-Id'] = _params['x_request_id']
|
|
204
|
+
|
|
196
205
|
# process the form parameters
|
|
197
206
|
_form_params = []
|
|
198
207
|
_files = {}
|
|
@@ -241,20 +250,22 @@ class TransactionsApi(object):
|
|
|
241
250
|
|
|
242
251
|
@auto_fill
|
|
243
252
|
@validate_arguments
|
|
244
|
-
def create_developer_transaction_cancel(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the resource.")], cancel_transaction_for_developer_request : Annotated[CancelTransactionForDeveloperRequest, Field(..., description="Cancel transaction for developer request")], **kwargs) -> CancelTransactionForDeveloper: # noqa: E501
|
|
253
|
+
def create_developer_transaction_cancel(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the resource.")], cancel_transaction_for_developer_request : Annotated[CancelTransactionForDeveloperRequest, Field(..., description="Cancel transaction for developer request")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> CancelTransactionForDeveloper: # noqa: E501
|
|
245
254
|
"""Cancel a transaction # noqa: E501
|
|
246
255
|
|
|
247
256
|
Cancels a specified transaction from a developer-controlled wallet. Gas fees may still be incurred. This is a best-effort operation, it won't be effective if the original transaction has already been processed by the blockchain. # noqa: E501
|
|
248
257
|
This method makes a synchronous HTTP request by default. To make an
|
|
249
258
|
asynchronous HTTP request, please pass async_req=True
|
|
250
259
|
|
|
251
|
-
>>> thread = api.create_developer_transaction_cancel(id, cancel_transaction_for_developer_request, async_req=True)
|
|
260
|
+
>>> thread = api.create_developer_transaction_cancel(id, cancel_transaction_for_developer_request, x_request_id, async_req=True)
|
|
252
261
|
>>> result = thread.get()
|
|
253
262
|
|
|
254
263
|
:param id: The universally unique identifier of the resource. (required)
|
|
255
264
|
:type id: str
|
|
256
265
|
:param cancel_transaction_for_developer_request: Cancel transaction for developer request (required)
|
|
257
266
|
:type cancel_transaction_for_developer_request: CancelTransactionForDeveloperRequest
|
|
267
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
268
|
+
:type x_request_id: str
|
|
258
269
|
:param async_req: Whether to execute the request asynchronously.
|
|
259
270
|
:type async_req: bool, optional
|
|
260
271
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -269,24 +280,26 @@ class TransactionsApi(object):
|
|
|
269
280
|
kwargs['_return_http_data_only'] = True
|
|
270
281
|
if '_preload_content' in kwargs:
|
|
271
282
|
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")
|
|
272
|
-
return self.create_developer_transaction_cancel_with_http_info(id, cancel_transaction_for_developer_request, **kwargs) # noqa: E501
|
|
283
|
+
return self.create_developer_transaction_cancel_with_http_info(id, cancel_transaction_for_developer_request, x_request_id, **kwargs) # noqa: E501
|
|
273
284
|
|
|
274
285
|
@auto_fill
|
|
275
286
|
@validate_arguments
|
|
276
|
-
def create_developer_transaction_cancel_with_http_info(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the resource.")], cancel_transaction_for_developer_request : Annotated[CancelTransactionForDeveloperRequest, Field(..., description="Cancel transaction for developer request")], **kwargs) -> ApiResponse: # noqa: E501
|
|
287
|
+
def create_developer_transaction_cancel_with_http_info(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the resource.")], cancel_transaction_for_developer_request : Annotated[CancelTransactionForDeveloperRequest, Field(..., description="Cancel transaction for developer request")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
277
288
|
"""Cancel a transaction # noqa: E501
|
|
278
289
|
|
|
279
290
|
Cancels a specified transaction from a developer-controlled wallet. Gas fees may still be incurred. This is a best-effort operation, it won't be effective if the original transaction has already been processed by the blockchain. # noqa: E501
|
|
280
291
|
This method makes a synchronous HTTP request by default. To make an
|
|
281
292
|
asynchronous HTTP request, please pass async_req=True
|
|
282
293
|
|
|
283
|
-
>>> thread = api.create_developer_transaction_cancel_with_http_info(id, cancel_transaction_for_developer_request, async_req=True)
|
|
294
|
+
>>> thread = api.create_developer_transaction_cancel_with_http_info(id, cancel_transaction_for_developer_request, x_request_id, async_req=True)
|
|
284
295
|
>>> result = thread.get()
|
|
285
296
|
|
|
286
297
|
:param id: The universally unique identifier of the resource. (required)
|
|
287
298
|
:type id: str
|
|
288
299
|
:param cancel_transaction_for_developer_request: Cancel transaction for developer request (required)
|
|
289
300
|
:type cancel_transaction_for_developer_request: CancelTransactionForDeveloperRequest
|
|
301
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
302
|
+
:type x_request_id: str
|
|
290
303
|
:param async_req: Whether to execute the request asynchronously.
|
|
291
304
|
:type async_req: bool, optional
|
|
292
305
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -316,7 +329,8 @@ class TransactionsApi(object):
|
|
|
316
329
|
|
|
317
330
|
_all_params = [
|
|
318
331
|
'id',
|
|
319
|
-
'cancel_transaction_for_developer_request'
|
|
332
|
+
'cancel_transaction_for_developer_request',
|
|
333
|
+
'x_request_id'
|
|
320
334
|
]
|
|
321
335
|
_all_params.extend(
|
|
322
336
|
[
|
|
@@ -352,6 +366,9 @@ class TransactionsApi(object):
|
|
|
352
366
|
_query_params = []
|
|
353
367
|
# process the header parameters
|
|
354
368
|
_header_params = dict(_params.get('_headers', {}))
|
|
369
|
+
if _params['x_request_id']:
|
|
370
|
+
_header_params['X-Request-Id'] = _params['x_request_id']
|
|
371
|
+
|
|
355
372
|
# process the form parameters
|
|
356
373
|
_form_params = []
|
|
357
374
|
_files = {}
|
|
@@ -400,18 +417,20 @@ class TransactionsApi(object):
|
|
|
400
417
|
|
|
401
418
|
@auto_fill
|
|
402
419
|
@validate_arguments
|
|
403
|
-
def create_developer_transaction_contract_execution(self, create_contract_execution_transaction_for_developer_request : Annotated[CreateContractExecutionTransactionForDeveloperRequest, Field(..., description="Create transaction for developer request")], **kwargs) -> CreateContractExecutionTransactionForDeveloper: # noqa: E501
|
|
420
|
+
def create_developer_transaction_contract_execution(self, create_contract_execution_transaction_for_developer_request : Annotated[CreateContractExecutionTransactionForDeveloperRequest, Field(..., description="Create transaction for developer request")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> CreateContractExecutionTransactionForDeveloper: # noqa: E501
|
|
404
421
|
"""Create a contract execution transaction # noqa: E501
|
|
405
422
|
|
|
406
|
-
Creates a transaction which executes a smart contract. ABI parameters must be passed in the request. Related transactions may be submitted as a batch transaction in a single call. # noqa: E501
|
|
423
|
+
Creates a transaction which executes a smart contract. ABI parameters must be passed in the request. Related transactions may be submitted as a batch transaction in a single call. You must provide either a `walletId` or a `walletAddress` and `blockchain` pair in the request body. # noqa: E501
|
|
407
424
|
This method makes a synchronous HTTP request by default. To make an
|
|
408
425
|
asynchronous HTTP request, please pass async_req=True
|
|
409
426
|
|
|
410
|
-
>>> thread = api.create_developer_transaction_contract_execution(create_contract_execution_transaction_for_developer_request, async_req=True)
|
|
427
|
+
>>> thread = api.create_developer_transaction_contract_execution(create_contract_execution_transaction_for_developer_request, x_request_id, async_req=True)
|
|
411
428
|
>>> result = thread.get()
|
|
412
429
|
|
|
413
430
|
:param create_contract_execution_transaction_for_developer_request: Create transaction for developer request (required)
|
|
414
431
|
:type create_contract_execution_transaction_for_developer_request: CreateContractExecutionTransactionForDeveloperRequest
|
|
432
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
433
|
+
:type x_request_id: str
|
|
415
434
|
:param async_req: Whether to execute the request asynchronously.
|
|
416
435
|
:type async_req: bool, optional
|
|
417
436
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -426,22 +445,24 @@ class TransactionsApi(object):
|
|
|
426
445
|
kwargs['_return_http_data_only'] = True
|
|
427
446
|
if '_preload_content' in kwargs:
|
|
428
447
|
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")
|
|
429
|
-
return self.create_developer_transaction_contract_execution_with_http_info(create_contract_execution_transaction_for_developer_request, **kwargs) # noqa: E501
|
|
448
|
+
return self.create_developer_transaction_contract_execution_with_http_info(create_contract_execution_transaction_for_developer_request, x_request_id, **kwargs) # noqa: E501
|
|
430
449
|
|
|
431
450
|
@auto_fill
|
|
432
451
|
@validate_arguments
|
|
433
|
-
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
|
|
452
|
+
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")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
434
453
|
"""Create a contract execution transaction # noqa: E501
|
|
435
454
|
|
|
436
|
-
Creates a transaction which executes a smart contract. ABI parameters must be passed in the request. Related transactions may be submitted as a batch transaction in a single call. # noqa: E501
|
|
455
|
+
Creates a transaction which executes a smart contract. ABI parameters must be passed in the request. Related transactions may be submitted as a batch transaction in a single call. You must provide either a `walletId` or a `walletAddress` and `blockchain` pair in the request body. # noqa: E501
|
|
437
456
|
This method makes a synchronous HTTP request by default. To make an
|
|
438
457
|
asynchronous HTTP request, please pass async_req=True
|
|
439
458
|
|
|
440
|
-
>>> thread = api.create_developer_transaction_contract_execution_with_http_info(create_contract_execution_transaction_for_developer_request, async_req=True)
|
|
459
|
+
>>> thread = api.create_developer_transaction_contract_execution_with_http_info(create_contract_execution_transaction_for_developer_request, x_request_id, async_req=True)
|
|
441
460
|
>>> result = thread.get()
|
|
442
461
|
|
|
443
462
|
:param create_contract_execution_transaction_for_developer_request: Create transaction for developer request (required)
|
|
444
463
|
:type create_contract_execution_transaction_for_developer_request: CreateContractExecutionTransactionForDeveloperRequest
|
|
464
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
465
|
+
:type x_request_id: str
|
|
445
466
|
:param async_req: Whether to execute the request asynchronously.
|
|
446
467
|
:type async_req: bool, optional
|
|
447
468
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -470,7 +491,8 @@ class TransactionsApi(object):
|
|
|
470
491
|
_params = locals()
|
|
471
492
|
|
|
472
493
|
_all_params = [
|
|
473
|
-
'create_contract_execution_transaction_for_developer_request'
|
|
494
|
+
'create_contract_execution_transaction_for_developer_request',
|
|
495
|
+
'x_request_id'
|
|
474
496
|
]
|
|
475
497
|
_all_params.extend(
|
|
476
498
|
[
|
|
@@ -503,6 +525,9 @@ class TransactionsApi(object):
|
|
|
503
525
|
_query_params = []
|
|
504
526
|
# process the header parameters
|
|
505
527
|
_header_params = dict(_params.get('_headers', {}))
|
|
528
|
+
if _params['x_request_id']:
|
|
529
|
+
_header_params['X-Request-Id'] = _params['x_request_id']
|
|
530
|
+
|
|
506
531
|
# process the form parameters
|
|
507
532
|
_form_params = []
|
|
508
533
|
_files = {}
|
|
@@ -552,18 +577,20 @@ class TransactionsApi(object):
|
|
|
552
577
|
|
|
553
578
|
@auto_fill
|
|
554
579
|
@validate_arguments
|
|
555
|
-
def create_developer_transaction_transfer(self, create_transfer_transaction_for_developer_request : Annotated[CreateTransferTransactionForDeveloperRequest, Field(..., description="Create transaction for developer request")], **kwargs) -> CreateTransferTransactionForDeveloperResponse: # noqa: E501
|
|
580
|
+
def create_developer_transaction_transfer(self, create_transfer_transaction_for_developer_request : Annotated[CreateTransferTransactionForDeveloperRequest, Field(..., description="Create transaction for developer request")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> CreateTransferTransactionForDeveloperResponse: # noqa: E501
|
|
556
581
|
"""Create a transfer transaction # noqa: E501
|
|
557
582
|
|
|
558
|
-
Initiates an on-chain digital asset transfer from a specified developer-controlled wallet. # noqa: E501
|
|
583
|
+
Initiates an on-chain digital asset transfer from a specified developer-controlled wallet. You must provide either a `walletId` or a `walletAddress` and `blockchain` pair in the request body. # noqa: E501
|
|
559
584
|
This method makes a synchronous HTTP request by default. To make an
|
|
560
585
|
asynchronous HTTP request, please pass async_req=True
|
|
561
586
|
|
|
562
|
-
>>> thread = api.create_developer_transaction_transfer(create_transfer_transaction_for_developer_request, async_req=True)
|
|
587
|
+
>>> thread = api.create_developer_transaction_transfer(create_transfer_transaction_for_developer_request, x_request_id, async_req=True)
|
|
563
588
|
>>> result = thread.get()
|
|
564
589
|
|
|
565
590
|
:param create_transfer_transaction_for_developer_request: Create transaction for developer request (required)
|
|
566
591
|
:type create_transfer_transaction_for_developer_request: CreateTransferTransactionForDeveloperRequest
|
|
592
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
593
|
+
:type x_request_id: str
|
|
567
594
|
:param async_req: Whether to execute the request asynchronously.
|
|
568
595
|
:type async_req: bool, optional
|
|
569
596
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -578,22 +605,24 @@ class TransactionsApi(object):
|
|
|
578
605
|
kwargs['_return_http_data_only'] = True
|
|
579
606
|
if '_preload_content' in kwargs:
|
|
580
607
|
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")
|
|
581
|
-
return self.create_developer_transaction_transfer_with_http_info(create_transfer_transaction_for_developer_request, **kwargs) # noqa: E501
|
|
608
|
+
return self.create_developer_transaction_transfer_with_http_info(create_transfer_transaction_for_developer_request, x_request_id, **kwargs) # noqa: E501
|
|
582
609
|
|
|
583
610
|
@auto_fill
|
|
584
611
|
@validate_arguments
|
|
585
|
-
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
|
|
612
|
+
def create_developer_transaction_transfer_with_http_info(self, create_transfer_transaction_for_developer_request : Annotated[CreateTransferTransactionForDeveloperRequest, Field(..., description="Create transaction for developer request")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
586
613
|
"""Create a transfer transaction # noqa: E501
|
|
587
614
|
|
|
588
|
-
Initiates an on-chain digital asset transfer from a specified developer-controlled wallet. # noqa: E501
|
|
615
|
+
Initiates an on-chain digital asset transfer from a specified developer-controlled wallet. You must provide either a `walletId` or a `walletAddress` and `blockchain` pair in the request body. # noqa: E501
|
|
589
616
|
This method makes a synchronous HTTP request by default. To make an
|
|
590
617
|
asynchronous HTTP request, please pass async_req=True
|
|
591
618
|
|
|
592
|
-
>>> thread = api.create_developer_transaction_transfer_with_http_info(create_transfer_transaction_for_developer_request, async_req=True)
|
|
619
|
+
>>> thread = api.create_developer_transaction_transfer_with_http_info(create_transfer_transaction_for_developer_request, x_request_id, async_req=True)
|
|
593
620
|
>>> result = thread.get()
|
|
594
621
|
|
|
595
622
|
:param create_transfer_transaction_for_developer_request: Create transaction for developer request (required)
|
|
596
623
|
:type create_transfer_transaction_for_developer_request: CreateTransferTransactionForDeveloperRequest
|
|
624
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
625
|
+
:type x_request_id: str
|
|
597
626
|
:param async_req: Whether to execute the request asynchronously.
|
|
598
627
|
:type async_req: bool, optional
|
|
599
628
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -622,7 +651,8 @@ class TransactionsApi(object):
|
|
|
622
651
|
_params = locals()
|
|
623
652
|
|
|
624
653
|
_all_params = [
|
|
625
|
-
'create_transfer_transaction_for_developer_request'
|
|
654
|
+
'create_transfer_transaction_for_developer_request',
|
|
655
|
+
'x_request_id'
|
|
626
656
|
]
|
|
627
657
|
_all_params.extend(
|
|
628
658
|
[
|
|
@@ -655,6 +685,9 @@ class TransactionsApi(object):
|
|
|
655
685
|
_query_params = []
|
|
656
686
|
# process the header parameters
|
|
657
687
|
_header_params = dict(_params.get('_headers', {}))
|
|
688
|
+
if _params['x_request_id']:
|
|
689
|
+
_header_params['X-Request-Id'] = _params['x_request_id']
|
|
690
|
+
|
|
658
691
|
# process the form parameters
|
|
659
692
|
_form_params = []
|
|
660
693
|
_files = {}
|
|
@@ -704,18 +737,20 @@ class TransactionsApi(object):
|
|
|
704
737
|
|
|
705
738
|
@auto_fill
|
|
706
739
|
@validate_arguments
|
|
707
|
-
def create_developer_transaction_wallet_upgrade(self, create_wallet_upgrade_transaction_for_developer_request : Annotated[CreateWalletUpgradeTransactionForDeveloperRequest, Field(..., description="Creates a transaction for a developer request.")], **kwargs) -> CreateWalletUpgradeTransactionForDeveloper: # noqa: E501
|
|
740
|
+
def create_developer_transaction_wallet_upgrade(self, create_wallet_upgrade_transaction_for_developer_request : Annotated[CreateWalletUpgradeTransactionForDeveloperRequest, Field(..., description="Creates a transaction for a developer request.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> CreateWalletUpgradeTransactionForDeveloper: # noqa: E501
|
|
708
741
|
"""Create a wallet upgrade transaction # noqa: E501
|
|
709
742
|
|
|
710
743
|
Creates a transaction which upgrades a wallet. # noqa: E501
|
|
711
744
|
This method makes a synchronous HTTP request by default. To make an
|
|
712
745
|
asynchronous HTTP request, please pass async_req=True
|
|
713
746
|
|
|
714
|
-
>>> thread = api.create_developer_transaction_wallet_upgrade(create_wallet_upgrade_transaction_for_developer_request, async_req=True)
|
|
747
|
+
>>> thread = api.create_developer_transaction_wallet_upgrade(create_wallet_upgrade_transaction_for_developer_request, x_request_id, async_req=True)
|
|
715
748
|
>>> result = thread.get()
|
|
716
749
|
|
|
717
750
|
:param create_wallet_upgrade_transaction_for_developer_request: Creates a transaction for a developer request. (required)
|
|
718
751
|
:type create_wallet_upgrade_transaction_for_developer_request: CreateWalletUpgradeTransactionForDeveloperRequest
|
|
752
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
753
|
+
:type x_request_id: str
|
|
719
754
|
:param async_req: Whether to execute the request asynchronously.
|
|
720
755
|
:type async_req: bool, optional
|
|
721
756
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -730,22 +765,24 @@ class TransactionsApi(object):
|
|
|
730
765
|
kwargs['_return_http_data_only'] = True
|
|
731
766
|
if '_preload_content' in kwargs:
|
|
732
767
|
raise ValueError("Error! Please call the create_developer_transaction_wallet_upgrade_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
733
|
-
return self.create_developer_transaction_wallet_upgrade_with_http_info(create_wallet_upgrade_transaction_for_developer_request, **kwargs) # noqa: E501
|
|
768
|
+
return self.create_developer_transaction_wallet_upgrade_with_http_info(create_wallet_upgrade_transaction_for_developer_request, x_request_id, **kwargs) # noqa: E501
|
|
734
769
|
|
|
735
770
|
@auto_fill
|
|
736
771
|
@validate_arguments
|
|
737
|
-
def create_developer_transaction_wallet_upgrade_with_http_info(self, create_wallet_upgrade_transaction_for_developer_request : Annotated[CreateWalletUpgradeTransactionForDeveloperRequest, Field(..., description="Creates a transaction for a developer request.")], **kwargs) -> ApiResponse: # noqa: E501
|
|
772
|
+
def create_developer_transaction_wallet_upgrade_with_http_info(self, create_wallet_upgrade_transaction_for_developer_request : Annotated[CreateWalletUpgradeTransactionForDeveloperRequest, Field(..., description="Creates a transaction for a developer request.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
738
773
|
"""Create a wallet upgrade transaction # noqa: E501
|
|
739
774
|
|
|
740
775
|
Creates a transaction which upgrades a wallet. # noqa: E501
|
|
741
776
|
This method makes a synchronous HTTP request by default. To make an
|
|
742
777
|
asynchronous HTTP request, please pass async_req=True
|
|
743
778
|
|
|
744
|
-
>>> thread = api.create_developer_transaction_wallet_upgrade_with_http_info(create_wallet_upgrade_transaction_for_developer_request, async_req=True)
|
|
779
|
+
>>> thread = api.create_developer_transaction_wallet_upgrade_with_http_info(create_wallet_upgrade_transaction_for_developer_request, x_request_id, async_req=True)
|
|
745
780
|
>>> result = thread.get()
|
|
746
781
|
|
|
747
782
|
:param create_wallet_upgrade_transaction_for_developer_request: Creates a transaction for a developer request. (required)
|
|
748
783
|
:type create_wallet_upgrade_transaction_for_developer_request: CreateWalletUpgradeTransactionForDeveloperRequest
|
|
784
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
785
|
+
:type x_request_id: str
|
|
749
786
|
:param async_req: Whether to execute the request asynchronously.
|
|
750
787
|
:type async_req: bool, optional
|
|
751
788
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -774,7 +811,8 @@ class TransactionsApi(object):
|
|
|
774
811
|
_params = locals()
|
|
775
812
|
|
|
776
813
|
_all_params = [
|
|
777
|
-
'create_wallet_upgrade_transaction_for_developer_request'
|
|
814
|
+
'create_wallet_upgrade_transaction_for_developer_request',
|
|
815
|
+
'x_request_id'
|
|
778
816
|
]
|
|
779
817
|
_all_params.extend(
|
|
780
818
|
[
|
|
@@ -807,6 +845,9 @@ class TransactionsApi(object):
|
|
|
807
845
|
_query_params = []
|
|
808
846
|
# process the header parameters
|
|
809
847
|
_header_params = dict(_params.get('_headers', {}))
|
|
848
|
+
if _params['x_request_id']:
|
|
849
|
+
_header_params['X-Request-Id'] = _params['x_request_id']
|
|
850
|
+
|
|
810
851
|
# process the form parameters
|
|
811
852
|
_form_params = []
|
|
812
853
|
_files = {}
|
|
@@ -856,18 +897,20 @@ class TransactionsApi(object):
|
|
|
856
897
|
|
|
857
898
|
@auto_fill
|
|
858
899
|
@validate_arguments
|
|
859
|
-
def create_transaction_estimate_fee(self, estimate_contract_execution_transaction_fee_request : Annotated[EstimateContractExecutionTransactionFeeRequest, Field(..., description="Estimate transaction fee request")], **kwargs) -> EstimateTransactionFee: # noqa: E501
|
|
900
|
+
def create_transaction_estimate_fee(self, estimate_contract_execution_transaction_fee_request : Annotated[EstimateContractExecutionTransactionFeeRequest, Field(..., description="Estimate transaction fee request")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> EstimateTransactionFee: # noqa: E501
|
|
860
901
|
"""Estimate fee for a contract execution transaction # noqa: E501
|
|
861
902
|
|
|
862
903
|
Estimates gas fees that will be incurred for a contract execution transaction, given its ABI parameters and blockchain. # noqa: E501
|
|
863
904
|
This method makes a synchronous HTTP request by default. To make an
|
|
864
905
|
asynchronous HTTP request, please pass async_req=True
|
|
865
906
|
|
|
866
|
-
>>> thread = api.create_transaction_estimate_fee(estimate_contract_execution_transaction_fee_request, async_req=True)
|
|
907
|
+
>>> thread = api.create_transaction_estimate_fee(estimate_contract_execution_transaction_fee_request, x_request_id, async_req=True)
|
|
867
908
|
>>> result = thread.get()
|
|
868
909
|
|
|
869
910
|
:param estimate_contract_execution_transaction_fee_request: Estimate transaction fee request (required)
|
|
870
911
|
:type estimate_contract_execution_transaction_fee_request: EstimateContractExecutionTransactionFeeRequest
|
|
912
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
913
|
+
:type x_request_id: str
|
|
871
914
|
:param async_req: Whether to execute the request asynchronously.
|
|
872
915
|
:type async_req: bool, optional
|
|
873
916
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -882,22 +925,24 @@ class TransactionsApi(object):
|
|
|
882
925
|
kwargs['_return_http_data_only'] = True
|
|
883
926
|
if '_preload_content' in kwargs:
|
|
884
927
|
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")
|
|
885
|
-
return self.create_transaction_estimate_fee_with_http_info(estimate_contract_execution_transaction_fee_request, **kwargs) # noqa: E501
|
|
928
|
+
return self.create_transaction_estimate_fee_with_http_info(estimate_contract_execution_transaction_fee_request, x_request_id, **kwargs) # noqa: E501
|
|
886
929
|
|
|
887
930
|
@auto_fill
|
|
888
931
|
@validate_arguments
|
|
889
|
-
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
|
|
932
|
+
def create_transaction_estimate_fee_with_http_info(self, estimate_contract_execution_transaction_fee_request : Annotated[EstimateContractExecutionTransactionFeeRequest, Field(..., description="Estimate transaction fee request")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
890
933
|
"""Estimate fee for a contract execution transaction # noqa: E501
|
|
891
934
|
|
|
892
935
|
Estimates gas fees that will be incurred for a contract execution transaction, given its ABI parameters and blockchain. # noqa: E501
|
|
893
936
|
This method makes a synchronous HTTP request by default. To make an
|
|
894
937
|
asynchronous HTTP request, please pass async_req=True
|
|
895
938
|
|
|
896
|
-
>>> thread = api.create_transaction_estimate_fee_with_http_info(estimate_contract_execution_transaction_fee_request, async_req=True)
|
|
939
|
+
>>> thread = api.create_transaction_estimate_fee_with_http_info(estimate_contract_execution_transaction_fee_request, x_request_id, async_req=True)
|
|
897
940
|
>>> result = thread.get()
|
|
898
941
|
|
|
899
942
|
:param estimate_contract_execution_transaction_fee_request: Estimate transaction fee request (required)
|
|
900
943
|
:type estimate_contract_execution_transaction_fee_request: EstimateContractExecutionTransactionFeeRequest
|
|
944
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
945
|
+
:type x_request_id: str
|
|
901
946
|
:param async_req: Whether to execute the request asynchronously.
|
|
902
947
|
:type async_req: bool, optional
|
|
903
948
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -926,7 +971,8 @@ class TransactionsApi(object):
|
|
|
926
971
|
_params = locals()
|
|
927
972
|
|
|
928
973
|
_all_params = [
|
|
929
|
-
'estimate_contract_execution_transaction_fee_request'
|
|
974
|
+
'estimate_contract_execution_transaction_fee_request',
|
|
975
|
+
'x_request_id'
|
|
930
976
|
]
|
|
931
977
|
_all_params.extend(
|
|
932
978
|
[
|
|
@@ -959,6 +1005,9 @@ class TransactionsApi(object):
|
|
|
959
1005
|
_query_params = []
|
|
960
1006
|
# process the header parameters
|
|
961
1007
|
_header_params = dict(_params.get('_headers', {}))
|
|
1008
|
+
if _params['x_request_id']:
|
|
1009
|
+
_header_params['X-Request-Id'] = _params['x_request_id']
|
|
1010
|
+
|
|
962
1011
|
# process the form parameters
|
|
963
1012
|
_form_params = []
|
|
964
1013
|
_files = {}
|
|
@@ -1006,18 +1055,20 @@ class TransactionsApi(object):
|
|
|
1006
1055
|
|
|
1007
1056
|
@auto_fill
|
|
1008
1057
|
@validate_arguments
|
|
1009
|
-
def create_transfer_estimate_fee(self, estimate_transfer_transaction_fee_request : Annotated[EstimateTransferTransactionFeeRequest, Field(..., description="Estimate transaction fee request")], **kwargs) -> EstimateTransactionFee: # noqa: E501
|
|
1058
|
+
def create_transfer_estimate_fee(self, estimate_transfer_transaction_fee_request : Annotated[EstimateTransferTransactionFeeRequest, Field(..., description="Estimate transaction fee request")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> EstimateTransactionFee: # noqa: E501
|
|
1010
1059
|
"""Estimate fee for a transfer transaction # noqa: E501
|
|
1011
1060
|
|
|
1012
1061
|
Estimates gas fees that will be incurred for a transfer transaction; given its amount, blockchain, and token. # noqa: E501
|
|
1013
1062
|
This method makes a synchronous HTTP request by default. To make an
|
|
1014
1063
|
asynchronous HTTP request, please pass async_req=True
|
|
1015
1064
|
|
|
1016
|
-
>>> thread = api.create_transfer_estimate_fee(estimate_transfer_transaction_fee_request, async_req=True)
|
|
1065
|
+
>>> thread = api.create_transfer_estimate_fee(estimate_transfer_transaction_fee_request, x_request_id, async_req=True)
|
|
1017
1066
|
>>> result = thread.get()
|
|
1018
1067
|
|
|
1019
1068
|
:param estimate_transfer_transaction_fee_request: Estimate transaction fee request (required)
|
|
1020
1069
|
:type estimate_transfer_transaction_fee_request: EstimateTransferTransactionFeeRequest
|
|
1070
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
1071
|
+
:type x_request_id: str
|
|
1021
1072
|
:param async_req: Whether to execute the request asynchronously.
|
|
1022
1073
|
:type async_req: bool, optional
|
|
1023
1074
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1032,22 +1083,24 @@ class TransactionsApi(object):
|
|
|
1032
1083
|
kwargs['_return_http_data_only'] = True
|
|
1033
1084
|
if '_preload_content' in kwargs:
|
|
1034
1085
|
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")
|
|
1035
|
-
return self.create_transfer_estimate_fee_with_http_info(estimate_transfer_transaction_fee_request, **kwargs) # noqa: E501
|
|
1086
|
+
return self.create_transfer_estimate_fee_with_http_info(estimate_transfer_transaction_fee_request, x_request_id, **kwargs) # noqa: E501
|
|
1036
1087
|
|
|
1037
1088
|
@auto_fill
|
|
1038
1089
|
@validate_arguments
|
|
1039
|
-
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
|
|
1090
|
+
def create_transfer_estimate_fee_with_http_info(self, estimate_transfer_transaction_fee_request : Annotated[EstimateTransferTransactionFeeRequest, Field(..., description="Estimate transaction fee request")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
1040
1091
|
"""Estimate fee for a transfer transaction # noqa: E501
|
|
1041
1092
|
|
|
1042
1093
|
Estimates gas fees that will be incurred for a transfer transaction; given its amount, blockchain, and token. # noqa: E501
|
|
1043
1094
|
This method makes a synchronous HTTP request by default. To make an
|
|
1044
1095
|
asynchronous HTTP request, please pass async_req=True
|
|
1045
1096
|
|
|
1046
|
-
>>> thread = api.create_transfer_estimate_fee_with_http_info(estimate_transfer_transaction_fee_request, async_req=True)
|
|
1097
|
+
>>> thread = api.create_transfer_estimate_fee_with_http_info(estimate_transfer_transaction_fee_request, x_request_id, async_req=True)
|
|
1047
1098
|
>>> result = thread.get()
|
|
1048
1099
|
|
|
1049
1100
|
:param estimate_transfer_transaction_fee_request: Estimate transaction fee request (required)
|
|
1050
1101
|
:type estimate_transfer_transaction_fee_request: EstimateTransferTransactionFeeRequest
|
|
1102
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
1103
|
+
:type x_request_id: str
|
|
1051
1104
|
:param async_req: Whether to execute the request asynchronously.
|
|
1052
1105
|
:type async_req: bool, optional
|
|
1053
1106
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -1076,7 +1129,8 @@ class TransactionsApi(object):
|
|
|
1076
1129
|
_params = locals()
|
|
1077
1130
|
|
|
1078
1131
|
_all_params = [
|
|
1079
|
-
'estimate_transfer_transaction_fee_request'
|
|
1132
|
+
'estimate_transfer_transaction_fee_request',
|
|
1133
|
+
'x_request_id'
|
|
1080
1134
|
]
|
|
1081
1135
|
_all_params.extend(
|
|
1082
1136
|
[
|
|
@@ -1109,6 +1163,9 @@ class TransactionsApi(object):
|
|
|
1109
1163
|
_query_params = []
|
|
1110
1164
|
# process the header parameters
|
|
1111
1165
|
_header_params = dict(_params.get('_headers', {}))
|
|
1166
|
+
if _params['x_request_id']:
|
|
1167
|
+
_header_params['X-Request-Id'] = _params['x_request_id']
|
|
1168
|
+
|
|
1112
1169
|
# process the form parameters
|
|
1113
1170
|
_form_params = []
|
|
1114
1171
|
_files = {}
|
|
@@ -1306,20 +1363,182 @@ class TransactionsApi(object):
|
|
|
1306
1363
|
|
|
1307
1364
|
@auto_fill
|
|
1308
1365
|
@validate_arguments
|
|
1309
|
-
def
|
|
1366
|
+
def get_lowest_nonce_transaction(self, blockchain : Annotated[Optional[Blockchain], Field(description="Filter by blockchain.")] = None, address : Annotated[Optional[StrictStr], Field(description="Filter by the blockchain address of the wallet.")] = None, wallet_id : Annotated[Optional[StrictStr], Field(description="Filter by the wallet ID")] = None, **kwargs) -> GetLowestNonceTransactionResponse: # noqa: E501
|
|
1367
|
+
"""Get the lowest nonce pending transaction for a wallet # noqa: E501
|
|
1368
|
+
|
|
1369
|
+
For a nonce-supported blockchain, get the lowest nonce transaction that's in QUEUED or SENT or STUCK state for the provided wallet. # noqa: E501
|
|
1370
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1371
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1372
|
+
|
|
1373
|
+
>>> thread = api.get_lowest_nonce_transaction(blockchain, address, wallet_id, async_req=True)
|
|
1374
|
+
>>> result = thread.get()
|
|
1375
|
+
|
|
1376
|
+
:param blockchain: Filter by blockchain.
|
|
1377
|
+
:type blockchain: Blockchain
|
|
1378
|
+
:param address: Filter by the blockchain address of the wallet.
|
|
1379
|
+
:type address: str
|
|
1380
|
+
:param wallet_id: Filter by the wallet ID
|
|
1381
|
+
:type wallet_id: str
|
|
1382
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
1383
|
+
:type async_req: 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
|
+
:return: Returns the result object.
|
|
1389
|
+
If the method is called asynchronously,
|
|
1390
|
+
returns the request thread.
|
|
1391
|
+
:rtype: GetLowestNonceTransactionResponse
|
|
1392
|
+
"""
|
|
1393
|
+
kwargs['_return_http_data_only'] = True
|
|
1394
|
+
if '_preload_content' in kwargs:
|
|
1395
|
+
raise ValueError("Error! Please call the get_lowest_nonce_transaction_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
1396
|
+
return self.get_lowest_nonce_transaction_with_http_info(blockchain, address, wallet_id, **kwargs) # noqa: E501
|
|
1397
|
+
|
|
1398
|
+
@auto_fill
|
|
1399
|
+
@validate_arguments
|
|
1400
|
+
def get_lowest_nonce_transaction_with_http_info(self, blockchain : Annotated[Optional[Blockchain], Field(description="Filter by blockchain.")] = None, address : Annotated[Optional[StrictStr], Field(description="Filter by the blockchain address of the wallet.")] = None, wallet_id : Annotated[Optional[StrictStr], Field(description="Filter by the wallet ID")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
1401
|
+
"""Get the lowest nonce pending transaction for a wallet # noqa: E501
|
|
1402
|
+
|
|
1403
|
+
For a nonce-supported blockchain, get the lowest nonce transaction that's in QUEUED or SENT or STUCK state for the provided wallet. # noqa: E501
|
|
1404
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1405
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1406
|
+
|
|
1407
|
+
>>> thread = api.get_lowest_nonce_transaction_with_http_info(blockchain, address, wallet_id, async_req=True)
|
|
1408
|
+
>>> result = thread.get()
|
|
1409
|
+
|
|
1410
|
+
:param blockchain: Filter by blockchain.
|
|
1411
|
+
:type blockchain: Blockchain
|
|
1412
|
+
:param address: Filter by the blockchain address of the wallet.
|
|
1413
|
+
:type address: str
|
|
1414
|
+
:param wallet_id: Filter by the wallet ID
|
|
1415
|
+
:type wallet_id: str
|
|
1416
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
1417
|
+
:type async_req: bool, optional
|
|
1418
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
1419
|
+
be set to none and raw_data will store the
|
|
1420
|
+
HTTP response body without reading/decoding.
|
|
1421
|
+
Default is True.
|
|
1422
|
+
:type _preload_content: bool, optional
|
|
1423
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
1424
|
+
object with status code, headers, etc
|
|
1425
|
+
:type _return_http_data_only: bool, optional
|
|
1426
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1427
|
+
number provided, it will be total request
|
|
1428
|
+
timeout. It can also be a pair (tuple) of
|
|
1429
|
+
(connection, read) timeouts.
|
|
1430
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1431
|
+
request; this effectively ignores the authentication
|
|
1432
|
+
in the spec for a single request.
|
|
1433
|
+
:type _request_auth: dict, optional
|
|
1434
|
+
:type _content_type: string, optional: force content-type for the request
|
|
1435
|
+
:return: Returns the result object.
|
|
1436
|
+
If the method is called asynchronously,
|
|
1437
|
+
returns the request thread.
|
|
1438
|
+
:rtype: tuple(GetLowestNonceTransactionResponse, status_code(int), headers(HTTPHeaderDict))
|
|
1439
|
+
"""
|
|
1440
|
+
|
|
1441
|
+
_params = locals()
|
|
1442
|
+
|
|
1443
|
+
_all_params = [
|
|
1444
|
+
'blockchain',
|
|
1445
|
+
'address',
|
|
1446
|
+
'wallet_id'
|
|
1447
|
+
]
|
|
1448
|
+
_all_params.extend(
|
|
1449
|
+
[
|
|
1450
|
+
'async_req',
|
|
1451
|
+
'_return_http_data_only',
|
|
1452
|
+
'_preload_content',
|
|
1453
|
+
'_request_timeout',
|
|
1454
|
+
'_request_auth',
|
|
1455
|
+
'_content_type',
|
|
1456
|
+
'_headers'
|
|
1457
|
+
]
|
|
1458
|
+
)
|
|
1459
|
+
|
|
1460
|
+
# validate the arguments
|
|
1461
|
+
for _key, _val in _params['kwargs'].items():
|
|
1462
|
+
if _key not in _all_params:
|
|
1463
|
+
raise ApiTypeError(
|
|
1464
|
+
"Got an unexpected keyword argument '%s'"
|
|
1465
|
+
" to method get_lowest_nonce_transaction" % _key
|
|
1466
|
+
)
|
|
1467
|
+
_params[_key] = _val
|
|
1468
|
+
del _params['kwargs']
|
|
1469
|
+
|
|
1470
|
+
_collection_formats = {}
|
|
1471
|
+
|
|
1472
|
+
# process the path parameters
|
|
1473
|
+
_path_params = {}
|
|
1474
|
+
|
|
1475
|
+
# process the query parameters
|
|
1476
|
+
_query_params = []
|
|
1477
|
+
if _params.get('blockchain') is not None: # noqa: E501
|
|
1478
|
+
_query_params.append(('blockchain', _params['blockchain'].value))
|
|
1479
|
+
|
|
1480
|
+
if _params.get('address') is not None: # noqa: E501
|
|
1481
|
+
_query_params.append(('address', _params['address']))
|
|
1482
|
+
|
|
1483
|
+
if _params.get('wallet_id') is not None: # noqa: E501
|
|
1484
|
+
_query_params.append(('walletId', _params['wallet_id']))
|
|
1485
|
+
|
|
1486
|
+
# process the header parameters
|
|
1487
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
1488
|
+
# process the form parameters
|
|
1489
|
+
_form_params = []
|
|
1490
|
+
_files = {}
|
|
1491
|
+
# process the body parameter
|
|
1492
|
+
_body_params = None
|
|
1493
|
+
# set the HTTP header `Accept`
|
|
1494
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1495
|
+
['application/json']) # noqa: E501
|
|
1496
|
+
|
|
1497
|
+
# authentication setting
|
|
1498
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
1499
|
+
|
|
1500
|
+
_response_types_map = {
|
|
1501
|
+
'200': "GetLowestNonceTransactionResponse",
|
|
1502
|
+
'204': None,
|
|
1503
|
+
'400': "Error",
|
|
1504
|
+
'401': "NotAuthorizedResponse",
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
return self.api_client.call_api(
|
|
1508
|
+
'/v1/w3s/transactions/lowestNonceTransaction', 'GET',
|
|
1509
|
+
_path_params,
|
|
1510
|
+
_query_params,
|
|
1511
|
+
_header_params,
|
|
1512
|
+
body=_body_params,
|
|
1513
|
+
post_params=_form_params,
|
|
1514
|
+
files=_files,
|
|
1515
|
+
response_types_map=_response_types_map,
|
|
1516
|
+
auth_settings=_auth_settings,
|
|
1517
|
+
async_req=_params.get('async_req'),
|
|
1518
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
1519
|
+
_preload_content=_params.get('_preload_content', True),
|
|
1520
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
1521
|
+
collection_formats=_collection_formats,
|
|
1522
|
+
_request_auth=_params.get('_request_auth'))
|
|
1523
|
+
|
|
1524
|
+
@auto_fill
|
|
1525
|
+
@validate_arguments
|
|
1526
|
+
def get_transaction(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the resource.")], tx_type : Annotated[Optional[TransactionType], Field(description="Filter by on the transaction type.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> TransactionResponse: # noqa: E501
|
|
1310
1527
|
"""Get a transaction # noqa: E501
|
|
1311
1528
|
|
|
1312
1529
|
Retrieves info for a single transaction using it's unique identifier. # noqa: E501
|
|
1313
1530
|
This method makes a synchronous HTTP request by default. To make an
|
|
1314
1531
|
asynchronous HTTP request, please pass async_req=True
|
|
1315
1532
|
|
|
1316
|
-
>>> thread = api.get_transaction(id, tx_type, async_req=True)
|
|
1533
|
+
>>> thread = api.get_transaction(id, tx_type, x_request_id, async_req=True)
|
|
1317
1534
|
>>> result = thread.get()
|
|
1318
1535
|
|
|
1319
1536
|
:param id: The universally unique identifier of the resource. (required)
|
|
1320
1537
|
:type id: str
|
|
1321
1538
|
:param tx_type: Filter by on the transaction type.
|
|
1322
1539
|
:type tx_type: TransactionType
|
|
1540
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
1541
|
+
:type x_request_id: str
|
|
1323
1542
|
:param async_req: Whether to execute the request asynchronously.
|
|
1324
1543
|
:type async_req: bool, optional
|
|
1325
1544
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1334,24 +1553,26 @@ class TransactionsApi(object):
|
|
|
1334
1553
|
kwargs['_return_http_data_only'] = True
|
|
1335
1554
|
if '_preload_content' in kwargs:
|
|
1336
1555
|
raise ValueError("Error! Please call the get_transaction_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
1337
|
-
return self.get_transaction_with_http_info(id, tx_type, **kwargs) # noqa: E501
|
|
1556
|
+
return self.get_transaction_with_http_info(id, tx_type, x_request_id, **kwargs) # noqa: E501
|
|
1338
1557
|
|
|
1339
1558
|
@auto_fill
|
|
1340
1559
|
@validate_arguments
|
|
1341
|
-
def get_transaction_with_http_info(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the resource.")], tx_type : Annotated[Optional[TransactionType], Field(description="Filter by on the transaction type.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
1560
|
+
def get_transaction_with_http_info(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the resource.")], tx_type : Annotated[Optional[TransactionType], Field(description="Filter by on the transaction type.")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
1342
1561
|
"""Get a transaction # noqa: E501
|
|
1343
1562
|
|
|
1344
1563
|
Retrieves info for a single transaction using it's unique identifier. # noqa: E501
|
|
1345
1564
|
This method makes a synchronous HTTP request by default. To make an
|
|
1346
1565
|
asynchronous HTTP request, please pass async_req=True
|
|
1347
1566
|
|
|
1348
|
-
>>> thread = api.get_transaction_with_http_info(id, tx_type, async_req=True)
|
|
1567
|
+
>>> thread = api.get_transaction_with_http_info(id, tx_type, x_request_id, async_req=True)
|
|
1349
1568
|
>>> result = thread.get()
|
|
1350
1569
|
|
|
1351
1570
|
:param id: The universally unique identifier of the resource. (required)
|
|
1352
1571
|
:type id: str
|
|
1353
1572
|
:param tx_type: Filter by on the transaction type.
|
|
1354
1573
|
:type tx_type: TransactionType
|
|
1574
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
1575
|
+
:type x_request_id: str
|
|
1355
1576
|
:param async_req: Whether to execute the request asynchronously.
|
|
1356
1577
|
:type async_req: bool, optional
|
|
1357
1578
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -1381,7 +1602,8 @@ class TransactionsApi(object):
|
|
|
1381
1602
|
|
|
1382
1603
|
_all_params = [
|
|
1383
1604
|
'id',
|
|
1384
|
-
'tx_type'
|
|
1605
|
+
'tx_type',
|
|
1606
|
+
'x_request_id'
|
|
1385
1607
|
]
|
|
1386
1608
|
_all_params.extend(
|
|
1387
1609
|
[
|
|
@@ -1420,6 +1642,9 @@ class TransactionsApi(object):
|
|
|
1420
1642
|
|
|
1421
1643
|
# process the header parameters
|
|
1422
1644
|
_header_params = dict(_params.get('_headers', {}))
|
|
1645
|
+
if _params['x_request_id']:
|
|
1646
|
+
_header_params['X-Request-Id'] = _params['x_request_id']
|
|
1647
|
+
|
|
1423
1648
|
# process the form parameters
|
|
1424
1649
|
_form_params = []
|
|
1425
1650
|
_files = {}
|
|
@@ -1458,14 +1683,14 @@ class TransactionsApi(object):
|
|
|
1458
1683
|
|
|
1459
1684
|
@auto_fill
|
|
1460
1685
|
@validate_arguments
|
|
1461
|
-
def list_transactions(self, blockchain : Annotated[Optional[Blockchain], Field(description="Filter by blockchain.")] = None, custody_type : Annotated[Optional[CustodyType], 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 the operation of the transaction.")] = None, state : Annotated[Optional[TransactionState], 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[TransactionType], Field(description="Filter by on the transaction type.")] = None, wallet_ids : Annotated[Optional[StrictStr], Field(description="Filter by the wallet IDs, this parameter is a comma separated list of ids.")] = 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 conjunction 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 conjunction 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) -> Transactions: # noqa: E501
|
|
1686
|
+
def list_transactions(self, blockchain : Annotated[Optional[Blockchain], Field(description="Filter by blockchain.")] = None, custody_type : Annotated[Optional[CustodyType], 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 the operation of the transaction.")] = None, state : Annotated[Optional[TransactionState], 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[TransactionType], Field(description="Filter by on the transaction type.")] = None, wallet_ids : Annotated[Optional[StrictStr], Field(description="Filter by the wallet IDs, this parameter is a comma separated list of ids.")] = 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 conjunction 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 conjunction 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, order : Annotated[Optional[StrictStr], Field(description="Specifies the sort order of the collection by `CreateDate`. Valid values: - `ASC` – Sort results in ascending order. - `DESC` – Sort results in descending order (default). ")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> Transactions: # noqa: E501
|
|
1462
1687
|
"""List transactions # noqa: E501
|
|
1463
1688
|
|
|
1464
1689
|
Lists all transactions. Includes details such as status, source/destination, and transaction hash. # noqa: E501
|
|
1465
1690
|
This method makes a synchronous HTTP request by default. To make an
|
|
1466
1691
|
asynchronous HTTP request, please pass async_req=True
|
|
1467
1692
|
|
|
1468
|
-
>>> 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)
|
|
1693
|
+
>>> 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, order, x_request_id, async_req=True)
|
|
1469
1694
|
>>> result = thread.get()
|
|
1470
1695
|
|
|
1471
1696
|
:param blockchain: Filter by blockchain.
|
|
@@ -1496,6 +1721,10 @@ class TransactionsApi(object):
|
|
|
1496
1721
|
:type page_after: str
|
|
1497
1722
|
: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.
|
|
1498
1723
|
:type page_size: int
|
|
1724
|
+
:param order: Specifies the sort order of the collection by `CreateDate`. Valid values: - `ASC` – Sort results in ascending order. - `DESC` – Sort results in descending order (default).
|
|
1725
|
+
:type order: str
|
|
1726
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
1727
|
+
:type x_request_id: str
|
|
1499
1728
|
:param async_req: Whether to execute the request asynchronously.
|
|
1500
1729
|
:type async_req: bool, optional
|
|
1501
1730
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -1510,18 +1739,18 @@ class TransactionsApi(object):
|
|
|
1510
1739
|
kwargs['_return_http_data_only'] = True
|
|
1511
1740
|
if '_preload_content' in kwargs:
|
|
1512
1741
|
raise ValueError("Error! Please call the list_transactions_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
1513
|
-
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
|
|
1742
|
+
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, order, x_request_id, **kwargs) # noqa: E501
|
|
1514
1743
|
|
|
1515
1744
|
@auto_fill
|
|
1516
1745
|
@validate_arguments
|
|
1517
|
-
def list_transactions_with_http_info(self, blockchain : Annotated[Optional[Blockchain], Field(description="Filter by blockchain.")] = None, custody_type : Annotated[Optional[CustodyType], 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 the operation of the transaction.")] = None, state : Annotated[Optional[TransactionState], 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[TransactionType], Field(description="Filter by on the transaction type.")] = None, wallet_ids : Annotated[Optional[StrictStr], Field(description="Filter by the wallet IDs, this parameter is a comma separated list of ids.")] = 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 conjunction 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 conjunction 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
|
|
1746
|
+
def list_transactions_with_http_info(self, blockchain : Annotated[Optional[Blockchain], Field(description="Filter by blockchain.")] = None, custody_type : Annotated[Optional[CustodyType], 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 the operation of the transaction.")] = None, state : Annotated[Optional[TransactionState], 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[TransactionType], Field(description="Filter by on the transaction type.")] = None, wallet_ids : Annotated[Optional[StrictStr], Field(description="Filter by the wallet IDs, this parameter is a comma separated list of ids.")] = 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 conjunction 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 conjunction 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, order : Annotated[Optional[StrictStr], Field(description="Specifies the sort order of the collection by `CreateDate`. Valid values: - `ASC` – Sort results in ascending order. - `DESC` – Sort results in descending order (default). ")] = None, x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
1518
1747
|
"""List transactions # noqa: E501
|
|
1519
1748
|
|
|
1520
1749
|
Lists all transactions. Includes details such as status, source/destination, and transaction hash. # noqa: E501
|
|
1521
1750
|
This method makes a synchronous HTTP request by default. To make an
|
|
1522
1751
|
asynchronous HTTP request, please pass async_req=True
|
|
1523
1752
|
|
|
1524
|
-
>>> 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)
|
|
1753
|
+
>>> 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, order, x_request_id, async_req=True)
|
|
1525
1754
|
>>> result = thread.get()
|
|
1526
1755
|
|
|
1527
1756
|
:param blockchain: Filter by blockchain.
|
|
@@ -1552,6 +1781,10 @@ class TransactionsApi(object):
|
|
|
1552
1781
|
:type page_after: str
|
|
1553
1782
|
: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.
|
|
1554
1783
|
:type page_size: int
|
|
1784
|
+
:param order: Specifies the sort order of the collection by `CreateDate`. Valid values: - `ASC` – Sort results in ascending order. - `DESC` – Sort results in descending order (default).
|
|
1785
|
+
:type order: str
|
|
1786
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
1787
|
+
:type x_request_id: str
|
|
1555
1788
|
:param async_req: Whether to execute the request asynchronously.
|
|
1556
1789
|
:type async_req: bool, optional
|
|
1557
1790
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -1593,7 +1826,9 @@ class TransactionsApi(object):
|
|
|
1593
1826
|
'to',
|
|
1594
1827
|
'page_before',
|
|
1595
1828
|
'page_after',
|
|
1596
|
-
'page_size'
|
|
1829
|
+
'page_size',
|
|
1830
|
+
'order',
|
|
1831
|
+
'x_request_id'
|
|
1597
1832
|
]
|
|
1598
1833
|
_all_params.extend(
|
|
1599
1834
|
[
|
|
@@ -1672,8 +1907,14 @@ class TransactionsApi(object):
|
|
|
1672
1907
|
if _params.get('page_size') is not None: # noqa: E501
|
|
1673
1908
|
_query_params.append(('pageSize', _params['page_size']))
|
|
1674
1909
|
|
|
1910
|
+
if _params.get('order') is not None: # noqa: E501
|
|
1911
|
+
_query_params.append(('order', _params['order']))
|
|
1912
|
+
|
|
1675
1913
|
# process the header parameters
|
|
1676
1914
|
_header_params = dict(_params.get('_headers', {}))
|
|
1915
|
+
if _params['x_request_id']:
|
|
1916
|
+
_header_params['X-Request-Id'] = _params['x_request_id']
|
|
1917
|
+
|
|
1677
1918
|
# process the form parameters
|
|
1678
1919
|
_form_params = []
|
|
1679
1920
|
_files = {}
|