@cobo/cobo-waas2 1.3.0 → 1.5.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 +22 -10
- package/dist/ApiClient.js +1 -1
- package/dist/api/AddressBooksApi.js +105 -0
- package/dist/api/DevelopersWebhooksApi.js +43 -0
- package/dist/api/OAuthApi.js +18 -18
- package/dist/api/TransactionsApi.js +14 -14
- package/dist/api/WalletsApi.js +4 -4
- package/dist/api/WalletsExchangeWalletApi.js +4 -4
- package/dist/api/WalletsMPCWalletsApi.js +10 -10
- package/dist/api/WalletsSmartContractWalletsApi.js +93 -0
- package/dist/index.js +108 -31
- package/dist/model/AddressBook.js +217 -0
- package/dist/model/AddressTransferDestination.js +2 -2
- package/dist/model/ApiLogDetails.js +238 -0
- package/dist/model/ApiLogSummary.js +161 -0
- package/dist/model/CheckLoopTransfers200ResponseInner.js +1 -1
- package/dist/model/CoboSafeDelegate.js +2 -2
- package/dist/model/ContractCallSource.js +0 -6
- package/dist/model/CreateKeyShareHolder.js +2 -2
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/EstimateContractCallFeeParams.js +2 -2
- package/dist/model/EstimateFeeParams.js +2 -2
- package/dist/model/EstimateTransferFeeParams.js +2 -2
- package/dist/model/EstimatedFee.js +1 -1
- package/dist/model/EstimatedFixedFee.js +1 -1
- package/dist/model/ExchangeId.js +10 -0
- package/dist/model/ExtendedTokenInfo.js +17 -4
- package/dist/model/GetToken200Response.js +4 -4
- package/dist/model/KeyShareHolder.js +1 -1
- package/dist/model/ListAddressBooks200Response.js +123 -0
- package/dist/model/MPCDelegate.js +4 -4
- package/dist/model/MessageSignParams.js +1 -1
- package/dist/model/MpcContractCallSource.js +0 -9
- package/dist/model/{RefreshToken200Response.js → RefreshToken201Response.js} +25 -25
- package/dist/model/RefreshTokenRequest.js +2 -2
- package/dist/model/SafeWalletDelegates.js +210 -0
- package/dist/model/{BookkeepingSummary.js → SafeWalletDelegatesContractCall.js} +47 -52
- package/dist/model/{WalletBalanceSnapshotRecord.js → SafeWalletDelegatesTransfer.js} +47 -63
- package/dist/model/TSSRequestStatus.js +5 -0
- package/dist/model/TokenAssetModelType.js +61 -0
- package/dist/model/TokenBalanceBalance.js +6 -6
- package/dist/model/TokenInfo.js +11 -2
- package/dist/model/Transaction.js +1 -1
- package/dist/model/TransactionDestination.js +50 -10
- package/dist/model/TransactionDestinationType.js +5 -0
- package/dist/model/TransactionDetail.js +2 -2
- package/dist/model/TransactionDetails.js +2 -2
- package/dist/model/TransactionEvmCalldataInfo.js +177 -0
- package/dist/model/TransactionEvmContractDestination.js +16 -0
- package/dist/model/TransactionEvmContractMethod.js +136 -0
- package/dist/model/TransactionRawMessageSignDestination.js +120 -0
- package/dist/model/TransactionSignatureResult.js +1 -1
- package/dist/model/TransactionSmartContractSafeWalletSource.js +4 -6
- package/dist/model/TransactionStatus.js +0 -5
- package/dist/model/TransactionSubStatus.js +40 -5
- package/dist/model/TransactionTokeApproval.js +17 -4
- package/dist/model/TransactionTransferToAddressDestination.js +2 -2
- package/dist/model/TransactionWebhookEventData.js +2 -2
- package/dist/model/TransferDestination.js +2 -2
- package/dist/model/TriggerTestWebhookEvent201Response.js +83 -0
- package/dist/model/{WalletBalanceSnapshot.js → TriggerTestWebhookEventRequest.js} +31 -36
- package/dist/model/WebhookEventData.js +1 -1
- package/docs/AddressBook.md +17 -0
- package/docs/AddressBooksApi.md +71 -0
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/ApiLogDetails.md +18 -0
- package/docs/ApiLogSummary.md +13 -0
- package/docs/CheckLoopTransfers200ResponseInner.md +1 -1
- package/docs/CoboSafeDelegate.md +2 -2
- package/docs/ContractCallSource.md +0 -1
- package/docs/CreateKeyShareHolder.md +2 -2
- package/docs/DevelopersWebhooksApi.md +53 -0
- package/docs/ErrorResponse.md +1 -1
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimateTransferFeeParams.md +1 -1
- package/docs/EstimatedFee.md +1 -1
- package/docs/EstimatedFixedFee.md +1 -1
- package/docs/ExchangeId.md +4 -0
- package/docs/ExtendedTokenInfo.md +3 -2
- package/docs/GetToken200Response.md +4 -4
- package/docs/KeyShareHolder.md +1 -1
- package/docs/ListAddressBooks200Response.md +10 -0
- package/docs/MPCDelegate.md +2 -2
- package/docs/MessageSignParams.md +1 -1
- package/docs/MpcContractCallSource.md +0 -1
- package/docs/OAuthApi.md +11 -11
- package/docs/RefreshToken201Response.md +13 -0
- package/docs/RefreshTokenRequest.md +2 -2
- package/docs/SafeWalletDelegates.md +14 -0
- package/docs/SafeWalletDelegatesContractCall.md +12 -0
- package/docs/SafeWalletDelegatesTransfer.md +12 -0
- package/docs/TSSRequestStatus.md +2 -0
- package/docs/TokenAssetModelType.md +12 -0
- package/docs/TokenBalanceBalance.md +4 -4
- package/docs/TokenInfo.md +3 -2
- package/docs/Transaction.md +1 -1
- package/docs/TransactionDestination.md +4 -2
- package/docs/TransactionDestinationType.md +2 -0
- package/docs/TransactionDetail.md +1 -1
- package/docs/TransactionDetails.md +1 -1
- package/docs/TransactionEvmCalldataInfo.md +16 -0
- package/docs/TransactionEvmContractDestination.md +1 -0
- package/docs/TransactionEvmContractMethod.md +13 -0
- package/docs/TransactionRawMessageSignDestination.md +10 -0
- package/docs/TransactionSmartContractSafeWalletSource.md +1 -1
- package/docs/TransactionSource.md +1 -1
- package/docs/TransactionStatus.md +0 -2
- package/docs/TransactionSubStatus.md +16 -2
- package/docs/TransactionTokeApproval.md +3 -2
- package/docs/TransactionTransferToAddressDestination.md +2 -2
- package/docs/TransactionWebhookEventData.md +1 -1
- package/docs/TransactionsApi.md +8 -8
- package/docs/TransferDestination.md +2 -2
- package/docs/TriggerTestWebhookEvent201Response.md +9 -0
- package/docs/TriggerTestWebhookEventRequest.md +10 -0
- package/docs/WalletsApi.md +2 -2
- package/docs/WalletsExchangeWalletApi.md +2 -2
- package/docs/WalletsMPCWalletsApi.md +5 -5
- package/docs/WalletsSmartContractWalletsApi.md +63 -0
- package/docs/WebhookEventData.md +1 -1
- package/package.json +2 -2
- package/dist/model/BookkeepingRecord.js +0 -243
- package/docs/BookkeepingRecord.md +0 -19
- package/docs/BookkeepingSummary.md +0 -12
- package/docs/RefreshToken200Response.md +0 -13
- package/docs/WalletBalanceSnapshot.md +0 -10
- package/docs/WalletBalanceSnapshotRecord.md +0 -13
package/README.md
CHANGED
|
@@ -10,12 +10,12 @@ The Cobo Wallet-as-a-Service (WaaS) 2.0 API is the latest version of Cobo’s Wa
|
|
|
10
10
|
- Programmatic control of smart contract wallets such as Safe{Wallet} with fine-grained access controls
|
|
11
11
|
- Seamlessly transfer funds across multiple exchanges, including Binance, OKX, Bybit, Deribit, and more
|
|
12
12
|
|
|
13
|
-
For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](
|
|
13
|
+
For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](/v2/guides/overview/introduction).
|
|
14
14
|
|
|
15
15
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
16
16
|
|
|
17
17
|
- API version: v2
|
|
18
|
-
- Package version: 1.
|
|
18
|
+
- Package version: 1.5.0
|
|
19
19
|
- Generator version: 7.6.0
|
|
20
20
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
21
21
|
For more information, please visit [https://www.cobo.com/waas](https://www.cobo.com/waas)
|
|
@@ -61,6 +61,7 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
|
|
|
61
61
|
|
|
62
62
|
Class | Method | HTTP request | Description
|
|
63
63
|
------------ | ------------- | ------------- | -------------
|
|
64
|
+
*CoboWaas2.AddressBooksApi* | [**listAddressBooks**](docs/AddressBooksApi.md#listAddressBooks) | **GET** /address_books | List address book entries
|
|
64
65
|
*CoboWaas2.DevelopersWebhooksApi* | [**createWebhookEndpoint**](docs/DevelopersWebhooksApi.md#createWebhookEndpoint) | **POST** /webhooks/endpoints | Register webhook endpoint
|
|
65
66
|
*CoboWaas2.DevelopersWebhooksApi* | [**getWebhookEndpointById**](docs/DevelopersWebhooksApi.md#getWebhookEndpointById) | **GET** /webhooks/endpoints/{endpoint_id} | Get webhook endpoint information
|
|
66
67
|
*CoboWaas2.DevelopersWebhooksApi* | [**getWebhookEventById**](docs/DevelopersWebhooksApi.md#getWebhookEventById) | **GET** /webhooks/endpoints/{endpoint_id}/events/{event_id} | Retrieve event information
|
|
@@ -69,9 +70,10 @@ Class | Method | HTTP request | Description
|
|
|
69
70
|
*CoboWaas2.DevelopersWebhooksApi* | [**listWebhookEventLogs**](docs/DevelopersWebhooksApi.md#listWebhookEventLogs) | **GET** /webhooks/endpoints/{endpoint_id}/events/{event_id}/logs | List webhook event logs
|
|
70
71
|
*CoboWaas2.DevelopersWebhooksApi* | [**listWebhookEvents**](docs/DevelopersWebhooksApi.md#listWebhookEvents) | **GET** /webhooks/endpoints/{endpoint_id}/events | List all webhook events
|
|
71
72
|
*CoboWaas2.DevelopersWebhooksApi* | [**retryWebhookEventById**](docs/DevelopersWebhooksApi.md#retryWebhookEventById) | **POST** /webhooks/endpoints/{endpoint_id}/events/{event_id}/retry | Retry event
|
|
73
|
+
*CoboWaas2.DevelopersWebhooksApi* | [**triggerTestWebhookEvent**](docs/DevelopersWebhooksApi.md#triggerTestWebhookEvent) | **POST** /webhooks/events/trigger | Trigger test event
|
|
72
74
|
*CoboWaas2.DevelopersWebhooksApi* | [**updateWebhookEndpointById**](docs/DevelopersWebhooksApi.md#updateWebhookEndpointById) | **PUT** /webhooks/endpoints/{endpoint_id} | Update webhook endpoint
|
|
73
|
-
*CoboWaas2.OAuthApi* | [**getToken**](docs/OAuthApi.md#getToken) | **GET** /oauth/token | Get
|
|
74
|
-
*CoboWaas2.OAuthApi* | [**refreshToken**](docs/OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh
|
|
75
|
+
*CoboWaas2.OAuthApi* | [**getToken**](docs/OAuthApi.md#getToken) | **GET** /oauth/token | Get Org Access Token
|
|
76
|
+
*CoboWaas2.OAuthApi* | [**refreshToken**](docs/OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh Org Access Token
|
|
75
77
|
*CoboWaas2.StakingsApi* | [**createStakeActivity**](docs/StakingsApi.md#createStakeActivity) | **POST** /stakings/activities/stake | Create stake activity
|
|
76
78
|
*CoboWaas2.StakingsApi* | [**createUnstakeActivity**](docs/StakingsApi.md#createUnstakeActivity) | **POST** /stakings/activities/unstake | Create unstake activity
|
|
77
79
|
*CoboWaas2.StakingsApi* | [**createWithdrawActivity**](docs/StakingsApi.md#createWithdrawActivity) | **POST** /stakings/activities/withdraw | Create withdraw activity
|
|
@@ -84,7 +86,7 @@ Class | Method | HTTP request | Description
|
|
|
84
86
|
*CoboWaas2.StakingsApi* | [**listStakings**](docs/StakingsApi.md#listStakings) | **GET** /stakings | List staking positions
|
|
85
87
|
*CoboWaas2.TransactionsApi* | [**broadcastSignedTransactions**](docs/TransactionsApi.md#broadcastSignedTransactions) | **POST** /transactions/broadcast | Broadcast signed transactions
|
|
86
88
|
*CoboWaas2.TransactionsApi* | [**cancelTransactionById**](docs/TransactionsApi.md#cancelTransactionById) | **POST** /transactions/{transaction_id}/cancel | Cancel transaction
|
|
87
|
-
*CoboWaas2.TransactionsApi* | [**checkLoopTransfers**](docs/TransactionsApi.md#checkLoopTransfers) | **GET** /transactions/check_loop_transfers | Check Loop transfers
|
|
89
|
+
*CoboWaas2.TransactionsApi* | [**checkLoopTransfers**](docs/TransactionsApi.md#checkLoopTransfers) | **GET** /transactions/check_loop_transfers | Check Cobo Loop transfers
|
|
88
90
|
*CoboWaas2.TransactionsApi* | [**createContractCallTransaction**](docs/TransactionsApi.md#createContractCallTransaction) | **POST** /transactions/contract_call | Call smart contract
|
|
89
91
|
*CoboWaas2.TransactionsApi* | [**createMessageSignTransaction**](docs/TransactionsApi.md#createMessageSignTransaction) | **POST** /transactions/message_sign | Sign message
|
|
90
92
|
*CoboWaas2.TransactionsApi* | [**createTransferTransaction**](docs/TransactionsApi.md#createTransferTransaction) | **POST** /transactions/transfer | Transfer token
|
|
@@ -138,6 +140,7 @@ Class | Method | HTTP request | Description
|
|
|
138
140
|
*CoboWaas2.WalletsMPCWalletsApi* | [**updateKeyShareHolderGroupById**](docs/WalletsMPCWalletsApi.md#updateKeyShareHolderGroupById) | **PUT** /wallets/mpc/vaults/{vault_id}/key_share_holder_groups/{key_share_holder_group_id} | Update key share holder group
|
|
139
141
|
*CoboWaas2.WalletsMPCWalletsApi* | [**updateMpcProjectById**](docs/WalletsMPCWalletsApi.md#updateMpcProjectById) | **PUT** /wallets/mpc/projects/{project_id} | Update project name
|
|
140
142
|
*CoboWaas2.WalletsMPCWalletsApi* | [**updateMpcVaultById**](docs/WalletsMPCWalletsApi.md#updateMpcVaultById) | **PUT** /wallets/mpc/vaults/{vault_id} | Update vault name
|
|
143
|
+
*CoboWaas2.WalletsSmartContractWalletsApi* | [**listSafeWalletDelegates**](docs/WalletsSmartContractWalletsApi.md#listSafeWalletDelegates) | **POST** /wallets/{wallet_id}/smart_contracts/delegates | List Delegates
|
|
141
144
|
|
|
142
145
|
|
|
143
146
|
## Documentation for Models
|
|
@@ -148,6 +151,7 @@ Class | Method | HTTP request | Description
|
|
|
148
151
|
- [CoboWaas2.ActivityStatus](docs/ActivityStatus.md)
|
|
149
152
|
- [CoboWaas2.ActivityTimeline](docs/ActivityTimeline.md)
|
|
150
153
|
- [CoboWaas2.ActivityType](docs/ActivityType.md)
|
|
154
|
+
- [CoboWaas2.AddressBook](docs/AddressBook.md)
|
|
151
155
|
- [CoboWaas2.AddressEncoding](docs/AddressEncoding.md)
|
|
152
156
|
- [CoboWaas2.AddressInfo](docs/AddressInfo.md)
|
|
153
157
|
- [CoboWaas2.AddressTransferDestination](docs/AddressTransferDestination.md)
|
|
@@ -155,6 +159,8 @@ Class | Method | HTTP request | Description
|
|
|
155
159
|
- [CoboWaas2.AddressTransferDestinationUtxoOutputsInner](docs/AddressTransferDestinationUtxoOutputsInner.md)
|
|
156
160
|
- [CoboWaas2.AmountDetailsInner](docs/AmountDetailsInner.md)
|
|
157
161
|
- [CoboWaas2.AmountStatus](docs/AmountStatus.md)
|
|
162
|
+
- [CoboWaas2.ApiLogDetails](docs/ApiLogDetails.md)
|
|
163
|
+
- [CoboWaas2.ApiLogSummary](docs/ApiLogSummary.md)
|
|
158
164
|
- [CoboWaas2.AssetBalance](docs/AssetBalance.md)
|
|
159
165
|
- [CoboWaas2.AssetInfo](docs/AssetInfo.md)
|
|
160
166
|
- [CoboWaas2.BabylonStakeExtra](docs/BabylonStakeExtra.md)
|
|
@@ -164,8 +170,6 @@ Class | Method | HTTP request | Description
|
|
|
164
170
|
- [CoboWaas2.BaseEstimateStakingFee](docs/BaseEstimateStakingFee.md)
|
|
165
171
|
- [CoboWaas2.BaseStakeExtra](docs/BaseStakeExtra.md)
|
|
166
172
|
- [CoboWaas2.BaseStakeSource](docs/BaseStakeSource.md)
|
|
167
|
-
- [CoboWaas2.BookkeepingRecord](docs/BookkeepingRecord.md)
|
|
168
|
-
- [CoboWaas2.BookkeepingSummary](docs/BookkeepingSummary.md)
|
|
169
173
|
- [CoboWaas2.BroadcastSignedTransactions201ResponseInner](docs/BroadcastSignedTransactions201ResponseInner.md)
|
|
170
174
|
- [CoboWaas2.BroadcastSignedTransactionsRequest](docs/BroadcastSignedTransactionsRequest.md)
|
|
171
175
|
- [CoboWaas2.ChainInfo](docs/ChainInfo.md)
|
|
@@ -253,6 +257,7 @@ Class | Method | HTTP request | Description
|
|
|
253
257
|
- [CoboWaas2.KeyShareHolderGroupType](docs/KeyShareHolderGroupType.md)
|
|
254
258
|
- [CoboWaas2.KeyShareHolderStatus](docs/KeyShareHolderStatus.md)
|
|
255
259
|
- [CoboWaas2.KeyShareHolderType](docs/KeyShareHolderType.md)
|
|
260
|
+
- [CoboWaas2.ListAddressBooks200Response](docs/ListAddressBooks200Response.md)
|
|
256
261
|
- [CoboWaas2.ListAddresses200Response](docs/ListAddresses200Response.md)
|
|
257
262
|
- [CoboWaas2.ListAssetBalancesForExchangeWallet200Response](docs/ListAssetBalancesForExchangeWallet200Response.md)
|
|
258
263
|
- [CoboWaas2.ListExchanges200ResponseInner](docs/ListExchanges200ResponseInner.md)
|
|
@@ -299,7 +304,7 @@ Class | Method | HTTP request | Description
|
|
|
299
304
|
- [CoboWaas2.PoolDetailsAllOfValidatorsInfo](docs/PoolDetailsAllOfValidatorsInfo.md)
|
|
300
305
|
- [CoboWaas2.PoolSummary](docs/PoolSummary.md)
|
|
301
306
|
- [CoboWaas2.RawMessageSignDestination](docs/RawMessageSignDestination.md)
|
|
302
|
-
- [CoboWaas2.
|
|
307
|
+
- [CoboWaas2.RefreshToken201Response](docs/RefreshToken201Response.md)
|
|
303
308
|
- [CoboWaas2.RefreshTokenRequest](docs/RefreshTokenRequest.md)
|
|
304
309
|
- [CoboWaas2.ReplaceType](docs/ReplaceType.md)
|
|
305
310
|
- [CoboWaas2.RetryWebhookEventById201Response](docs/RetryWebhookEventById201Response.md)
|
|
@@ -307,6 +312,9 @@ Class | Method | HTTP request | Description
|
|
|
307
312
|
- [CoboWaas2.SafeContractCallSource](docs/SafeContractCallSource.md)
|
|
308
313
|
- [CoboWaas2.SafeTransferSource](docs/SafeTransferSource.md)
|
|
309
314
|
- [CoboWaas2.SafeWallet](docs/SafeWallet.md)
|
|
315
|
+
- [CoboWaas2.SafeWalletDelegates](docs/SafeWalletDelegates.md)
|
|
316
|
+
- [CoboWaas2.SafeWalletDelegatesContractCall](docs/SafeWalletDelegatesContractCall.md)
|
|
317
|
+
- [CoboWaas2.SafeWalletDelegatesTransfer](docs/SafeWalletDelegatesTransfer.md)
|
|
310
318
|
- [CoboWaas2.SmartContractInitiator](docs/SmartContractInitiator.md)
|
|
311
319
|
- [CoboWaas2.SmartContractWalletInfo](docs/SmartContractWalletInfo.md)
|
|
312
320
|
- [CoboWaas2.SmartContractWalletOperationType](docs/SmartContractWalletOperationType.md)
|
|
@@ -324,6 +332,7 @@ Class | Method | HTTP request | Description
|
|
|
324
332
|
- [CoboWaas2.TSSRequestStatus](docs/TSSRequestStatus.md)
|
|
325
333
|
- [CoboWaas2.TSSRequestType](docs/TSSRequestType.md)
|
|
326
334
|
- [CoboWaas2.TSSRequestWebhookEventData](docs/TSSRequestWebhookEventData.md)
|
|
335
|
+
- [CoboWaas2.TokenAssetModelType](docs/TokenAssetModelType.md)
|
|
327
336
|
- [CoboWaas2.TokenBalance](docs/TokenBalance.md)
|
|
328
337
|
- [CoboWaas2.TokenBalanceBalance](docs/TokenBalanceBalance.md)
|
|
329
338
|
- [CoboWaas2.TokenInfo](docs/TokenInfo.md)
|
|
@@ -340,7 +349,9 @@ Class | Method | HTTP request | Description
|
|
|
340
349
|
- [CoboWaas2.TransactionDestinationType](docs/TransactionDestinationType.md)
|
|
341
350
|
- [CoboWaas2.TransactionDetail](docs/TransactionDetail.md)
|
|
342
351
|
- [CoboWaas2.TransactionDetails](docs/TransactionDetails.md)
|
|
352
|
+
- [CoboWaas2.TransactionEvmCalldataInfo](docs/TransactionEvmCalldataInfo.md)
|
|
343
353
|
- [CoboWaas2.TransactionEvmContractDestination](docs/TransactionEvmContractDestination.md)
|
|
354
|
+
- [CoboWaas2.TransactionEvmContractMethod](docs/TransactionEvmContractMethod.md)
|
|
344
355
|
- [CoboWaas2.TransactionEvmEip1559Fee](docs/TransactionEvmEip1559Fee.md)
|
|
345
356
|
- [CoboWaas2.TransactionEvmLegacyFee](docs/TransactionEvmLegacyFee.md)
|
|
346
357
|
- [CoboWaas2.TransactionExchangeWalletSource](docs/TransactionExchangeWalletSource.md)
|
|
@@ -351,6 +362,7 @@ Class | Method | HTTP request | Description
|
|
|
351
362
|
- [CoboWaas2.TransactionMPCWalletSource](docs/TransactionMPCWalletSource.md)
|
|
352
363
|
- [CoboWaas2.TransactionMessageSignEIP191Destination](docs/TransactionMessageSignEIP191Destination.md)
|
|
353
364
|
- [CoboWaas2.TransactionMessageSignEIP712Destination](docs/TransactionMessageSignEIP712Destination.md)
|
|
365
|
+
- [CoboWaas2.TransactionRawMessageSignDestination](docs/TransactionRawMessageSignDestination.md)
|
|
354
366
|
- [CoboWaas2.TransactionRawTxInfo](docs/TransactionRawTxInfo.md)
|
|
355
367
|
- [CoboWaas2.TransactionRbf](docs/TransactionRbf.md)
|
|
356
368
|
- [CoboWaas2.TransactionRbfSource](docs/TransactionRbfSource.md)
|
|
@@ -385,6 +397,8 @@ Class | Method | HTTP request | Description
|
|
|
385
397
|
- [CoboWaas2.TransferDestinationType](docs/TransferDestinationType.md)
|
|
386
398
|
- [CoboWaas2.TransferParams](docs/TransferParams.md)
|
|
387
399
|
- [CoboWaas2.TransferSource](docs/TransferSource.md)
|
|
400
|
+
- [CoboWaas2.TriggerTestWebhookEvent201Response](docs/TriggerTestWebhookEvent201Response.md)
|
|
401
|
+
- [CoboWaas2.TriggerTestWebhookEventRequest](docs/TriggerTestWebhookEventRequest.md)
|
|
388
402
|
- [CoboWaas2.UTXO](docs/UTXO.md)
|
|
389
403
|
- [CoboWaas2.UpdateCustodialWalletParams](docs/UpdateCustodialWalletParams.md)
|
|
390
404
|
- [CoboWaas2.UpdateExchangeWalletParams](docs/UpdateExchangeWalletParams.md)
|
|
@@ -398,8 +412,6 @@ Class | Method | HTTP request | Description
|
|
|
398
412
|
- [CoboWaas2.UpdateWebhookEndpointByIdRequest](docs/UpdateWebhookEndpointByIdRequest.md)
|
|
399
413
|
- [CoboWaas2.UtxoFeeBasePrice](docs/UtxoFeeBasePrice.md)
|
|
400
414
|
- [CoboWaas2.UtxoFeeRate](docs/UtxoFeeRate.md)
|
|
401
|
-
- [CoboWaas2.WalletBalanceSnapshot](docs/WalletBalanceSnapshot.md)
|
|
402
|
-
- [CoboWaas2.WalletBalanceSnapshotRecord](docs/WalletBalanceSnapshotRecord.md)
|
|
403
415
|
- [CoboWaas2.WalletInfo](docs/WalletInfo.md)
|
|
404
416
|
- [CoboWaas2.WalletSubtype](docs/WalletSubtype.md)
|
|
405
417
|
- [CoboWaas2.WalletType](docs/WalletType.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
9
|
+
var _ListAddressBooks200Response = _interopRequireDefault(require("../model/ListAddressBooks200Response"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
14
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
17
|
+
* Cobo Wallet as a Service 2.0
|
|
18
|
+
*
|
|
19
|
+
* Contact: help@cobo.com
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* AddressBooks service.
|
|
28
|
+
* @module api/AddressBooksApi
|
|
29
|
+
*/
|
|
30
|
+
var AddressBooksApi = exports["default"] = /*#__PURE__*/function () {
|
|
31
|
+
/**
|
|
32
|
+
* Constructs a new AddressBooksApi.
|
|
33
|
+
* @alias module:api/AddressBooksApi
|
|
34
|
+
* @class
|
|
35
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
36
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
37
|
+
*/
|
|
38
|
+
function AddressBooksApi(apiClient) {
|
|
39
|
+
_classCallCheck(this, AddressBooksApi);
|
|
40
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* List address book entries
|
|
45
|
+
* This operation retrieves a list of addresses from your address book.
|
|
46
|
+
* @param {String} chain_id The chain ID, which 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).
|
|
47
|
+
* @param {Object} opts Optional parameters
|
|
48
|
+
* @param {String} [address] The wallet address.
|
|
49
|
+
* @param {String} [label] The address label.
|
|
50
|
+
* @param {Number} [limit = 10)] The maximum number of objects to return. For most operations, the value range is [1, 50].
|
|
51
|
+
* @param {String} [before] 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.
|
|
52
|
+
* @param {String} [after] 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.
|
|
53
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAddressBooks200Response} and HTTP response
|
|
54
|
+
*/
|
|
55
|
+
return _createClass(AddressBooksApi, [{
|
|
56
|
+
key: "listAddressBooksWithHttpInfo",
|
|
57
|
+
value: function listAddressBooksWithHttpInfo(chain_id, opts) {
|
|
58
|
+
opts = opts || {};
|
|
59
|
+
var postBody = null;
|
|
60
|
+
if (postBody && postBody.toJSON) {
|
|
61
|
+
postBody = postBody.toJSON();
|
|
62
|
+
}
|
|
63
|
+
// verify the required parameter 'chain_id' is set
|
|
64
|
+
if (chain_id === undefined || chain_id === null) {
|
|
65
|
+
throw new Error("Missing the required parameter 'chain_id' when calling listAddressBooks");
|
|
66
|
+
}
|
|
67
|
+
var pathParams = {};
|
|
68
|
+
var queryParams = {
|
|
69
|
+
'chain_id': chain_id,
|
|
70
|
+
'address': opts['address'],
|
|
71
|
+
'label': opts['label'],
|
|
72
|
+
'limit': opts['limit'],
|
|
73
|
+
'before': opts['before'],
|
|
74
|
+
'after': opts['after']
|
|
75
|
+
};
|
|
76
|
+
var headerParams = {};
|
|
77
|
+
var formParams = {};
|
|
78
|
+
var authNames = ['CoboAuth'];
|
|
79
|
+
var contentTypes = [];
|
|
80
|
+
var accepts = ['application/json'];
|
|
81
|
+
var returnType = _ListAddressBooks200Response["default"];
|
|
82
|
+
return this.apiClient.callApi('/address_books', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* List address book entries
|
|
87
|
+
* This operation retrieves a list of addresses from your address book.
|
|
88
|
+
* @param {String} chain_id The chain ID, which 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).
|
|
89
|
+
* @param {Object} opts Optional parameters
|
|
90
|
+
* @param {String} opts.address The wallet address.
|
|
91
|
+
* @param {String} opts.label The address label.
|
|
92
|
+
* @param {Number} opts.limit The maximum number of objects to return. For most operations, the value range is [1, 50]. (default to 10)
|
|
93
|
+
* @param {String} opts.before 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.
|
|
94
|
+
* @param {String} opts.after 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.
|
|
95
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAddressBooks200Response}
|
|
96
|
+
*/
|
|
97
|
+
}, {
|
|
98
|
+
key: "listAddressBooks",
|
|
99
|
+
value: function listAddressBooks(chain_id, opts) {
|
|
100
|
+
return this.listAddressBooksWithHttpInfo(chain_id, opts).then(function (response_and_data) {
|
|
101
|
+
return response_and_data.data;
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}]);
|
|
105
|
+
}();
|
|
@@ -12,6 +12,8 @@ var _ListWebhookEventDefinitions200ResponseInner = _interopRequireDefault(requir
|
|
|
12
12
|
var _ListWebhookEventLogs200Response = _interopRequireDefault(require("../model/ListWebhookEventLogs200Response"));
|
|
13
13
|
var _ListWebhookEvents200Response = _interopRequireDefault(require("../model/ListWebhookEvents200Response"));
|
|
14
14
|
var _RetryWebhookEventById201Response = _interopRequireDefault(require("../model/RetryWebhookEventById201Response"));
|
|
15
|
+
var _TriggerTestWebhookEvent201Response = _interopRequireDefault(require("../model/TriggerTestWebhookEvent201Response"));
|
|
16
|
+
var _TriggerTestWebhookEventRequest = _interopRequireDefault(require("../model/TriggerTestWebhookEventRequest"));
|
|
15
17
|
var _UpdateWebhookEndpointByIdRequest = _interopRequireDefault(require("../model/UpdateWebhookEndpointByIdRequest"));
|
|
16
18
|
var _WebhookEndpoint = _interopRequireDefault(require("../model/WebhookEndpoint"));
|
|
17
19
|
var _WebhookEndpointStatus = _interopRequireDefault(require("../model/WebhookEndpointStatus"));
|
|
@@ -456,6 +458,47 @@ var DevelopersWebhooksApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
456
458
|
});
|
|
457
459
|
}
|
|
458
460
|
|
|
461
|
+
/**
|
|
462
|
+
* Trigger test event
|
|
463
|
+
* This operation tests the functionality of your webhook endpoint by triggering a test webhook event. You only need to provide the event type. By default, the payload contains dummy data with no impact on your real business transactions or activities. You can optionally provide the `override_data` property to customize the payload.
|
|
464
|
+
* @param {Object} opts Optional parameters
|
|
465
|
+
* @param {module:model/TriggerTestWebhookEventRequest} [TriggerTestWebhookEventRequest] The request body used to trigger a test webhook event.
|
|
466
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TriggerTestWebhookEvent201Response} and HTTP response
|
|
467
|
+
*/
|
|
468
|
+
}, {
|
|
469
|
+
key: "triggerTestWebhookEventWithHttpInfo",
|
|
470
|
+
value: function triggerTestWebhookEventWithHttpInfo(opts) {
|
|
471
|
+
opts = opts || {};
|
|
472
|
+
var postBody = opts['TriggerTestWebhookEventRequest'];
|
|
473
|
+
if (postBody && postBody.toJSON) {
|
|
474
|
+
postBody = postBody.toJSON();
|
|
475
|
+
}
|
|
476
|
+
var pathParams = {};
|
|
477
|
+
var queryParams = {};
|
|
478
|
+
var headerParams = {};
|
|
479
|
+
var formParams = {};
|
|
480
|
+
var authNames = ['CoboAuth'];
|
|
481
|
+
var contentTypes = ['application/json'];
|
|
482
|
+
var accepts = ['application/json'];
|
|
483
|
+
var returnType = _TriggerTestWebhookEvent201Response["default"];
|
|
484
|
+
return this.apiClient.callApi('/webhooks/events/trigger', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Trigger test event
|
|
489
|
+
* This operation tests the functionality of your webhook endpoint by triggering a test webhook event. You only need to provide the event type. By default, the payload contains dummy data with no impact on your real business transactions or activities. You can optionally provide the `override_data` property to customize the payload.
|
|
490
|
+
* @param {Object} opts Optional parameters
|
|
491
|
+
* @param {module:model/TriggerTestWebhookEventRequest} opts.TriggerTestWebhookEventRequest The request body used to trigger a test webhook event.
|
|
492
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TriggerTestWebhookEvent201Response}
|
|
493
|
+
*/
|
|
494
|
+
}, {
|
|
495
|
+
key: "triggerTestWebhookEvent",
|
|
496
|
+
value: function triggerTestWebhookEvent(opts) {
|
|
497
|
+
return this.triggerTestWebhookEventWithHttpInfo(opts).then(function (response_and_data) {
|
|
498
|
+
return response_and_data.data;
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
|
|
459
502
|
/**
|
|
460
503
|
* Update webhook endpoint
|
|
461
504
|
* This operation updates the information of a specified webhook endpoint.
|
package/dist/api/OAuthApi.js
CHANGED
|
@@ -8,7 +8,7 @@ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
|
8
8
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
9
9
|
var _GetToken200Response = _interopRequireDefault(require("../model/GetToken200Response"));
|
|
10
10
|
var _GetToken4XXResponse = _interopRequireDefault(require("../model/GetToken4XXResponse"));
|
|
11
|
-
var
|
|
11
|
+
var _RefreshToken201Response = _interopRequireDefault(require("../model/RefreshToken201Response"));
|
|
12
12
|
var _RefreshTokenRequest = _interopRequireDefault(require("../model/RefreshTokenRequest"));
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
14
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
@@ -44,10 +44,10 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* Get
|
|
48
|
-
* <Note>This operation is only applicable to Cobo Portal App developers. To call this operation, you need to use the OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to get an
|
|
49
|
-
* @param {String} client_id The
|
|
50
|
-
* @param {String} org_id Organization ID, a unique identifier to distinguish different organizations. You can get the
|
|
47
|
+
* Get Org Access Token
|
|
48
|
+
* <Note>This operation is only applicable to Cobo Portal App developers. To call this operation, you need to use the Cobo OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to get an Org Access Token and a Refresh Token with a specified client ID, organization ID, and grant type. Access tokens allow the app to signal to the WaaS service that it has received permission to access specific resources of the app user's [organization](https://manuals.cobo.com/en/portal/organization/introduction). Once the app has been granted permission by the organization's admin, it can use this operation to obtain both an Org Access Token and a Refresh Token. For security purposes, Org Access Tokens expire after a certain period. Once they expire, the app needs to call [Refresh token](/v2/api-references/oauth/refresh-org-access-token) to get a new Org Access Token and a new Refresh Token.
|
|
49
|
+
* @param {String} client_id The client ID, a unique identifier to distinguish Cobo Portal Apps. You can get the client ID by retrieving the manifest file after publishing the app.
|
|
50
|
+
* @param {String} org_id Organization ID, a unique identifier to distinguish different organizations. You can get the organization ID from the callback message sent to the URL that was configured in the manifest file.
|
|
51
51
|
* @param {String} grant_type The OAuth grant type. Set the value as `org_implicit`.
|
|
52
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetToken200Response} and HTTP response
|
|
53
53
|
*/
|
|
@@ -86,10 +86,10 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
|
-
* Get
|
|
90
|
-
* <Note>This operation is only applicable to Cobo Portal App developers. To call this operation, you need to use the OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to get an
|
|
91
|
-
* @param {String} client_id The
|
|
92
|
-
* @param {String} org_id Organization ID, a unique identifier to distinguish different organizations. You can get the
|
|
89
|
+
* Get Org Access Token
|
|
90
|
+
* <Note>This operation is only applicable to Cobo Portal App developers. To call this operation, you need to use the Cobo OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to get an Org Access Token and a Refresh Token with a specified client ID, organization ID, and grant type. Access tokens allow the app to signal to the WaaS service that it has received permission to access specific resources of the app user's [organization](https://manuals.cobo.com/en/portal/organization/introduction). Once the app has been granted permission by the organization's admin, it can use this operation to obtain both an Org Access Token and a Refresh Token. For security purposes, Org Access Tokens expire after a certain period. Once they expire, the app needs to call [Refresh token](/v2/api-references/oauth/refresh-org-access-token) to get a new Org Access Token and a new Refresh Token.
|
|
91
|
+
* @param {String} client_id The client ID, a unique identifier to distinguish Cobo Portal Apps. You can get the client ID by retrieving the manifest file after publishing the app.
|
|
92
|
+
* @param {String} org_id Organization ID, a unique identifier to distinguish different organizations. You can get the organization ID from the callback message sent to the URL that was configured in the manifest file.
|
|
93
93
|
* @param {String} grant_type The OAuth grant type. Set the value as `org_implicit`.
|
|
94
94
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetToken200Response}
|
|
95
95
|
*/
|
|
@@ -102,10 +102,10 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* Refresh
|
|
106
|
-
* <Note>This operation is only applicable to Cobo Portal Apps developers. To call this operation, you need to use the OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to obtain a new
|
|
107
|
-
* @param {module:model/RefreshTokenRequest} RefreshTokenRequest The request body for refreshing an
|
|
108
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
105
|
+
* Refresh Org Access Token
|
|
106
|
+
* <Note>This operation is only applicable to Cobo Portal Apps developers. To call this operation, you need to use the Cobo OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to obtain a new Org Access Token with a specified client ID, grant type and a Refresh Token. For security purposes, Org Access Tokens expire after a certain period. Once they expire, the app needs to call this operation to get a new Org Access Token and a new Refresh Token.
|
|
107
|
+
* @param {module:model/RefreshTokenRequest} RefreshTokenRequest The request body for refreshing an Org Access Token.
|
|
108
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RefreshToken201Response} and HTTP response
|
|
109
109
|
*/
|
|
110
110
|
}, {
|
|
111
111
|
key: "refreshTokenWithHttpInfo",
|
|
@@ -125,15 +125,15 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
125
125
|
var authNames = ['CoboAuth'];
|
|
126
126
|
var contentTypes = ['application/json'];
|
|
127
127
|
var accepts = ['application/json'];
|
|
128
|
-
var returnType =
|
|
128
|
+
var returnType = _RefreshToken201Response["default"];
|
|
129
129
|
return this.apiClient.callApi('/oauth/token', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
|
-
* Refresh
|
|
134
|
-
* <Note>This operation is only applicable to Cobo Portal Apps developers. To call this operation, you need to use the OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to obtain a new
|
|
135
|
-
* @param {module:model/RefreshTokenRequest} RefreshTokenRequest The request body for refreshing an
|
|
136
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
133
|
+
* Refresh Org Access Token
|
|
134
|
+
* <Note>This operation is only applicable to Cobo Portal Apps developers. To call this operation, you need to use the Cobo OAuth authentication method that requires an app key.</Note> This operation allows Cobo Portal Apps to obtain a new Org Access Token with a specified client ID, grant type and a Refresh Token. For security purposes, Org Access Tokens expire after a certain period. Once they expire, the app needs to call this operation to get a new Org Access Token and a new Refresh Token.
|
|
135
|
+
* @param {module:model/RefreshTokenRequest} RefreshTokenRequest The request body for refreshing an Org Access Token.
|
|
136
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RefreshToken201Response}
|
|
137
137
|
*/
|
|
138
138
|
}, {
|
|
139
139
|
key: "refreshToken",
|
|
@@ -138,8 +138,8 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* Check Loop transfers
|
|
142
|
-
* This operation verifies if the transactions from a given source wallet to a list of given destinations can be executed as Loop transfers. For more information about Loop, see [Loop's
|
|
141
|
+
* Check Cobo Loop transfers
|
|
142
|
+
* This operation verifies if the transactions from a given source wallet to a list of given destinations can be executed as Cobo Loop transfers. For more information about Cobo Loop, see [Cobo Loop's product manuals](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop).
|
|
143
143
|
* @param {String} token_id 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](/v2/api-references/wallets/list-enabled-tokens).
|
|
144
144
|
* @param {String} source_wallet_id The wallet ID of the transaction source.
|
|
145
145
|
* @param {String} destination_addresses A list of destination addresses, separated by comma.
|
|
@@ -180,8 +180,8 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
|
-
* Check Loop transfers
|
|
184
|
-
* This operation verifies if the transactions from a given source wallet to a list of given destinations can be executed as Loop transfers. For more information about Loop, see [Loop's
|
|
183
|
+
* Check Cobo Loop transfers
|
|
184
|
+
* This operation verifies if the transactions from a given source wallet to a list of given destinations can be executed as Cobo Loop transfers. For more information about Cobo Loop, see [Cobo Loop's product manuals](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop).
|
|
185
185
|
* @param {String} token_id 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](/v2/api-references/wallets/list-enabled-tokens).
|
|
186
186
|
* @param {String} source_wallet_id The wallet ID of the transaction source.
|
|
187
187
|
* @param {String} destination_addresses A list of destination addresses, separated by comma.
|
|
@@ -240,7 +240,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
240
240
|
* Sign message
|
|
241
241
|
* 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). <Note>This operation only applies to transactions from MPC Wallets.</Note>
|
|
242
242
|
* @param {Object} opts Optional parameters
|
|
243
|
-
* @param {module:model/MessageSignParams} [MessageSignParams] The request body to create a message
|
|
243
|
+
* @param {module:model/MessageSignParams} [MessageSignParams] The request body to create a message signing transaction
|
|
244
244
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
|
|
245
245
|
*/
|
|
246
246
|
}, {
|
|
@@ -266,7 +266,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
266
266
|
* Sign message
|
|
267
267
|
* 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). <Note>This operation only applies to transactions from MPC Wallets.</Note>
|
|
268
268
|
* @param {Object} opts Optional parameters
|
|
269
|
-
* @param {module:model/MessageSignParams} opts.MessageSignParams The request body to create a message
|
|
269
|
+
* @param {module:model/MessageSignParams} opts.MessageSignParams The request body to create a message signing transaction
|
|
270
270
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
|
|
271
271
|
*/
|
|
272
272
|
}, {
|
|
@@ -279,7 +279,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
279
279
|
|
|
280
280
|
/**
|
|
281
281
|
* Transfer token
|
|
282
|
-
* 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. <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
|
|
282
|
+
* 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. <Note>If you make transfers from Custodial Wallets, do not set the fee-related properties. Otherwise, the transaction will fail.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
|
|
283
283
|
* @param {Object} opts Optional parameters
|
|
284
284
|
* @param {module:model/TransferParams} [TransferParams] The request body to create a transfer transaction
|
|
285
285
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
|
|
@@ -305,7 +305,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
305
305
|
|
|
306
306
|
/**
|
|
307
307
|
* Transfer token
|
|
308
|
-
* 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. <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
|
|
308
|
+
* 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. <Note>If you make transfers from Custodial Wallets, do not set the fee-related properties. Otherwise, the transaction will fail.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
|
|
309
309
|
* @param {Object} opts Optional parameters
|
|
310
310
|
* @param {module:model/TransferParams} opts.TransferParams The request body to create a transfer transaction
|
|
311
311
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
|
|
@@ -320,7 +320,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
320
320
|
|
|
321
321
|
/**
|
|
322
322
|
* Drop transaction
|
|
323
|
-
* This operation drops a specified transaction. Dropping a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It
|
|
323
|
+
* This operation drops a specified transaction. Dropping a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It must have a higher transaction fee to incentivize miners to prioritize its confirmation over the original one. A transaction can be dropped if its status is `Broadcasting`. <ul> <li>For EVM chains, this RBF transaction has a transfer amount of `0` and the sending address is the same as the receiving address.</li> <li>For UTXO chains, this RBF transaction has a transfer amount of `0` and the destination address is the same as the change address in the original transaction.</li> </ul> You can use the `address` or `included_utxos` properties in the request body to specify the address or UTXOs that will cover the transaction fee. Generally, the transaction fee is paid by the original transaction's source. If that source's balance is insufficient, the specified address or UTXOs can be used to cover the fee. A transaction request for tracking is returned upon successful operation. When a transaction is being dropped, any subsequent drop or speed up operations will still apply to the original transaction. For example, if a user creates Transaction A and later performs a drop operation on Transaction A using Transaction B, followed by a speed up operation on Transaction B using Transaction C, the speed up operation will still apply to Transaction A, not Transaction B. <Note>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.</Note> <Info>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.</Info>
|
|
324
324
|
* @param {String} transaction_id The transaction ID.
|
|
325
325
|
* @param {Object} opts Optional parameters
|
|
326
326
|
* @param {module:model/TransactionRbf} [TransactionRbf] The request body to drop or to speed up transactions
|
|
@@ -353,7 +353,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
353
353
|
|
|
354
354
|
/**
|
|
355
355
|
* Drop transaction
|
|
356
|
-
* This operation drops a specified transaction. Dropping a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It
|
|
356
|
+
* This operation drops a specified transaction. Dropping a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It must have a higher transaction fee to incentivize miners to prioritize its confirmation over the original one. A transaction can be dropped if its status is `Broadcasting`. <ul> <li>For EVM chains, this RBF transaction has a transfer amount of `0` and the sending address is the same as the receiving address.</li> <li>For UTXO chains, this RBF transaction has a transfer amount of `0` and the destination address is the same as the change address in the original transaction.</li> </ul> You can use the `address` or `included_utxos` properties in the request body to specify the address or UTXOs that will cover the transaction fee. Generally, the transaction fee is paid by the original transaction's source. If that source's balance is insufficient, the specified address or UTXOs can be used to cover the fee. A transaction request for tracking is returned upon successful operation. When a transaction is being dropped, any subsequent drop or speed up operations will still apply to the original transaction. For example, if a user creates Transaction A and later performs a drop operation on Transaction A using Transaction B, followed by a speed up operation on Transaction B using Transaction C, the speed up operation will still apply to Transaction A, not Transaction B. <Note>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.</Note> <Info>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.</Info>
|
|
357
357
|
* @param {String} transaction_id The transaction ID.
|
|
358
358
|
* @param {Object} opts Optional parameters
|
|
359
359
|
* @param {module:model/TransactionRbf} opts.TransactionRbf The request body to drop or to speed up transactions
|
|
@@ -460,7 +460,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
460
460
|
* @param {String} [cobo_ids] A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
|
|
461
461
|
* @param {String} [transaction_ids] A list of transaction IDs, separated by comma.
|
|
462
462
|
* @param {String} [transaction_hashes] A list of transaction hashes, separated by comma.
|
|
463
|
-
* @param {String} [types] 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.
|
|
463
|
+
* @param {String} [types] 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. - `Stake`: A transaction that creates a staking request. - `Unstake`: A transaction that creates a unstaking request.
|
|
464
464
|
* @param {String} [statuses] 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 waiting to be included in the next block of the blockchain.
|
|
465
465
|
* @param {String} [wallet_ids] A list of wallet IDs, separated by comma.
|
|
466
466
|
* @param {String} [chain_ids] 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).
|
|
@@ -520,7 +520,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
520
520
|
* @param {String} opts.cobo_ids A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
|
|
521
521
|
* @param {String} opts.transaction_ids A list of transaction IDs, separated by comma.
|
|
522
522
|
* @param {String} opts.transaction_hashes A list of transaction hashes, separated by comma.
|
|
523
|
-
* @param {String} opts.types 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.
|
|
523
|
+
* @param {String} opts.types 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. - `Stake`: A transaction that creates a staking request. - `Unstake`: A transaction that creates a unstaking request.
|
|
524
524
|
* @param {String} opts.statuses 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 waiting to be included in the next block of the blockchain.
|
|
525
525
|
* @param {String} opts.wallet_ids A list of wallet IDs, separated by comma.
|
|
526
526
|
* @param {String} opts.chain_ids 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).
|
|
@@ -594,7 +594,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
594
594
|
|
|
595
595
|
/**
|
|
596
596
|
* Speed up transaction
|
|
597
|
-
* This operation accelerates a specified transaction. Speeding up a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It shares the same inputs but
|
|
597
|
+
* This operation accelerates a specified transaction. Speeding up a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It shares the same inputs but must have a higher transaction fee to incentivize miners to prioritize its confirmation over the previous one. A transaction can be accelerated if its status is `Broadcasting`. You can use the `address` or `included_utxos` properties in the request body to specify the address or UTXOs that will cover the transaction fee. Generally, the transaction fee is paid by the original transaction's source. If that source's balance is insufficient, the specified address or UTXOs can be used to cover the fee. A transaction request for tracking is returned upon successful operation. <Note>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.</Note> <Info>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.</Info>
|
|
598
598
|
* @param {String} transaction_id The transaction ID.
|
|
599
599
|
* @param {Object} opts Optional parameters
|
|
600
600
|
* @param {module:model/TransactionRbf} [TransactionRbf] The request body to drop or to speed up transactions
|
|
@@ -627,7 +627,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
627
627
|
|
|
628
628
|
/**
|
|
629
629
|
* Speed up transaction
|
|
630
|
-
* This operation accelerates a specified transaction. Speeding up a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It shares the same inputs but
|
|
630
|
+
* This operation accelerates a specified transaction. Speeding up a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It shares the same inputs but must have a higher transaction fee to incentivize miners to prioritize its confirmation over the previous one. A transaction can be accelerated if its status is `Broadcasting`. You can use the `address` or `included_utxos` properties in the request body to specify the address or UTXOs that will cover the transaction fee. Generally, the transaction fee is paid by the original transaction's source. If that source's balance is insufficient, the specified address or UTXOs can be used to cover the fee. A transaction request for tracking is returned upon successful operation. <Note>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.</Note> <Info>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.</Info>
|
|
631
631
|
* @param {String} transaction_id The transaction ID.
|
|
632
632
|
* @param {Object} opts Optional parameters
|
|
633
633
|
* @param {module:model/TransactionRbf} opts.TransactionRbf The request body to drop or to speed up transactions
|
package/dist/api/WalletsApi.js
CHANGED
|
@@ -394,7 +394,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
394
394
|
|
|
395
395
|
/**
|
|
396
396
|
* Get maximum transferable value
|
|
397
|
-
* This operation retrieves the maximum amount that you can transfer from a wallet or a specified wallet address, along with the corresponding transaction fee. You must specify `to_address` in your query because it affects the transaction fee.
|
|
397
|
+
* This operation retrieves the maximum amount that you can transfer from a wallet or a specified wallet address, along with the corresponding transaction fee. You must specify `to_address` in your query because it affects the transaction fee. <Note>This operation is applicable to Custodial Wallets and MPC Wallets only.</Note>
|
|
398
398
|
* @param {String} wallet_id The wallet ID.
|
|
399
399
|
* @param {String} token_id 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](/v2/api-references/wallets/list-enabled-tokens).
|
|
400
400
|
* @param {String} fee_rate The fee rate in sats/vByte or gas price in wei.
|
|
@@ -447,7 +447,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
447
447
|
|
|
448
448
|
/**
|
|
449
449
|
* Get maximum transferable value
|
|
450
|
-
* This operation retrieves the maximum amount that you can transfer from a wallet or a specified wallet address, along with the corresponding transaction fee. You must specify `to_address` in your query because it affects the transaction fee.
|
|
450
|
+
* This operation retrieves the maximum amount that you can transfer from a wallet or a specified wallet address, along with the corresponding transaction fee. You must specify `to_address` in your query because it affects the transaction fee. <Note>This operation is applicable to Custodial Wallets and MPC Wallets only.</Note>
|
|
451
451
|
* @param {String} wallet_id The wallet ID.
|
|
452
452
|
* @param {String} token_id 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](/v2/api-references/wallets/list-enabled-tokens).
|
|
453
453
|
* @param {String} fee_rate The fee rate in sats/vByte or gas price in wei.
|
|
@@ -1043,7 +1043,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1043
1043
|
|
|
1044
1044
|
/**
|
|
1045
1045
|
* List all wallets
|
|
1046
|
-
* This operation retrieves the information of all wallets under your organization. You can filter the result by wallet type and subtype. For MPC Wallets, you can also filter by project ID and vault ID.
|
|
1046
|
+
* This operation retrieves the information of all wallets under your organization. You can filter the result by wallet type and subtype. For MPC Wallets, you can also filter by project ID and vault ID.
|
|
1047
1047
|
* @param {Object} opts Optional parameters
|
|
1048
1048
|
* @param {module:model/WalletType} [wallet_type] The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction)
|
|
1049
1049
|
* @param {module:model/WalletSubtype} [wallet_subtype] The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet})
|
|
@@ -1083,7 +1083,7 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1083
1083
|
|
|
1084
1084
|
/**
|
|
1085
1085
|
* List all wallets
|
|
1086
|
-
* This operation retrieves the information of all wallets under your organization. You can filter the result by wallet type and subtype. For MPC Wallets, you can also filter by project ID and vault ID.
|
|
1086
|
+
* This operation retrieves the information of all wallets under your organization. You can filter the result by wallet type and subtype. For MPC Wallets, you can also filter by project ID and vault ID.
|
|
1087
1087
|
* @param {Object} opts Optional parameters
|
|
1088
1088
|
* @param {module:model/WalletType} opts.wallet_type The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction)
|
|
1089
1089
|
* @param {module:model/WalletSubtype} opts.wallet_subtype The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet})
|