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,1118 @@
|
|
|
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.create_developer_wallet200_response import CreateDeveloperWallet200Response
|
|
26
|
+
from circle.web3.developer_controlled_wallets.models.create_developer_wallet_request import CreateDeveloperWalletRequest
|
|
27
|
+
from circle.web3.developer_controlled_wallets.models.ext_update_wallet_metadata_request import ExtUpdateWalletMetadataRequest
|
|
28
|
+
from circle.web3.developer_controlled_wallets.models.get_wallet200_response import GetWallet200Response
|
|
29
|
+
from circle.web3.developer_controlled_wallets.models.list_wallet_ballance200_response import ListWalletBallance200Response
|
|
30
|
+
from circle.web3.developer_controlled_wallets.models.list_wallet_nfts200_response import ListWalletNfts200Response
|
|
31
|
+
from circle.web3.developer_controlled_wallets.models.list_wallets200_response import ListWallets200Response
|
|
32
|
+
from circle.web3.developer_controlled_wallets.models.update_wallet200_response import UpdateWallet200Response
|
|
33
|
+
|
|
34
|
+
from circle.web3.developer_controlled_wallets.api_client import ApiClient
|
|
35
|
+
from circle.web3.developer_controlled_wallets.api_response import ApiResponse
|
|
36
|
+
from circle.web3.developer_controlled_wallets.exceptions import ( # noqa: F401
|
|
37
|
+
ApiTypeError,
|
|
38
|
+
ApiValueError
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def auto_fill(func):
|
|
43
|
+
functools.wraps(func)
|
|
44
|
+
|
|
45
|
+
def wrapper(*args, **kwargs):
|
|
46
|
+
api = args[0]
|
|
47
|
+
for arg in args:
|
|
48
|
+
api.api_client.fill_entity_secret_ciphertext(arg)
|
|
49
|
+
api.api_client.fill_idempotency_key(arg)
|
|
50
|
+
for name, arg in kwargs.items():
|
|
51
|
+
api.api_client.fill_entity_secret_ciphertext(arg)
|
|
52
|
+
api.api_client.fill_idempotency_key(arg)
|
|
53
|
+
return func(*args, **kwargs)
|
|
54
|
+
|
|
55
|
+
return wrapper
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class WalletsApi(object):
|
|
59
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
60
|
+
Ref: https://openapi-generator.tech
|
|
61
|
+
|
|
62
|
+
Do not edit the class manually.
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
def __init__(self, api_client=None):
|
|
66
|
+
if api_client is None:
|
|
67
|
+
api_client = ApiClient.get_default()
|
|
68
|
+
self.api_client = api_client
|
|
69
|
+
|
|
70
|
+
@auto_fill
|
|
71
|
+
@validate_arguments
|
|
72
|
+
def create_developer_wallet(self, create_developer_wallet_request : Annotated[CreateDeveloperWalletRequest, Field(..., description="Wallets creation request")], **kwargs) -> CreateDeveloperWallet200Response: # noqa: E501
|
|
73
|
+
"""Create wallets # noqa: E501
|
|
74
|
+
|
|
75
|
+
Generates a new developer-controlled wallet or batch of wallets within a wallet set, specifying blockchain and wallet name. # noqa: E501
|
|
76
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
77
|
+
asynchronous HTTP request, please pass async_req=True
|
|
78
|
+
|
|
79
|
+
>>> thread = api.create_developer_wallet(create_developer_wallet_request, async_req=True)
|
|
80
|
+
>>> result = thread.get()
|
|
81
|
+
|
|
82
|
+
:param create_developer_wallet_request: Wallets creation request (required)
|
|
83
|
+
:type create_developer_wallet_request: CreateDeveloperWalletRequest
|
|
84
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
85
|
+
:type async_req: bool, optional
|
|
86
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
87
|
+
number provided, it will be total request
|
|
88
|
+
timeout. It can also be a pair (tuple) of
|
|
89
|
+
(connection, read) timeouts.
|
|
90
|
+
:return: Returns the result object.
|
|
91
|
+
If the method is called asynchronously,
|
|
92
|
+
returns the request thread.
|
|
93
|
+
:rtype: CreateDeveloperWallet200Response
|
|
94
|
+
"""
|
|
95
|
+
kwargs['_return_http_data_only'] = True
|
|
96
|
+
if '_preload_content' in kwargs:
|
|
97
|
+
raise ValueError("Error! Please call the create_developer_wallet_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
98
|
+
return self.create_developer_wallet_with_http_info(create_developer_wallet_request, **kwargs) # noqa: E501
|
|
99
|
+
|
|
100
|
+
@auto_fill
|
|
101
|
+
@validate_arguments
|
|
102
|
+
def create_developer_wallet_with_http_info(self, create_developer_wallet_request : Annotated[CreateDeveloperWalletRequest, Field(..., description="Wallets creation request")], **kwargs) -> ApiResponse: # noqa: E501
|
|
103
|
+
"""Create wallets # noqa: E501
|
|
104
|
+
|
|
105
|
+
Generates a new developer-controlled wallet or batch of wallets within a wallet set, specifying blockchain and wallet name. # noqa: E501
|
|
106
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
107
|
+
asynchronous HTTP request, please pass async_req=True
|
|
108
|
+
|
|
109
|
+
>>> thread = api.create_developer_wallet_with_http_info(create_developer_wallet_request, async_req=True)
|
|
110
|
+
>>> result = thread.get()
|
|
111
|
+
|
|
112
|
+
:param create_developer_wallet_request: Wallets creation request (required)
|
|
113
|
+
:type create_developer_wallet_request: CreateDeveloperWalletRequest
|
|
114
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
115
|
+
:type async_req: bool, optional
|
|
116
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
117
|
+
be set to none and raw_data will store the
|
|
118
|
+
HTTP response body without reading/decoding.
|
|
119
|
+
Default is True.
|
|
120
|
+
:type _preload_content: bool, optional
|
|
121
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
122
|
+
object with status code, headers, etc
|
|
123
|
+
:type _return_http_data_only: bool, optional
|
|
124
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
125
|
+
number provided, it will be total request
|
|
126
|
+
timeout. It can also be a pair (tuple) of
|
|
127
|
+
(connection, read) timeouts.
|
|
128
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
129
|
+
request; this effectively ignores the authentication
|
|
130
|
+
in the spec for a single request.
|
|
131
|
+
:type _request_auth: dict, optional
|
|
132
|
+
:type _content_type: string, optional: force content-type for the request
|
|
133
|
+
:return: Returns the result object.
|
|
134
|
+
If the method is called asynchronously,
|
|
135
|
+
returns the request thread.
|
|
136
|
+
:rtype: tuple(CreateDeveloperWallet200Response, status_code(int), headers(HTTPHeaderDict))
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
_params = locals()
|
|
140
|
+
|
|
141
|
+
_all_params = [
|
|
142
|
+
'create_developer_wallet_request'
|
|
143
|
+
]
|
|
144
|
+
_all_params.extend(
|
|
145
|
+
[
|
|
146
|
+
'async_req',
|
|
147
|
+
'_return_http_data_only',
|
|
148
|
+
'_preload_content',
|
|
149
|
+
'_request_timeout',
|
|
150
|
+
'_request_auth',
|
|
151
|
+
'_content_type',
|
|
152
|
+
'_headers'
|
|
153
|
+
]
|
|
154
|
+
)
|
|
155
|
+
|
|
156
|
+
# validate the arguments
|
|
157
|
+
for _key, _val in _params['kwargs'].items():
|
|
158
|
+
if _key not in _all_params:
|
|
159
|
+
raise ApiTypeError(
|
|
160
|
+
"Got an unexpected keyword argument '%s'"
|
|
161
|
+
" to method create_developer_wallet" % _key
|
|
162
|
+
)
|
|
163
|
+
_params[_key] = _val
|
|
164
|
+
del _params['kwargs']
|
|
165
|
+
|
|
166
|
+
_collection_formats = {}
|
|
167
|
+
|
|
168
|
+
# process the path parameters
|
|
169
|
+
_path_params = {}
|
|
170
|
+
|
|
171
|
+
# process the query parameters
|
|
172
|
+
_query_params = []
|
|
173
|
+
# process the header parameters
|
|
174
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
175
|
+
# process the form parameters
|
|
176
|
+
_form_params = []
|
|
177
|
+
_files = {}
|
|
178
|
+
# process the body parameter
|
|
179
|
+
_body_params = None
|
|
180
|
+
if _params['create_developer_wallet_request'] is not None:
|
|
181
|
+
_body_params = _params['create_developer_wallet_request']
|
|
182
|
+
|
|
183
|
+
# set the HTTP header `Accept`
|
|
184
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
185
|
+
['application/json']) # noqa: E501
|
|
186
|
+
|
|
187
|
+
# set the HTTP header `Content-Type`
|
|
188
|
+
_content_types_list = _params.get('_content_type',
|
|
189
|
+
self.api_client.select_header_content_type(
|
|
190
|
+
['application/json']))
|
|
191
|
+
if _content_types_list:
|
|
192
|
+
_header_params['Content-Type'] = _content_types_list
|
|
193
|
+
|
|
194
|
+
# authentication setting
|
|
195
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
196
|
+
|
|
197
|
+
_response_types_map = {
|
|
198
|
+
'200': "CreateDeveloperWallet200Response",
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
return self.api_client.call_api(
|
|
202
|
+
'/developer/wallets', 'POST',
|
|
203
|
+
_path_params,
|
|
204
|
+
_query_params,
|
|
205
|
+
_header_params,
|
|
206
|
+
body=_body_params,
|
|
207
|
+
post_params=_form_params,
|
|
208
|
+
files=_files,
|
|
209
|
+
response_types_map=_response_types_map,
|
|
210
|
+
auth_settings=_auth_settings,
|
|
211
|
+
async_req=_params.get('async_req'),
|
|
212
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
213
|
+
_preload_content=_params.get('_preload_content', True),
|
|
214
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
215
|
+
collection_formats=_collection_formats,
|
|
216
|
+
_request_auth=_params.get('_request_auth'))
|
|
217
|
+
|
|
218
|
+
@auto_fill
|
|
219
|
+
@validate_arguments
|
|
220
|
+
def get_wallet(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], **kwargs) -> GetWallet200Response: # noqa: E501
|
|
221
|
+
"""Get a wallet # noqa: E501
|
|
222
|
+
|
|
223
|
+
Retrieves info for a single developer-controlled wallet using it's unique identifier. # noqa: E501
|
|
224
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
225
|
+
asynchronous HTTP request, please pass async_req=True
|
|
226
|
+
|
|
227
|
+
>>> thread = api.get_wallet(id, async_req=True)
|
|
228
|
+
>>> result = thread.get()
|
|
229
|
+
|
|
230
|
+
:param id: Wallet ID (required)
|
|
231
|
+
:type id: str
|
|
232
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
233
|
+
:type async_req: bool, optional
|
|
234
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
235
|
+
number provided, it will be total request
|
|
236
|
+
timeout. It can also be a pair (tuple) of
|
|
237
|
+
(connection, read) timeouts.
|
|
238
|
+
:return: Returns the result object.
|
|
239
|
+
If the method is called asynchronously,
|
|
240
|
+
returns the request thread.
|
|
241
|
+
:rtype: GetWallet200Response
|
|
242
|
+
"""
|
|
243
|
+
kwargs['_return_http_data_only'] = True
|
|
244
|
+
if '_preload_content' in kwargs:
|
|
245
|
+
raise ValueError("Error! Please call the get_wallet_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
246
|
+
return self.get_wallet_with_http_info(id, **kwargs) # noqa: E501
|
|
247
|
+
|
|
248
|
+
@auto_fill
|
|
249
|
+
@validate_arguments
|
|
250
|
+
def get_wallet_with_http_info(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], **kwargs) -> ApiResponse: # noqa: E501
|
|
251
|
+
"""Get a wallet # noqa: E501
|
|
252
|
+
|
|
253
|
+
Retrieves info for a single developer-controlled wallet using it's unique identifier. # noqa: E501
|
|
254
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
255
|
+
asynchronous HTTP request, please pass async_req=True
|
|
256
|
+
|
|
257
|
+
>>> thread = api.get_wallet_with_http_info(id, async_req=True)
|
|
258
|
+
>>> result = thread.get()
|
|
259
|
+
|
|
260
|
+
:param id: Wallet ID (required)
|
|
261
|
+
:type id: str
|
|
262
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
263
|
+
:type async_req: bool, optional
|
|
264
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
265
|
+
be set to none and raw_data will store the
|
|
266
|
+
HTTP response body without reading/decoding.
|
|
267
|
+
Default is True.
|
|
268
|
+
:type _preload_content: bool, optional
|
|
269
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
270
|
+
object with status code, headers, etc
|
|
271
|
+
:type _return_http_data_only: bool, optional
|
|
272
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
273
|
+
number provided, it will be total request
|
|
274
|
+
timeout. It can also be a pair (tuple) of
|
|
275
|
+
(connection, read) timeouts.
|
|
276
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
277
|
+
request; this effectively ignores the authentication
|
|
278
|
+
in the spec for a single request.
|
|
279
|
+
:type _request_auth: dict, optional
|
|
280
|
+
:type _content_type: string, optional: force content-type for the request
|
|
281
|
+
:return: Returns the result object.
|
|
282
|
+
If the method is called asynchronously,
|
|
283
|
+
returns the request thread.
|
|
284
|
+
:rtype: tuple(GetWallet200Response, status_code(int), headers(HTTPHeaderDict))
|
|
285
|
+
"""
|
|
286
|
+
|
|
287
|
+
_params = locals()
|
|
288
|
+
|
|
289
|
+
_all_params = [
|
|
290
|
+
'id'
|
|
291
|
+
]
|
|
292
|
+
_all_params.extend(
|
|
293
|
+
[
|
|
294
|
+
'async_req',
|
|
295
|
+
'_return_http_data_only',
|
|
296
|
+
'_preload_content',
|
|
297
|
+
'_request_timeout',
|
|
298
|
+
'_request_auth',
|
|
299
|
+
'_content_type',
|
|
300
|
+
'_headers'
|
|
301
|
+
]
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
# validate the arguments
|
|
305
|
+
for _key, _val in _params['kwargs'].items():
|
|
306
|
+
if _key not in _all_params:
|
|
307
|
+
raise ApiTypeError(
|
|
308
|
+
"Got an unexpected keyword argument '%s'"
|
|
309
|
+
" to method get_wallet" % _key
|
|
310
|
+
)
|
|
311
|
+
_params[_key] = _val
|
|
312
|
+
del _params['kwargs']
|
|
313
|
+
|
|
314
|
+
_collection_formats = {}
|
|
315
|
+
|
|
316
|
+
# process the path parameters
|
|
317
|
+
_path_params = {}
|
|
318
|
+
if _params['id']:
|
|
319
|
+
_path_params['id'] = _params['id']
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
# process the query parameters
|
|
323
|
+
_query_params = []
|
|
324
|
+
# process the header parameters
|
|
325
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
326
|
+
# process the form parameters
|
|
327
|
+
_form_params = []
|
|
328
|
+
_files = {}
|
|
329
|
+
# process the body parameter
|
|
330
|
+
_body_params = None
|
|
331
|
+
# set the HTTP header `Accept`
|
|
332
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
333
|
+
['application/json']) # noqa: E501
|
|
334
|
+
|
|
335
|
+
# authentication setting
|
|
336
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
337
|
+
|
|
338
|
+
_response_types_map = {
|
|
339
|
+
'200': "GetWallet200Response",
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
return self.api_client.call_api(
|
|
343
|
+
'/wallets/{id}', 'GET',
|
|
344
|
+
_path_params,
|
|
345
|
+
_query_params,
|
|
346
|
+
_header_params,
|
|
347
|
+
body=_body_params,
|
|
348
|
+
post_params=_form_params,
|
|
349
|
+
files=_files,
|
|
350
|
+
response_types_map=_response_types_map,
|
|
351
|
+
auth_settings=_auth_settings,
|
|
352
|
+
async_req=_params.get('async_req'),
|
|
353
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
354
|
+
_preload_content=_params.get('_preload_content', True),
|
|
355
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
356
|
+
collection_formats=_collection_formats,
|
|
357
|
+
_request_auth=_params.get('_request_auth'))
|
|
358
|
+
|
|
359
|
+
@auto_fill
|
|
360
|
+
@validate_arguments
|
|
361
|
+
def list_wallet_ballance(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], include_all : Annotated[Optional[StrictBool], Field(description="Return all recourses with monitored and non-monitored tokens.")] = None, name : Annotated[Optional[StrictStr], Field(description="Filter by token name.")] = None, token_address : Annotated[Optional[StrictStr], Field(description="Filter by token addresses.")] = None, standard : Annotated[Optional[StrictStr], Field(description="Filter by the token standard.")] = 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) -> ListWalletBallance200Response: # noqa: E501
|
|
362
|
+
"""Get token balance for a wallet # noqa: E501
|
|
363
|
+
|
|
364
|
+
Fetches the digital asset balance for a single developer-controlled wallet using its unique identifier. # noqa: E501
|
|
365
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
366
|
+
asynchronous HTTP request, please pass async_req=True
|
|
367
|
+
|
|
368
|
+
>>> thread = api.list_wallet_ballance(id, include_all, name, token_address, standard, page_before, page_after, page_size, async_req=True)
|
|
369
|
+
>>> result = thread.get()
|
|
370
|
+
|
|
371
|
+
:param id: Wallet ID (required)
|
|
372
|
+
:type id: str
|
|
373
|
+
:param include_all: Return all recourses with monitored and non-monitored tokens.
|
|
374
|
+
:type include_all: bool
|
|
375
|
+
:param name: Filter by token name.
|
|
376
|
+
:type name: str
|
|
377
|
+
:param token_address: Filter by token addresses.
|
|
378
|
+
:type token_address: str
|
|
379
|
+
:param standard: Filter by the token standard.
|
|
380
|
+
:type standard: str
|
|
381
|
+
: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.
|
|
382
|
+
:type page_before: str
|
|
383
|
+
: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.
|
|
384
|
+
:type page_after: str
|
|
385
|
+
: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.
|
|
386
|
+
:type page_size: int
|
|
387
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
388
|
+
:type async_req: bool, optional
|
|
389
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
390
|
+
number provided, it will be total request
|
|
391
|
+
timeout. It can also be a pair (tuple) of
|
|
392
|
+
(connection, read) timeouts.
|
|
393
|
+
:return: Returns the result object.
|
|
394
|
+
If the method is called asynchronously,
|
|
395
|
+
returns the request thread.
|
|
396
|
+
:rtype: ListWalletBallance200Response
|
|
397
|
+
"""
|
|
398
|
+
kwargs['_return_http_data_only'] = True
|
|
399
|
+
if '_preload_content' in kwargs:
|
|
400
|
+
raise ValueError("Error! Please call the list_wallet_ballance_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
401
|
+
return self.list_wallet_ballance_with_http_info(id, include_all, name, token_address, standard, page_before, page_after, page_size, **kwargs) # noqa: E501
|
|
402
|
+
|
|
403
|
+
@auto_fill
|
|
404
|
+
@validate_arguments
|
|
405
|
+
def list_wallet_ballance_with_http_info(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], include_all : Annotated[Optional[StrictBool], Field(description="Return all recourses with monitored and non-monitored tokens.")] = None, name : Annotated[Optional[StrictStr], Field(description="Filter by token name.")] = None, token_address : Annotated[Optional[StrictStr], Field(description="Filter by token addresses.")] = None, standard : Annotated[Optional[StrictStr], Field(description="Filter by the token standard.")] = 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
|
|
406
|
+
"""Get token balance for a wallet # noqa: E501
|
|
407
|
+
|
|
408
|
+
Fetches the digital asset balance for a single developer-controlled wallet using its unique identifier. # noqa: E501
|
|
409
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
410
|
+
asynchronous HTTP request, please pass async_req=True
|
|
411
|
+
|
|
412
|
+
>>> thread = api.list_wallet_ballance_with_http_info(id, include_all, name, token_address, standard, page_before, page_after, page_size, async_req=True)
|
|
413
|
+
>>> result = thread.get()
|
|
414
|
+
|
|
415
|
+
:param id: Wallet ID (required)
|
|
416
|
+
:type id: str
|
|
417
|
+
:param include_all: Return all recourses with monitored and non-monitored tokens.
|
|
418
|
+
:type include_all: bool
|
|
419
|
+
:param name: Filter by token name.
|
|
420
|
+
:type name: str
|
|
421
|
+
:param token_address: Filter by token addresses.
|
|
422
|
+
:type token_address: str
|
|
423
|
+
:param standard: Filter by the token standard.
|
|
424
|
+
:type standard: str
|
|
425
|
+
: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.
|
|
426
|
+
:type page_before: str
|
|
427
|
+
: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.
|
|
428
|
+
:type page_after: str
|
|
429
|
+
: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.
|
|
430
|
+
:type page_size: int
|
|
431
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
432
|
+
:type async_req: bool, optional
|
|
433
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
434
|
+
be set to none and raw_data will store the
|
|
435
|
+
HTTP response body without reading/decoding.
|
|
436
|
+
Default is True.
|
|
437
|
+
:type _preload_content: bool, optional
|
|
438
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
439
|
+
object with status code, headers, etc
|
|
440
|
+
:type _return_http_data_only: bool, optional
|
|
441
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
442
|
+
number provided, it will be total request
|
|
443
|
+
timeout. It can also be a pair (tuple) of
|
|
444
|
+
(connection, read) timeouts.
|
|
445
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
446
|
+
request; this effectively ignores the authentication
|
|
447
|
+
in the spec for a single request.
|
|
448
|
+
:type _request_auth: dict, optional
|
|
449
|
+
:type _content_type: string, optional: force content-type for the request
|
|
450
|
+
:return: Returns the result object.
|
|
451
|
+
If the method is called asynchronously,
|
|
452
|
+
returns the request thread.
|
|
453
|
+
:rtype: tuple(ListWalletBallance200Response, status_code(int), headers(HTTPHeaderDict))
|
|
454
|
+
"""
|
|
455
|
+
|
|
456
|
+
_params = locals()
|
|
457
|
+
|
|
458
|
+
_all_params = [
|
|
459
|
+
'id',
|
|
460
|
+
'include_all',
|
|
461
|
+
'name',
|
|
462
|
+
'token_address',
|
|
463
|
+
'standard',
|
|
464
|
+
'page_before',
|
|
465
|
+
'page_after',
|
|
466
|
+
'page_size'
|
|
467
|
+
]
|
|
468
|
+
_all_params.extend(
|
|
469
|
+
[
|
|
470
|
+
'async_req',
|
|
471
|
+
'_return_http_data_only',
|
|
472
|
+
'_preload_content',
|
|
473
|
+
'_request_timeout',
|
|
474
|
+
'_request_auth',
|
|
475
|
+
'_content_type',
|
|
476
|
+
'_headers'
|
|
477
|
+
]
|
|
478
|
+
)
|
|
479
|
+
|
|
480
|
+
# validate the arguments
|
|
481
|
+
for _key, _val in _params['kwargs'].items():
|
|
482
|
+
if _key not in _all_params:
|
|
483
|
+
raise ApiTypeError(
|
|
484
|
+
"Got an unexpected keyword argument '%s'"
|
|
485
|
+
" to method list_wallet_ballance" % _key
|
|
486
|
+
)
|
|
487
|
+
_params[_key] = _val
|
|
488
|
+
del _params['kwargs']
|
|
489
|
+
|
|
490
|
+
_collection_formats = {}
|
|
491
|
+
|
|
492
|
+
# process the path parameters
|
|
493
|
+
_path_params = {}
|
|
494
|
+
if _params['id']:
|
|
495
|
+
_path_params['id'] = _params['id']
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
# process the query parameters
|
|
499
|
+
_query_params = []
|
|
500
|
+
if _params.get('include_all') is not None: # noqa: E501
|
|
501
|
+
_query_params.append(('includeAll', _params['include_all']))
|
|
502
|
+
|
|
503
|
+
if _params.get('name') is not None: # noqa: E501
|
|
504
|
+
_query_params.append(('name', _params['name']))
|
|
505
|
+
|
|
506
|
+
if _params.get('token_address') is not None: # noqa: E501
|
|
507
|
+
_query_params.append(('tokenAddress', _params['token_address']))
|
|
508
|
+
|
|
509
|
+
if _params.get('standard') is not None: # noqa: E501
|
|
510
|
+
_query_params.append(('standard', _params['standard']))
|
|
511
|
+
|
|
512
|
+
if _params.get('page_before') is not None: # noqa: E501
|
|
513
|
+
_query_params.append(('pageBefore', _params['page_before']))
|
|
514
|
+
|
|
515
|
+
if _params.get('page_after') is not None: # noqa: E501
|
|
516
|
+
_query_params.append(('pageAfter', _params['page_after']))
|
|
517
|
+
|
|
518
|
+
if _params.get('page_size') is not None: # noqa: E501
|
|
519
|
+
_query_params.append(('pageSize', _params['page_size']))
|
|
520
|
+
|
|
521
|
+
# process the header parameters
|
|
522
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
523
|
+
# process the form parameters
|
|
524
|
+
_form_params = []
|
|
525
|
+
_files = {}
|
|
526
|
+
# process the body parameter
|
|
527
|
+
_body_params = None
|
|
528
|
+
# set the HTTP header `Accept`
|
|
529
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
530
|
+
['application/json']) # noqa: E501
|
|
531
|
+
|
|
532
|
+
# authentication setting
|
|
533
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
534
|
+
|
|
535
|
+
_response_types_map = {
|
|
536
|
+
'200': "ListWalletBallance200Response",
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
return self.api_client.call_api(
|
|
540
|
+
'/wallets/{id}/balances', 'GET',
|
|
541
|
+
_path_params,
|
|
542
|
+
_query_params,
|
|
543
|
+
_header_params,
|
|
544
|
+
body=_body_params,
|
|
545
|
+
post_params=_form_params,
|
|
546
|
+
files=_files,
|
|
547
|
+
response_types_map=_response_types_map,
|
|
548
|
+
auth_settings=_auth_settings,
|
|
549
|
+
async_req=_params.get('async_req'),
|
|
550
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
551
|
+
_preload_content=_params.get('_preload_content', True),
|
|
552
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
553
|
+
collection_formats=_collection_formats,
|
|
554
|
+
_request_auth=_params.get('_request_auth'))
|
|
555
|
+
|
|
556
|
+
@auto_fill
|
|
557
|
+
@validate_arguments
|
|
558
|
+
def list_wallet_nfts(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], include_all : Annotated[Optional[StrictBool], Field(description="Return all recourses with monitored and non-monitored tokens.")] = None, name : Annotated[Optional[StrictStr], Field(description="Filter by token name.")] = None, token_address : Annotated[Optional[StrictStr], Field(description="Filter by token addresses.")] = None, standard : Annotated[Optional[StrictStr], Field(description="Filter by the token standard.")] = 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) -> ListWalletNfts200Response: # noqa: E501
|
|
559
|
+
"""Get NFTs for a wallet # noqa: E501
|
|
560
|
+
|
|
561
|
+
Fetches the info for all NFTs stored in a single developer-controlled wallet, using the wallets unique identifier. # noqa: E501
|
|
562
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
563
|
+
asynchronous HTTP request, please pass async_req=True
|
|
564
|
+
|
|
565
|
+
>>> thread = api.list_wallet_nfts(id, include_all, name, token_address, standard, page_before, page_after, page_size, async_req=True)
|
|
566
|
+
>>> result = thread.get()
|
|
567
|
+
|
|
568
|
+
:param id: Wallet ID (required)
|
|
569
|
+
:type id: str
|
|
570
|
+
:param include_all: Return all recourses with monitored and non-monitored tokens.
|
|
571
|
+
:type include_all: bool
|
|
572
|
+
:param name: Filter by token name.
|
|
573
|
+
:type name: str
|
|
574
|
+
:param token_address: Filter by token addresses.
|
|
575
|
+
:type token_address: str
|
|
576
|
+
:param standard: Filter by the token standard.
|
|
577
|
+
:type standard: str
|
|
578
|
+
: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.
|
|
579
|
+
:type page_before: str
|
|
580
|
+
: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.
|
|
581
|
+
:type page_after: str
|
|
582
|
+
: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.
|
|
583
|
+
:type page_size: int
|
|
584
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
585
|
+
:type async_req: bool, optional
|
|
586
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
587
|
+
number provided, it will be total request
|
|
588
|
+
timeout. It can also be a pair (tuple) of
|
|
589
|
+
(connection, read) timeouts.
|
|
590
|
+
:return: Returns the result object.
|
|
591
|
+
If the method is called asynchronously,
|
|
592
|
+
returns the request thread.
|
|
593
|
+
:rtype: ListWalletNfts200Response
|
|
594
|
+
"""
|
|
595
|
+
kwargs['_return_http_data_only'] = True
|
|
596
|
+
if '_preload_content' in kwargs:
|
|
597
|
+
raise ValueError("Error! Please call the list_wallet_nfts_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
598
|
+
return self.list_wallet_nfts_with_http_info(id, include_all, name, token_address, standard, page_before, page_after, page_size, **kwargs) # noqa: E501
|
|
599
|
+
|
|
600
|
+
@auto_fill
|
|
601
|
+
@validate_arguments
|
|
602
|
+
def list_wallet_nfts_with_http_info(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], include_all : Annotated[Optional[StrictBool], Field(description="Return all recourses with monitored and non-monitored tokens.")] = None, name : Annotated[Optional[StrictStr], Field(description="Filter by token name.")] = None, token_address : Annotated[Optional[StrictStr], Field(description="Filter by token addresses.")] = None, standard : Annotated[Optional[StrictStr], Field(description="Filter by the token standard.")] = 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
|
|
603
|
+
"""Get NFTs for a wallet # noqa: E501
|
|
604
|
+
|
|
605
|
+
Fetches the info for all NFTs stored in a single developer-controlled wallet, using the wallets unique identifier. # noqa: E501
|
|
606
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
607
|
+
asynchronous HTTP request, please pass async_req=True
|
|
608
|
+
|
|
609
|
+
>>> thread = api.list_wallet_nfts_with_http_info(id, include_all, name, token_address, standard, page_before, page_after, page_size, async_req=True)
|
|
610
|
+
>>> result = thread.get()
|
|
611
|
+
|
|
612
|
+
:param id: Wallet ID (required)
|
|
613
|
+
:type id: str
|
|
614
|
+
:param include_all: Return all recourses with monitored and non-monitored tokens.
|
|
615
|
+
:type include_all: bool
|
|
616
|
+
:param name: Filter by token name.
|
|
617
|
+
:type name: str
|
|
618
|
+
:param token_address: Filter by token addresses.
|
|
619
|
+
:type token_address: str
|
|
620
|
+
:param standard: Filter by the token standard.
|
|
621
|
+
:type standard: str
|
|
622
|
+
: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.
|
|
623
|
+
:type page_before: str
|
|
624
|
+
: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.
|
|
625
|
+
:type page_after: str
|
|
626
|
+
: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.
|
|
627
|
+
:type page_size: int
|
|
628
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
629
|
+
:type async_req: bool, optional
|
|
630
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
631
|
+
be set to none and raw_data will store the
|
|
632
|
+
HTTP response body without reading/decoding.
|
|
633
|
+
Default is True.
|
|
634
|
+
:type _preload_content: bool, optional
|
|
635
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
636
|
+
object with status code, headers, etc
|
|
637
|
+
:type _return_http_data_only: bool, optional
|
|
638
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
639
|
+
number provided, it will be total request
|
|
640
|
+
timeout. It can also be a pair (tuple) of
|
|
641
|
+
(connection, read) timeouts.
|
|
642
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
643
|
+
request; this effectively ignores the authentication
|
|
644
|
+
in the spec for a single request.
|
|
645
|
+
:type _request_auth: dict, optional
|
|
646
|
+
:type _content_type: string, optional: force content-type for the request
|
|
647
|
+
:return: Returns the result object.
|
|
648
|
+
If the method is called asynchronously,
|
|
649
|
+
returns the request thread.
|
|
650
|
+
:rtype: tuple(ListWalletNfts200Response, status_code(int), headers(HTTPHeaderDict))
|
|
651
|
+
"""
|
|
652
|
+
|
|
653
|
+
_params = locals()
|
|
654
|
+
|
|
655
|
+
_all_params = [
|
|
656
|
+
'id',
|
|
657
|
+
'include_all',
|
|
658
|
+
'name',
|
|
659
|
+
'token_address',
|
|
660
|
+
'standard',
|
|
661
|
+
'page_before',
|
|
662
|
+
'page_after',
|
|
663
|
+
'page_size'
|
|
664
|
+
]
|
|
665
|
+
_all_params.extend(
|
|
666
|
+
[
|
|
667
|
+
'async_req',
|
|
668
|
+
'_return_http_data_only',
|
|
669
|
+
'_preload_content',
|
|
670
|
+
'_request_timeout',
|
|
671
|
+
'_request_auth',
|
|
672
|
+
'_content_type',
|
|
673
|
+
'_headers'
|
|
674
|
+
]
|
|
675
|
+
)
|
|
676
|
+
|
|
677
|
+
# validate the arguments
|
|
678
|
+
for _key, _val in _params['kwargs'].items():
|
|
679
|
+
if _key not in _all_params:
|
|
680
|
+
raise ApiTypeError(
|
|
681
|
+
"Got an unexpected keyword argument '%s'"
|
|
682
|
+
" to method list_wallet_nfts" % _key
|
|
683
|
+
)
|
|
684
|
+
_params[_key] = _val
|
|
685
|
+
del _params['kwargs']
|
|
686
|
+
|
|
687
|
+
_collection_formats = {}
|
|
688
|
+
|
|
689
|
+
# process the path parameters
|
|
690
|
+
_path_params = {}
|
|
691
|
+
if _params['id']:
|
|
692
|
+
_path_params['id'] = _params['id']
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
# process the query parameters
|
|
696
|
+
_query_params = []
|
|
697
|
+
if _params.get('include_all') is not None: # noqa: E501
|
|
698
|
+
_query_params.append(('includeAll', _params['include_all']))
|
|
699
|
+
|
|
700
|
+
if _params.get('name') is not None: # noqa: E501
|
|
701
|
+
_query_params.append(('name', _params['name']))
|
|
702
|
+
|
|
703
|
+
if _params.get('token_address') is not None: # noqa: E501
|
|
704
|
+
_query_params.append(('tokenAddress', _params['token_address']))
|
|
705
|
+
|
|
706
|
+
if _params.get('standard') is not None: # noqa: E501
|
|
707
|
+
_query_params.append(('standard', _params['standard']))
|
|
708
|
+
|
|
709
|
+
if _params.get('page_before') is not None: # noqa: E501
|
|
710
|
+
_query_params.append(('pageBefore', _params['page_before']))
|
|
711
|
+
|
|
712
|
+
if _params.get('page_after') is not None: # noqa: E501
|
|
713
|
+
_query_params.append(('pageAfter', _params['page_after']))
|
|
714
|
+
|
|
715
|
+
if _params.get('page_size') is not None: # noqa: E501
|
|
716
|
+
_query_params.append(('pageSize', _params['page_size']))
|
|
717
|
+
|
|
718
|
+
# process the header parameters
|
|
719
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
720
|
+
# process the form parameters
|
|
721
|
+
_form_params = []
|
|
722
|
+
_files = {}
|
|
723
|
+
# process the body parameter
|
|
724
|
+
_body_params = None
|
|
725
|
+
# set the HTTP header `Accept`
|
|
726
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
727
|
+
['application/json']) # noqa: E501
|
|
728
|
+
|
|
729
|
+
# authentication setting
|
|
730
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
731
|
+
|
|
732
|
+
_response_types_map = {
|
|
733
|
+
'200': "ListWalletNfts200Response",
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
return self.api_client.call_api(
|
|
737
|
+
'/wallets/{id}/nfts', 'GET',
|
|
738
|
+
_path_params,
|
|
739
|
+
_query_params,
|
|
740
|
+
_header_params,
|
|
741
|
+
body=_body_params,
|
|
742
|
+
post_params=_form_params,
|
|
743
|
+
files=_files,
|
|
744
|
+
response_types_map=_response_types_map,
|
|
745
|
+
auth_settings=_auth_settings,
|
|
746
|
+
async_req=_params.get('async_req'),
|
|
747
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
748
|
+
_preload_content=_params.get('_preload_content', True),
|
|
749
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
750
|
+
collection_formats=_collection_formats,
|
|
751
|
+
_request_auth=_params.get('_request_auth'))
|
|
752
|
+
|
|
753
|
+
@auto_fill
|
|
754
|
+
@validate_arguments
|
|
755
|
+
def list_wallets(self, address : Annotated[Optional[StrictStr], Field(description="Filter by the Address of the wallet.")] = None, blockchain : Annotated[Optional[StrictStr], Field(description="Filter by blockchain.")] = None, wallet_set_id : Annotated[Optional[StrictStr], Field(description="Filter by the wallet set the wallet belongs to.")] = None, ref_id : Annotated[Optional[StrictStr], Field(description="Filter by the reference identifier set on the wallet.")] = 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) -> ListWallets200Response: # noqa: E501
|
|
756
|
+
"""List wallets # noqa: E501
|
|
757
|
+
|
|
758
|
+
Retrieves a list of all developer-controlled wallets that fit the specified parameters. # noqa: E501
|
|
759
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
760
|
+
asynchronous HTTP request, please pass async_req=True
|
|
761
|
+
|
|
762
|
+
>>> thread = api.list_wallets(address, blockchain, wallet_set_id, ref_id, var_from, to, page_before, page_after, page_size, async_req=True)
|
|
763
|
+
>>> result = thread.get()
|
|
764
|
+
|
|
765
|
+
:param address: Filter by the Address of the wallet.
|
|
766
|
+
:type address: str
|
|
767
|
+
:param blockchain: Filter by blockchain.
|
|
768
|
+
:type blockchain: str
|
|
769
|
+
:param wallet_set_id: Filter by the wallet set the wallet belongs to.
|
|
770
|
+
:type wallet_set_id: str
|
|
771
|
+
:param ref_id: Filter by the reference identifier set on the wallet.
|
|
772
|
+
:type ref_id: str
|
|
773
|
+
:param var_from: Queries items created since the specified date-time (inclusive) in ISO 8601 format.
|
|
774
|
+
:type var_from: datetime
|
|
775
|
+
:param to: Queries items created before the specified date-time (inclusive) in ISO 8601 format.
|
|
776
|
+
:type to: datetime
|
|
777
|
+
: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.
|
|
778
|
+
:type page_before: str
|
|
779
|
+
: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.
|
|
780
|
+
:type page_after: str
|
|
781
|
+
: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.
|
|
782
|
+
:type page_size: int
|
|
783
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
784
|
+
:type async_req: bool, optional
|
|
785
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
786
|
+
number provided, it will be total request
|
|
787
|
+
timeout. It can also be a pair (tuple) of
|
|
788
|
+
(connection, read) timeouts.
|
|
789
|
+
:return: Returns the result object.
|
|
790
|
+
If the method is called asynchronously,
|
|
791
|
+
returns the request thread.
|
|
792
|
+
:rtype: ListWallets200Response
|
|
793
|
+
"""
|
|
794
|
+
kwargs['_return_http_data_only'] = True
|
|
795
|
+
if '_preload_content' in kwargs:
|
|
796
|
+
raise ValueError("Error! Please call the list_wallets_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
797
|
+
return self.list_wallets_with_http_info(address, blockchain, wallet_set_id, ref_id, var_from, to, page_before, page_after, page_size, **kwargs) # noqa: E501
|
|
798
|
+
|
|
799
|
+
@auto_fill
|
|
800
|
+
@validate_arguments
|
|
801
|
+
def list_wallets_with_http_info(self, address : Annotated[Optional[StrictStr], Field(description="Filter by the Address of the wallet.")] = None, blockchain : Annotated[Optional[StrictStr], Field(description="Filter by blockchain.")] = None, wallet_set_id : Annotated[Optional[StrictStr], Field(description="Filter by the wallet set the wallet belongs to.")] = None, ref_id : Annotated[Optional[StrictStr], Field(description="Filter by the reference identifier set on the wallet.")] = 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
|
|
802
|
+
"""List wallets # noqa: E501
|
|
803
|
+
|
|
804
|
+
Retrieves a list of all developer-controlled wallets that fit the specified parameters. # noqa: E501
|
|
805
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
806
|
+
asynchronous HTTP request, please pass async_req=True
|
|
807
|
+
|
|
808
|
+
>>> thread = api.list_wallets_with_http_info(address, blockchain, wallet_set_id, ref_id, var_from, to, page_before, page_after, page_size, async_req=True)
|
|
809
|
+
>>> result = thread.get()
|
|
810
|
+
|
|
811
|
+
:param address: Filter by the Address of the wallet.
|
|
812
|
+
:type address: str
|
|
813
|
+
:param blockchain: Filter by blockchain.
|
|
814
|
+
:type blockchain: str
|
|
815
|
+
:param wallet_set_id: Filter by the wallet set the wallet belongs to.
|
|
816
|
+
:type wallet_set_id: str
|
|
817
|
+
:param ref_id: Filter by the reference identifier set on the wallet.
|
|
818
|
+
:type ref_id: str
|
|
819
|
+
:param var_from: Queries items created since the specified date-time (inclusive) in ISO 8601 format.
|
|
820
|
+
:type var_from: datetime
|
|
821
|
+
:param to: Queries items created before the specified date-time (inclusive) in ISO 8601 format.
|
|
822
|
+
:type to: datetime
|
|
823
|
+
: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.
|
|
824
|
+
:type page_before: str
|
|
825
|
+
: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.
|
|
826
|
+
:type page_after: str
|
|
827
|
+
: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.
|
|
828
|
+
:type page_size: int
|
|
829
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
830
|
+
:type async_req: bool, optional
|
|
831
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
832
|
+
be set to none and raw_data will store the
|
|
833
|
+
HTTP response body without reading/decoding.
|
|
834
|
+
Default is True.
|
|
835
|
+
:type _preload_content: bool, optional
|
|
836
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
837
|
+
object with status code, headers, etc
|
|
838
|
+
:type _return_http_data_only: bool, optional
|
|
839
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
840
|
+
number provided, it will be total request
|
|
841
|
+
timeout. It can also be a pair (tuple) of
|
|
842
|
+
(connection, read) timeouts.
|
|
843
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
844
|
+
request; this effectively ignores the authentication
|
|
845
|
+
in the spec for a single request.
|
|
846
|
+
:type _request_auth: dict, optional
|
|
847
|
+
:type _content_type: string, optional: force content-type for the request
|
|
848
|
+
:return: Returns the result object.
|
|
849
|
+
If the method is called asynchronously,
|
|
850
|
+
returns the request thread.
|
|
851
|
+
:rtype: tuple(ListWallets200Response, status_code(int), headers(HTTPHeaderDict))
|
|
852
|
+
"""
|
|
853
|
+
|
|
854
|
+
_params = locals()
|
|
855
|
+
|
|
856
|
+
_all_params = [
|
|
857
|
+
'address',
|
|
858
|
+
'blockchain',
|
|
859
|
+
'wallet_set_id',
|
|
860
|
+
'ref_id',
|
|
861
|
+
'var_from',
|
|
862
|
+
'to',
|
|
863
|
+
'page_before',
|
|
864
|
+
'page_after',
|
|
865
|
+
'page_size'
|
|
866
|
+
]
|
|
867
|
+
_all_params.extend(
|
|
868
|
+
[
|
|
869
|
+
'async_req',
|
|
870
|
+
'_return_http_data_only',
|
|
871
|
+
'_preload_content',
|
|
872
|
+
'_request_timeout',
|
|
873
|
+
'_request_auth',
|
|
874
|
+
'_content_type',
|
|
875
|
+
'_headers'
|
|
876
|
+
]
|
|
877
|
+
)
|
|
878
|
+
|
|
879
|
+
# validate the arguments
|
|
880
|
+
for _key, _val in _params['kwargs'].items():
|
|
881
|
+
if _key not in _all_params:
|
|
882
|
+
raise ApiTypeError(
|
|
883
|
+
"Got an unexpected keyword argument '%s'"
|
|
884
|
+
" to method list_wallets" % _key
|
|
885
|
+
)
|
|
886
|
+
_params[_key] = _val
|
|
887
|
+
del _params['kwargs']
|
|
888
|
+
|
|
889
|
+
_collection_formats = {}
|
|
890
|
+
|
|
891
|
+
# process the path parameters
|
|
892
|
+
_path_params = {}
|
|
893
|
+
|
|
894
|
+
# process the query parameters
|
|
895
|
+
_query_params = []
|
|
896
|
+
if _params.get('address') is not None: # noqa: E501
|
|
897
|
+
_query_params.append(('address', _params['address']))
|
|
898
|
+
|
|
899
|
+
if _params.get('blockchain') is not None: # noqa: E501
|
|
900
|
+
_query_params.append(('blockchain', _params['blockchain']))
|
|
901
|
+
|
|
902
|
+
if _params.get('wallet_set_id') is not None: # noqa: E501
|
|
903
|
+
_query_params.append(('walletSetId', _params['wallet_set_id']))
|
|
904
|
+
|
|
905
|
+
if _params.get('ref_id') is not None: # noqa: E501
|
|
906
|
+
_query_params.append(('refId', _params['ref_id']))
|
|
907
|
+
|
|
908
|
+
if _params.get('var_from') is not None: # noqa: E501
|
|
909
|
+
if isinstance(_params['var_from'], datetime):
|
|
910
|
+
_query_params.append(('from', _params['var_from'].strftime(self.api_client.configuration.datetime_format)))
|
|
911
|
+
else:
|
|
912
|
+
_query_params.append(('from', _params['var_from']))
|
|
913
|
+
|
|
914
|
+
if _params.get('to') is not None: # noqa: E501
|
|
915
|
+
if isinstance(_params['to'], datetime):
|
|
916
|
+
_query_params.append(('to', _params['to'].strftime(self.api_client.configuration.datetime_format)))
|
|
917
|
+
else:
|
|
918
|
+
_query_params.append(('to', _params['to']))
|
|
919
|
+
|
|
920
|
+
if _params.get('page_before') is not None: # noqa: E501
|
|
921
|
+
_query_params.append(('pageBefore', _params['page_before']))
|
|
922
|
+
|
|
923
|
+
if _params.get('page_after') is not None: # noqa: E501
|
|
924
|
+
_query_params.append(('pageAfter', _params['page_after']))
|
|
925
|
+
|
|
926
|
+
if _params.get('page_size') is not None: # noqa: E501
|
|
927
|
+
_query_params.append(('pageSize', _params['page_size']))
|
|
928
|
+
|
|
929
|
+
# process the header parameters
|
|
930
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
931
|
+
# process the form parameters
|
|
932
|
+
_form_params = []
|
|
933
|
+
_files = {}
|
|
934
|
+
# process the body parameter
|
|
935
|
+
_body_params = None
|
|
936
|
+
# set the HTTP header `Accept`
|
|
937
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
938
|
+
['application/json']) # noqa: E501
|
|
939
|
+
|
|
940
|
+
# authentication setting
|
|
941
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
942
|
+
|
|
943
|
+
_response_types_map = {
|
|
944
|
+
'200': "ListWallets200Response",
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
return self.api_client.call_api(
|
|
948
|
+
'/wallets', 'GET',
|
|
949
|
+
_path_params,
|
|
950
|
+
_query_params,
|
|
951
|
+
_header_params,
|
|
952
|
+
body=_body_params,
|
|
953
|
+
post_params=_form_params,
|
|
954
|
+
files=_files,
|
|
955
|
+
response_types_map=_response_types_map,
|
|
956
|
+
auth_settings=_auth_settings,
|
|
957
|
+
async_req=_params.get('async_req'),
|
|
958
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
959
|
+
_preload_content=_params.get('_preload_content', True),
|
|
960
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
961
|
+
collection_formats=_collection_formats,
|
|
962
|
+
_request_auth=_params.get('_request_auth'))
|
|
963
|
+
|
|
964
|
+
@auto_fill
|
|
965
|
+
@validate_arguments
|
|
966
|
+
def update_wallet(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], ext_update_wallet_metadata_request : Annotated[ExtUpdateWalletMetadataRequest, Field(..., description="Wallet metadata update request")], **kwargs) -> UpdateWallet200Response: # noqa: E501
|
|
967
|
+
"""Update a wallet # noqa: E501
|
|
968
|
+
|
|
969
|
+
Updates info for a single developer-controlled wallet using it's unique identifier. # noqa: E501
|
|
970
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
971
|
+
asynchronous HTTP request, please pass async_req=True
|
|
972
|
+
|
|
973
|
+
>>> thread = api.update_wallet(id, ext_update_wallet_metadata_request, async_req=True)
|
|
974
|
+
>>> result = thread.get()
|
|
975
|
+
|
|
976
|
+
:param id: Wallet ID (required)
|
|
977
|
+
:type id: str
|
|
978
|
+
:param ext_update_wallet_metadata_request: Wallet metadata update request (required)
|
|
979
|
+
:type ext_update_wallet_metadata_request: ExtUpdateWalletMetadataRequest
|
|
980
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
981
|
+
:type async_req: bool, optional
|
|
982
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
983
|
+
number provided, it will be total request
|
|
984
|
+
timeout. It can also be a pair (tuple) of
|
|
985
|
+
(connection, read) timeouts.
|
|
986
|
+
:return: Returns the result object.
|
|
987
|
+
If the method is called asynchronously,
|
|
988
|
+
returns the request thread.
|
|
989
|
+
:rtype: UpdateWallet200Response
|
|
990
|
+
"""
|
|
991
|
+
kwargs['_return_http_data_only'] = True
|
|
992
|
+
if '_preload_content' in kwargs:
|
|
993
|
+
raise ValueError("Error! Please call the update_wallet_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
994
|
+
return self.update_wallet_with_http_info(id, ext_update_wallet_metadata_request, **kwargs) # noqa: E501
|
|
995
|
+
|
|
996
|
+
@auto_fill
|
|
997
|
+
@validate_arguments
|
|
998
|
+
def update_wallet_with_http_info(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], ext_update_wallet_metadata_request : Annotated[ExtUpdateWalletMetadataRequest, Field(..., description="Wallet metadata update request")], **kwargs) -> ApiResponse: # noqa: E501
|
|
999
|
+
"""Update a wallet # noqa: E501
|
|
1000
|
+
|
|
1001
|
+
Updates info for a single developer-controlled wallet using it's unique identifier. # noqa: E501
|
|
1002
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1003
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1004
|
+
|
|
1005
|
+
>>> thread = api.update_wallet_with_http_info(id, ext_update_wallet_metadata_request, async_req=True)
|
|
1006
|
+
>>> result = thread.get()
|
|
1007
|
+
|
|
1008
|
+
:param id: Wallet ID (required)
|
|
1009
|
+
:type id: str
|
|
1010
|
+
:param ext_update_wallet_metadata_request: Wallet metadata update request (required)
|
|
1011
|
+
:type ext_update_wallet_metadata_request: ExtUpdateWalletMetadataRequest
|
|
1012
|
+
:param async_req: Whether to execute the request asynchronously.
|
|
1013
|
+
:type async_req: bool, optional
|
|
1014
|
+
:param _preload_content: if False, the ApiResponse.data will
|
|
1015
|
+
be set to none and raw_data will store the
|
|
1016
|
+
HTTP response body without reading/decoding.
|
|
1017
|
+
Default is True.
|
|
1018
|
+
:type _preload_content: bool, optional
|
|
1019
|
+
:param _return_http_data_only: response data instead of ApiResponse
|
|
1020
|
+
object with status code, headers, etc
|
|
1021
|
+
:type _return_http_data_only: bool, optional
|
|
1022
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1023
|
+
number provided, it will be total request
|
|
1024
|
+
timeout. It can also be a pair (tuple) of
|
|
1025
|
+
(connection, read) timeouts.
|
|
1026
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1027
|
+
request; this effectively ignores the authentication
|
|
1028
|
+
in the spec for a single request.
|
|
1029
|
+
:type _request_auth: dict, optional
|
|
1030
|
+
:type _content_type: string, optional: force content-type for the request
|
|
1031
|
+
:return: Returns the result object.
|
|
1032
|
+
If the method is called asynchronously,
|
|
1033
|
+
returns the request thread.
|
|
1034
|
+
:rtype: tuple(UpdateWallet200Response, status_code(int), headers(HTTPHeaderDict))
|
|
1035
|
+
"""
|
|
1036
|
+
|
|
1037
|
+
_params = locals()
|
|
1038
|
+
|
|
1039
|
+
_all_params = [
|
|
1040
|
+
'id',
|
|
1041
|
+
'ext_update_wallet_metadata_request'
|
|
1042
|
+
]
|
|
1043
|
+
_all_params.extend(
|
|
1044
|
+
[
|
|
1045
|
+
'async_req',
|
|
1046
|
+
'_return_http_data_only',
|
|
1047
|
+
'_preload_content',
|
|
1048
|
+
'_request_timeout',
|
|
1049
|
+
'_request_auth',
|
|
1050
|
+
'_content_type',
|
|
1051
|
+
'_headers'
|
|
1052
|
+
]
|
|
1053
|
+
)
|
|
1054
|
+
|
|
1055
|
+
# validate the arguments
|
|
1056
|
+
for _key, _val in _params['kwargs'].items():
|
|
1057
|
+
if _key not in _all_params:
|
|
1058
|
+
raise ApiTypeError(
|
|
1059
|
+
"Got an unexpected keyword argument '%s'"
|
|
1060
|
+
" to method update_wallet" % _key
|
|
1061
|
+
)
|
|
1062
|
+
_params[_key] = _val
|
|
1063
|
+
del _params['kwargs']
|
|
1064
|
+
|
|
1065
|
+
_collection_formats = {}
|
|
1066
|
+
|
|
1067
|
+
# process the path parameters
|
|
1068
|
+
_path_params = {}
|
|
1069
|
+
if _params['id']:
|
|
1070
|
+
_path_params['id'] = _params['id']
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
# process the query parameters
|
|
1074
|
+
_query_params = []
|
|
1075
|
+
# process the header parameters
|
|
1076
|
+
_header_params = dict(_params.get('_headers', {}))
|
|
1077
|
+
# process the form parameters
|
|
1078
|
+
_form_params = []
|
|
1079
|
+
_files = {}
|
|
1080
|
+
# process the body parameter
|
|
1081
|
+
_body_params = None
|
|
1082
|
+
if _params['ext_update_wallet_metadata_request'] is not None:
|
|
1083
|
+
_body_params = _params['ext_update_wallet_metadata_request']
|
|
1084
|
+
|
|
1085
|
+
# set the HTTP header `Accept`
|
|
1086
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1087
|
+
['application/json']) # noqa: E501
|
|
1088
|
+
|
|
1089
|
+
# set the HTTP header `Content-Type`
|
|
1090
|
+
_content_types_list = _params.get('_content_type',
|
|
1091
|
+
self.api_client.select_header_content_type(
|
|
1092
|
+
['application/json']))
|
|
1093
|
+
if _content_types_list:
|
|
1094
|
+
_header_params['Content-Type'] = _content_types_list
|
|
1095
|
+
|
|
1096
|
+
# authentication setting
|
|
1097
|
+
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
1098
|
+
|
|
1099
|
+
_response_types_map = {
|
|
1100
|
+
'200': "UpdateWallet200Response",
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
return self.api_client.call_api(
|
|
1104
|
+
'/wallets/{id}', 'PUT',
|
|
1105
|
+
_path_params,
|
|
1106
|
+
_query_params,
|
|
1107
|
+
_header_params,
|
|
1108
|
+
body=_body_params,
|
|
1109
|
+
post_params=_form_params,
|
|
1110
|
+
files=_files,
|
|
1111
|
+
response_types_map=_response_types_map,
|
|
1112
|
+
auth_settings=_auth_settings,
|
|
1113
|
+
async_req=_params.get('async_req'),
|
|
1114
|
+
_return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501
|
|
1115
|
+
_preload_content=_params.get('_preload_content', True),
|
|
1116
|
+
_request_timeout=_params.get('_request_timeout'),
|
|
1117
|
+
collection_formats=_collection_formats,
|
|
1118
|
+
_request_auth=_params.get('_request_auth'))
|