@cobo/cobo-waas2 1.1.1 → 1.2.0

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.
Files changed (183) hide show
  1. package/README.md +16 -3
  2. package/dist/ApiClient.js +1 -1
  3. package/dist/api/OAuthApi.js +16 -15
  4. package/dist/api/TransactionsApi.js +18 -18
  5. package/dist/api/WalletsApi.js +123 -12
  6. package/dist/api/WalletsExchangeWalletApi.js +254 -0
  7. package/dist/api/WalletsMPCWalletsApi.js +8 -8
  8. package/dist/index.js +56 -0
  9. package/dist/model/Activity.js +3 -1
  10. package/dist/model/AddressInfo.js +1 -1
  11. package/dist/model/AddressTransferDestination.js +6 -4
  12. package/dist/model/AddressTransferDestinationAccountOutput.js +2 -2
  13. package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +1 -1
  14. package/dist/model/AssetBalance.js +3 -1
  15. package/dist/model/AssetInfo.js +2 -2
  16. package/dist/model/BabylonStakeExtra.js +9 -0
  17. package/dist/model/CheckAddressValidity200Response.js +2 -2
  18. package/dist/model/CheckAddressesValidity200ResponseInner.js +121 -0
  19. package/dist/model/CheckLoopTransfers200ResponseInner.js +96 -0
  20. package/dist/model/CoboSafeDelegate.js +3 -3
  21. package/dist/model/ContractCallDestination.js +4 -4
  22. package/dist/model/ContractCallParams.js +9 -3
  23. package/dist/model/ContractCallSource.js +6 -6
  24. package/dist/model/CreateSafeWalletParams.js +3 -1
  25. package/dist/model/CreateSmartContractWalletParams.js +3 -3
  26. package/dist/model/CreateStakeActivity.js +23 -4
  27. package/dist/model/CreateStakeActivityExtra.js +15 -9
  28. package/dist/model/CreateTssRequestRequest.js +16 -1
  29. package/dist/model/CreateUnstakeActivity.js +16 -1
  30. package/dist/model/CreateWalletParams.js +9 -9
  31. package/dist/model/CreateWithdrawActivity.js +16 -1
  32. package/dist/model/CreatedWalletInfo.js +21 -9
  33. package/dist/model/EstimateContractCallFeeParams.js +6 -2
  34. package/dist/model/EstimateFeeParams.js +6 -6
  35. package/dist/model/EstimateStakeFee.js +28 -4
  36. package/dist/model/EstimateTransferFeeParams.js +6 -2
  37. package/dist/model/EstimateUnstakeFee.js +21 -1
  38. package/dist/model/EstimateWithdrawFee.js +21 -1
  39. package/dist/model/EstimatedEvmEip1559Fee.js +9 -3
  40. package/dist/model/EstimatedEvmLegacyFee.js +9 -3
  41. package/dist/model/EstimatedFee.js +12 -12
  42. package/dist/model/EstimatedUtxoFee.js +9 -3
  43. package/dist/model/EvmContractCallDestination.js +1 -1
  44. package/dist/model/EvmEip1559FeeRate.js +9 -3
  45. package/dist/model/EvmLegacyFeeRate.js +9 -3
  46. package/dist/model/ExchangeId.js +5 -0
  47. package/dist/model/ExchangeTransferDestination.js +16 -16
  48. package/dist/model/ExchangeTransferSource.js +14 -14
  49. package/dist/model/FeeRate.js +12 -12
  50. package/dist/model/GetToken200Response.js +4 -4
  51. package/dist/model/KeyShareHolder.js +13 -0
  52. package/dist/model/ListAddresses200Response.js +3 -1
  53. package/dist/model/ListAssetBalancesForExchangeWallet200Response.js +123 -0
  54. package/dist/model/ListExchanges200ResponseInner.js +122 -0
  55. package/dist/model/ListKeyShareHolderGroups200Response.js +3 -1
  56. package/dist/model/ListMpcProjects200Response.js +3 -1
  57. package/dist/model/ListMpcVaults200Response.js +3 -1
  58. package/dist/model/ListSupportedAssetsForExchange200Response.js +123 -0
  59. package/dist/model/ListSupportedChains200Response.js +3 -1
  60. package/dist/model/ListSupportedTokens200Response.js +3 -1
  61. package/dist/model/ListTokenBalancesForAddress200Response.js +3 -1
  62. package/dist/model/ListTransactions200Response.js +3 -1
  63. package/dist/model/ListTssRequests200Response.js +3 -1
  64. package/dist/model/ListUtxos200Response.js +3 -1
  65. package/dist/model/ListWallets200Response.js +3 -1
  66. package/dist/model/ListWebhookEndpoints200Response.js +3 -1
  67. package/dist/model/ListWebhookEventLogs200Response.js +3 -1
  68. package/dist/model/ListWebhookEvents200Response.js +3 -1
  69. package/dist/model/MPCWalletInfo.js +26 -0
  70. package/dist/model/MaxTransferableValue.js +3 -1
  71. package/dist/model/MessageSignDestination.js +6 -6
  72. package/dist/model/MessageSignParams.js +6 -2
  73. package/dist/model/MessageSignSource.js +3 -3
  74. package/dist/model/PoolDetailsAllOfValidatorsInfo.js +6 -6
  75. package/dist/model/RefreshToken200Response.js +135 -0
  76. package/dist/model/RefreshTokenRequest.js +2 -2
  77. package/dist/model/SafeContractCallSource.js +3 -1
  78. package/dist/model/SafeTransferSource.js +3 -1
  79. package/dist/model/SafeWallet.js +3 -1
  80. package/dist/model/SmartContractWalletInfo.js +3 -3
  81. package/dist/model/SmartContractWalletType.js +2 -2
  82. package/dist/model/StakingSource.js +6 -6
  83. package/dist/model/Stakings.js +3 -1
  84. package/dist/model/SubWalletAssetBalance.js +13 -11
  85. package/dist/model/TSSRequest.js +26 -2
  86. package/dist/model/TSSRequestWebhookEventData.js +263 -0
  87. package/dist/model/TokenBalance.js +3 -1
  88. package/dist/model/Transaction.js +21 -7
  89. package/dist/model/TransactionDepositFromWalletSource.js +6 -6
  90. package/dist/model/TransactionDepositToAddressDestination.js +2 -2
  91. package/dist/model/TransactionDepositToWalletDestination.js +9 -9
  92. package/dist/model/TransactionDestination.js +26 -26
  93. package/dist/model/TransactionDetail.js +21 -7
  94. package/dist/model/TransactionDetails.js +24 -8
  95. package/dist/model/TransactionEvmContractDestination.js +1 -1
  96. package/dist/model/TransactionExchangeWalletSource.js +6 -6
  97. package/dist/model/TransactionFee.js +12 -12
  98. package/dist/model/TransactionMPCWalletSource.js +13 -0
  99. package/dist/model/TransactionRbf.js +6 -2
  100. package/dist/model/TransactionRbfSource.js +3 -3
  101. package/dist/model/TransactionRequestFee.js +12 -12
  102. package/dist/model/TransactionResult.js +3 -3
  103. package/dist/model/TransactionSmartContractSafeWalletSource.js +3 -1
  104. package/dist/model/TransactionSource.js +29 -23
  105. package/dist/model/TransactionSubStatus.js +5 -0
  106. package/dist/model/TransactionTransferToAddressDestination.js +3 -1
  107. package/dist/model/TransactionTransferToAddressDestinationAccountOutput.js +1 -1
  108. package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +1 -1
  109. package/dist/model/TransactionTransferToWalletDestination.js +9 -9
  110. package/dist/model/TransactionWebhookEventData.js +29 -10
  111. package/dist/model/TransferDestination.js +12 -12
  112. package/dist/model/TransferParams.js +11 -5
  113. package/dist/model/TransferSource.js +15 -15
  114. package/dist/model/UpdateWalletParams.js +12 -12
  115. package/dist/model/UtxoFeeRate.js +9 -3
  116. package/dist/model/WalletInfo.js +24 -12
  117. package/dist/model/WebhookEvent.js +3 -1
  118. package/dist/model/WebhookEventData.js +52 -18
  119. package/dist/model/WebhookEventDataType.js +7 -2
  120. package/dist/model/WebhookEventLog.js +3 -1
  121. package/dist/model/WebhookEventType.js +24 -4
  122. package/docs/AddressInfo.md +1 -1
  123. package/docs/AddressTransferDestination.md +2 -2
  124. package/docs/AddressTransferDestinationAccountOutput.md +1 -1
  125. package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -1
  126. package/docs/AssetInfo.md +1 -1
  127. package/docs/BabylonStakeExtra.md +1 -0
  128. package/docs/CheckAddressValidity200Response.md +1 -1
  129. package/docs/CheckAddressesValidity200ResponseInner.md +10 -0
  130. package/docs/CheckLoopTransfers200ResponseInner.md +10 -0
  131. package/docs/ContractCallDestination.md +1 -1
  132. package/docs/CreateStakeActivity.md +1 -0
  133. package/docs/CreateStakeActivityExtra.md +1 -0
  134. package/docs/CreateTssRequestRequest.md +1 -0
  135. package/docs/CreateUnstakeActivity.md +1 -0
  136. package/docs/CreateWithdrawActivity.md +1 -0
  137. package/docs/CreatedWalletInfo.md +2 -0
  138. package/docs/DevelopersWebhooksApi.md +78 -69
  139. package/docs/EstimateStakeFee.md +1 -0
  140. package/docs/EstimateUnstakeFee.md +1 -0
  141. package/docs/EstimateWithdrawFee.md +1 -0
  142. package/docs/EvmContractCallDestination.md +1 -1
  143. package/docs/ExchangeId.md +2 -0
  144. package/docs/ExchangeTransferDestination.md +2 -2
  145. package/docs/ExchangeTransferSource.md +1 -1
  146. package/docs/GetToken200Response.md +4 -4
  147. package/docs/KeyShareHolder.md +1 -0
  148. package/docs/ListAssetBalancesForExchangeWallet200Response.md +10 -0
  149. package/docs/ListExchanges200ResponseInner.md +10 -0
  150. package/docs/ListSupportedAssetsForExchange200Response.md +10 -0
  151. package/docs/MPCWalletInfo.md +2 -0
  152. package/docs/OAuthApi.md +26 -24
  153. package/docs/RefreshToken200Response.md +13 -0
  154. package/docs/RefreshTokenRequest.md +2 -2
  155. package/docs/SmartContractWalletType.md +1 -1
  156. package/docs/SubWalletAssetBalance.md +2 -2
  157. package/docs/TSSRequest.md +2 -0
  158. package/docs/TSSRequestWebhookEventData.md +29 -0
  159. package/docs/TransactionDepositFromWalletSource.md +1 -1
  160. package/docs/TransactionDepositToAddressDestination.md +1 -1
  161. package/docs/TransactionDepositToWalletDestination.md +2 -2
  162. package/docs/TransactionDestination.md +3 -3
  163. package/docs/TransactionEvmContractDestination.md +1 -1
  164. package/docs/TransactionExchangeWalletSource.md +1 -1
  165. package/docs/TransactionMPCWalletSource.md +1 -0
  166. package/docs/TransactionSource.md +2 -1
  167. package/docs/TransactionSubStatus.md +2 -0
  168. package/docs/TransactionTransferToAddressDestinationAccountOutput.md +1 -1
  169. package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +1 -1
  170. package/docs/TransactionTransferToWalletDestination.md +2 -2
  171. package/docs/TransactionWebhookEventData.md +3 -1
  172. package/docs/TransactionsApi.md +98 -88
  173. package/docs/TransferDestination.md +4 -4
  174. package/docs/TransferParams.md +1 -1
  175. package/docs/TransferSource.md +1 -1
  176. package/docs/WalletInfo.md +2 -0
  177. package/docs/WalletsApi.md +316 -187
  178. package/docs/WalletsExchangeWalletApi.md +230 -0
  179. package/docs/WalletsMPCWalletsApi.md +153 -135
  180. package/docs/WebhookEventData.md +10 -5
  181. package/docs/WebhookEventDataType.md +3 -1
  182. package/docs/WebhookEventType.md +12 -4
  183. package/package.json +1 -1
@@ -23,20 +23,21 @@ Method | HTTP request | Description
23
23
 
24
24
  Cancel transaction
25
25
 
26
- This operation cancels a specified transaction. A transaction can be cancelled if its status is either of the following: - `Submitted` - `PendingScreening` - `PendingAuthorization` - `PendingSignature` A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions from MPC Wallets.</Note>
26
+ This operation cancels a specified transaction. A transaction can be cancelled if its status is either of the following: - `Submitted` - `PendingScreening` - `PendingAuthorization` - `PendingSignature` A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets.</Note>
27
27
 
28
28
  ### Example
29
29
 
30
30
  ```javascript
31
31
  const CoboWaas2 = require('@cobo/cobo-waas2');
32
- // initial default api client
32
+ // Initialize the API client
33
33
  const apiClient = CoboWaas2.ApiClient.instance
34
- // for dev env
35
- // apiClient.setEnv(CoboWaas2.Env.DEV);
36
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
37
- // call api
34
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
35
+ apiClient.setEnv(CoboWaas2.Env.DEV);
36
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
37
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
38
+ // Call the API
38
39
  const apiInstance = new CoboWaas2.TransactionsApi();
39
- const transaction_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The transaction ID.
40
+ const transaction_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
40
41
  apiInstance.cancelTransactionById(transaction_id).then((data) => {
41
42
  console.log('API called successfully. Returned data: ' + data);
42
43
  }, (error) => {
@@ -72,21 +73,22 @@ Name | Type | Description | Notes
72
73
 
73
74
  Call smart contract
74
75
 
75
- This operation creates a transaction to interact with a smart contract on the blockchain. You need to provide details such as the source address, destination address, and the calldata. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. &lt;Note&gt;Currently, this operation only applies to blockchains that have a similar architecture to Ethereum.&lt;/Note&gt;
76
+ This operation creates a transaction to interact with a smart contract on the blockchain. You need to provide details such as the source address, destination address, and the calldata. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. &lt;Note&gt;Currently, this operation only applies to the transactions from MPC Wallets or Smart Contract Wallets on the blockchains that have a similar architecture to Ethereum.&lt;/Note&gt; &lt;Info&gt;If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe&#39;s address of the Smart Contract Wallet, with a transfer amount of &lt;code&gt;0&lt;/code&gt;.&lt;/Info&gt;
76
77
 
77
78
  ### Example
78
79
 
79
80
  ```javascript
80
81
  const CoboWaas2 = require('@cobo/cobo-waas2');
81
- // initial default api client
82
+ // Initialize the API client
82
83
  const apiClient = CoboWaas2.ApiClient.instance
83
- // for dev env
84
- // apiClient.setEnv(CoboWaas2.Env.DEV);
85
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
86
- // call api
84
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
85
+ apiClient.setEnv(CoboWaas2.Env.DEV);
86
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
87
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
88
+ // Call the API
87
89
  const apiInstance = new CoboWaas2.TransactionsApi();
88
90
  const opts = {
89
- 'ContractCallParams': new CoboWaas2.ContractCallParams() // ContractCallParams | The request body for making a contract call.
91
+ 'ContractCallParams': new CoboWaas2.ContractCallParams()
90
92
  };
91
93
  apiInstance.createContractCallTransaction(opts).then((data) => {
92
94
  console.log('API called successfully. Returned data: ' + data);
@@ -123,21 +125,22 @@ Name | Type | Description | Notes
123
125
 
124
126
  Sign message
125
127
 
126
- This operation creates a transaction to sign the provided message using cryptographic techniques. In some scenarios, you want to sign a message for identity authentication or transaction approval. You need to provide details such as the source address, destination address, and the message to be signed. A transaction request for tracking is returned upon successful operation. You can get the signature result by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information). &lt;Note&gt;Currently, only MPC Wallets support this type of transaction to sign a message.&lt;/Note&gt;
128
+ This operation creates a transaction to sign the provided message using cryptographic techniques. In some scenarios, you want to sign a message for identity authentication or transaction approval. You need to provide details such as the source address, destination address, and the message to be signed. A transaction request for tracking is returned upon successful operation. You can get the signature result by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information). &lt;Note&gt;This operation only applies to transactions from MPC Wallets.&lt;/Note&gt;
127
129
 
128
130
  ### Example
129
131
 
130
132
  ```javascript
131
133
  const CoboWaas2 = require('@cobo/cobo-waas2');
132
- // initial default api client
134
+ // Initialize the API client
133
135
  const apiClient = CoboWaas2.ApiClient.instance
134
- // for dev env
135
- // apiClient.setEnv(CoboWaas2.Env.DEV);
136
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
137
- // call api
136
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
137
+ apiClient.setEnv(CoboWaas2.Env.DEV);
138
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
139
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
140
+ // Call the API
138
141
  const apiInstance = new CoboWaas2.TransactionsApi();
139
142
  const opts = {
140
- 'MessageSignParams': new CoboWaas2.MessageSignParams() // MessageSignParams | The request body to create a message sign transaction
143
+ 'MessageSignParams': new CoboWaas2.MessageSignParams()
141
144
  };
142
145
  apiInstance.createMessageSignTransaction(opts).then((data) => {
143
146
  console.log('API called successfully. Returned data: ' + data);
@@ -174,21 +177,22 @@ Name | Type | Description | Notes
174
177
 
175
178
  Transfer token
176
179
 
177
- The operation transfers your assets from a wallet created on Cobo Protal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. &lt;Note&gt;Only MPC Wallets as the transaction source can transfer tokens to multiple addresses by using the &lt;code&gt;utxo_outputs&lt;/code&gt; property.&lt;/Note&gt;
180
+ The operation transfers your assets from a wallet created on Cobo Protal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. &lt;Note&gt;You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the &lt;code&gt;utxo_outputs&lt;/code&gt; property to specify the destination addresses.&lt;/Note&gt; &lt;Info&gt;If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe&#39;s address of the Smart Contract Wallet, with a transfer amount of &lt;code&gt;0&lt;/code&gt;.&lt;/Info&gt;
178
181
 
179
182
  ### Example
180
183
 
181
184
  ```javascript
182
185
  const CoboWaas2 = require('@cobo/cobo-waas2');
183
- // initial default api client
186
+ // Initialize the API client
184
187
  const apiClient = CoboWaas2.ApiClient.instance
185
- // for dev env
186
- // apiClient.setEnv(CoboWaas2.Env.DEV);
187
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
188
- // call api
188
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
189
+ apiClient.setEnv(CoboWaas2.Env.DEV);
190
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
191
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
192
+ // Call the API
189
193
  const apiInstance = new CoboWaas2.TransactionsApi();
190
194
  const opts = {
191
- 'TransferParams': new CoboWaas2.TransferParams() // TransferParams | The request body to create a transfer transaction
195
+ 'TransferParams': new CoboWaas2.TransferParams()
192
196
  };
193
197
  apiInstance.createTransferTransaction(opts).then((data) => {
194
198
  console.log('API called successfully. Returned data: ' + data);
@@ -225,22 +229,23 @@ Name | Type | Description | Notes
225
229
 
226
230
  Drop transaction
227
231
 
228
- This operation drops a specified transaction. Dropping a transaction will trigger an Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It has a higher transaction fee to incentivize miners to prioritize its confirmation over the original one. A transaction can be dropped if its status is &#x60;Broadcasting&#x60;. &lt;ul&gt; &lt;li&gt;For EVM chains, this RBF transaction has a transfer amount of &#x60;0&#x60; and the sending address is the same as the receiving address.&lt;/li&gt; &lt;li&gt;For UTXO chains, this RBF transaction has a transfer amount of &#x60;0&#x60; and the destination address is the same as the change address in the original transaction.&lt;/li&gt; &lt;/ul&gt; A transaction request for tracking is returned upon successful operation. &lt;Note&gt;This operation only applies to transactions from MPC Wallets, excluding transactions in the tokens VET, TRON, TVET, SOL, and TON.&lt;/Note&gt;
232
+ This operation drops a specified transaction. Dropping a transaction will trigger an Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It has a higher transaction fee to incentivize miners to prioritize its confirmation over the original one. A transaction can be dropped if its status is &#x60;Broadcasting&#x60;. &lt;ul&gt; &lt;li&gt;For EVM chains, this RBF transaction has a transfer amount of &#x60;0&#x60; and the sending address is the same as the receiving address.&lt;/li&gt; &lt;li&gt;For UTXO chains, this RBF transaction has a transfer amount of &#x60;0&#x60; and the destination address is the same as the change address in the original transaction.&lt;/li&gt; &lt;/ul&gt; A transaction request for tracking is returned upon successful operation. &lt;Note&gt;This operation only applies to transactions from MPC Wallets and Smart Contract Wallets. It does not apply to transactions on the following chains: VET, TRON, TVET, SOL, and TON.&lt;/Note&gt; &lt;Info&gt;If you drop a transaction from a Smart Contract Wallet, two RBF transactions will be triggered, one for the transaction from the Smart Contract Wallet, and the other for the transaction from the Delegate.&lt;/Info&gt;
229
233
 
230
234
  ### Example
231
235
 
232
236
  ```javascript
233
237
  const CoboWaas2 = require('@cobo/cobo-waas2');
234
- // initial default api client
238
+ // Initialize the API client
235
239
  const apiClient = CoboWaas2.ApiClient.instance
236
- // for dev env
237
- // apiClient.setEnv(CoboWaas2.Env.DEV);
238
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
239
- // call api
240
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
241
+ apiClient.setEnv(CoboWaas2.Env.DEV);
242
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
243
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
244
+ // Call the API
240
245
  const apiInstance = new CoboWaas2.TransactionsApi();
241
- const transaction_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The transaction ID.
246
+ const transaction_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
242
247
  const opts = {
243
- 'TransactionRbf': new CoboWaas2.TransactionRbf() // TransactionRbf | The request body to drop or to speed up transactions
248
+ 'TransactionRbf': new CoboWaas2.TransactionRbf()
244
249
  };
245
250
  apiInstance.dropTransactionById(transaction_id, opts).then((data) => {
246
251
  console.log('API called successfully. Returned data: ' + data);
@@ -284,15 +289,16 @@ This operation estimates the transaction fee rates of a token transfer or a cont
284
289
 
285
290
  ```javascript
286
291
  const CoboWaas2 = require('@cobo/cobo-waas2');
287
- // initial default api client
292
+ // Initialize the API client
288
293
  const apiClient = CoboWaas2.ApiClient.instance
289
- // for dev env
290
- // apiClient.setEnv(CoboWaas2.Env.DEV);
291
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
292
- // call api
294
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
295
+ apiClient.setEnv(CoboWaas2.Env.DEV);
296
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
297
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
298
+ // Call the API
293
299
  const apiInstance = new CoboWaas2.TransactionsApi();
294
300
  const opts = {
295
- 'EstimateFeeParams': new CoboWaas2.EstimateFeeParams() // EstimateFeeParams | The request body to estimate the transaction fee of a token transfer or a contract call.
301
+ 'EstimateFeeParams': new CoboWaas2.EstimateFeeParams()
296
302
  };
297
303
  apiInstance.estimateFee(opts).then((data) => {
298
304
  console.log('API called successfully. Returned data: ' + data);
@@ -335,14 +341,15 @@ This operation retrieves detailed information about a specified transaction, suc
335
341
 
336
342
  ```javascript
337
343
  const CoboWaas2 = require('@cobo/cobo-waas2');
338
- // initial default api client
344
+ // Initialize the API client
339
345
  const apiClient = CoboWaas2.ApiClient.instance
340
- // for dev env
341
- // apiClient.setEnv(CoboWaas2.Env.DEV);
342
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
343
- // call api
346
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
347
+ apiClient.setEnv(CoboWaas2.Env.DEV);
348
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
349
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
350
+ // Call the API
344
351
  const apiInstance = new CoboWaas2.TransactionsApi();
345
- const transaction_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The transaction ID.
352
+ const transaction_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
346
353
  apiInstance.getTransactionById(transaction_id).then((data) => {
347
354
  console.log('API called successfully. Returned data: ' + data);
348
355
  }, (error) => {
@@ -384,31 +391,32 @@ This operation retrieves all the transactions under your organization. You can
384
391
 
385
392
  ```javascript
386
393
  const CoboWaas2 = require('@cobo/cobo-waas2');
387
- // initial default api client
394
+ // Initialize the API client
388
395
  const apiClient = CoboWaas2.ApiClient.instance
389
- // for dev env
390
- // apiClient.setEnv(CoboWaas2.Env.DEV);
391
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
392
- // call api
396
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
397
+ apiClient.setEnv(CoboWaas2.Env.DEV);
398
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
399
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
400
+ // Call the API
393
401
  const apiInstance = new CoboWaas2.TransactionsApi();
394
402
  const opts = {
395
- 'request_id': "web_send_by_user_327_1610444045047", // String | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization.
396
- 'cobo_ids': "20231213122855000000000000000000,20231213122955000000000000000000", // String | A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
397
- 'transaction_ids': "f47ac10b-58cc-4372-a567-0e02b2c3d479,557918d2-632a-4fe1-932f-315711f05fe3", // String | A list of transaction IDs, separated by comma.
398
- 'transaction_hashes': "239861be9a4afe080c359b7fe4a1d035945ec46256b1a0f44d1267c71de8ec28", // String | A list of transaction hashes, separated by comma.
399
- 'types': "Deposit,Withdrawal", // String | A list of transaction types, separated by comma. Possible values include: - `Deposit`: A deposit transaction. - `Withdrawal`: A withdrawal transaction. - `ContractCall`: A transaction that interacts with a smart contract. - `MessageSign`: A transaction that signs a message. - `ExternalSafeTx`: A transaction to a Smart Contract Wallet (Safe{Wallet}) that requires one or multiple signatures to be executed.
400
- 'statuses': "Completed,Failed", // String | A list of transaction statuses, separated by comma. Possible values include: - `Submitted`: The transaction is submitted. - `PendingScreening`: The transaction is pending screening by Risk Control. - `PendingAuthorization`: The transaction is pending approvals. - `PendingSignature`: The transaction is pending signature. - `Broadcasting`: The transaction is being broadcast. - `Confirming`: The transaction is waiting for the required number of confirmations. - `Completed`: The transaction is completed. - `Failed`: The transaction failed. - `Rejected`: The transaction is rejected. - `Pending`: The transaction is pending.
401
- 'wallet_ids': "f47ac10b-58cc-4372-a567-0e02b2c3d479,1ddca562-8434-41c9-8809-d437bad9c868", // String | A list of wallet IDs, separated by comma.
402
- 'chain_ids': "BTC,ETH", // String | A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
403
- 'token_ids': "ETH_USDT,ETH_USDC", // String | A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens).
404
- 'asset_ids': "USDT,USDC", // String | (This concept applies to Exchange Wallets only) A list of asset IDs, separated by comma. An asset ID is the unique identifier of the asset held within your linked exchange account.
405
- 'vault_id': "f47ac10b-58cc-4372-a567-0e02b2c3d479", // String | (This parameter is applicable to MPC Wallets only) The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults).
406
- 'project_id': "f47ac10b-58cc-4372-a567-0e02b2c3d479", // String | The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
407
- 'min_created_timestamp': 1635744000000, // Number | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time.
408
- 'max_created_timestamp': 1635744000000, // Number | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time.
409
- 'limit': 10, // Number | The maximum number of objects to return. For most operations, the value range is [1, 50].
410
- 'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1", // String | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
411
- 'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk" // String | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
403
+ 'request_id': "web_send_by_user_327_1610444045047",
404
+ 'cobo_ids': "20231213122855000000000000000000,20231213122955000000000000000000",
405
+ 'transaction_ids': "f47ac10b-58cc-4372-a567-0e02b2c3d479,557918d2-632a-4fe1-932f-315711f05fe3",
406
+ 'transaction_hashes': "239861be9a4afe080c359b7fe4a1d035945ec46256b1a0f44d1267c71de8ec28",
407
+ 'types': "Deposit,Withdrawal",
408
+ 'statuses': "Completed,Failed",
409
+ 'wallet_ids': "f47ac10b-58cc-4372-a567-0e02b2c3d479,1ddca562-8434-41c9-8809-d437bad9c868",
410
+ 'chain_ids': "BTC,ETH",
411
+ 'token_ids': "ETH_USDT,ETH_USDC",
412
+ 'asset_ids': "USDT,USDC",
413
+ 'vault_id': "f47ac10b-58cc-4372-a567-0e02b2c3d479",
414
+ 'project_id': "f47ac10b-58cc-4372-a567-0e02b2c3d479",
415
+ 'min_created_timestamp': 1635744000000,
416
+ 'max_created_timestamp': 1635744000000,
417
+ 'limit': 10,
418
+ 'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
419
+ 'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
412
420
  };
413
421
  apiInstance.listTransactions(opts).then((data) => {
414
422
  console.log('API called successfully. Returned data: ' + data);
@@ -428,12 +436,12 @@ Name | Type | Description | Notes
428
436
  **transaction_ids** | **String**| A list of transaction IDs, separated by comma. | [optional]
429
437
  **transaction_hashes** | **String**| A list of transaction hashes, separated by comma. | [optional]
430
438
  **types** | **String**| A list of transaction types, separated by comma. Possible values include: - &#x60;Deposit&#x60;: A deposit transaction. - &#x60;Withdrawal&#x60;: A withdrawal transaction. - &#x60;ContractCall&#x60;: A transaction that interacts with a smart contract. - &#x60;MessageSign&#x60;: A transaction that signs a message. - &#x60;ExternalSafeTx&#x60;: A transaction to a Smart Contract Wallet (Safe{Wallet}) that requires one or multiple signatures to be executed. | [optional]
431
- **statuses** | **String**| A list of transaction statuses, separated by comma. Possible values include: - &#x60;Submitted&#x60;: The transaction is submitted. - &#x60;PendingScreening&#x60;: The transaction is pending screening by Risk Control. - &#x60;PendingAuthorization&#x60;: The transaction is pending approvals. - &#x60;PendingSignature&#x60;: The transaction is pending signature. - &#x60;Broadcasting&#x60;: The transaction is being broadcast. - &#x60;Confirming&#x60;: The transaction is waiting for the required number of confirmations. - &#x60;Completed&#x60;: The transaction is completed. - &#x60;Failed&#x60;: The transaction failed. - &#x60;Rejected&#x60;: The transaction is rejected. - &#x60;Pending&#x60;: The transaction is pending. | [optional]
439
+ **statuses** | **String**| A list of transaction statuses, separated by comma. Possible values include: - &#x60;Submitted&#x60;: The transaction is submitted. - &#x60;PendingScreening&#x60;: The transaction is pending screening by Risk Control. - &#x60;PendingAuthorization&#x60;: The transaction is pending approvals. - &#x60;PendingSignature&#x60;: The transaction is pending signature. - &#x60;Broadcasting&#x60;: The transaction is being broadcast. - &#x60;Confirming&#x60;: The transaction is waiting for the required number of confirmations. - &#x60;Completed&#x60;: The transaction is completed. - &#x60;Failed&#x60;: The transaction failed. - &#x60;Rejected&#x60;: The transaction is rejected. - &#x60;Pending&#x60;: The transaction is waiting to be included in the next block of the blockchain. | [optional]
432
440
  **wallet_ids** | **String**| A list of wallet IDs, separated by comma. | [optional]
433
441
  **chain_ids** | **String**| A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). | [optional]
434
442
  **token_ids** | **String**| A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). | [optional]
435
443
  **asset_ids** | **String**| (This concept applies to Exchange Wallets only) A list of asset IDs, separated by comma. An asset ID is the unique identifier of the asset held within your linked exchange account. | [optional]
436
- **vault_id** | **String**| (This parameter is applicable to MPC Wallets only) The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults). | [optional]
444
+ **vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults). | [optional]
437
445
  **project_id** | **String**| The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects). | [optional]
438
446
  **min_created_timestamp** | **Number**| The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time. | [optional]
439
447
  **max_created_timestamp** | **Number**| The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time. | [optional]
@@ -461,22 +469,23 @@ Name | Type | Description | Notes
461
469
 
462
470
  Resend transaction
463
471
 
464
- This operation resends a specified transaction. Resending a transaction initiates a new attempt to process the transaction that failed previously. A transaction can be resent if its status is &#x60;failed&#x60;. A transaction request for tracking is returned upon successful operation. &lt;Note&gt;This operation only applies to transactions in the SOL token from MPC Wallets.&lt;/Note&gt;
472
+ This operation resends a specified transaction. Resending a transaction initiates a new attempt to process the transaction that failed previously. A transaction can be resent if its status is &#x60;failed&#x60;. A transaction request for tracking is returned upon successful operation. &lt;Note&gt;This operation only applies to transactions from MPC Wallets in the SOL token.&lt;/Note&gt;
465
473
 
466
474
  ### Example
467
475
 
468
476
  ```javascript
469
477
  const CoboWaas2 = require('@cobo/cobo-waas2');
470
- // initial default api client
478
+ // Initialize the API client
471
479
  const apiClient = CoboWaas2.ApiClient.instance
472
- // for dev env
473
- // apiClient.setEnv(CoboWaas2.Env.DEV);
474
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
475
- // call api
480
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
481
+ apiClient.setEnv(CoboWaas2.Env.DEV);
482
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
483
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
484
+ // Call the API
476
485
  const apiInstance = new CoboWaas2.TransactionsApi();
477
- const transaction_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The transaction ID.
486
+ const transaction_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
478
487
  const opts = {
479
- 'TransactionResend': new CoboWaas2.TransactionResend() // TransactionResend | The request body to resend transactions
488
+ 'TransactionResend': new CoboWaas2.TransactionResend()
480
489
  };
481
490
  apiInstance.resendTransactionById(transaction_id, opts).then((data) => {
482
491
  console.log('API called successfully. Returned data: ' + data);
@@ -514,22 +523,23 @@ Name | Type | Description | Notes
514
523
 
515
524
  Speed up transaction
516
525
 
517
- This operation accelerates a specified transaction. Speeding up a transaction will trigger an Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It shares the same inputs but has a higher transaction fee to incentivize miners to prioritize its confirmation over the previous one. A transaction can be accelerated if its status is &#x60;Broadcasting&#x60;. A transaction request for tracking is returned upon successful operation. &lt;Note&gt;This operation only applies to transactions from MPC Wallets, excluding transactions in the tokens VET, TRON, TVET, SOL, and TON.&lt;/Note&gt;
526
+ This operation accelerates a specified transaction. Speeding up a transaction will trigger an Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It shares the same inputs but has a higher transaction fee to incentivize miners to prioritize its confirmation over the previous one. A transaction can be accelerated if its status is &#x60;Broadcasting&#x60;. A transaction request for tracking is returned upon successful operation. &lt;Note&gt;This operation only applies to transactions from MPC Wallets and Smart Contract Wallets. It does not apply to transactions on the following chains: VET, TRON, TVET, SOL, and TON.&lt;/Note&gt; &lt;Info&gt;If you speed up a transaction from a Smart Contract Wallet, two RBF transactions will be triggered, one for the transaction from the Smart Contract Wallet, and the other for the transaction from the Delegate.&lt;/Info&gt;
518
527
 
519
528
  ### Example
520
529
 
521
530
  ```javascript
522
531
  const CoboWaas2 = require('@cobo/cobo-waas2');
523
- // initial default api client
532
+ // Initialize the API client
524
533
  const apiClient = CoboWaas2.ApiClient.instance
525
- // for dev env
526
- // apiClient.setEnv(CoboWaas2.Env.DEV);
527
- apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
528
- // call api
534
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
535
+ apiClient.setEnv(CoboWaas2.Env.DEV);
536
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
537
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
538
+ // Call the API
529
539
  const apiInstance = new CoboWaas2.TransactionsApi();
530
- const transaction_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479"; // String | The transaction ID.
540
+ const transaction_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
531
541
  const opts = {
532
- 'TransactionRbf': new CoboWaas2.TransactionRbf() // TransactionRbf | The request body to drop or to speed up transactions
542
+ 'TransactionRbf': new CoboWaas2.TransactionRbf()
533
543
  };
534
544
  apiInstance.speedupTransactionById(transaction_id, opts).then((data) => {
535
545
  console.log('API called successfully. Returned data: ' + data);
@@ -8,10 +8,10 @@ Name | Type | Description | Notes
8
8
  **account_output** | [**AddressTransferDestinationAccountOutput**](AddressTransferDestinationAccountOutput.md) | | [optional]
9
9
  **utxo_outputs** | [**[AddressTransferDestinationUtxoOutputsInner]**](AddressTransferDestinationUtxoOutputsInner.md) | | [optional]
10
10
  **change_address** | **String** | The address used to receive the remaining funds or change from the transaction. | [optional]
11
- **force_internal** | **Boolean** | Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop&#39;s website](https://loop.top/). - &#x60;true&#x60;: The transaction request must be executed as a Loop transfer. - &#x60;false&#x60;: The transaction request may not be executed as a Loop transfer. | [optional]
12
- **force_external** | **Boolean** | Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop&#39;s website](https://loop.top/). - &#x60;true&#x60;: The transaction request must not be executed as a Loop transfer. - &#x60;false&#x60;: The transaction request can be executed as a Loop transfer. | [optional]
11
+ **force_internal** | **Boolean** | Whether the transaction request must be executed as a Loop transfer. For more information about Loop, see [Loop&#39;s website](https://loop.top/). - &#x60;true&#x60;: The transaction request must be executed as a Loop transfer. - &#x60;false&#x60;: The transaction request may not be executed as a Loop transfer. &lt;Note&gt;Please do not set both &#x60;force_internal&#x60; and &#x60;force_internal&#x60; as &#x60;true&#x60;.&lt;/Note&gt; | [optional]
12
+ **force_external** | **Boolean** | Whether the transaction request must not be executed as a Loop transfer. For more information about Loop, see [Loop&#39;s website](https://loop.top/). - &#x60;true&#x60;: The transaction request must not be executed as a Loop transfer. - &#x60;false&#x60;: The transaction request can be executed as a Loop transfer. &lt;Note&gt;Please do not set both &#x60;force_internal&#x60; and &#x60;force_internal&#x60; as &#x60;true&#x60;.&lt;/Note&gt; | [optional]
13
13
  **wallet_id** | **String** | The wallet ID. |
14
- **sub_wallet_id** | **String** | The exchange trading account or the sub-wallet ID. |
15
- **amount** | **String** | The quantity of the token in the transaction. For example, if you trade 1.5 ETH, then the value is &#x60;1.5&#x60;. |
14
+ **trading_account_type** | **String** | The trading account type. |
15
+ **amount** | **String** | The transfer amount. For example, if you trade 1.5 ETH, then the value is &#x60;1.5&#x60;. |
16
16
 
17
17
 
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. |
8
8
  **source** | [**TransferSource**](TransferSource.md) | |
9
- **token_id** | **String** | The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). |
9
+ **token_id** | **String** | The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). For transfers from Exchange Wallets, this property value represents the asset ID. |
10
10
  **destination** | [**TransferDestination**](TransferDestination.md) | |
11
11
  **category_names** | **[String]** | The custom category for you to identify your transactions. | [optional]
12
12
  **description** | **String** | The description of the transfer. | [optional]
@@ -10,6 +10,6 @@ Name | Type | Description | Notes
10
10
  **included_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
11
11
  **excluded_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
12
12
  **delegate** | [**CoboSafeDelegate**](CoboSafeDelegate.md) | |
13
- **sub_wallet_id** | **String** | The exchange trading account or the sub-wallet ID. |
13
+ **trading_account_type** | **String** | The trading account type. |
14
14
 
15
15
 
@@ -10,7 +10,9 @@ Name | Type | Description | Notes
10
10
  **name** | **String** | The wallet name. |
11
11
  **org_id** | **String** | The ID of the owning organization. |
12
12
  **project_id** | **String** | The project ID. | [optional]
13
+ **project_name** | **String** | The project name. | [optional]
13
14
  **vault_id** | **String** | The ID of the owning vault. |
15
+ **vault_name** | **String** | The vault name. | [optional]
14
16
  **apikey** | **String** | The API key of your exchange account. |
15
17
  **exchange_id** | [**ExchangeId**](ExchangeId.md) | |
16
18
  **main_wallet_id** | **String** | The wallet ID of the Main Account associated with the Sub Account. This property is returned only if you are creating or querying an Exchange Wallet (Sub Account). | [optional]