@cobo/cobo-waas2 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -3
- package/dist/ApiClient.js +1 -1
- package/dist/api/OAuthApi.js +16 -15
- package/dist/api/TransactionsApi.js +18 -18
- package/dist/api/WalletsApi.js +123 -12
- package/dist/api/WalletsExchangeWalletApi.js +254 -0
- package/dist/api/WalletsMPCWalletsApi.js +8 -8
- package/dist/index.js +56 -0
- package/dist/model/Activity.js +3 -1
- package/dist/model/AddressInfo.js +1 -1
- package/dist/model/AddressTransferDestination.js +6 -4
- package/dist/model/AddressTransferDestinationAccountOutput.js +2 -2
- package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +1 -1
- package/dist/model/AssetBalance.js +3 -1
- package/dist/model/AssetInfo.js +2 -2
- package/dist/model/BabylonStakeExtra.js +9 -0
- package/dist/model/CheckAddressValidity200Response.js +2 -2
- package/dist/model/CheckAddressesValidity200ResponseInner.js +121 -0
- package/dist/model/CheckLoopTransfers200ResponseInner.js +96 -0
- package/dist/model/CoboSafeDelegate.js +3 -3
- package/dist/model/ContractCallDestination.js +4 -4
- package/dist/model/ContractCallParams.js +9 -3
- package/dist/model/ContractCallSource.js +6 -6
- package/dist/model/CreateSafeWalletParams.js +3 -1
- package/dist/model/CreateSmartContractWalletParams.js +3 -3
- package/dist/model/CreateStakeActivity.js +23 -4
- package/dist/model/CreateStakeActivityExtra.js +15 -9
- package/dist/model/CreateTssRequestRequest.js +16 -1
- package/dist/model/CreateUnstakeActivity.js +16 -1
- package/dist/model/CreateWalletParams.js +9 -9
- package/dist/model/CreateWithdrawActivity.js +16 -1
- package/dist/model/CreatedWalletInfo.js +21 -9
- package/dist/model/EstimateContractCallFeeParams.js +6 -2
- package/dist/model/EstimateFeeParams.js +6 -6
- package/dist/model/EstimateStakeFee.js +28 -4
- package/dist/model/EstimateTransferFeeParams.js +6 -2
- package/dist/model/EstimateUnstakeFee.js +21 -1
- package/dist/model/EstimateWithdrawFee.js +21 -1
- package/dist/model/EstimatedEvmEip1559Fee.js +9 -3
- package/dist/model/EstimatedEvmLegacyFee.js +9 -3
- package/dist/model/EstimatedFee.js +12 -12
- package/dist/model/EstimatedUtxoFee.js +9 -3
- package/dist/model/EvmContractCallDestination.js +1 -1
- package/dist/model/EvmEip1559FeeRate.js +9 -3
- package/dist/model/EvmLegacyFeeRate.js +9 -3
- package/dist/model/ExchangeId.js +5 -0
- package/dist/model/ExchangeTransferDestination.js +16 -16
- package/dist/model/ExchangeTransferSource.js +14 -14
- package/dist/model/FeeRate.js +12 -12
- package/dist/model/GetToken200Response.js +4 -4
- package/dist/model/KeyShareHolder.js +13 -0
- package/dist/model/ListAddresses200Response.js +3 -1
- package/dist/model/ListAssetBalancesForExchangeWallet200Response.js +123 -0
- package/dist/model/ListExchanges200ResponseInner.js +122 -0
- package/dist/model/ListKeyShareHolderGroups200Response.js +3 -1
- package/dist/model/ListMpcProjects200Response.js +3 -1
- package/dist/model/ListMpcVaults200Response.js +3 -1
- package/dist/model/ListSupportedAssetsForExchange200Response.js +123 -0
- package/dist/model/ListSupportedChains200Response.js +3 -1
- package/dist/model/ListSupportedTokens200Response.js +3 -1
- package/dist/model/ListTokenBalancesForAddress200Response.js +3 -1
- package/dist/model/ListTransactions200Response.js +3 -1
- package/dist/model/ListTssRequests200Response.js +3 -1
- package/dist/model/ListUtxos200Response.js +3 -1
- package/dist/model/ListWallets200Response.js +3 -1
- package/dist/model/ListWebhookEndpoints200Response.js +3 -1
- package/dist/model/ListWebhookEventLogs200Response.js +3 -1
- package/dist/model/ListWebhookEvents200Response.js +3 -1
- package/dist/model/MPCWalletInfo.js +26 -0
- package/dist/model/MaxTransferableValue.js +3 -1
- package/dist/model/MessageSignDestination.js +6 -6
- package/dist/model/MessageSignParams.js +6 -2
- package/dist/model/MessageSignSource.js +3 -3
- package/dist/model/PoolDetailsAllOfValidatorsInfo.js +6 -6
- package/dist/model/RefreshToken200Response.js +135 -0
- package/dist/model/RefreshTokenRequest.js +2 -2
- package/dist/model/SafeContractCallSource.js +3 -1
- package/dist/model/SafeTransferSource.js +3 -1
- package/dist/model/SafeWallet.js +3 -1
- package/dist/model/SmartContractWalletInfo.js +3 -3
- package/dist/model/SmartContractWalletType.js +2 -2
- package/dist/model/StakingSource.js +6 -6
- package/dist/model/Stakings.js +3 -1
- package/dist/model/SubWalletAssetBalance.js +13 -11
- package/dist/model/TSSRequest.js +26 -2
- package/dist/model/TSSRequestWebhookEventData.js +263 -0
- package/dist/model/TokenBalance.js +3 -1
- package/dist/model/Transaction.js +21 -7
- package/dist/model/TransactionDepositFromWalletSource.js +6 -6
- package/dist/model/TransactionDepositToAddressDestination.js +2 -2
- package/dist/model/TransactionDepositToWalletDestination.js +9 -9
- package/dist/model/TransactionDestination.js +26 -26
- package/dist/model/TransactionDetail.js +21 -7
- package/dist/model/TransactionDetails.js +24 -8
- package/dist/model/TransactionEvmContractDestination.js +1 -1
- package/dist/model/TransactionExchangeWalletSource.js +6 -6
- package/dist/model/TransactionFee.js +12 -12
- package/dist/model/TransactionMPCWalletSource.js +13 -0
- package/dist/model/TransactionRbf.js +6 -2
- package/dist/model/TransactionRbfSource.js +3 -3
- package/dist/model/TransactionRequestFee.js +12 -12
- package/dist/model/TransactionResult.js +3 -3
- package/dist/model/TransactionSmartContractSafeWalletSource.js +3 -1
- package/dist/model/TransactionSource.js +29 -23
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionTransferToAddressDestination.js +3 -1
- package/dist/model/TransactionTransferToAddressDestinationAccountOutput.js +1 -1
- package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +1 -1
- package/dist/model/TransactionTransferToWalletDestination.js +9 -9
- package/dist/model/TransactionWebhookEventData.js +29 -10
- package/dist/model/TransferDestination.js +12 -12
- package/dist/model/TransferParams.js +11 -5
- package/dist/model/TransferSource.js +15 -15
- package/dist/model/UpdateWalletParams.js +12 -12
- package/dist/model/UtxoFeeRate.js +9 -3
- package/dist/model/WalletInfo.js +24 -12
- package/dist/model/WebhookEvent.js +3 -1
- package/dist/model/WebhookEventData.js +52 -18
- package/dist/model/WebhookEventDataType.js +7 -2
- package/dist/model/WebhookEventLog.js +3 -1
- package/dist/model/WebhookEventType.js +24 -4
- package/docs/AddressInfo.md +1 -1
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/AddressTransferDestinationAccountOutput.md +1 -1
- package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -1
- package/docs/AssetInfo.md +1 -1
- package/docs/BabylonStakeExtra.md +1 -0
- package/docs/CheckAddressValidity200Response.md +1 -1
- package/docs/CheckAddressesValidity200ResponseInner.md +10 -0
- package/docs/CheckLoopTransfers200ResponseInner.md +10 -0
- package/docs/ContractCallDestination.md +1 -1
- package/docs/CreateStakeActivity.md +1 -0
- package/docs/CreateStakeActivityExtra.md +1 -0
- package/docs/CreateTssRequestRequest.md +1 -0
- package/docs/CreateUnstakeActivity.md +1 -0
- package/docs/CreateWithdrawActivity.md +1 -0
- package/docs/CreatedWalletInfo.md +2 -0
- package/docs/DevelopersWebhooksApi.md +78 -69
- package/docs/EstimateStakeFee.md +1 -0
- package/docs/EstimateUnstakeFee.md +1 -0
- package/docs/EstimateWithdrawFee.md +1 -0
- package/docs/EvmContractCallDestination.md +1 -1
- package/docs/ExchangeId.md +2 -0
- package/docs/ExchangeTransferDestination.md +2 -2
- package/docs/ExchangeTransferSource.md +1 -1
- package/docs/GetToken200Response.md +4 -4
- package/docs/KeyShareHolder.md +1 -0
- package/docs/ListAssetBalancesForExchangeWallet200Response.md +10 -0
- package/docs/ListExchanges200ResponseInner.md +10 -0
- package/docs/ListSupportedAssetsForExchange200Response.md +10 -0
- package/docs/MPCWalletInfo.md +2 -0
- package/docs/OAuthApi.md +26 -24
- package/docs/RefreshToken200Response.md +13 -0
- package/docs/RefreshTokenRequest.md +2 -2
- package/docs/SmartContractWalletType.md +1 -1
- package/docs/SubWalletAssetBalance.md +2 -2
- package/docs/TSSRequest.md +2 -0
- package/docs/TSSRequestWebhookEventData.md +29 -0
- package/docs/TransactionDepositFromWalletSource.md +1 -1
- package/docs/TransactionDepositToAddressDestination.md +1 -1
- package/docs/TransactionDepositToWalletDestination.md +2 -2
- package/docs/TransactionDestination.md +3 -3
- package/docs/TransactionEvmContractDestination.md +1 -1
- package/docs/TransactionExchangeWalletSource.md +1 -1
- package/docs/TransactionMPCWalletSource.md +1 -0
- package/docs/TransactionSource.md +2 -1
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionTransferToAddressDestinationAccountOutput.md +1 -1
- package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +1 -1
- package/docs/TransactionTransferToWalletDestination.md +2 -2
- package/docs/TransactionWebhookEventData.md +3 -1
- package/docs/TransactionsApi.md +98 -88
- package/docs/TransferDestination.md +4 -4
- package/docs/TransferParams.md +1 -1
- package/docs/TransferSource.md +1 -1
- package/docs/WalletInfo.md +2 -0
- package/docs/WalletsApi.md +316 -187
- package/docs/WalletsExchangeWalletApi.md +230 -0
- package/docs/WalletsMPCWalletsApi.md +153 -135
- package/docs/WebhookEventData.md +10 -5
- package/docs/WebhookEventDataType.md +3 -1
- package/docs/WebhookEventType.md +12 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](http
|
|
|
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.2.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)
|
|
@@ -70,8 +70,8 @@ Class | Method | HTTP request | Description
|
|
|
70
70
|
*CoboWaas2.DevelopersWebhooksApi* | [**listWebhookEvents**](docs/DevelopersWebhooksApi.md#listWebhookEvents) | **GET** /webhooks/endpoints/{endpoint_id}/events | List all webhook events
|
|
71
71
|
*CoboWaas2.DevelopersWebhooksApi* | [**retryWebhookEventById**](docs/DevelopersWebhooksApi.md#retryWebhookEventById) | **POST** /webhooks/endpoints/{endpoint_id}/events/{event_id}/retry | Retry event
|
|
72
72
|
*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
|
|
73
|
+
*CoboWaas2.OAuthApi* | [**getToken**](docs/OAuthApi.md#getToken) | **GET** /oauth/token | Get access token
|
|
74
|
+
*CoboWaas2.OAuthApi* | [**refreshToken**](docs/OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh access token
|
|
75
75
|
*CoboWaas2.TransactionsApi* | [**cancelTransactionById**](docs/TransactionsApi.md#cancelTransactionById) | **POST** /transactions/{transaction_id}/cancel | Cancel transaction
|
|
76
76
|
*CoboWaas2.TransactionsApi* | [**createContractCallTransaction**](docs/TransactionsApi.md#createContractCallTransaction) | **POST** /transactions/contract_call | Call smart contract
|
|
77
77
|
*CoboWaas2.TransactionsApi* | [**createMessageSignTransaction**](docs/TransactionsApi.md#createMessageSignTransaction) | **POST** /transactions/message_sign | Sign message
|
|
@@ -83,6 +83,8 @@ Class | Method | HTTP request | Description
|
|
|
83
83
|
*CoboWaas2.TransactionsApi* | [**resendTransactionById**](docs/TransactionsApi.md#resendTransactionById) | **POST** /transactions/{transaction_id}/resend | Resend transaction
|
|
84
84
|
*CoboWaas2.TransactionsApi* | [**speedupTransactionById**](docs/TransactionsApi.md#speedupTransactionById) | **POST** /transactions/{transaction_id}/speedup | Speed up transaction
|
|
85
85
|
*CoboWaas2.WalletsApi* | [**checkAddressValidity**](docs/WalletsApi.md#checkAddressValidity) | **GET** /wallets/check_address_validity | Check address validity
|
|
86
|
+
*CoboWaas2.WalletsApi* | [**checkAddressesValidity**](docs/WalletsApi.md#checkAddressesValidity) | **GET** /wallets/check_addresses_validity | Check addresses validity
|
|
87
|
+
*CoboWaas2.WalletsApi* | [**checkLoopTransfers**](docs/WalletsApi.md#checkLoopTransfers) | **GET** /wallets/check_loop_transfers | Check Loop transfers
|
|
86
88
|
*CoboWaas2.WalletsApi* | [**createAddress**](docs/WalletsApi.md#createAddress) | **POST** /wallets/{wallet_id}/addresses | Create addresses in wallet
|
|
87
89
|
*CoboWaas2.WalletsApi* | [**createWallet**](docs/WalletsApi.md#createWallet) | **POST** /wallets | Create wallet
|
|
88
90
|
*CoboWaas2.WalletsApi* | [**deleteWalletById**](docs/WalletsApi.md#deleteWalletById) | **POST** /wallets/{wallet_id}/delete | Delete wallet
|
|
@@ -103,6 +105,10 @@ Class | Method | HTTP request | Description
|
|
|
103
105
|
*CoboWaas2.WalletsApi* | [**lockUtxos**](docs/WalletsApi.md#lockUtxos) | **POST** /wallets/{wallet_id}/utxos/lock | Lock UTXOs
|
|
104
106
|
*CoboWaas2.WalletsApi* | [**unlockUtxos**](docs/WalletsApi.md#unlockUtxos) | **POST** /wallets/{wallet_id}/utxos/unlock | Unlock UTXOs
|
|
105
107
|
*CoboWaas2.WalletsApi* | [**updateWalletById**](docs/WalletsApi.md#updateWalletById) | **PUT** /wallets/{wallet_id} | Update wallet
|
|
108
|
+
*CoboWaas2.WalletsExchangeWalletApi* | [**listAssetBalancesForExchangeWallet**](docs/WalletsExchangeWalletApi.md#listAssetBalancesForExchangeWallet) | **GET** /wallets/{wallet_id}/exchanges/assets | List asset balances
|
|
109
|
+
*CoboWaas2.WalletsExchangeWalletApi* | [**listExchanges**](docs/WalletsExchangeWalletApi.md#listExchanges) | **GET** /wallets/exchanges | List supported exchanges
|
|
110
|
+
*CoboWaas2.WalletsExchangeWalletApi* | [**listSupportedAssetsForExchange**](docs/WalletsExchangeWalletApi.md#listSupportedAssetsForExchange) | **GET** /wallets/exchanges/{exchange_id}/assets | List supported assets
|
|
111
|
+
*CoboWaas2.WalletsExchangeWalletApi* | [**listSupportedChainsForExchange**](docs/WalletsExchangeWalletApi.md#listSupportedChainsForExchange) | **GET** /wallets/exchanges/{exchange_id}/assets/{asset_id}/chains | List supported chains
|
|
106
112
|
*CoboWaas2.WalletsMPCWalletsApi* | [**cancelTssRequestById**](docs/WalletsMPCWalletsApi.md#cancelTssRequestById) | **POST** /wallets/mpc/vaults/{vault_id}/tss_requests/{tss_request_id}/cancel | Cancel TSS request
|
|
107
113
|
*CoboWaas2.WalletsMPCWalletsApi* | [**createKeyShareHolderGroup**](docs/WalletsMPCWalletsApi.md#createKeyShareHolderGroup) | **POST** /wallets/mpc/vaults/{vault_id}/key_share_holder_groups | Create key share holder group
|
|
108
114
|
*CoboWaas2.WalletsMPCWalletsApi* | [**createMpcProject**](docs/WalletsMPCWalletsApi.md#createMpcProject) | **POST** /wallets/mpc/projects | Create project
|
|
@@ -147,6 +153,8 @@ Class | Method | HTTP request | Description
|
|
|
147
153
|
- [CoboWaas2.BaseStakeExtra](docs/BaseStakeExtra.md)
|
|
148
154
|
- [CoboWaas2.ChainInfo](docs/ChainInfo.md)
|
|
149
155
|
- [CoboWaas2.CheckAddressValidity200Response](docs/CheckAddressValidity200Response.md)
|
|
156
|
+
- [CoboWaas2.CheckAddressesValidity200ResponseInner](docs/CheckAddressesValidity200ResponseInner.md)
|
|
157
|
+
- [CoboWaas2.CheckLoopTransfers200ResponseInner](docs/CheckLoopTransfers200ResponseInner.md)
|
|
150
158
|
- [CoboWaas2.CoboSafeDelegate](docs/CoboSafeDelegate.md)
|
|
151
159
|
- [CoboWaas2.CoboSafeDelegateType](docs/CoboSafeDelegateType.md)
|
|
152
160
|
- [CoboWaas2.ContractCallDestination](docs/ContractCallDestination.md)
|
|
@@ -223,9 +231,12 @@ Class | Method | HTTP request | Description
|
|
|
223
231
|
- [CoboWaas2.KeyShareHolderStatus](docs/KeyShareHolderStatus.md)
|
|
224
232
|
- [CoboWaas2.KeyShareHolderType](docs/KeyShareHolderType.md)
|
|
225
233
|
- [CoboWaas2.ListAddresses200Response](docs/ListAddresses200Response.md)
|
|
234
|
+
- [CoboWaas2.ListAssetBalancesForExchangeWallet200Response](docs/ListAssetBalancesForExchangeWallet200Response.md)
|
|
235
|
+
- [CoboWaas2.ListExchanges200ResponseInner](docs/ListExchanges200ResponseInner.md)
|
|
226
236
|
- [CoboWaas2.ListKeyShareHolderGroups200Response](docs/ListKeyShareHolderGroups200Response.md)
|
|
227
237
|
- [CoboWaas2.ListMpcProjects200Response](docs/ListMpcProjects200Response.md)
|
|
228
238
|
- [CoboWaas2.ListMpcVaults200Response](docs/ListMpcVaults200Response.md)
|
|
239
|
+
- [CoboWaas2.ListSupportedAssetsForExchange200Response](docs/ListSupportedAssetsForExchange200Response.md)
|
|
229
240
|
- [CoboWaas2.ListSupportedChains200Response](docs/ListSupportedChains200Response.md)
|
|
230
241
|
- [CoboWaas2.ListSupportedTokens200Response](docs/ListSupportedTokens200Response.md)
|
|
231
242
|
- [CoboWaas2.ListTokenBalancesForAddress200Response](docs/ListTokenBalancesForAddress200Response.md)
|
|
@@ -260,6 +271,7 @@ Class | Method | HTTP request | Description
|
|
|
260
271
|
- [CoboWaas2.PoolDetails](docs/PoolDetails.md)
|
|
261
272
|
- [CoboWaas2.PoolDetailsAllOfValidatorsInfo](docs/PoolDetailsAllOfValidatorsInfo.md)
|
|
262
273
|
- [CoboWaas2.PoolSummary](docs/PoolSummary.md)
|
|
274
|
+
- [CoboWaas2.RefreshToken200Response](docs/RefreshToken200Response.md)
|
|
263
275
|
- [CoboWaas2.RefreshTokenRequest](docs/RefreshTokenRequest.md)
|
|
264
276
|
- [CoboWaas2.ReplaceType](docs/ReplaceType.md)
|
|
265
277
|
- [CoboWaas2.RetryWebhookEventById201Response](docs/RetryWebhookEventById201Response.md)
|
|
@@ -281,6 +293,7 @@ Class | Method | HTTP request | Description
|
|
|
281
293
|
- [CoboWaas2.TSSRequest](docs/TSSRequest.md)
|
|
282
294
|
- [CoboWaas2.TSSRequestStatus](docs/TSSRequestStatus.md)
|
|
283
295
|
- [CoboWaas2.TSSRequestType](docs/TSSRequestType.md)
|
|
296
|
+
- [CoboWaas2.TSSRequestWebhookEventData](docs/TSSRequestWebhookEventData.md)
|
|
284
297
|
- [CoboWaas2.TokenBalance](docs/TokenBalance.md)
|
|
285
298
|
- [CoboWaas2.TokenBalanceBalance](docs/TokenBalanceBalance.md)
|
|
286
299
|
- [CoboWaas2.TokenInfo](docs/TokenInfo.md)
|
package/dist/ApiClient.js
CHANGED
package/dist/api/OAuthApi.js
CHANGED
|
@@ -8,6 +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 _RefreshToken200Response = _interopRequireDefault(require("../model/RefreshToken200Response"));
|
|
11
12
|
var _RefreshTokenRequest = _interopRequireDefault(require("../model/RefreshTokenRequest"));
|
|
12
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
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); }
|
|
@@ -43,11 +44,11 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
/**
|
|
46
|
-
* Get
|
|
47
|
-
* <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
|
|
47
|
+
* Get access token
|
|
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 access token and a refresh token with a specified App 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 access token and a refresh token. For security purposes, access tokens expire after a certain period. Once they expire, the app needs to call [Refresh token](/v2/api-references/oauth/refresh-access-token) to get a new access token and a new refresh token.
|
|
48
49
|
* @param {String} client_id The App ID, a unique identifier to distinguish Cobo Portal Apps. You can get the App ID by retrieving the Manifest file after receiving the notification of app launch approval.
|
|
49
|
-
* @param {String} org_id
|
|
50
|
-
* @param {String} grant_type The
|
|
50
|
+
* @param {String} org_id Organization ID, a unique identifier to distinguish different organizations. You can get the Organization ID by retrieving the Manifest file after receiving the notification of app launch approval.
|
|
51
|
+
* @param {String} grant_type The OAuth grant type. Set the value as `org_implicit`.
|
|
51
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetToken200Response} and HTTP response
|
|
52
53
|
*/
|
|
53
54
|
return _createClass(OAuthApi, [{
|
|
@@ -85,11 +86,11 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
/**
|
|
88
|
-
* Get
|
|
89
|
-
* <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
|
|
89
|
+
* Get access token
|
|
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 access token and a refresh token with a specified App 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 access token and a refresh token. For security purposes, access tokens expire after a certain period. Once they expire, the app needs to call [Refresh token](/v2/api-references/oauth/refresh-access-token) to get a new access token and a new refresh token.
|
|
90
91
|
* @param {String} client_id The App ID, a unique identifier to distinguish Cobo Portal Apps. You can get the App ID by retrieving the Manifest file after receiving the notification of app launch approval.
|
|
91
|
-
* @param {String} org_id
|
|
92
|
-
* @param {String} grant_type The
|
|
92
|
+
* @param {String} org_id Organization ID, a unique identifier to distinguish different organizations. You can get the Organization ID by retrieving the Manifest file after receiving the notification of app launch approval.
|
|
93
|
+
* @param {String} grant_type The OAuth grant type. Set the value as `org_implicit`.
|
|
93
94
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetToken200Response}
|
|
94
95
|
*/
|
|
95
96
|
}, {
|
|
@@ -101,10 +102,10 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
/**
|
|
104
|
-
* Refresh
|
|
105
|
-
* <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
|
|
105
|
+
* Refresh access token
|
|
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 access token with a specified App ID, grant type and a refresh token. For security purposes, access tokens expire after a certain period. Once they expire, the app needs to call this operation to get a new access token and a new refresh token.
|
|
106
107
|
* @param {module:model/RefreshTokenRequest} RefreshTokenRequest The request body for refreshing an access token.
|
|
107
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
108
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RefreshToken200Response} and HTTP response
|
|
108
109
|
*/
|
|
109
110
|
}, {
|
|
110
111
|
key: "refreshTokenWithHttpInfo",
|
|
@@ -124,15 +125,15 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
124
125
|
var authNames = ['CoboAuth'];
|
|
125
126
|
var contentTypes = ['application/json'];
|
|
126
127
|
var accepts = ['application/json'];
|
|
127
|
-
var returnType =
|
|
128
|
+
var returnType = _RefreshToken200Response["default"];
|
|
128
129
|
return this.apiClient.callApi('/oauth/token', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
/**
|
|
132
|
-
* Refresh
|
|
133
|
-
* <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
|
|
133
|
+
* Refresh access token
|
|
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 access token with a specified App ID, grant type and a refresh token. For security purposes, access tokens expire after a certain period. Once they expire, the app needs to call this operation to get a new access token and a new refresh token.
|
|
134
135
|
* @param {module:model/RefreshTokenRequest} RefreshTokenRequest The request body for refreshing an access token.
|
|
135
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
136
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RefreshToken200Response}
|
|
136
137
|
*/
|
|
137
138
|
}, {
|
|
138
139
|
key: "refreshToken",
|
|
@@ -51,7 +51,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* Cancel transaction
|
|
54
|
-
* This operation cancels a specified transaction. A transaction can be cancelled if its status is either of the following: - `Submitted` - `PendingScreening` - `PendingAuthorization` - `PendingSignature` A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions from MPC Wallets.</Note>
|
|
54
|
+
* This operation cancels a specified transaction. A transaction can be cancelled if its status is either of the following: - `Submitted` - `PendingScreening` - `PendingAuthorization` - `PendingSignature` A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets.</Note>
|
|
55
55
|
* @param {String} transaction_id The transaction ID.
|
|
56
56
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
|
|
57
57
|
*/
|
|
@@ -81,7 +81,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
83
|
* Cancel transaction
|
|
84
|
-
* This operation cancels a specified transaction. A transaction can be cancelled if its status is either of the following: - `Submitted` - `PendingScreening` - `PendingAuthorization` - `PendingSignature` A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions from MPC Wallets.</Note>
|
|
84
|
+
* This operation cancels a specified transaction. A transaction can be cancelled if its status is either of the following: - `Submitted` - `PendingScreening` - `PendingAuthorization` - `PendingSignature` A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions from MPC Wallets and Smart Contract Wallets.</Note>
|
|
85
85
|
* @param {String} transaction_id The transaction ID.
|
|
86
86
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
|
|
87
87
|
*/
|
|
@@ -95,7 +95,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
95
95
|
|
|
96
96
|
/**
|
|
97
97
|
* Call smart contract
|
|
98
|
-
* This operation creates a transaction to interact with a smart contract on the blockchain. You need to provide details such as the source address, destination address, and the calldata. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>Currently, this operation only applies to blockchains that have a similar architecture to Ethereum.</Note>
|
|
98
|
+
* This operation creates a transaction to interact with a smart contract on the blockchain. You need to provide details such as the source address, destination address, and the calldata. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>Currently, this operation only applies to the transactions from MPC Wallets or Smart Contract Wallets on the blockchains that have a similar architecture to Ethereum.</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>
|
|
99
99
|
* @param {Object} opts Optional parameters
|
|
100
100
|
* @param {module:model/ContractCallParams} [ContractCallParams] The request body for making a contract call.
|
|
101
101
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
|
|
@@ -121,7 +121,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* Call smart contract
|
|
124
|
-
* This operation creates a transaction to interact with a smart contract on the blockchain. You need to provide details such as the source address, destination address, and the calldata. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>Currently, this operation only applies to blockchains that have a similar architecture to Ethereum.</Note>
|
|
124
|
+
* This operation creates a transaction to interact with a smart contract on the blockchain. You need to provide details such as the source address, destination address, and the calldata. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>Currently, this operation only applies to the transactions from MPC Wallets or Smart Contract Wallets on the blockchains that have a similar architecture to Ethereum.</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>
|
|
125
125
|
* @param {Object} opts Optional parameters
|
|
126
126
|
* @param {module:model/ContractCallParams} opts.ContractCallParams The request body for making a contract call.
|
|
127
127
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
|
|
@@ -136,7 +136,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
138
|
* Sign message
|
|
139
|
-
* 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>
|
|
139
|
+
* 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>
|
|
140
140
|
* @param {Object} opts Optional parameters
|
|
141
141
|
* @param {module:model/MessageSignParams} [MessageSignParams] The request body to create a message sign transaction
|
|
142
142
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
|
|
@@ -162,7 +162,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* Sign message
|
|
165
|
-
* 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>
|
|
165
|
+
* 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>
|
|
166
166
|
* @param {Object} opts Optional parameters
|
|
167
167
|
* @param {module:model/MessageSignParams} opts.MessageSignParams The request body to create a message sign transaction
|
|
168
168
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
|
|
@@ -177,7 +177,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
177
177
|
|
|
178
178
|
/**
|
|
179
179
|
* Transfer token
|
|
180
|
-
* The operation transfers your assets from a wallet created on Cobo Protal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <Note>
|
|
180
|
+
* The operation transfers your assets from a wallet created on Cobo Protal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. <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>
|
|
181
181
|
* @param {Object} opts Optional parameters
|
|
182
182
|
* @param {module:model/TransferParams} [TransferParams] The request body to create a transfer transaction
|
|
183
183
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateTransferTransaction201Response} and HTTP response
|
|
@@ -203,7 +203,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
* Transfer token
|
|
206
|
-
* 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>
|
|
206
|
+
* 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>
|
|
207
207
|
* @param {Object} opts Optional parameters
|
|
208
208
|
* @param {module:model/TransferParams} opts.TransferParams The request body to create a transfer transaction
|
|
209
209
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateTransferTransaction201Response}
|
|
@@ -218,7 +218,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
220
|
* Drop transaction
|
|
221
|
-
* This operation drops a specified transaction. Dropping a transaction will trigger an Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It has a higher transaction fee to incentivize miners to prioritize its confirmation over the original one. A transaction can be dropped if its status is `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>
|
|
221
|
+
* This operation drops a specified transaction. Dropping a transaction will trigger an Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It has a higher transaction fee to incentivize miners to prioritize its confirmation over the original one. A transaction can be dropped if its status is `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> 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 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>
|
|
222
222
|
* @param {String} transaction_id The transaction ID.
|
|
223
223
|
* @param {Object} opts Optional parameters
|
|
224
224
|
* @param {module:model/TransactionRbf} [TransactionRbf] The request body to drop or to speed up transactions
|
|
@@ -251,7 +251,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
251
251
|
|
|
252
252
|
/**
|
|
253
253
|
* Drop transaction
|
|
254
|
-
* This operation drops a specified transaction. Dropping a transaction will trigger an Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It has a higher transaction fee to incentivize miners to prioritize its confirmation over the original one. A transaction can be dropped if its status is `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>
|
|
254
|
+
* This operation drops a specified transaction. Dropping a transaction will trigger an Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It has a higher transaction fee to incentivize miners to prioritize its confirmation over the original one. A transaction can be dropped if its status is `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> 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 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>
|
|
255
255
|
* @param {String} transaction_id The transaction ID.
|
|
256
256
|
* @param {Object} opts Optional parameters
|
|
257
257
|
* @param {module:model/TransactionRbf} opts.TransactionRbf The request body to drop or to speed up transactions
|
|
@@ -359,12 +359,12 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
359
359
|
* @param {String} [transaction_ids] A list of transaction IDs, separated by comma.
|
|
360
360
|
* @param {String} [transaction_hashes] A list of transaction hashes, separated by comma.
|
|
361
361
|
* @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.
|
|
362
|
-
* @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
|
|
362
|
+
* @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.
|
|
363
363
|
* @param {String} [wallet_ids] A list of wallet IDs, separated by comma.
|
|
364
364
|
* @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).
|
|
365
365
|
* @param {String} [token_ids] A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens).
|
|
366
366
|
* @param {String} [asset_ids] (This concept applies to Exchange Wallets only) A list of asset IDs, separated by comma. An asset ID is the unique identifier of the asset held within your linked exchange account.
|
|
367
|
-
* @param {String} [vault_id]
|
|
367
|
+
* @param {String} [vault_id] The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
368
368
|
* @param {String} [project_id] The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
369
369
|
* @param {Number} [min_created_timestamp] The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time.
|
|
370
370
|
* @param {Number} [max_created_timestamp] The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time.
|
|
@@ -419,12 +419,12 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
419
419
|
* @param {String} opts.transaction_ids A list of transaction IDs, separated by comma.
|
|
420
420
|
* @param {String} opts.transaction_hashes A list of transaction hashes, separated by comma.
|
|
421
421
|
* @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.
|
|
422
|
-
* @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
|
|
422
|
+
* @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.
|
|
423
423
|
* @param {String} opts.wallet_ids A list of wallet IDs, separated by comma.
|
|
424
424
|
* @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).
|
|
425
425
|
* @param {String} opts.token_ids A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens).
|
|
426
426
|
* @param {String} opts.asset_ids (This concept applies to Exchange Wallets only) A list of asset IDs, separated by comma. An asset ID is the unique identifier of the asset held within your linked exchange account.
|
|
427
|
-
* @param {String} opts.vault_id
|
|
427
|
+
* @param {String} opts.vault_id The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults).
|
|
428
428
|
* @param {String} opts.project_id The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
|
|
429
429
|
* @param {Number} opts.min_created_timestamp The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time.
|
|
430
430
|
* @param {Number} opts.max_created_timestamp The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time.
|
|
@@ -443,7 +443,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
443
443
|
|
|
444
444
|
/**
|
|
445
445
|
* Resend transaction
|
|
446
|
-
* This operation resends a specified transaction. Resending a transaction initiates a new attempt to process the transaction that failed previously. A transaction can be resent if its status is `failed`. A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions in the SOL token
|
|
446
|
+
* This operation resends a specified transaction. Resending a transaction initiates a new attempt to process the transaction that failed previously. A transaction can be resent if its status is `failed`. A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions from MPC Wallets in the SOL token.</Note>
|
|
447
447
|
* @param {String} transaction_id The transaction ID.
|
|
448
448
|
* @param {Object} opts Optional parameters
|
|
449
449
|
* @param {module:model/TransactionResend} [TransactionResend] The request body to resend transactions
|
|
@@ -476,7 +476,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
476
476
|
|
|
477
477
|
/**
|
|
478
478
|
* Resend transaction
|
|
479
|
-
* This operation resends a specified transaction. Resending a transaction initiates a new attempt to process the transaction that failed previously. A transaction can be resent if its status is `failed`. A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions in the SOL token
|
|
479
|
+
* This operation resends a specified transaction. Resending a transaction initiates a new attempt to process the transaction that failed previously. A transaction can be resent if its status is `failed`. A transaction request for tracking is returned upon successful operation. <Note>This operation only applies to transactions from MPC Wallets in the SOL token.</Note>
|
|
480
480
|
* @param {String} transaction_id The transaction ID.
|
|
481
481
|
* @param {Object} opts Optional parameters
|
|
482
482
|
* @param {module:model/TransactionResend} opts.TransactionResend The request body to resend transactions
|
|
@@ -492,7 +492,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
492
492
|
|
|
493
493
|
/**
|
|
494
494
|
* Speed up transaction
|
|
495
|
-
* This operation accelerates a specified transaction. Speeding up a transaction will trigger an Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It shares the same inputs but has a higher transaction fee to incentivize miners to prioritize its confirmation over the previous one. A transaction can be accelerated if its status is `Broadcasting`. A transaction request for tracking is returned upon successful operation.
|
|
495
|
+
* This operation accelerates a specified transaction. Speeding up a transaction will trigger an Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It shares the same inputs but has a higher transaction fee to incentivize miners to prioritize its confirmation over the previous one. A transaction can be accelerated if its status is `Broadcasting`. 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>
|
|
496
496
|
* @param {String} transaction_id The transaction ID.
|
|
497
497
|
* @param {Object} opts Optional parameters
|
|
498
498
|
* @param {module:model/TransactionRbf} [TransactionRbf] The request body to drop or to speed up transactions
|
|
@@ -525,7 +525,7 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
525
525
|
|
|
526
526
|
/**
|
|
527
527
|
* Speed up transaction
|
|
528
|
-
* This operation accelerates a specified transaction. Speeding up a transaction will trigger an Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It shares the same inputs but has a higher transaction fee to incentivize miners to prioritize its confirmation over the previous one. A transaction can be accelerated if its status is `Broadcasting`. A transaction request for tracking is returned upon successful operation.
|
|
528
|
+
* This operation accelerates a specified transaction. Speeding up a transaction will trigger an Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It shares the same inputs but has a higher transaction fee to incentivize miners to prioritize its confirmation over the previous one. A transaction can be accelerated if its status is `Broadcasting`. 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>
|
|
529
529
|
* @param {String} transaction_id The transaction ID.
|
|
530
530
|
* @param {Object} opts Optional parameters
|
|
531
531
|
* @param {module:model/TransactionRbf} opts.TransactionRbf The request body to drop or to speed up transactions
|