@cobo/cobo-waas2 1.8.0 → 1.9.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 +78 -30
- package/dist/ApiClient.js +11 -1
- package/dist/api/AddressBooksApi.js +1 -1
- package/dist/api/DevelopersApi.js +3 -3
- package/dist/api/DevelopersWebhooksApi.js +8 -8
- package/dist/api/PrimeBrokerApi.js +317 -0
- package/dist/api/StakingsApi.js +12 -12
- package/dist/api/TransactionsApi.js +60 -16
- 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 +112 -7
- package/dist/model/ActivityExtra.js +5 -5
- package/dist/model/AddressBalance.js +129 -0
- package/dist/model/AddressTransferDestination.js +36 -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/BabylonStakingActivityDetailExtra.js +1 -1
- package/dist/model/{TokenBalanceBalance.js → Balance.js} +22 -22
- package/dist/model/ChangeGuardPubkey200Response.js +110 -0
- package/dist/model/ContractCallParams.js +36 -0
- package/dist/model/CoreStakingActivityDetailExtra.js +3 -3
- package/dist/model/CreateAddressRequest.js +28 -2
- package/dist/model/CreatePrimeBrokerAddress201Response.js +140 -0
- package/dist/model/CreatePrimeBrokerAddressRequest.js +107 -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/ListKeyShareHolders200Response.js +123 -0
- package/dist/model/MessageSignDestination.js +70 -8
- package/dist/model/MessageSignDestinationType.js +12 -2
- 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/SubWalletAssetBalance.js +6 -6
- package/dist/model/SubmitDepositTravelRuleInfo201Response.js +1 -1
- 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 +6 -0
- package/dist/model/TransactionRawTxInfo.js +13 -0
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionUserApprovalDetail.js +3 -3
- package/dist/model/TransferDestination.js +6 -0
- package/dist/model/TransferParams.js +36 -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/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/ApprovalStatementStatus.md +20 -0
- package/docs/AssetBalance.md +1 -1
- package/docs/BTCEIP191MessageSignDestination.md +10 -0
- package/docs/BabylonStakingActivityDetailExtra.md +1 -1
- package/docs/{TokenBalanceBalance.md → Balance.md} +1 -1
- package/docs/ChangeGuardPubkey200Response.md +9 -0
- package/docs/ContractCallParams.md +14 -0
- package/docs/CoreStakingActivityDetailExtra.md +3 -3
- package/docs/CreateAddressRequest.md +3 -1
- package/docs/CreatePrimeBrokerAddress201Response.md +10 -0
- package/docs/CreatePrimeBrokerAddressRequest.md +9 -0
- package/docs/DeleteGuardPubkey201Response.md +9 -0
- package/docs/DevelopersApi.md +3 -3
- 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/ListKeyShareHolders200Response.md +10 -0
- package/docs/MessageSignDestination.md +1 -0
- package/docs/MessageSignDestinationType.md +6 -2
- 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/StakingsApi.md +12 -12
- package/docs/SubWalletAssetBalance.md +1 -1
- package/docs/SubmitDepositTravelRuleInfo201Response.md +1 -1
- 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 +1 -0
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionUserApprovalDetail.md +3 -3
- package/docs/TransactionsApi.md +66 -15
- package/docs/TransferDestination.md +14 -0
- package/docs/TransferParams.md +14 -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/package.json +1 -1
package/docs/WalletsApi.md
CHANGED
|
@@ -14,6 +14,7 @@ Method | HTTP request | Description
|
|
|
14
14
|
[**getMaxTransferableValue**](WalletsApi.md#getMaxTransferableValue) | **GET** /wallets/{wallet_id}/max_transferable_value | Get maximum transferable value
|
|
15
15
|
[**getTokenById**](WalletsApi.md#getTokenById) | **GET** /wallets/tokens/{token_id} | Get token information
|
|
16
16
|
[**getWalletById**](WalletsApi.md#getWalletById) | **GET** /wallets/{wallet_id} | Get wallet information
|
|
17
|
+
[**listAddressBalancesByToken**](WalletsApi.md#listAddressBalancesByToken) | **GET** /wallets/{wallet_id}/tokens/{token_id} | List address balances by token
|
|
17
18
|
[**listAddresses**](WalletsApi.md#listAddresses) | **GET** /wallets/{wallet_id}/addresses | List wallet addresses
|
|
18
19
|
[**listEnabledChains**](WalletsApi.md#listEnabledChains) | **GET** /wallets/enabled_chains | List enabled chains
|
|
19
20
|
[**listEnabledTokens**](WalletsApi.md#listEnabledTokens) | **GET** /wallets/enabled_tokens | List enabled tokens
|
|
@@ -231,7 +232,7 @@ Name | Type | Description | Notes
|
|
|
231
232
|
|
|
232
233
|
### Authorization
|
|
233
234
|
|
|
234
|
-
[OAuth2](../README.md#OAuth2)
|
|
235
|
+
[OAuth2](../README.md#OAuth2)
|
|
235
236
|
|
|
236
237
|
### HTTP request headers
|
|
237
238
|
|
|
@@ -283,7 +284,7 @@ Name | Type | Description | Notes
|
|
|
283
284
|
|
|
284
285
|
### Authorization
|
|
285
286
|
|
|
286
|
-
[OAuth2](../README.md#OAuth2)
|
|
287
|
+
[OAuth2](../README.md#OAuth2)
|
|
287
288
|
|
|
288
289
|
### HTTP request headers
|
|
289
290
|
|
|
@@ -333,7 +334,7 @@ Name | Type | Description | Notes
|
|
|
333
334
|
|
|
334
335
|
### Authorization
|
|
335
336
|
|
|
336
|
-
[
|
|
337
|
+
[OAuth2](../README.md#OAuth2)
|
|
337
338
|
|
|
338
339
|
### HTTP request headers
|
|
339
340
|
|
|
@@ -443,7 +444,7 @@ Name | Type | Description | Notes
|
|
|
443
444
|
|
|
444
445
|
### Authorization
|
|
445
446
|
|
|
446
|
-
[
|
|
447
|
+
[OAuth2](../README.md#OAuth2)
|
|
447
448
|
|
|
448
449
|
### HTTP request headers
|
|
449
450
|
|
|
@@ -543,7 +544,69 @@ Name | Type | Description | Notes
|
|
|
543
544
|
|
|
544
545
|
### Authorization
|
|
545
546
|
|
|
546
|
-
[
|
|
547
|
+
[OAuth2](../README.md#OAuth2)
|
|
548
|
+
|
|
549
|
+
### HTTP request headers
|
|
550
|
+
|
|
551
|
+
- **Content-Type**: Not defined
|
|
552
|
+
- **Accept**: application/json
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
## listAddressBalancesByToken
|
|
556
|
+
|
|
557
|
+
> ListAddressBalancesByToken200Response listAddressBalancesByToken(wallet_id, token_id, opts)
|
|
558
|
+
|
|
559
|
+
List address balances by token
|
|
560
|
+
|
|
561
|
+
This operation retrieves a list of address balances for a specified token within a wallet. <Note>This operation is applicable to MPC Wallets only.</Note>
|
|
562
|
+
|
|
563
|
+
### Example
|
|
564
|
+
|
|
565
|
+
```javascript
|
|
566
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
567
|
+
// Initialize the API client
|
|
568
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
569
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
570
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
571
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
572
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
573
|
+
// Call the API
|
|
574
|
+
const apiInstance = new CoboWaas2.WalletsApi();
|
|
575
|
+
const wallet_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
|
|
576
|
+
const token_id = "ETH_USDT";
|
|
577
|
+
const opts = {
|
|
578
|
+
'addresses': "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045,0x4838B106FCe9647Bdf1E7877BF73cE8B0BAD5f97",
|
|
579
|
+
'limit': 10,
|
|
580
|
+
'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
|
|
581
|
+
'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
|
|
582
|
+
};
|
|
583
|
+
apiInstance.listAddressBalancesByToken(wallet_id, token_id, opts).then((data) => {
|
|
584
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
585
|
+
}, (error) => {
|
|
586
|
+
console.error(error);
|
|
587
|
+
});
|
|
588
|
+
|
|
589
|
+
```
|
|
590
|
+
|
|
591
|
+
### Parameters
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
Name | Type | Description | Notes
|
|
595
|
+
------------- | ------------- | ------------- | -------------
|
|
596
|
+
**wallet_id** | **String**| The wallet ID. |
|
|
597
|
+
**token_id** | **String**| The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
|
|
598
|
+
**addresses** | **String**| A list of wallet addresses, separated by comma. For addresses requiring a memo, append the memo after the address using the '|' separator (e.g., \"address|memo\"). | [optional]
|
|
599
|
+
**limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
|
|
600
|
+
**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]
|
|
601
|
+
**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]
|
|
602
|
+
|
|
603
|
+
### Return type
|
|
604
|
+
|
|
605
|
+
[**ListAddressBalancesByToken200Response**](ListAddressBalancesByToken200Response.md)
|
|
606
|
+
|
|
607
|
+
### Authorization
|
|
608
|
+
|
|
609
|
+
[OAuth2](../README.md#OAuth2)
|
|
547
610
|
|
|
548
611
|
### HTTP request headers
|
|
549
612
|
|
|
@@ -605,7 +668,7 @@ Name | Type | Description | Notes
|
|
|
605
668
|
|
|
606
669
|
### Authorization
|
|
607
670
|
|
|
608
|
-
[
|
|
671
|
+
[OAuth2](../README.md#OAuth2)
|
|
609
672
|
|
|
610
673
|
### HTTP request headers
|
|
611
674
|
|
|
@@ -915,7 +978,7 @@ Name | Type | Description | Notes
|
|
|
915
978
|
|
|
916
979
|
### Authorization
|
|
917
980
|
|
|
918
|
-
[
|
|
981
|
+
[OAuth2](../README.md#OAuth2)
|
|
919
982
|
|
|
920
983
|
### HTTP request headers
|
|
921
984
|
|
|
@@ -975,7 +1038,7 @@ Name | Type | Description | Notes
|
|
|
975
1038
|
|
|
976
1039
|
### Authorization
|
|
977
1040
|
|
|
978
|
-
[
|
|
1041
|
+
[OAuth2](../README.md#OAuth2)
|
|
979
1042
|
|
|
980
1043
|
### HTTP request headers
|
|
981
1044
|
|
|
@@ -1007,6 +1070,7 @@ const wallet_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
|
|
|
1007
1070
|
const token_id = "ETH_USDT";
|
|
1008
1071
|
const opts = {
|
|
1009
1072
|
'address': "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
|
|
1073
|
+
'tx_hash': "dd7e1cecf6bbde1844ee1815b780711a1e306a718bcd23cd64401b48ef88eb83",
|
|
1010
1074
|
'limit': 10,
|
|
1011
1075
|
'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
|
|
1012
1076
|
'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
|
|
@@ -1027,6 +1091,7 @@ Name | Type | Description | Notes
|
|
|
1027
1091
|
**wallet_id** | **String**| The wallet ID. |
|
|
1028
1092
|
**token_id** | **String**| The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
|
|
1029
1093
|
**address** | **String**| The wallet address. | [optional]
|
|
1094
|
+
**tx_hash** | **String**| | [optional]
|
|
1030
1095
|
**limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
|
|
1031
1096
|
**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]
|
|
1032
1097
|
**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]
|
|
@@ -1037,7 +1102,7 @@ Name | Type | Description | Notes
|
|
|
1037
1102
|
|
|
1038
1103
|
### Authorization
|
|
1039
1104
|
|
|
1040
|
-
[
|
|
1105
|
+
[OAuth2](../README.md#OAuth2)
|
|
1041
1106
|
|
|
1042
1107
|
### HTTP request headers
|
|
1043
1108
|
|
|
@@ -1101,7 +1166,7 @@ Name | Type | Description | Notes
|
|
|
1101
1166
|
|
|
1102
1167
|
### Authorization
|
|
1103
1168
|
|
|
1104
|
-
[
|
|
1169
|
+
[OAuth2](../README.md#OAuth2)
|
|
1105
1170
|
|
|
1106
1171
|
### HTTP request headers
|
|
1107
1172
|
|
|
@@ -1155,7 +1220,7 @@ Name | Type | Description | Notes
|
|
|
1155
1220
|
|
|
1156
1221
|
### Authorization
|
|
1157
1222
|
|
|
1158
|
-
[OAuth2](../README.md#OAuth2)
|
|
1223
|
+
[OAuth2](../README.md#OAuth2)
|
|
1159
1224
|
|
|
1160
1225
|
### HTTP request headers
|
|
1161
1226
|
|
|
@@ -1209,7 +1274,7 @@ Name | Type | Description | Notes
|
|
|
1209
1274
|
|
|
1210
1275
|
### Authorization
|
|
1211
1276
|
|
|
1212
|
-
[OAuth2](../README.md#OAuth2)
|
|
1277
|
+
[OAuth2](../README.md#OAuth2)
|
|
1213
1278
|
|
|
1214
1279
|
### HTTP request headers
|
|
1215
1280
|
|
|
@@ -1263,7 +1328,7 @@ Name | Type | Description | Notes
|
|
|
1263
1328
|
|
|
1264
1329
|
### Authorization
|
|
1265
1330
|
|
|
1266
|
-
[OAuth2](../README.md#OAuth2)
|
|
1331
|
+
[OAuth2](../README.md#OAuth2)
|
|
1267
1332
|
|
|
1268
1333
|
### HTTP request headers
|
|
1269
1334
|
|
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobo/cobo-waas2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
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",
|