@cobo/cobo-waas2 1.8.0 → 1.10.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.
- package/README.md +117 -33
- package/dist/ApiClient.js +11 -1
- package/dist/api/AddressBooksApi.js +1 -1
- package/dist/api/DevelopersApi.js +7 -7
- package/dist/api/DevelopersWebhooksApi.js +8 -8
- package/dist/api/PrimeBrokerApi.js +317 -0
- package/dist/api/StakingsApi.js +412 -18
- package/dist/api/SwapsApi.js +360 -0
- package/dist/api/TransactionsApi.js +64 -20
- package/dist/api/TravelRuleApi.js +18 -18
- package/dist/api/WalletsApi.js +84 -13
- package/dist/api/WalletsExchangeWalletApi.js +1 -1
- package/dist/api/WalletsMPCWalletsApi.js +151 -39
- package/dist/api/WalletsSmartContractWalletsApi.js +1 -1
- package/dist/index.js +276 -10
- package/dist/model/ActivityExtra.js +5 -5
- package/dist/model/AddressBalance.js +129 -0
- package/dist/model/AddressTransferDestination.js +36 -0
- package/dist/model/AddressesEventData.js +4 -4
- package/dist/model/AddressesEventDataAllOfAddresses.js +295 -0
- package/dist/model/ApprovalStatementStatus.js +81 -0
- package/dist/model/AssetBalance.js +6 -6
- package/dist/model/BTCEIP191MessageSignDestination.js +122 -0
- package/dist/model/BabylonAirdropPop.js +186 -0
- package/dist/model/BabylonAirdropRegistration.js +172 -0
- package/dist/model/BabylonEligibleAirdrop.js +157 -0
- package/dist/model/BabylonRegistrationRequestStatus.js +66 -0
- package/dist/model/BabylonRegistrationStatus.js +66 -0
- package/dist/model/BabylonStakingActivityDetailExtra.js +1 -1
- package/dist/model/BabylonStakingRegistration.js +185 -0
- package/dist/model/{TokenBalanceBalance.js → Balance.js} +22 -22
- package/dist/model/{SwapSummary.js → ChangeGuardPubkey200Response.js} +28 -39
- package/dist/model/ContractCallParams.js +36 -0
- package/dist/model/ContractCallSource.js +6 -0
- package/dist/model/CoreStakingActivityDetailExtra.js +3 -3
- package/dist/model/CreateAddressRequest.js +28 -2
- package/dist/model/CreateBabylonAirdropRegistration201Response.js +87 -0
- package/dist/model/CreateBabylonAirdropRegistrationRequest.js +105 -0
- package/dist/model/CreateBabylonStakingRegistration201Response.js +87 -0
- package/dist/model/CreateBabylonStakingRegistrationRequest.js +103 -0
- package/dist/model/CreatePrimeBrokerAddress201Response.js +140 -0
- package/dist/model/CreatePrimeBrokerAddressRequest.js +107 -0
- package/dist/model/CreateSwapActivityRequest.js +153 -0
- package/dist/model/CreateSwapQuote201Response.js +264 -0
- package/dist/model/CreateSwapQuoteRequest.js +166 -0
- package/dist/model/DeleteGuardPubkey201Response.js +110 -0
- package/dist/model/EthStakeEstimatedFee.js +1 -1
- package/dist/model/EthStakingActivityDetailExtra.js +1 -1
- package/dist/model/GetStakingEstimationFee201Response.js +1 -1
- package/dist/model/GetTransactionLimitation200Response.js +4 -4
- package/dist/model/GuardPubkeyStatus.js +91 -0
- package/dist/model/ListAddressBalancesByToken200Response.js +123 -0
- package/dist/model/ListBabylonAirdropRegistrations200Response.js +123 -0
- package/dist/model/ListBabylonEligibleAirdrops200Response.js +123 -0
- package/dist/model/ListBabylonEligibleStakings200Response.js +123 -0
- package/dist/model/ListBabylonEligibleStakings200ResponseDataInner.js +141 -0
- package/dist/model/ListBabylonStakingRegistrations200Response.js +123 -0
- package/dist/model/ListEnableTokenPairs200Response.js +123 -0
- package/dist/model/ListKeyShareHolders200Response.js +123 -0
- package/dist/model/ListSwapActivities200Response.js +123 -0
- package/dist/model/MessageSignDestination.js +70 -8
- package/dist/model/MessageSignDestinationType.js +12 -2
- package/dist/model/MessageSignSource.js +6 -0
- package/dist/model/MpcContractCallSource.js +16 -0
- package/dist/model/MpcMessageSignSource.js +16 -0
- package/dist/model/MpcSigningGroup.js +27 -4
- package/dist/model/MpcTransferSource.js +16 -0
- package/dist/model/OrgInfo.js +3 -3
- package/dist/model/QueryApprovalStatement200Response.js +122 -0
- package/dist/model/QueryGuardPubkey200Response.js +129 -0
- package/dist/model/QueryGuardPubkey200ResponseAddressesInner.js +125 -0
- package/dist/model/RootPubkey.js +1 -1
- package/dist/model/SelfCustodyWallet.js +7 -7
- package/dist/model/StakingPoolId.js +30 -0
- package/dist/model/StakingPoolType.js +15 -0
- package/dist/model/SubWalletAssetBalance.js +6 -6
- package/dist/model/SubmitDepositTravelRuleInfo201Response.js +1 -1
- package/dist/model/SwapQuote.js +203 -0
- package/dist/model/TSSGroups.js +1 -1
- package/dist/model/TokenBalance.js +6 -6
- package/dist/model/TransactionDepositToAddressDestination.js +16 -0
- package/dist/model/TransactionDepositToAddressDestinationTxInfo.js +83 -0
- package/dist/model/TransactionDestination.js +10 -4
- package/dist/model/TransactionRawTxInfo.js +29 -0
- package/dist/model/TransactionRbfSource.js +6 -0
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionUserApprovalDetail.js +3 -3
- package/dist/model/TransactionUtxoChange.js +101 -0
- package/dist/model/TransferDestination.js +6 -0
- package/dist/model/TransferParams.js +36 -0
- package/dist/model/TransferSource.js +6 -0
- package/dist/model/TravelRuleDepositExchangesOrVASP.js +4 -4
- package/dist/model/TravelRuleDepositExchangesOrVASPEntityInfo.js +7 -7
- package/dist/model/TravelRuleDepositLegalEntity.js +5 -5
- package/dist/model/TravelRuleDepositNaturalEntity.js +9 -9
- package/dist/model/TravelRuleDepositRequestTravelRuleInfo.js +5 -5
- package/dist/model/TravelRuleWithdrawExchangesOrVASP.js +3 -3
- package/dist/model/TravelRuleWithdrawExchangesOrVASPEntityInfo.js +5 -5
- package/dist/model/TravelRuleWithdrawLegalEntity.js +2 -2
- package/dist/model/TravelRuleWithdrawNaturalEntity.js +7 -7
- package/dist/model/TravelRuleWithdrawRequestTravelRuleInfo.js +4 -4
- package/dist/model/Vasp.js +7 -7
- package/dist/model/WebhookEventData.js +2 -2
- package/docs/ActivityExtra.md +5 -5
- package/docs/AddressBalance.md +10 -0
- package/docs/AddressBooksApi.md +1 -1
- package/docs/AddressTransferDestination.md +14 -0
- package/docs/AddressesEventData.md +1 -1
- package/docs/AddressesEventDataAllOfAddresses.md +19 -0
- package/docs/ApprovalStatementStatus.md +20 -0
- package/docs/AssetBalance.md +1 -1
- package/docs/BTCEIP191MessageSignDestination.md +10 -0
- package/docs/BabylonAirdropPop.md +14 -0
- package/docs/BabylonAirdropRegistration.md +16 -0
- package/docs/BabylonEligibleAirdrop.md +14 -0
- package/docs/BabylonRegistrationRequestStatus.md +14 -0
- package/docs/BabylonRegistrationStatus.md +14 -0
- package/docs/BabylonStakingActivityDetailExtra.md +1 -1
- package/docs/BabylonStakingRegistration.md +17 -0
- package/docs/{TokenBalanceBalance.md → Balance.md} +1 -1
- package/docs/ChangeGuardPubkey200Response.md +9 -0
- package/docs/ContractCallParams.md +14 -0
- package/docs/ContractCallSource.md +1 -0
- package/docs/CoreStakingActivityDetailExtra.md +3 -3
- package/docs/CreateAddressRequest.md +3 -1
- package/docs/CreateBabylonAirdropRegistration201Response.md +9 -0
- package/docs/CreateBabylonAirdropRegistrationRequest.md +10 -0
- package/docs/CreateBabylonStakingRegistration201Response.md +9 -0
- package/docs/CreateBabylonStakingRegistrationRequest.md +10 -0
- package/docs/CreatePrimeBrokerAddress201Response.md +10 -0
- package/docs/CreatePrimeBrokerAddressRequest.md +9 -0
- package/docs/CreateSwapActivityRequest.md +12 -0
- package/docs/CreateSwapQuote201Response.md +17 -0
- package/docs/CreateSwapQuoteRequest.md +13 -0
- package/docs/DeleteGuardPubkey201Response.md +9 -0
- package/docs/DevelopersApi.md +5 -5
- package/docs/DevelopersWebhooksApi.md +8 -8
- package/docs/EthStakeEstimatedFee.md +1 -1
- package/docs/EthStakingActivityDetailExtra.md +1 -1
- package/docs/GetStakingEstimationFee201Response.md +1 -1
- package/docs/GetTransactionLimitation200Response.md +4 -4
- package/docs/GuardPubkeyStatus.md +24 -0
- package/docs/ListAddressBalancesByToken200Response.md +10 -0
- package/docs/ListBabylonAirdropRegistrations200Response.md +10 -0
- package/docs/ListBabylonEligibleAirdrops200Response.md +10 -0
- package/docs/ListBabylonEligibleStakings200Response.md +10 -0
- package/docs/ListBabylonEligibleStakings200ResponseDataInner.md +13 -0
- package/docs/ListBabylonStakingRegistrations200Response.md +10 -0
- package/docs/ListEnableTokenPairs200Response.md +10 -0
- package/docs/ListKeyShareHolders200Response.md +10 -0
- package/docs/ListSwapActivities200Response.md +10 -0
- package/docs/MessageSignDestination.md +1 -0
- package/docs/MessageSignDestinationType.md +6 -2
- package/docs/MessageSignSource.md +1 -0
- package/docs/MpcContractCallSource.md +1 -0
- package/docs/MpcMessageSignSource.md +1 -0
- package/docs/MpcSigningGroup.md +1 -1
- package/docs/MpcTransferSource.md +1 -0
- package/docs/OrgInfo.md +1 -1
- package/docs/PrimeBrokerApi.md +318 -0
- package/docs/QueryApprovalStatement200Response.md +12 -0
- package/docs/QueryGuardPubkey200Response.md +11 -0
- package/docs/QueryGuardPubkey200ResponseAddressesInner.md +10 -0
- package/docs/RootPubkey.md +1 -1
- package/docs/SelfCustodyWallet.md +3 -3
- package/docs/StakingPoolId.md +12 -0
- package/docs/StakingPoolType.md +6 -0
- package/docs/StakingsApi.md +460 -12
- package/docs/SubWalletAssetBalance.md +1 -1
- package/docs/SubmitDepositTravelRuleInfo201Response.md +1 -1
- package/docs/SwapQuote.md +16 -0
- package/docs/SwapsApi.md +348 -0
- package/docs/TSSGroups.md +1 -1
- package/docs/TokenBalance.md +1 -1
- package/docs/TransactionDepositToAddressDestination.md +1 -0
- package/docs/TransactionDepositToAddressDestinationTxInfo.md +9 -0
- package/docs/TransactionDestination.md +1 -0
- package/docs/TransactionRawTxInfo.md +2 -0
- package/docs/TransactionRbfSource.md +1 -0
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionUserApprovalDetail.md +3 -3
- package/docs/TransactionUtxoChange.md +10 -0
- package/docs/TransactionsApi.md +68 -17
- package/docs/TransferDestination.md +14 -0
- package/docs/TransferParams.md +14 -0
- package/docs/TransferSource.md +1 -0
- package/docs/TravelRuleApi.md +13 -13
- package/docs/TravelRuleDepositExchangesOrVASP.md +2 -2
- package/docs/TravelRuleDepositExchangesOrVASPEntityInfo.md +7 -7
- package/docs/TravelRuleDepositLegalEntity.md +3 -3
- package/docs/TravelRuleDepositNaturalEntity.md +5 -5
- package/docs/TravelRuleDepositRequestTravelRuleInfo.md +5 -5
- package/docs/TravelRuleWithdrawExchangesOrVASP.md +1 -1
- package/docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md +5 -5
- package/docs/TravelRuleWithdrawLegalEntity.md +1 -1
- package/docs/TravelRuleWithdrawNaturalEntity.md +4 -4
- package/docs/TravelRuleWithdrawRequestTravelRuleInfo.md +4 -4
- package/docs/Vasp.md +3 -3
- package/docs/WalletsApi.md +78 -13
- package/docs/WalletsExchangeWalletApi.md +1 -1
- package/docs/WalletsMPCWalletsApi.md +141 -27
- package/docs/WalletsSmartContractWalletsApi.md +1 -1
- package/docs/WebhookEventData.md +1 -1
- package/package.json +2 -2
- package/docs/SwapSummary.md +0 -10
|
@@ -10,12 +10,14 @@ Method | HTTP request | Description
|
|
|
10
10
|
[**createMpcVault**](WalletsMPCWalletsApi.md#createMpcVault) | **POST** /wallets/mpc/vaults | Create vault
|
|
11
11
|
[**createTssRequest**](WalletsMPCWalletsApi.md#createTssRequest) | **POST** /wallets/mpc/vaults/{vault_id}/tss_requests | Create TSS request
|
|
12
12
|
[**deleteKeyShareHolderGroupById**](WalletsMPCWalletsApi.md#deleteKeyShareHolderGroupById) | **POST** /wallets/mpc/vaults/{vault_id}/key_share_holder_groups/{key_share_holder_group_id}/delete | Delete key share holder group
|
|
13
|
+
[**getKeyShareHolderByTssNodeId**](WalletsMPCWalletsApi.md#getKeyShareHolderByTssNodeId) | **GET** /wallets/mpc/vaults/{vault_id}/key_share_holders/{tss_node_id} | Get key share holder information
|
|
13
14
|
[**getKeyShareHolderGroupById**](WalletsMPCWalletsApi.md#getKeyShareHolderGroupById) | **GET** /wallets/mpc/vaults/{vault_id}/key_share_holder_groups/{key_share_holder_group_id} | Get key share holder group information
|
|
14
15
|
[**getMpcProjectById**](WalletsMPCWalletsApi.md#getMpcProjectById) | **GET** /wallets/mpc/projects/{project_id} | Get project information
|
|
15
16
|
[**getMpcVaultById**](WalletsMPCWalletsApi.md#getMpcVaultById) | **GET** /wallets/mpc/vaults/{vault_id} | Get vault information
|
|
16
17
|
[**getTssRequestById**](WalletsMPCWalletsApi.md#getTssRequestById) | **GET** /wallets/mpc/vaults/{vault_id}/tss_requests/{tss_request_id} | Get TSS request
|
|
17
18
|
[**listCoboKeyHolders**](WalletsMPCWalletsApi.md#listCoboKeyHolders) | **GET** /wallets/mpc/cobo_key_share_holders | List all Cobo key share holders
|
|
18
19
|
[**listKeyShareHolderGroups**](WalletsMPCWalletsApi.md#listKeyShareHolderGroups) | **GET** /wallets/mpc/vaults/{vault_id}/key_share_holder_groups | List all key share holder groups
|
|
20
|
+
[**listKeyShareHolders**](WalletsMPCWalletsApi.md#listKeyShareHolders) | **GET** /wallets/mpc/vaults/{vault_id}/key_share_holders | List all key share holders
|
|
19
21
|
[**listMpcProjects**](WalletsMPCWalletsApi.md#listMpcProjects) | **GET** /wallets/mpc/projects | List all projects
|
|
20
22
|
[**listMpcVaults**](WalletsMPCWalletsApi.md#listMpcVaults) | **GET** /wallets/mpc/vaults | List all vaults
|
|
21
23
|
[**listTssRequests**](WalletsMPCWalletsApi.md#listTssRequests) | **GET** /wallets/mpc/vaults/{vault_id}/tss_requests | List TSS requests
|
|
@@ -60,7 +62,7 @@ apiInstance.cancelTssRequestById(vault_id, tss_request_id).then((data) => {
|
|
|
60
62
|
|
|
61
63
|
Name | Type | Description | Notes
|
|
62
64
|
------------- | ------------- | ------------- | -------------
|
|
63
|
-
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-
|
|
65
|
+
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
|
|
64
66
|
**tss_request_id** | **String**| The TSS request ID, which you can retrieve by calling [List TSS requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests). |
|
|
65
67
|
|
|
66
68
|
### Return type
|
|
@@ -69,7 +71,7 @@ Name | Type | Description | Notes
|
|
|
69
71
|
|
|
70
72
|
### Authorization
|
|
71
73
|
|
|
72
|
-
[OAuth2](../README.md#OAuth2)
|
|
74
|
+
[OAuth2](../README.md#OAuth2)
|
|
73
75
|
|
|
74
76
|
### HTTP request headers
|
|
75
77
|
|
|
@@ -114,7 +116,7 @@ apiInstance.createKeyShareHolderGroup(vault_id, opts).then((data) => {
|
|
|
114
116
|
|
|
115
117
|
Name | Type | Description | Notes
|
|
116
118
|
------------- | ------------- | ------------- | -------------
|
|
117
|
-
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-
|
|
119
|
+
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
|
|
118
120
|
**CreateKeyShareHolderGroupRequest** | [**CreateKeyShareHolderGroupRequest**](CreateKeyShareHolderGroupRequest.md)| The request body to create a key share holder group. | [optional]
|
|
119
121
|
|
|
120
122
|
### Return type
|
|
@@ -123,7 +125,7 @@ Name | Type | Description | Notes
|
|
|
123
125
|
|
|
124
126
|
### Authorization
|
|
125
127
|
|
|
126
|
-
[OAuth2](../README.md#OAuth2)
|
|
128
|
+
[OAuth2](../README.md#OAuth2)
|
|
127
129
|
|
|
128
130
|
### HTTP request headers
|
|
129
131
|
|
|
@@ -175,7 +177,7 @@ Name | Type | Description | Notes
|
|
|
175
177
|
|
|
176
178
|
### Authorization
|
|
177
179
|
|
|
178
|
-
[OAuth2](../README.md#OAuth2)
|
|
180
|
+
[OAuth2](../README.md#OAuth2)
|
|
179
181
|
|
|
180
182
|
### HTTP request headers
|
|
181
183
|
|
|
@@ -227,7 +229,7 @@ Name | Type | Description | Notes
|
|
|
227
229
|
|
|
228
230
|
### Authorization
|
|
229
231
|
|
|
230
|
-
[OAuth2](../README.md#OAuth2)
|
|
232
|
+
[OAuth2](../README.md#OAuth2)
|
|
231
233
|
|
|
232
234
|
### HTTP request headers
|
|
233
235
|
|
|
@@ -272,7 +274,7 @@ apiInstance.createTssRequest(vault_id, opts).then((data) => {
|
|
|
272
274
|
|
|
273
275
|
Name | Type | Description | Notes
|
|
274
276
|
------------- | ------------- | ------------- | -------------
|
|
275
|
-
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-
|
|
277
|
+
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
|
|
276
278
|
**CreateTssRequestRequest** | [**CreateTssRequestRequest**](CreateTssRequestRequest.md)| The request body to create a TSS request. | [optional]
|
|
277
279
|
|
|
278
280
|
### Return type
|
|
@@ -281,7 +283,7 @@ Name | Type | Description | Notes
|
|
|
281
283
|
|
|
282
284
|
### Authorization
|
|
283
285
|
|
|
284
|
-
[OAuth2](../README.md#OAuth2)
|
|
286
|
+
[OAuth2](../README.md#OAuth2)
|
|
285
287
|
|
|
286
288
|
### HTTP request headers
|
|
287
289
|
|
|
@@ -324,7 +326,7 @@ apiInstance.deleteKeyShareHolderGroupById(vault_id, key_share_holder_group_id).t
|
|
|
324
326
|
|
|
325
327
|
Name | Type | Description | Notes
|
|
326
328
|
------------- | ------------- | ------------- | -------------
|
|
327
|
-
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-
|
|
329
|
+
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
|
|
328
330
|
**key_share_holder_group_id** | **String**| The key share holder group ID. |
|
|
329
331
|
|
|
330
332
|
### Return type
|
|
@@ -333,7 +335,59 @@ Name | Type | Description | Notes
|
|
|
333
335
|
|
|
334
336
|
### Authorization
|
|
335
337
|
|
|
336
|
-
[OAuth2](../README.md#OAuth2)
|
|
338
|
+
[OAuth2](../README.md#OAuth2)
|
|
339
|
+
|
|
340
|
+
### HTTP request headers
|
|
341
|
+
|
|
342
|
+
- **Content-Type**: Not defined
|
|
343
|
+
- **Accept**: application/json
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
## getKeyShareHolderByTssNodeId
|
|
347
|
+
|
|
348
|
+
> KeyShareHolder getKeyShareHolderByTssNodeId(vault_id, tss_node_id)
|
|
349
|
+
|
|
350
|
+
Get key share holder information
|
|
351
|
+
|
|
352
|
+
This operation retrieves detailed information about a specified key share holder.
|
|
353
|
+
|
|
354
|
+
### Example
|
|
355
|
+
|
|
356
|
+
```javascript
|
|
357
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
358
|
+
// Initialize the API client
|
|
359
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
360
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
361
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
362
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
363
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
364
|
+
// Call the API
|
|
365
|
+
const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
|
|
366
|
+
const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
|
|
367
|
+
const tss_node_id = "coboBTGDvjJG99pABegvPYmavrcTU3SkjTLHVdsko8dWBga4w";
|
|
368
|
+
apiInstance.getKeyShareHolderByTssNodeId(vault_id, tss_node_id).then((data) => {
|
|
369
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
370
|
+
}, (error) => {
|
|
371
|
+
console.error(error);
|
|
372
|
+
});
|
|
373
|
+
|
|
374
|
+
```
|
|
375
|
+
|
|
376
|
+
### Parameters
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
Name | Type | Description | Notes
|
|
380
|
+
------------- | ------------- | ------------- | -------------
|
|
381
|
+
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
|
|
382
|
+
**tss_node_id** | **String**| The TSS Node ID. |
|
|
383
|
+
|
|
384
|
+
### Return type
|
|
385
|
+
|
|
386
|
+
[**KeyShareHolder**](KeyShareHolder.md)
|
|
387
|
+
|
|
388
|
+
### Authorization
|
|
389
|
+
|
|
390
|
+
[CoboAuth](../README.md#CoboAuth)
|
|
337
391
|
|
|
338
392
|
### HTTP request headers
|
|
339
393
|
|
|
@@ -376,7 +430,7 @@ apiInstance.getKeyShareHolderGroupById(vault_id, key_share_holder_group_id).then
|
|
|
376
430
|
|
|
377
431
|
Name | Type | Description | Notes
|
|
378
432
|
------------- | ------------- | ------------- | -------------
|
|
379
|
-
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-
|
|
433
|
+
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
|
|
380
434
|
**key_share_holder_group_id** | **String**| The key share holder group ID. |
|
|
381
435
|
|
|
382
436
|
### Return type
|
|
@@ -385,7 +439,7 @@ Name | Type | Description | Notes
|
|
|
385
439
|
|
|
386
440
|
### Authorization
|
|
387
441
|
|
|
388
|
-
[
|
|
442
|
+
[OAuth2](../README.md#OAuth2)
|
|
389
443
|
|
|
390
444
|
### HTTP request headers
|
|
391
445
|
|
|
@@ -435,7 +489,7 @@ Name | Type | Description | Notes
|
|
|
435
489
|
|
|
436
490
|
### Authorization
|
|
437
491
|
|
|
438
|
-
[
|
|
492
|
+
[OAuth2](../README.md#OAuth2)
|
|
439
493
|
|
|
440
494
|
### HTTP request headers
|
|
441
495
|
|
|
@@ -477,7 +531,7 @@ apiInstance.getMpcVaultById(vault_id).then((data) => {
|
|
|
477
531
|
|
|
478
532
|
Name | Type | Description | Notes
|
|
479
533
|
------------- | ------------- | ------------- | -------------
|
|
480
|
-
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-
|
|
534
|
+
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
|
|
481
535
|
|
|
482
536
|
### Return type
|
|
483
537
|
|
|
@@ -485,7 +539,7 @@ Name | Type | Description | Notes
|
|
|
485
539
|
|
|
486
540
|
### Authorization
|
|
487
541
|
|
|
488
|
-
[
|
|
542
|
+
[OAuth2](../README.md#OAuth2)
|
|
489
543
|
|
|
490
544
|
### HTTP request headers
|
|
491
545
|
|
|
@@ -528,7 +582,7 @@ apiInstance.getTssRequestById(vault_id, tss_request_id).then((data) => {
|
|
|
528
582
|
|
|
529
583
|
Name | Type | Description | Notes
|
|
530
584
|
------------- | ------------- | ------------- | -------------
|
|
531
|
-
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-
|
|
585
|
+
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
|
|
532
586
|
**tss_request_id** | **String**| The TSS request ID, which you can retrieve by calling [List TSS requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests). |
|
|
533
587
|
|
|
534
588
|
### Return type
|
|
@@ -537,7 +591,7 @@ Name | Type | Description | Notes
|
|
|
537
591
|
|
|
538
592
|
### Authorization
|
|
539
593
|
|
|
540
|
-
[OAuth2](../README.md#OAuth2)
|
|
594
|
+
[OAuth2](../README.md#OAuth2)
|
|
541
595
|
|
|
542
596
|
### HTTP request headers
|
|
543
597
|
|
|
@@ -631,7 +685,7 @@ apiInstance.listKeyShareHolderGroups(vault_id, opts).then((data) => {
|
|
|
631
685
|
|
|
632
686
|
Name | Type | Description | Notes
|
|
633
687
|
------------- | ------------- | ------------- | -------------
|
|
634
|
-
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-
|
|
688
|
+
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
|
|
635
689
|
**key_share_holder_group_type** | [**KeyShareHolderGroupType**](.md)| The key share holder group type. Possible values include: - `MainGroup`: The [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#main-group). - `SigningGroup`: The [Signing Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#signing-group). - `RecoveryGroup`: The [Recovery Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#recovery-group). **Note**: If this parameter is left empty, all key share holder group types will be retrieved. | [optional]
|
|
636
690
|
**limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
|
|
637
691
|
**before** | **String**| This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - 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 it to `infinity`, the last page of data is returned. | [optional]
|
|
@@ -643,6 +697,66 @@ Name | Type | Description | Notes
|
|
|
643
697
|
|
|
644
698
|
### Authorization
|
|
645
699
|
|
|
700
|
+
[OAuth2](../README.md#OAuth2)
|
|
701
|
+
|
|
702
|
+
### HTTP request headers
|
|
703
|
+
|
|
704
|
+
- **Content-Type**: Not defined
|
|
705
|
+
- **Accept**: application/json
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
## listKeyShareHolders
|
|
709
|
+
|
|
710
|
+
> ListKeyShareHolders200Response listKeyShareHolders(vault_id, opts)
|
|
711
|
+
|
|
712
|
+
List all key share holders
|
|
713
|
+
|
|
714
|
+
This operation retrieves a list of all key share holders under a specified vault. You can filter the result by key share holder group ID.
|
|
715
|
+
|
|
716
|
+
### Example
|
|
717
|
+
|
|
718
|
+
```javascript
|
|
719
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
720
|
+
// Initialize the API client
|
|
721
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
722
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
723
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
724
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
725
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
726
|
+
// Call the API
|
|
727
|
+
const apiInstance = new CoboWaas2.WalletsMPCWalletsApi();
|
|
728
|
+
const vault_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
|
|
729
|
+
const opts = {
|
|
730
|
+
'key_share_holder_group_ids': "dc0cac48-9add-4243-9c7a-b8badac8a198,5558bd1b-d221-4e2b-8c29-f6c97d9e6aca",
|
|
731
|
+
'limit': 10,
|
|
732
|
+
'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
|
|
733
|
+
'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
|
|
734
|
+
};
|
|
735
|
+
apiInstance.listKeyShareHolders(vault_id, opts).then((data) => {
|
|
736
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
737
|
+
}, (error) => {
|
|
738
|
+
console.error(error);
|
|
739
|
+
});
|
|
740
|
+
|
|
741
|
+
```
|
|
742
|
+
|
|
743
|
+
### Parameters
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
Name | Type | Description | Notes
|
|
747
|
+
------------- | ------------- | ------------- | -------------
|
|
748
|
+
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
|
|
749
|
+
**key_share_holder_group_ids** | **String**| A list of key share holder group IDs, separated by comma. You can retrieve the IDs of all the key share holder groups by calling [List all key share holder groups](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups). | [optional]
|
|
750
|
+
**limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
|
|
751
|
+
**before** | **String**| This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - 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 it to `infinity`, the last page of data is returned. | [optional]
|
|
752
|
+
**after** | **String**| This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - 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. | [optional]
|
|
753
|
+
|
|
754
|
+
### Return type
|
|
755
|
+
|
|
756
|
+
[**ListKeyShareHolders200Response**](ListKeyShareHolders200Response.md)
|
|
757
|
+
|
|
758
|
+
### Authorization
|
|
759
|
+
|
|
646
760
|
[CoboAuth](../README.md#CoboAuth)
|
|
647
761
|
|
|
648
762
|
### HTTP request headers
|
|
@@ -699,7 +813,7 @@ Name | Type | Description | Notes
|
|
|
699
813
|
|
|
700
814
|
### Authorization
|
|
701
815
|
|
|
702
|
-
[
|
|
816
|
+
[OAuth2](../README.md#OAuth2)
|
|
703
817
|
|
|
704
818
|
### HTTP request headers
|
|
705
819
|
|
|
@@ -759,7 +873,7 @@ Name | Type | Description | Notes
|
|
|
759
873
|
|
|
760
874
|
### Authorization
|
|
761
875
|
|
|
762
|
-
[
|
|
876
|
+
[OAuth2](../README.md#OAuth2)
|
|
763
877
|
|
|
764
878
|
### HTTP request headers
|
|
765
879
|
|
|
@@ -807,7 +921,7 @@ apiInstance.listTssRequests(vault_id, key_share_holder_group_id, opts).then((dat
|
|
|
807
921
|
|
|
808
922
|
Name | Type | Description | Notes
|
|
809
923
|
------------- | ------------- | ------------- | -------------
|
|
810
|
-
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-
|
|
924
|
+
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
|
|
811
925
|
**key_share_holder_group_id** | **String**| The key share holder group ID of the TSS request, which you can retrieve by calling [List all key share holder groups](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups). |
|
|
812
926
|
**limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
|
|
813
927
|
**before** | **String**| This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - 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 it to `infinity`, the last page of data is returned. | [optional]
|
|
@@ -819,7 +933,7 @@ Name | Type | Description | Notes
|
|
|
819
933
|
|
|
820
934
|
### Authorization
|
|
821
935
|
|
|
822
|
-
[
|
|
936
|
+
[OAuth2](../README.md#OAuth2)
|
|
823
937
|
|
|
824
938
|
### HTTP request headers
|
|
825
939
|
|
|
@@ -865,7 +979,7 @@ apiInstance.updateKeyShareHolderGroupById(vault_id, key_share_holder_group_id, o
|
|
|
865
979
|
|
|
866
980
|
Name | Type | Description | Notes
|
|
867
981
|
------------- | ------------- | ------------- | -------------
|
|
868
|
-
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-
|
|
982
|
+
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
|
|
869
983
|
**key_share_holder_group_id** | **String**| The key share holder group ID. |
|
|
870
984
|
**UpdateKeyShareHolderGroupByIdRequest** | [**UpdateKeyShareHolderGroupByIdRequest**](UpdateKeyShareHolderGroupByIdRequest.md)| | [optional]
|
|
871
985
|
|
|
@@ -875,7 +989,7 @@ Name | Type | Description | Notes
|
|
|
875
989
|
|
|
876
990
|
### Authorization
|
|
877
991
|
|
|
878
|
-
[OAuth2](../README.md#OAuth2)
|
|
992
|
+
[OAuth2](../README.md#OAuth2)
|
|
879
993
|
|
|
880
994
|
### HTTP request headers
|
|
881
995
|
|
|
@@ -929,7 +1043,7 @@ Name | Type | Description | Notes
|
|
|
929
1043
|
|
|
930
1044
|
### Authorization
|
|
931
1045
|
|
|
932
|
-
[OAuth2](../README.md#OAuth2)
|
|
1046
|
+
[OAuth2](../README.md#OAuth2)
|
|
933
1047
|
|
|
934
1048
|
### HTTP request headers
|
|
935
1049
|
|
|
@@ -974,7 +1088,7 @@ apiInstance.updateMpcVaultById(vault_id, opts).then((data) => {
|
|
|
974
1088
|
|
|
975
1089
|
Name | Type | Description | Notes
|
|
976
1090
|
------------- | ------------- | ------------- | -------------
|
|
977
|
-
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-
|
|
1091
|
+
**vault_id** | **String**| The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
|
|
978
1092
|
**UpdateMpcVaultByIdRequest** | [**UpdateMpcVaultByIdRequest**](UpdateMpcVaultByIdRequest.md)| The request body to update a vault's name. | [optional]
|
|
979
1093
|
|
|
980
1094
|
### Return type
|
|
@@ -983,7 +1097,7 @@ Name | Type | Description | Notes
|
|
|
983
1097
|
|
|
984
1098
|
### Authorization
|
|
985
1099
|
|
|
986
|
-
[OAuth2](../README.md#OAuth2)
|
|
1100
|
+
[OAuth2](../README.md#OAuth2)
|
|
987
1101
|
|
|
988
1102
|
### HTTP request headers
|
|
989
1103
|
|
package/docs/WebhookEventData.md
CHANGED
|
@@ -36,7 +36,7 @@ Name | Type | Description | Notes
|
|
|
36
36
|
**tss_request_id** | **String** | The TSS request ID. | [optional]
|
|
37
37
|
**source_key_share_holder_group** | [**SourceGroup**](SourceGroup.md) | | [optional]
|
|
38
38
|
**target_key_share_holder_group_id** | **String** | The target key share holder group ID. | [optional]
|
|
39
|
-
**addresses** | [**[
|
|
39
|
+
**addresses** | [**[AddressesEventDataAllOfAddresses]**](AddressesEventDataAllOfAddresses.md) | A list of addresses. | [optional]
|
|
40
40
|
**wallet** | [**WalletInfo**](WalletInfo.md) | | [optional]
|
|
41
41
|
**vault_id** | **String** | The vault ID. | [optional]
|
|
42
42
|
**project_id** | **String** | The project ID. | [optional]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobo/cobo-waas2",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "The Cobo Wallet-as-a-Service (WaaS) 2.0 API is the latest version of Cobo
|
|
3
|
+
"version": "1.10.0",
|
|
4
|
+
"description": "The Cobo Wallet-as-a-Service (WaaS) 2.0 API is the latest version of Cobo's WaaS API offering. It enables you to access Cobo's full suite of crypto wallet technologies with powerful and flexible access controls. By encapsulating complex security protocols and streamlining blockchain interactions, this API allows you to concentrate on your core business activities without worrying about the safety of your assets. The WaaS 2.0 API presents the following key features: - A unified API for Cobo's [all four wallet types](https://manuals.cobo.com/en/portal/introduction#an-all-in-one-wallet-platform) - Support for 80+ chains and 3000+ tokens - A comprehensive selection of webhook events - Flexible usage models for MPC Wallets, including [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/introduction) and [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/introduction) - Programmatic control of smart contract wallets such as Safe{Wallet} with fine-grained access controls - Seamlessly transfer funds across multiple exchanges, including Binance, OKX, Bybit, Deribit, and more For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](https://www.cobo.com/developers/v2/guides/overview/introduction). ",
|
|
5
5
|
"license": "GPL 2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"scripts": {
|
package/docs/SwapSummary.md
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# CoboWaas2.SwapSummary
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
Name | Type | Description | Notes
|
|
6
|
-
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**total_usd_value** | **String** | The total USD value of the swap activities, represented as a string. |
|
|
8
|
-
**activity_count** | **Number** | The total number of swap activities. |
|
|
9
|
-
|
|
10
|
-
|