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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
""" # noqa: E501
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
__version__ = "
|
|
13
|
+
__version__ = "8.1.1"
|
|
14
14
|
|
|
15
15
|
# import apis into sdk package
|
|
16
16
|
from circle.web3.developer_controlled_wallets.api.signing_api import SigningApi
|
|
@@ -48,6 +48,7 @@ from circle.web3.developer_controlled_wallets.models.contract_execution_blockcha
|
|
|
48
48
|
from circle.web3.developer_controlled_wallets.models.create_contract_execution_transaction_for_developer import CreateContractExecutionTransactionForDeveloper
|
|
49
49
|
from circle.web3.developer_controlled_wallets.models.create_contract_execution_transaction_for_developer_request import CreateContractExecutionTransactionForDeveloperRequest
|
|
50
50
|
from circle.web3.developer_controlled_wallets.models.create_transfer_transaction_for_developer_request import CreateTransferTransactionForDeveloperRequest
|
|
51
|
+
from circle.web3.developer_controlled_wallets.models.create_transfer_transaction_for_developer_request_blockchain import CreateTransferTransactionForDeveloperRequestBlockchain
|
|
51
52
|
from circle.web3.developer_controlled_wallets.models.create_transfer_transaction_for_developer_response import CreateTransferTransactionForDeveloperResponse
|
|
52
53
|
from circle.web3.developer_controlled_wallets.models.create_transfer_transaction_for_developer_response_data import CreateTransferTransactionForDeveloperResponseData
|
|
53
54
|
from circle.web3.developer_controlled_wallets.models.create_wallet_request import CreateWalletRequest
|
|
@@ -67,6 +68,9 @@ from circle.web3.developer_controlled_wallets.models.estimate_transaction_fee_da
|
|
|
67
68
|
from circle.web3.developer_controlled_wallets.models.estimate_transfer_transaction_fee_request import EstimateTransferTransactionFeeRequest
|
|
68
69
|
from circle.web3.developer_controlled_wallets.models.evm_blockchain import EvmBlockchain
|
|
69
70
|
from circle.web3.developer_controlled_wallets.models.fee_level import FeeLevel
|
|
71
|
+
from circle.web3.developer_controlled_wallets.models.get_lowest_nonce_transaction_response import GetLowestNonceTransactionResponse
|
|
72
|
+
from circle.web3.developer_controlled_wallets.models.get_lowest_nonce_transaction_response_data import GetLowestNonceTransactionResponseData
|
|
73
|
+
from circle.web3.developer_controlled_wallets.models.lowest_nonce_transaction_fee_info import LowestNonceTransactionFeeInfo
|
|
70
74
|
from circle.web3.developer_controlled_wallets.models.new_sca_core import NewScaCore
|
|
71
75
|
from circle.web3.developer_controlled_wallets.models.nft import Nft
|
|
72
76
|
from circle.web3.developer_controlled_wallets.models.nfts import Nfts
|
|
@@ -106,6 +110,7 @@ from circle.web3.developer_controlled_wallets.models.transaction_state import Tr
|
|
|
106
110
|
from circle.web3.developer_controlled_wallets.models.transaction_type import TransactionType
|
|
107
111
|
from circle.web3.developer_controlled_wallets.models.transactions import Transactions
|
|
108
112
|
from circle.web3.developer_controlled_wallets.models.transactions_data import TransactionsData
|
|
113
|
+
from circle.web3.developer_controlled_wallets.models.transfer_blockchain import TransferBlockchain
|
|
109
114
|
from circle.web3.developer_controlled_wallets.models.update_wallet_request import UpdateWalletRequest
|
|
110
115
|
from circle.web3.developer_controlled_wallets.models.update_wallet_set_request import UpdateWalletSetRequest
|
|
111
116
|
from circle.web3.developer_controlled_wallets.models.validate_address import ValidateAddress
|
|
@@ -16,7 +16,9 @@ import functools
|
|
|
16
16
|
from pydantic import validate_arguments, ValidationError
|
|
17
17
|
from typing_extensions import Annotated
|
|
18
18
|
|
|
19
|
-
from pydantic import Field
|
|
19
|
+
from pydantic import Field, StrictStr
|
|
20
|
+
|
|
21
|
+
from typing import Optional
|
|
20
22
|
|
|
21
23
|
from circle.web3.developer_controlled_wallets.models.sign_delegate_action_request import SignDelegateActionRequest
|
|
22
24
|
from circle.web3.developer_controlled_wallets.models.sign_delegate_action_response import SignDelegateActionResponse
|
|
@@ -64,18 +66,20 @@ class SigningApi(object):
|
|
|
64
66
|
|
|
65
67
|
@auto_fill
|
|
66
68
|
@validate_arguments
|
|
67
|
-
def sign_delegate_action(self, sign_delegate_action_request : Annotated[SignDelegateActionRequest, Field(..., description="Schema for the request payload to sign a delegate action.")], **kwargs) -> SignDelegateActionResponse: # noqa: E501
|
|
69
|
+
def sign_delegate_action(self, sign_delegate_action_request : Annotated[SignDelegateActionRequest, Field(..., description="Schema for the request payload to sign a delegate action.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> SignDelegateActionResponse: # noqa: E501
|
|
68
70
|
"""Sign delegate action # noqa: E501
|
|
69
71
|
|
|
70
72
|
Sign a delegate action from a specific developer-controlled wallet. NOTE: This endpoint is only available for NEAR and NEAR-TESTNET. # noqa: E501
|
|
71
73
|
This method makes a synchronous HTTP request by default. To make an
|
|
72
74
|
asynchronous HTTP request, please pass async_req=True
|
|
73
75
|
|
|
74
|
-
>>> thread = api.sign_delegate_action(sign_delegate_action_request, async_req=True)
|
|
76
|
+
>>> thread = api.sign_delegate_action(sign_delegate_action_request, x_request_id, async_req=True)
|
|
75
77
|
>>> result = thread.get()
|
|
76
78
|
|
|
77
79
|
:param sign_delegate_action_request: Schema for the request payload to sign a delegate action. (required)
|
|
78
80
|
:type sign_delegate_action_request: SignDelegateActionRequest
|
|
81
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
82
|
+
:type x_request_id: str
|
|
79
83
|
:param async_req: Whether to execute the request asynchronously.
|
|
80
84
|
:type async_req: bool, optional
|
|
81
85
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -90,22 +94,24 @@ class SigningApi(object):
|
|
|
90
94
|
kwargs['_return_http_data_only'] = True
|
|
91
95
|
if '_preload_content' in kwargs:
|
|
92
96
|
raise ValueError("Error! Please call the sign_delegate_action_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
93
|
-
return self.sign_delegate_action_with_http_info(sign_delegate_action_request, **kwargs) # noqa: E501
|
|
97
|
+
return self.sign_delegate_action_with_http_info(sign_delegate_action_request, x_request_id, **kwargs) # noqa: E501
|
|
94
98
|
|
|
95
99
|
@auto_fill
|
|
96
100
|
@validate_arguments
|
|
97
|
-
def sign_delegate_action_with_http_info(self, sign_delegate_action_request : Annotated[SignDelegateActionRequest, Field(..., description="Schema for the request payload to sign a delegate action.")], **kwargs) -> ApiResponse: # noqa: E501
|
|
101
|
+
def sign_delegate_action_with_http_info(self, sign_delegate_action_request : Annotated[SignDelegateActionRequest, Field(..., description="Schema for the request payload to sign a delegate action.")], 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
|
|
98
102
|
"""Sign delegate action # noqa: E501
|
|
99
103
|
|
|
100
104
|
Sign a delegate action from a specific developer-controlled wallet. NOTE: This endpoint is only available for NEAR and NEAR-TESTNET. # noqa: E501
|
|
101
105
|
This method makes a synchronous HTTP request by default. To make an
|
|
102
106
|
asynchronous HTTP request, please pass async_req=True
|
|
103
107
|
|
|
104
|
-
>>> thread = api.sign_delegate_action_with_http_info(sign_delegate_action_request, async_req=True)
|
|
108
|
+
>>> thread = api.sign_delegate_action_with_http_info(sign_delegate_action_request, x_request_id, async_req=True)
|
|
105
109
|
>>> result = thread.get()
|
|
106
110
|
|
|
107
111
|
:param sign_delegate_action_request: Schema for the request payload to sign a delegate action. (required)
|
|
108
112
|
:type sign_delegate_action_request: SignDelegateActionRequest
|
|
113
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
114
|
+
:type x_request_id: str
|
|
109
115
|
:param async_req: Whether to execute the request asynchronously.
|
|
110
116
|
:type async_req: bool, optional
|
|
111
117
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -134,7 +140,8 @@ class SigningApi(object):
|
|
|
134
140
|
_params = locals()
|
|
135
141
|
|
|
136
142
|
_all_params = [
|
|
137
|
-
'sign_delegate_action_request'
|
|
143
|
+
'sign_delegate_action_request',
|
|
144
|
+
'x_request_id'
|
|
138
145
|
]
|
|
139
146
|
_all_params.extend(
|
|
140
147
|
[
|
|
@@ -167,6 +174,9 @@ class SigningApi(object):
|
|
|
167
174
|
_query_params = []
|
|
168
175
|
# process the header parameters
|
|
169
176
|
_header_params = dict(_params.get('_headers', {}))
|
|
177
|
+
if _params['x_request_id']:
|
|
178
|
+
_header_params['X-Request-Id'] = _params['x_request_id']
|
|
179
|
+
|
|
170
180
|
# process the form parameters
|
|
171
181
|
_form_params = []
|
|
172
182
|
_files = {}
|
|
@@ -215,18 +225,20 @@ class SigningApi(object):
|
|
|
215
225
|
|
|
216
226
|
@auto_fill
|
|
217
227
|
@validate_arguments
|
|
218
|
-
def sign_message(self, sign_message_request : Annotated[SignMessageRequest, Field(..., description="Schema for the request payload to sign a message.")], **kwargs) -> SignatureResponse: # noqa: E501
|
|
228
|
+
def sign_message(self, sign_message_request : Annotated[SignMessageRequest, Field(..., description="Schema for the request payload to sign a message.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> SignatureResponse: # noqa: E501
|
|
219
229
|
"""Sign message # noqa: E501
|
|
220
230
|
|
|
221
|
-
Sign a message from a specified developer-controlled wallet. This endpoint supports message signing for
|
|
231
|
+
Sign a message from a specified developer-controlled wallet. This endpoint supports message signing for Ethereum-based blockchains (using EIP-191), Solana and Aptos (using Ed25519 signatures). Note that Smart Contract Accounts (SCA) are specific to Ethereum and EVM-compatible chains. The difference between Ethereum's EOA and SCA can be found in the [account types guide](https://developers.circle.com/w3s/docs/programmable-wallets-account-types). You can also check the list of Ethereum Dapps that support SCA: https://eip1271.io/.\" You must provide either a `walletId` or a `walletAddress` and `blockchain` pair in the request body. # noqa: E501
|
|
222
232
|
This method makes a synchronous HTTP request by default. To make an
|
|
223
233
|
asynchronous HTTP request, please pass async_req=True
|
|
224
234
|
|
|
225
|
-
>>> thread = api.sign_message(sign_message_request, async_req=True)
|
|
235
|
+
>>> thread = api.sign_message(sign_message_request, x_request_id, async_req=True)
|
|
226
236
|
>>> result = thread.get()
|
|
227
237
|
|
|
228
238
|
:param sign_message_request: Schema for the request payload to sign a message. (required)
|
|
229
239
|
:type sign_message_request: SignMessageRequest
|
|
240
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
241
|
+
:type x_request_id: str
|
|
230
242
|
:param async_req: Whether to execute the request asynchronously.
|
|
231
243
|
:type async_req: bool, optional
|
|
232
244
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -241,22 +253,24 @@ class SigningApi(object):
|
|
|
241
253
|
kwargs['_return_http_data_only'] = True
|
|
242
254
|
if '_preload_content' in kwargs:
|
|
243
255
|
raise ValueError("Error! Please call the sign_message_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
244
|
-
return self.sign_message_with_http_info(sign_message_request, **kwargs) # noqa: E501
|
|
256
|
+
return self.sign_message_with_http_info(sign_message_request, x_request_id, **kwargs) # noqa: E501
|
|
245
257
|
|
|
246
258
|
@auto_fill
|
|
247
259
|
@validate_arguments
|
|
248
|
-
def sign_message_with_http_info(self, sign_message_request : Annotated[SignMessageRequest, Field(..., description="Schema for the request payload to sign a message.")], **kwargs) -> ApiResponse: # noqa: E501
|
|
260
|
+
def sign_message_with_http_info(self, sign_message_request : Annotated[SignMessageRequest, Field(..., description="Schema for the request payload to sign a message.")], 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
|
|
249
261
|
"""Sign message # noqa: E501
|
|
250
262
|
|
|
251
|
-
Sign a message from a specified developer-controlled wallet. This endpoint supports message signing for
|
|
263
|
+
Sign a message from a specified developer-controlled wallet. This endpoint supports message signing for Ethereum-based blockchains (using EIP-191), Solana and Aptos (using Ed25519 signatures). Note that Smart Contract Accounts (SCA) are specific to Ethereum and EVM-compatible chains. The difference between Ethereum's EOA and SCA can be found in the [account types guide](https://developers.circle.com/w3s/docs/programmable-wallets-account-types). You can also check the list of Ethereum Dapps that support SCA: https://eip1271.io/.\" You must provide either a `walletId` or a `walletAddress` and `blockchain` pair in the request body. # noqa: E501
|
|
252
264
|
This method makes a synchronous HTTP request by default. To make an
|
|
253
265
|
asynchronous HTTP request, please pass async_req=True
|
|
254
266
|
|
|
255
|
-
>>> thread = api.sign_message_with_http_info(sign_message_request, async_req=True)
|
|
267
|
+
>>> thread = api.sign_message_with_http_info(sign_message_request, x_request_id, async_req=True)
|
|
256
268
|
>>> result = thread.get()
|
|
257
269
|
|
|
258
270
|
:param sign_message_request: Schema for the request payload to sign a message. (required)
|
|
259
271
|
:type sign_message_request: SignMessageRequest
|
|
272
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
273
|
+
:type x_request_id: str
|
|
260
274
|
:param async_req: Whether to execute the request asynchronously.
|
|
261
275
|
:type async_req: bool, optional
|
|
262
276
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -285,7 +299,8 @@ class SigningApi(object):
|
|
|
285
299
|
_params = locals()
|
|
286
300
|
|
|
287
301
|
_all_params = [
|
|
288
|
-
'sign_message_request'
|
|
302
|
+
'sign_message_request',
|
|
303
|
+
'x_request_id'
|
|
289
304
|
]
|
|
290
305
|
_all_params.extend(
|
|
291
306
|
[
|
|
@@ -318,6 +333,9 @@ class SigningApi(object):
|
|
|
318
333
|
_query_params = []
|
|
319
334
|
# process the header parameters
|
|
320
335
|
_header_params = dict(_params.get('_headers', {}))
|
|
336
|
+
if _params['x_request_id']:
|
|
337
|
+
_header_params['X-Request-Id'] = _params['x_request_id']
|
|
338
|
+
|
|
321
339
|
# process the form parameters
|
|
322
340
|
_form_params = []
|
|
323
341
|
_files = {}
|
|
@@ -366,18 +384,20 @@ class SigningApi(object):
|
|
|
366
384
|
|
|
367
385
|
@auto_fill
|
|
368
386
|
@validate_arguments
|
|
369
|
-
def sign_transaction(self, sign_transaction_request : Annotated[SignTransactionRequest, Field(..., description="Schema for the request payload to sign a transaction.")], **kwargs) -> SignTransactionResponse: # noqa: E501
|
|
387
|
+
def sign_transaction(self, sign_transaction_request : Annotated[SignTransactionRequest, Field(..., description="Schema for the request payload to sign a transaction.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> SignTransactionResponse: # noqa: E501
|
|
370
388
|
"""Sign transaction # noqa: E501
|
|
371
389
|
|
|
372
|
-
Sign a transaction from a specific developer-controlled wallet. NOTE: This endpoint is only available for the following chains: `SOL`, `SOL-DEVNET`, `NEAR`, `NEAR-TESTNET`, `EVM`, `EVM-TESTNET`. Each chain defines its own standard, please refer to [Signing APIs doc](https://learn.circle.com/w3s/signing-apis).
|
|
390
|
+
Sign a transaction from a specific developer-controlled wallet. You must provide either a `walletId` or a `walletAddress` and `blockchain` pair in the request body. NOTE: This endpoint is only available for the following chains: `SOL`, `SOL-DEVNET`, `NEAR`, `NEAR-TESTNET`, `EVM`, `EVM-TESTNET`. Each chain defines its own standard, please refer to [Signing APIs doc](https://learn.circle.com/w3s/signing-apis). # noqa: E501
|
|
373
391
|
This method makes a synchronous HTTP request by default. To make an
|
|
374
392
|
asynchronous HTTP request, please pass async_req=True
|
|
375
393
|
|
|
376
|
-
>>> thread = api.sign_transaction(sign_transaction_request, async_req=True)
|
|
394
|
+
>>> thread = api.sign_transaction(sign_transaction_request, x_request_id, async_req=True)
|
|
377
395
|
>>> result = thread.get()
|
|
378
396
|
|
|
379
397
|
:param sign_transaction_request: Schema for the request payload to sign a transaction. (required)
|
|
380
398
|
:type sign_transaction_request: SignTransactionRequest
|
|
399
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
400
|
+
:type x_request_id: str
|
|
381
401
|
:param async_req: Whether to execute the request asynchronously.
|
|
382
402
|
:type async_req: bool, optional
|
|
383
403
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -392,22 +412,24 @@ class SigningApi(object):
|
|
|
392
412
|
kwargs['_return_http_data_only'] = True
|
|
393
413
|
if '_preload_content' in kwargs:
|
|
394
414
|
raise ValueError("Error! Please call the sign_transaction_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
395
|
-
return self.sign_transaction_with_http_info(sign_transaction_request, **kwargs) # noqa: E501
|
|
415
|
+
return self.sign_transaction_with_http_info(sign_transaction_request, x_request_id, **kwargs) # noqa: E501
|
|
396
416
|
|
|
397
417
|
@auto_fill
|
|
398
418
|
@validate_arguments
|
|
399
|
-
def sign_transaction_with_http_info(self, sign_transaction_request : Annotated[SignTransactionRequest, Field(..., description="Schema for the request payload to sign a transaction.")], **kwargs) -> ApiResponse: # noqa: E501
|
|
419
|
+
def sign_transaction_with_http_info(self, sign_transaction_request : Annotated[SignTransactionRequest, Field(..., description="Schema for the request payload to sign a transaction.")], 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
|
|
400
420
|
"""Sign transaction # noqa: E501
|
|
401
421
|
|
|
402
|
-
Sign a transaction from a specific developer-controlled wallet. NOTE: This endpoint is only available for the following chains: `SOL`, `SOL-DEVNET`, `NEAR`, `NEAR-TESTNET`, `EVM`, `EVM-TESTNET`. Each chain defines its own standard, please refer to [Signing APIs doc](https://learn.circle.com/w3s/signing-apis).
|
|
422
|
+
Sign a transaction from a specific developer-controlled wallet. You must provide either a `walletId` or a `walletAddress` and `blockchain` pair in the request body. NOTE: This endpoint is only available for the following chains: `SOL`, `SOL-DEVNET`, `NEAR`, `NEAR-TESTNET`, `EVM`, `EVM-TESTNET`. Each chain defines its own standard, please refer to [Signing APIs doc](https://learn.circle.com/w3s/signing-apis). # noqa: E501
|
|
403
423
|
This method makes a synchronous HTTP request by default. To make an
|
|
404
424
|
asynchronous HTTP request, please pass async_req=True
|
|
405
425
|
|
|
406
|
-
>>> thread = api.sign_transaction_with_http_info(sign_transaction_request, async_req=True)
|
|
426
|
+
>>> thread = api.sign_transaction_with_http_info(sign_transaction_request, x_request_id, async_req=True)
|
|
407
427
|
>>> result = thread.get()
|
|
408
428
|
|
|
409
429
|
:param sign_transaction_request: Schema for the request payload to sign a transaction. (required)
|
|
410
430
|
:type sign_transaction_request: SignTransactionRequest
|
|
431
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
432
|
+
:type x_request_id: str
|
|
411
433
|
:param async_req: Whether to execute the request asynchronously.
|
|
412
434
|
:type async_req: bool, optional
|
|
413
435
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -436,7 +458,8 @@ class SigningApi(object):
|
|
|
436
458
|
_params = locals()
|
|
437
459
|
|
|
438
460
|
_all_params = [
|
|
439
|
-
'sign_transaction_request'
|
|
461
|
+
'sign_transaction_request',
|
|
462
|
+
'x_request_id'
|
|
440
463
|
]
|
|
441
464
|
_all_params.extend(
|
|
442
465
|
[
|
|
@@ -469,6 +492,9 @@ class SigningApi(object):
|
|
|
469
492
|
_query_params = []
|
|
470
493
|
# process the header parameters
|
|
471
494
|
_header_params = dict(_params.get('_headers', {}))
|
|
495
|
+
if _params['x_request_id']:
|
|
496
|
+
_header_params['X-Request-Id'] = _params['x_request_id']
|
|
497
|
+
|
|
472
498
|
# process the form parameters
|
|
473
499
|
_form_params = []
|
|
474
500
|
_files = {}
|
|
@@ -517,18 +543,20 @@ class SigningApi(object):
|
|
|
517
543
|
|
|
518
544
|
@auto_fill
|
|
519
545
|
@validate_arguments
|
|
520
|
-
def sign_typed_data(self, sign_typed_data_request : Annotated[SignTypedDataRequest, Field(..., description="Schema for the request payload to sign typed data.")], **kwargs) -> SignatureResponse: # noqa: E501
|
|
546
|
+
def sign_typed_data(self, sign_typed_data_request : Annotated[SignTypedDataRequest, Field(..., description="Schema for the request payload to sign typed data.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> SignatureResponse: # noqa: E501
|
|
521
547
|
"""Sign typed data # noqa: E501
|
|
522
548
|
|
|
523
|
-
Sign the EIP-712 typed structured data from a specified developer-controlled wallet. This endpoint only supports Ethereum and EVM-compatible blockchains. Please note that not all
|
|
549
|
+
| Sign the EIP-712 typed structured data from a specified developer-controlled wallet. You must provide either a `walletId` or a `walletAddress` and `blockchain` pair in the request body. This endpoint only supports Ethereum and EVM-compatible blockchains. Please note that not all apps currently support Smart Contract Accounts (SCA); the difference between Ethereum's EOA and SCA can be found in the [account types guide](https://developers.circle.com/w3s/docs/programmable-wallets-account-types). You can also check the list of Ethereum apps that support SCA: https://eip1271.io/. # noqa: E501
|
|
524
550
|
This method makes a synchronous HTTP request by default. To make an
|
|
525
551
|
asynchronous HTTP request, please pass async_req=True
|
|
526
552
|
|
|
527
|
-
>>> thread = api.sign_typed_data(sign_typed_data_request, async_req=True)
|
|
553
|
+
>>> thread = api.sign_typed_data(sign_typed_data_request, x_request_id, async_req=True)
|
|
528
554
|
>>> result = thread.get()
|
|
529
555
|
|
|
530
556
|
:param sign_typed_data_request: Schema for the request payload to sign typed data. (required)
|
|
531
557
|
:type sign_typed_data_request: SignTypedDataRequest
|
|
558
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
559
|
+
:type x_request_id: str
|
|
532
560
|
:param async_req: Whether to execute the request asynchronously.
|
|
533
561
|
:type async_req: bool, optional
|
|
534
562
|
:param _request_timeout: timeout setting for this request. If one
|
|
@@ -543,22 +571,24 @@ class SigningApi(object):
|
|
|
543
571
|
kwargs['_return_http_data_only'] = True
|
|
544
572
|
if '_preload_content' in kwargs:
|
|
545
573
|
raise ValueError("Error! Please call the sign_typed_data_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
546
|
-
return self.sign_typed_data_with_http_info(sign_typed_data_request, **kwargs) # noqa: E501
|
|
574
|
+
return self.sign_typed_data_with_http_info(sign_typed_data_request, x_request_id, **kwargs) # noqa: E501
|
|
547
575
|
|
|
548
576
|
@auto_fill
|
|
549
577
|
@validate_arguments
|
|
550
|
-
def sign_typed_data_with_http_info(self, sign_typed_data_request : Annotated[SignTypedDataRequest, Field(..., description="Schema for the request payload to sign typed data.")], **kwargs) -> ApiResponse: # noqa: E501
|
|
578
|
+
def sign_typed_data_with_http_info(self, sign_typed_data_request : Annotated[SignTypedDataRequest, Field(..., description="Schema for the request payload to sign typed data.")], 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
|
|
551
579
|
"""Sign typed data # noqa: E501
|
|
552
580
|
|
|
553
|
-
Sign the EIP-712 typed structured data from a specified developer-controlled wallet. This endpoint only supports Ethereum and EVM-compatible blockchains. Please note that not all
|
|
581
|
+
| Sign the EIP-712 typed structured data from a specified developer-controlled wallet. You must provide either a `walletId` or a `walletAddress` and `blockchain` pair in the request body. This endpoint only supports Ethereum and EVM-compatible blockchains. Please note that not all apps currently support Smart Contract Accounts (SCA); the difference between Ethereum's EOA and SCA can be found in the [account types guide](https://developers.circle.com/w3s/docs/programmable-wallets-account-types). You can also check the list of Ethereum apps that support SCA: https://eip1271.io/. # noqa: E501
|
|
554
582
|
This method makes a synchronous HTTP request by default. To make an
|
|
555
583
|
asynchronous HTTP request, please pass async_req=True
|
|
556
584
|
|
|
557
|
-
>>> thread = api.sign_typed_data_with_http_info(sign_typed_data_request, async_req=True)
|
|
585
|
+
>>> thread = api.sign_typed_data_with_http_info(sign_typed_data_request, x_request_id, async_req=True)
|
|
558
586
|
>>> result = thread.get()
|
|
559
587
|
|
|
560
588
|
:param sign_typed_data_request: Schema for the request payload to sign typed data. (required)
|
|
561
589
|
:type sign_typed_data_request: SignTypedDataRequest
|
|
590
|
+
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
591
|
+
:type x_request_id: str
|
|
562
592
|
:param async_req: Whether to execute the request asynchronously.
|
|
563
593
|
:type async_req: bool, optional
|
|
564
594
|
:param _preload_content: if False, the ApiResponse.data will
|
|
@@ -587,7 +617,8 @@ class SigningApi(object):
|
|
|
587
617
|
_params = locals()
|
|
588
618
|
|
|
589
619
|
_all_params = [
|
|
590
|
-
'sign_typed_data_request'
|
|
620
|
+
'sign_typed_data_request',
|
|
621
|
+
'x_request_id'
|
|
591
622
|
]
|
|
592
623
|
_all_params.extend(
|
|
593
624
|
[
|
|
@@ -620,6 +651,9 @@ class SigningApi(object):
|
|
|
620
651
|
_query_params = []
|
|
621
652
|
# process the header parameters
|
|
622
653
|
_header_params = dict(_params.get('_headers', {}))
|
|
654
|
+
if _params['x_request_id']:
|
|
655
|
+
_header_params['X-Request-Id'] = _params['x_request_id']
|
|
656
|
+
|
|
623
657
|
# process the form parameters
|
|
624
658
|
_form_params = []
|
|
625
659
|
_files = {}
|