@cobo/cobo-waas2 1.18.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -4
- package/dist/ApiClient.js +1 -1
- package/dist/api/OAuthApi.js +2 -2
- package/dist/api/TransactionsApi.js +0 -92
- package/dist/api/WalletsApi.js +50 -0
- package/dist/index.js +518 -7
- package/dist/model/AddressesEventData.js +13 -8
- package/dist/model/ApprovalDetail.js +160 -0
- package/dist/model/ApprovalResult.js +66 -0
- package/dist/model/ApprovalShowInfo.js +140 -0
- package/dist/model/ApprovalTemplate.js +114 -0
- package/dist/model/ApprovalTransactionResult.js +66 -0
- package/dist/model/ApprovalUserDetail.js +196 -0
- package/dist/model/AutoFuelType.js +5 -0
- package/dist/model/BalanceUpdateInfoEventData.js +13 -8
- package/dist/model/ChainsEventData.js +13 -8
- package/dist/model/CreatePaymentOrderRequest.js +7 -6
- package/dist/model/CreateSettlement.js +1 -2
- package/dist/model/CustodialWeb3TransferSource.js +2 -2
- package/dist/model/EstimatedEvmEip1559Fee.js +2 -2
- package/dist/model/EstimatedEvmLegacyFee.js +2 -2
- package/dist/model/EstimatedFILFee.js +2 -2
- package/dist/model/EstimatedFILFeeSlow.js +12 -12
- package/dist/model/EstimatedFee.js +1 -1
- package/dist/model/EstimatedFixedFee.js +2 -2
- package/dist/model/EstimatedSOLFee.js +2 -2
- package/dist/model/EstimatedSOLFeeSlow.js +11 -11
- package/dist/model/EstimatedUtxoFee.js +2 -2
- package/dist/model/EvmEip1559FeeBasePrice.js +0 -1
- package/dist/model/EvmEip1559FeeRate.js +2 -2
- package/dist/model/EvmLegacyFeeBasePrice.js +0 -1
- package/dist/model/EvmLegacyFeeRate.js +2 -2
- package/dist/model/FILBase.js +1 -1
- package/dist/model/FILPrice.js +3 -4
- package/dist/model/FeeRate.js +1 -1
- package/dist/model/FixedFeeRate.js +2 -2
- package/dist/model/GetMaxTransferableValueWithFeeModelRequest.js +156 -0
- package/dist/model/MPCVaultEventData.js +13 -8
- package/dist/model/MaxFeeAmount.js +0 -1
- package/dist/model/MaxTransferableValue.js +2 -2
- package/dist/model/MpcTransferSource.js +2 -2
- package/dist/model/PaymentOrderEventData.js +13 -8
- package/dist/model/PaymentRefundEventData.js +13 -8
- package/dist/model/PaymentSettlementEvent.js +13 -8
- package/dist/model/{ListTransactionApprovalDetails200Response.js → RoleDetail.js} +46 -27
- package/dist/model/SOLBase.js +2 -2
- package/dist/model/SOLComputeUnit.js +2 -3
- package/dist/model/SuspendedTokenEventData.js +225 -0
- package/dist/model/SuspendedTokenOperationType.js +61 -0
- package/dist/model/SwapActivity.js +29 -0
- package/dist/model/SwapActivityDetail.js +38 -0
- package/dist/model/TSSRequestWebhookEventData.js +13 -8
- package/dist/model/TokenListingEventData.js +13 -8
- package/dist/model/TokenizationActivityInfo.js +224 -0
- package/dist/model/TokenizationActivityStatus.js +66 -0
- package/dist/model/TokenizationAddressPermission.js +135 -0
- package/dist/model/TokenizationAllowlistActivationParams.js +124 -0
- package/dist/model/TokenizationAllowlistActivationRequest.js +180 -0
- package/dist/model/TokenizationAllowlistAddressNote.js +132 -0
- package/dist/model/TokenizationAppInitiator.js +87 -0
- package/dist/model/TokenizationBlocklistAddressNote.js +132 -0
- package/dist/model/TokenizationBurnEstimateFeeParams.js +187 -0
- package/dist/model/TokenizationBurnTokenParams.js +146 -0
- package/dist/model/TokenizationBurnTokenParamsBurnsInner.js +125 -0
- package/dist/model/TokenizationBurnTokenRequest.js +202 -0
- package/dist/model/TokenizationContractCallEstimateFeeParams.js +167 -0
- package/dist/model/TokenizationContractCallParams.js +107 -0
- package/dist/model/TokenizationContractCallParamsData.js +164 -0
- package/dist/model/TokenizationContractCallRequest.js +182 -0
- package/dist/model/TokenizationContractCallType.js +56 -0
- package/dist/model/TokenizationERC20TokenParams.js +173 -0
- package/dist/model/TokenizationEstimateFeeRequest.js +113 -0
- package/dist/model/TokenizationEstimateFeeRequestOperationParams.js +439 -0
- package/dist/model/TokenizationEvmContractCallParams.js +133 -0
- package/dist/model/TokenizationHoldingInfo.js +166 -0
- package/dist/model/TokenizationIssueEstimateFeeParams.js +176 -0
- package/dist/model/TokenizationIssueTokenParams.js +146 -0
- package/dist/model/TokenizationIssueTokenParamsTokenParams.js +183 -0
- package/dist/model/TokenizationIssuedTokenRequest.js +206 -0
- package/dist/model/TokenizationListActivitiesResponse.js +146 -0
- package/dist/model/TokenizationListEnabledChainsResponse.js +128 -0
- package/dist/model/TokenizationListHoldingsResponse.js +146 -0
- package/dist/model/TokenizationListTokenInfoResponse.js +146 -0
- package/dist/model/TokenizationMintEstimateFeeParams.js +187 -0
- package/dist/model/TokenizationMintTokenParams.js +146 -0
- package/dist/model/TokenizationMintTokenParamsMintsInner.js +125 -0
- package/dist/model/TokenizationMintTokenRequest.js +202 -0
- package/dist/model/TokenizationMpcOperationSource.js +136 -0
- package/dist/model/TokenizationOperationResponse.js +110 -0
- package/dist/model/TokenizationOperationSourceType.js +61 -0
- package/dist/model/TokenizationOperationType.js +96 -0
- package/dist/model/TokenizationPauseEstimateFeeParams.js +149 -0
- package/dist/model/TokenizationPauseTokenParams.js +113 -0
- package/dist/model/TokenizationPauseTokenRequest.js +164 -0
- package/dist/model/TokenizationStatus.js +71 -0
- package/dist/model/TokenizationToggleAllowlistEstimateFeeParams.js +165 -0
- package/dist/model/TokenizationTokenDetailInfo.js +309 -0
- package/dist/model/TokenizationTokenInfo.js +223 -0
- package/dist/model/TokenizationTokenOperationSource.js +192 -0
- package/dist/model/TokenizationTokenPermission.js +147 -0
- package/dist/model/TokenizationTokenPermissionParams.js +166 -0
- package/dist/model/TokenizationTokenPermissionType.js +86 -0
- package/dist/model/TokenizationTokenPermissionsResponse.js +139 -0
- package/dist/model/TokenizationTokenStandard.js +56 -0
- package/dist/model/TokenizationUnpauseEstimateFeeParams.js +149 -0
- package/dist/model/TokenizationUnpauseTokenParams.js +113 -0
- package/dist/model/TokenizationUnpauseTokenRequest.js +164 -0
- package/dist/model/TokenizationUpdateAddressAction.js +61 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesEstimateFeeParams.js +202 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesParams.js +157 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesParamsAddressesInner.js +123 -0
- package/dist/model/TokenizationUpdateAllowlistAddressesRequest.js +217 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesEstimateFeeParams.js +202 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesParams.js +157 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesParamsAddressesInner.js +123 -0
- package/dist/model/TokenizationUpdateBlocklistAddressesRequest.js +217 -0
- package/dist/model/TokenizationWeb3OperationSource.js +136 -0
- package/dist/model/TokensEventData.js +13 -8
- package/dist/model/TopUpAddress.js +2 -2
- package/dist/model/TransactionEvmEip1559Fee.js +2 -2
- package/dist/model/TransactionEvmLegacyFee.js +2 -2
- package/dist/model/TransactionFILFee.js +11 -11
- package/dist/model/TransactionFee.js +10 -10
- package/dist/model/TransactionFixedFee.js +2 -2
- package/dist/model/TransactionRbfSource.js +1 -1
- package/dist/model/TransactionRequestEvmEip1559Fee.js +2 -2
- package/dist/model/TransactionRequestEvmLegacyFee.js +2 -2
- package/dist/model/TransactionRequestFILFee.js +11 -11
- package/dist/model/TransactionRequestFee.js +6 -6
- package/dist/model/TransactionRequestFixedFee.js +2 -2
- package/dist/model/TransactionRequestSOLFee.js +9 -9
- package/dist/model/TransactionRequestUtxoFee.js +2 -2
- package/dist/model/TransactionSOLFee.js +11 -11
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionUtxoFee.js +2 -2
- package/dist/model/TransactionWebhookEventData.js +13 -8
- package/dist/model/UtxoFeeBasePrice.js +0 -1
- package/dist/model/UtxoFeeRate.js +2 -2
- package/dist/model/WalletInfoEventData.js +13 -8
- package/dist/model/WebhookEvent.js +2 -2
- package/dist/model/WebhookEventData.js +49 -9
- package/dist/model/WebhookEventDataType.js +12 -7
- package/dist/model/WebhookEventLog.js +2 -2
- package/dist/model/WebhookEventType.js +20 -0
- package/docs/AddressesEventData.md +5 -3
- package/docs/ApprovalDetail.md +14 -0
- package/docs/ApprovalResult.md +14 -0
- package/docs/ApprovalShowInfo.md +13 -0
- package/docs/ApprovalTemplate.md +11 -0
- package/docs/ApprovalTransactionResult.md +14 -0
- package/docs/ApprovalUserDetail.md +18 -0
- package/docs/AutoFuelType.md +2 -0
- package/docs/BalanceUpdateInfoEventData.md +5 -3
- package/docs/ChainsEventData.md +5 -3
- package/docs/CreatePaymentOrderRequest.md +4 -4
- package/docs/CreateSettlement.md +2 -2
- package/docs/CustodialWeb3TransferSource.md +1 -1
- package/docs/EstimatedEvmEip1559Fee.md +1 -1
- package/docs/EstimatedEvmLegacyFee.md +1 -1
- package/docs/EstimatedFILFee.md +1 -1
- package/docs/EstimatedFILFeeSlow.md +4 -4
- package/docs/EstimatedFee.md +1 -1
- package/docs/EstimatedFixedFee.md +1 -1
- package/docs/EstimatedSOLFee.md +1 -1
- package/docs/EstimatedSOLFeeSlow.md +4 -4
- package/docs/EstimatedUtxoFee.md +1 -1
- package/docs/EvmEip1559FeeRate.md +1 -1
- package/docs/EvmLegacyFeeRate.md +1 -1
- package/docs/FILBase.md +1 -1
- package/docs/FILPrice.md +3 -3
- package/docs/FeeRate.md +1 -1
- package/docs/FixedFeeRate.md +1 -1
- package/docs/GetMaxTransferableValueWithFeeModelRequest.md +12 -0
- package/docs/MPCVaultEventData.md +5 -3
- package/docs/MaxTransferableValue.md +1 -1
- package/docs/MpcTransferSource.md +1 -1
- package/docs/OAuthApi.md +1 -1
- package/docs/PaymentOrderEventData.md +5 -3
- package/docs/PaymentRefundEventData.md +5 -3
- package/docs/PaymentSettlementEvent.md +5 -3
- package/docs/RoleDetail.md +11 -0
- package/docs/SOLBase.md +2 -2
- package/docs/SOLComputeUnit.md +2 -2
- package/docs/SuspendedTokenEventData.md +46 -0
- package/docs/SuspendedTokenOperationType.md +12 -0
- package/docs/SwapActivity.md +2 -0
- package/docs/SwapActivityDetail.md +2 -0
- package/docs/TSSRequestWebhookEventData.md +5 -3
- package/docs/TokenListingEventData.md +5 -3
- package/docs/TokenizationActivityInfo.md +18 -0
- package/docs/TokenizationActivityStatus.md +14 -0
- package/docs/TokenizationAddressPermission.md +11 -0
- package/docs/TokenizationAllowlistActivationParams.md +10 -0
- package/docs/TokenizationAllowlistActivationRequest.md +12 -0
- package/docs/TokenizationAllowlistAddressNote.md +11 -0
- package/docs/TokenizationAppInitiator.md +9 -0
- package/docs/TokenizationBlocklistAddressNote.md +11 -0
- package/docs/TokenizationBurnEstimateFeeParams.md +12 -0
- package/docs/TokenizationBurnTokenParams.md +10 -0
- package/docs/TokenizationBurnTokenParamsBurnsInner.md +10 -0
- package/docs/TokenizationBurnTokenRequest.md +12 -0
- package/docs/TokenizationContractCallEstimateFeeParams.md +12 -0
- package/docs/TokenizationContractCallParams.md +10 -0
- package/docs/TokenizationContractCallParamsData.md +11 -0
- package/docs/TokenizationContractCallRequest.md +12 -0
- package/docs/TokenizationContractCallType.md +10 -0
- package/docs/TokenizationERC20TokenParams.md +14 -0
- package/docs/TokenizationEstimateFeeRequest.md +9 -0
- package/docs/TokenizationEstimateFeeRequestOperationParams.md +19 -0
- package/docs/TokenizationEvmContractCallParams.md +11 -0
- package/docs/TokenizationHoldingInfo.md +13 -0
- package/docs/TokenizationIssueEstimateFeeParams.md +12 -0
- package/docs/TokenizationIssueTokenParams.md +11 -0
- package/docs/TokenizationIssueTokenParamsTokenParams.md +14 -0
- package/docs/TokenizationIssuedTokenRequest.md +13 -0
- package/docs/TokenizationListActivitiesResponse.md +10 -0
- package/docs/TokenizationListEnabledChainsResponse.md +10 -0
- package/docs/TokenizationListHoldingsResponse.md +10 -0
- package/docs/TokenizationListTokenInfoResponse.md +10 -0
- package/docs/TokenizationMintEstimateFeeParams.md +12 -0
- package/docs/TokenizationMintTokenParams.md +10 -0
- package/docs/TokenizationMintTokenParamsMintsInner.md +10 -0
- package/docs/TokenizationMintTokenRequest.md +12 -0
- package/docs/TokenizationMpcOperationSource.md +11 -0
- package/docs/TokenizationOperationResponse.md +9 -0
- package/docs/TokenizationOperationSourceType.md +12 -0
- package/docs/TokenizationOperationType.md +26 -0
- package/docs/TokenizationPauseEstimateFeeParams.md +11 -0
- package/docs/TokenizationPauseTokenParams.md +9 -0
- package/docs/TokenizationPauseTokenRequest.md +11 -0
- package/docs/TokenizationStatus.md +16 -0
- package/docs/TokenizationToggleAllowlistEstimateFeeParams.md +12 -0
- package/docs/TokenizationTokenDetailInfo.md +19 -0
- package/docs/TokenizationTokenInfo.md +18 -0
- package/docs/TokenizationTokenOperationSource.md +11 -0
- package/docs/TokenizationTokenPermission.md +12 -0
- package/docs/TokenizationTokenPermissionParams.md +15 -0
- package/docs/TokenizationTokenPermissionType.md +22 -0
- package/docs/TokenizationTokenPermissionsResponse.md +10 -0
- package/docs/TokenizationTokenStandard.md +10 -0
- package/docs/TokenizationUnpauseEstimateFeeParams.md +11 -0
- package/docs/TokenizationUnpauseTokenParams.md +9 -0
- package/docs/TokenizationUnpauseTokenRequest.md +11 -0
- package/docs/TokenizationUpdateAddressAction.md +12 -0
- package/docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md +13 -0
- package/docs/TokenizationUpdateAllowlistAddressesParams.md +11 -0
- package/docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md +10 -0
- package/docs/TokenizationUpdateAllowlistAddressesRequest.md +13 -0
- package/docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md +13 -0
- package/docs/TokenizationUpdateBlocklistAddressesParams.md +11 -0
- package/docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md +10 -0
- package/docs/TokenizationUpdateBlocklistAddressesRequest.md +13 -0
- package/docs/TokenizationWeb3OperationSource.md +11 -0
- package/docs/TokensEventData.md +5 -3
- package/docs/TopUpAddress.md +1 -1
- package/docs/TransactionEvmEip1559Fee.md +2 -2
- package/docs/TransactionEvmLegacyFee.md +2 -2
- package/docs/TransactionFILFee.md +6 -6
- package/docs/TransactionFee.md +10 -10
- package/docs/TransactionFixedFee.md +2 -2
- package/docs/TransactionRbfSource.md +1 -1
- package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
- package/docs/TransactionRequestEvmLegacyFee.md +1 -1
- package/docs/TransactionRequestFILFee.md +4 -4
- package/docs/TransactionRequestFee.md +6 -6
- package/docs/TransactionRequestFixedFee.md +1 -1
- package/docs/TransactionRequestSOLFee.md +3 -3
- package/docs/TransactionRequestUtxoFee.md +1 -1
- package/docs/TransactionSOLFee.md +6 -6
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionUtxoFee.md +2 -2
- package/docs/TransactionWebhookEventData.md +5 -3
- package/docs/TransactionsApi.md +0 -106
- package/docs/UtxoFeeRate.md +1 -1
- package/docs/WalletInfoEventData.md +5 -3
- package/docs/WalletsApi.md +55 -0
- package/docs/WebhookEvent.md +1 -1
- package/docs/WebhookEventData.md +7 -3
- package/docs/WebhookEventDataType.md +5 -3
- package/docs/WebhookEventLog.md +1 -1
- package/docs/WebhookEventType.md +8 -0
- package/package.json +1 -1
- package/docs/ListTransactionApprovalDetails200Response.md +0 -9
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.19.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)
|
|
@@ -152,9 +152,7 @@ Class | Method | HTTP request | Description
|
|
|
152
152
|
*CoboWaas2.TransactionsApi* | [**createTransferTransaction**](docs/TransactionsApi.md#createTransferTransaction) | **POST** /transactions/transfer | Transfer token
|
|
153
153
|
*CoboWaas2.TransactionsApi* | [**dropTransactionById**](docs/TransactionsApi.md#dropTransactionById) | **POST** /transactions/{transaction_id}/drop | Drop transaction
|
|
154
154
|
*CoboWaas2.TransactionsApi* | [**estimateFee**](docs/TransactionsApi.md#estimateFee) | **POST** /transactions/estimate_fee | Estimate transaction fee
|
|
155
|
-
*CoboWaas2.TransactionsApi* | [**getTransactionApprovalDetail**](docs/TransactionsApi.md#getTransactionApprovalDetail) | **GET** /transactions/{transaction_id}/approval_detail | Get transaction approval details
|
|
156
155
|
*CoboWaas2.TransactionsApi* | [**getTransactionById**](docs/TransactionsApi.md#getTransactionById) | **GET** /transactions/{transaction_id} | Get transaction information
|
|
157
|
-
*CoboWaas2.TransactionsApi* | [**listTransactionApprovalDetails**](docs/TransactionsApi.md#listTransactionApprovalDetails) | **GET** /transactions/approval_details | List transaction approval details
|
|
158
156
|
*CoboWaas2.TransactionsApi* | [**listTransactions**](docs/TransactionsApi.md#listTransactions) | **GET** /transactions | List all transactions
|
|
159
157
|
*CoboWaas2.TransactionsApi* | [**resendTransactionById**](docs/TransactionsApi.md#resendTransactionById) | **POST** /transactions/{transaction_id}/resend | Resend transaction
|
|
160
158
|
*CoboWaas2.TransactionsApi* | [**signAndBroadcastTransactionById**](docs/TransactionsApi.md#signAndBroadcastTransactionById) | **POST** /transactions/{transaction_id}/sign_and_broadcast | Sign and broadcast transaction
|
|
@@ -173,6 +171,7 @@ Class | Method | HTTP request | Description
|
|
|
173
171
|
*CoboWaas2.WalletsApi* | [**deleteWalletById**](docs/WalletsApi.md#deleteWalletById) | **POST** /wallets/{wallet_id}/delete | Delete wallet
|
|
174
172
|
*CoboWaas2.WalletsApi* | [**getChainById**](docs/WalletsApi.md#getChainById) | **GET** /wallets/chains/{chain_id} | Get chain information
|
|
175
173
|
*CoboWaas2.WalletsApi* | [**getMaxTransferableValue**](docs/WalletsApi.md#getMaxTransferableValue) | **GET** /wallets/{wallet_id}/max_transferable_value | Get maximum transferable value
|
|
174
|
+
*CoboWaas2.WalletsApi* | [**getMaxTransferableValueWithFeeModel**](docs/WalletsApi.md#getMaxTransferableValueWithFeeModel) | **POST** /wallets/{wallet_id}/max_transferable_value_with_fee_model | Estimate maximum transferable value
|
|
176
175
|
*CoboWaas2.WalletsApi* | [**getTokenById**](docs/WalletsApi.md#getTokenById) | **GET** /wallets/tokens/{token_id} | Get token information
|
|
177
176
|
*CoboWaas2.WalletsApi* | [**getTokenListingRequestByRequestId**](docs/WalletsApi.md#getTokenListingRequestByRequestId) | **GET** /wallets/tokens/listing_requests/{request_id} | Get token listing request
|
|
178
177
|
*CoboWaas2.WalletsApi* | [**getWalletById**](docs/WalletsApi.md#getWalletById) | **GET** /wallets/{wallet_id} | Get wallet information
|
|
@@ -245,12 +244,18 @@ Class | Method | HTTP request | Description
|
|
|
245
244
|
- [CoboWaas2.AppWorkflow](docs/AppWorkflow.md)
|
|
246
245
|
- [CoboWaas2.AppWorkflowField](docs/AppWorkflowField.md)
|
|
247
246
|
- [CoboWaas2.AppWorkflowPolicy](docs/AppWorkflowPolicy.md)
|
|
247
|
+
- [CoboWaas2.ApprovalDetail](docs/ApprovalDetail.md)
|
|
248
248
|
- [CoboWaas2.ApprovalEntry](docs/ApprovalEntry.md)
|
|
249
249
|
- [CoboWaas2.ApprovalRequest](docs/ApprovalRequest.md)
|
|
250
250
|
- [CoboWaas2.ApprovalRequestDetail](docs/ApprovalRequestDetail.md)
|
|
251
|
+
- [CoboWaas2.ApprovalResult](docs/ApprovalResult.md)
|
|
252
|
+
- [CoboWaas2.ApprovalShowInfo](docs/ApprovalShowInfo.md)
|
|
251
253
|
- [CoboWaas2.ApprovalStatementStatus](docs/ApprovalStatementStatus.md)
|
|
252
254
|
- [CoboWaas2.ApprovalStatus](docs/ApprovalStatus.md)
|
|
255
|
+
- [CoboWaas2.ApprovalTemplate](docs/ApprovalTemplate.md)
|
|
256
|
+
- [CoboWaas2.ApprovalTransactionResult](docs/ApprovalTransactionResult.md)
|
|
253
257
|
- [CoboWaas2.ApprovalUser](docs/ApprovalUser.md)
|
|
258
|
+
- [CoboWaas2.ApprovalUserDetail](docs/ApprovalUserDetail.md)
|
|
254
259
|
- [CoboWaas2.AssetBalance](docs/AssetBalance.md)
|
|
255
260
|
- [CoboWaas2.AssetInfo](docs/AssetInfo.md)
|
|
256
261
|
- [CoboWaas2.AutoFuelType](docs/AutoFuelType.md)
|
|
@@ -411,6 +416,7 @@ Class | Method | HTTP request | Description
|
|
|
411
416
|
- [CoboWaas2.FixedFeeRate](docs/FixedFeeRate.md)
|
|
412
417
|
- [CoboWaas2.GetApiKeyInfo200Response](docs/GetApiKeyInfo200Response.md)
|
|
413
418
|
- [CoboWaas2.GetExchangeRate200Response](docs/GetExchangeRate200Response.md)
|
|
419
|
+
- [CoboWaas2.GetMaxTransferableValueWithFeeModelRequest](docs/GetMaxTransferableValueWithFeeModelRequest.md)
|
|
414
420
|
- [CoboWaas2.GetRefunds200Response](docs/GetRefunds200Response.md)
|
|
415
421
|
- [CoboWaas2.GetSettlementInfoByIds200Response](docs/GetSettlementInfoByIds200Response.md)
|
|
416
422
|
- [CoboWaas2.GetStakingEstimationFee201Response](docs/GetStakingEstimationFee201Response.md)
|
|
@@ -461,7 +467,6 @@ Class | Method | HTTP request | Description
|
|
|
461
467
|
- [CoboWaas2.ListTokenListingRequests200Response](docs/ListTokenListingRequests200Response.md)
|
|
462
468
|
- [CoboWaas2.ListTopUpPayers200Response](docs/ListTopUpPayers200Response.md)
|
|
463
469
|
- [CoboWaas2.ListTopUpPayers200ResponseDataInner](docs/ListTopUpPayers200ResponseDataInner.md)
|
|
464
|
-
- [CoboWaas2.ListTransactionApprovalDetails200Response](docs/ListTransactionApprovalDetails200Response.md)
|
|
465
470
|
- [CoboWaas2.ListTransactions200Response](docs/ListTransactions200Response.md)
|
|
466
471
|
- [CoboWaas2.ListTssRequests200Response](docs/ListTssRequests200Response.md)
|
|
467
472
|
- [CoboWaas2.ListUtxos200Response](docs/ListUtxos200Response.md)
|
|
@@ -529,6 +534,7 @@ Class | Method | HTTP request | Description
|
|
|
529
534
|
- [CoboWaas2.RetryWebhookEventById201Response](docs/RetryWebhookEventById201Response.md)
|
|
530
535
|
- [CoboWaas2.RevokeApprovalRequest201Response](docs/RevokeApprovalRequest201Response.md)
|
|
531
536
|
- [CoboWaas2.RevokeApprovalRequestRequest](docs/RevokeApprovalRequestRequest.md)
|
|
537
|
+
- [CoboWaas2.RoleDetail](docs/RoleDetail.md)
|
|
532
538
|
- [CoboWaas2.RoleScopes](docs/RoleScopes.md)
|
|
533
539
|
- [CoboWaas2.RootPubkey](docs/RootPubkey.md)
|
|
534
540
|
- [CoboWaas2.SOLBase](docs/SOLBase.md)
|
|
@@ -569,6 +575,8 @@ Class | Method | HTTP request | Description
|
|
|
569
575
|
- [CoboWaas2.SubWalletAssetBalance](docs/SubWalletAssetBalance.md)
|
|
570
576
|
- [CoboWaas2.SubmitDepositTravelRuleInfo201Response](docs/SubmitDepositTravelRuleInfo201Response.md)
|
|
571
577
|
- [CoboWaas2.SupportedToken](docs/SupportedToken.md)
|
|
578
|
+
- [CoboWaas2.SuspendedTokenEventData](docs/SuspendedTokenEventData.md)
|
|
579
|
+
- [CoboWaas2.SuspendedTokenOperationType](docs/SuspendedTokenOperationType.md)
|
|
572
580
|
- [CoboWaas2.SwapActivity](docs/SwapActivity.md)
|
|
573
581
|
- [CoboWaas2.SwapActivityApprovers](docs/SwapActivityApprovers.md)
|
|
574
582
|
- [CoboWaas2.SwapActivityDetail](docs/SwapActivityDetail.md)
|
|
@@ -627,6 +635,70 @@ Class | Method | HTTP request | Description
|
|
|
627
635
|
- [CoboWaas2.TokenListingEventData](docs/TokenListingEventData.md)
|
|
628
636
|
- [CoboWaas2.TokenListingRequestSource](docs/TokenListingRequestSource.md)
|
|
629
637
|
- [CoboWaas2.TokenListingRequestStatus](docs/TokenListingRequestStatus.md)
|
|
638
|
+
- [CoboWaas2.TokenizationActivityInfo](docs/TokenizationActivityInfo.md)
|
|
639
|
+
- [CoboWaas2.TokenizationActivityStatus](docs/TokenizationActivityStatus.md)
|
|
640
|
+
- [CoboWaas2.TokenizationAddressPermission](docs/TokenizationAddressPermission.md)
|
|
641
|
+
- [CoboWaas2.TokenizationAllowlistActivationParams](docs/TokenizationAllowlistActivationParams.md)
|
|
642
|
+
- [CoboWaas2.TokenizationAllowlistActivationRequest](docs/TokenizationAllowlistActivationRequest.md)
|
|
643
|
+
- [CoboWaas2.TokenizationAllowlistAddressNote](docs/TokenizationAllowlistAddressNote.md)
|
|
644
|
+
- [CoboWaas2.TokenizationAppInitiator](docs/TokenizationAppInitiator.md)
|
|
645
|
+
- [CoboWaas2.TokenizationBlocklistAddressNote](docs/TokenizationBlocklistAddressNote.md)
|
|
646
|
+
- [CoboWaas2.TokenizationBurnEstimateFeeParams](docs/TokenizationBurnEstimateFeeParams.md)
|
|
647
|
+
- [CoboWaas2.TokenizationBurnTokenParams](docs/TokenizationBurnTokenParams.md)
|
|
648
|
+
- [CoboWaas2.TokenizationBurnTokenParamsBurnsInner](docs/TokenizationBurnTokenParamsBurnsInner.md)
|
|
649
|
+
- [CoboWaas2.TokenizationBurnTokenRequest](docs/TokenizationBurnTokenRequest.md)
|
|
650
|
+
- [CoboWaas2.TokenizationContractCallEstimateFeeParams](docs/TokenizationContractCallEstimateFeeParams.md)
|
|
651
|
+
- [CoboWaas2.TokenizationContractCallParams](docs/TokenizationContractCallParams.md)
|
|
652
|
+
- [CoboWaas2.TokenizationContractCallParamsData](docs/TokenizationContractCallParamsData.md)
|
|
653
|
+
- [CoboWaas2.TokenizationContractCallRequest](docs/TokenizationContractCallRequest.md)
|
|
654
|
+
- [CoboWaas2.TokenizationContractCallType](docs/TokenizationContractCallType.md)
|
|
655
|
+
- [CoboWaas2.TokenizationERC20TokenParams](docs/TokenizationERC20TokenParams.md)
|
|
656
|
+
- [CoboWaas2.TokenizationEstimateFeeRequest](docs/TokenizationEstimateFeeRequest.md)
|
|
657
|
+
- [CoboWaas2.TokenizationEstimateFeeRequestOperationParams](docs/TokenizationEstimateFeeRequestOperationParams.md)
|
|
658
|
+
- [CoboWaas2.TokenizationEvmContractCallParams](docs/TokenizationEvmContractCallParams.md)
|
|
659
|
+
- [CoboWaas2.TokenizationHoldingInfo](docs/TokenizationHoldingInfo.md)
|
|
660
|
+
- [CoboWaas2.TokenizationIssueEstimateFeeParams](docs/TokenizationIssueEstimateFeeParams.md)
|
|
661
|
+
- [CoboWaas2.TokenizationIssueTokenParams](docs/TokenizationIssueTokenParams.md)
|
|
662
|
+
- [CoboWaas2.TokenizationIssueTokenParamsTokenParams](docs/TokenizationIssueTokenParamsTokenParams.md)
|
|
663
|
+
- [CoboWaas2.TokenizationIssuedTokenRequest](docs/TokenizationIssuedTokenRequest.md)
|
|
664
|
+
- [CoboWaas2.TokenizationListActivitiesResponse](docs/TokenizationListActivitiesResponse.md)
|
|
665
|
+
- [CoboWaas2.TokenizationListEnabledChainsResponse](docs/TokenizationListEnabledChainsResponse.md)
|
|
666
|
+
- [CoboWaas2.TokenizationListHoldingsResponse](docs/TokenizationListHoldingsResponse.md)
|
|
667
|
+
- [CoboWaas2.TokenizationListTokenInfoResponse](docs/TokenizationListTokenInfoResponse.md)
|
|
668
|
+
- [CoboWaas2.TokenizationMintEstimateFeeParams](docs/TokenizationMintEstimateFeeParams.md)
|
|
669
|
+
- [CoboWaas2.TokenizationMintTokenParams](docs/TokenizationMintTokenParams.md)
|
|
670
|
+
- [CoboWaas2.TokenizationMintTokenParamsMintsInner](docs/TokenizationMintTokenParamsMintsInner.md)
|
|
671
|
+
- [CoboWaas2.TokenizationMintTokenRequest](docs/TokenizationMintTokenRequest.md)
|
|
672
|
+
- [CoboWaas2.TokenizationMpcOperationSource](docs/TokenizationMpcOperationSource.md)
|
|
673
|
+
- [CoboWaas2.TokenizationOperationResponse](docs/TokenizationOperationResponse.md)
|
|
674
|
+
- [CoboWaas2.TokenizationOperationSourceType](docs/TokenizationOperationSourceType.md)
|
|
675
|
+
- [CoboWaas2.TokenizationOperationType](docs/TokenizationOperationType.md)
|
|
676
|
+
- [CoboWaas2.TokenizationPauseEstimateFeeParams](docs/TokenizationPauseEstimateFeeParams.md)
|
|
677
|
+
- [CoboWaas2.TokenizationPauseTokenParams](docs/TokenizationPauseTokenParams.md)
|
|
678
|
+
- [CoboWaas2.TokenizationPauseTokenRequest](docs/TokenizationPauseTokenRequest.md)
|
|
679
|
+
- [CoboWaas2.TokenizationStatus](docs/TokenizationStatus.md)
|
|
680
|
+
- [CoboWaas2.TokenizationToggleAllowlistEstimateFeeParams](docs/TokenizationToggleAllowlistEstimateFeeParams.md)
|
|
681
|
+
- [CoboWaas2.TokenizationTokenDetailInfo](docs/TokenizationTokenDetailInfo.md)
|
|
682
|
+
- [CoboWaas2.TokenizationTokenInfo](docs/TokenizationTokenInfo.md)
|
|
683
|
+
- [CoboWaas2.TokenizationTokenOperationSource](docs/TokenizationTokenOperationSource.md)
|
|
684
|
+
- [CoboWaas2.TokenizationTokenPermission](docs/TokenizationTokenPermission.md)
|
|
685
|
+
- [CoboWaas2.TokenizationTokenPermissionParams](docs/TokenizationTokenPermissionParams.md)
|
|
686
|
+
- [CoboWaas2.TokenizationTokenPermissionType](docs/TokenizationTokenPermissionType.md)
|
|
687
|
+
- [CoboWaas2.TokenizationTokenPermissionsResponse](docs/TokenizationTokenPermissionsResponse.md)
|
|
688
|
+
- [CoboWaas2.TokenizationTokenStandard](docs/TokenizationTokenStandard.md)
|
|
689
|
+
- [CoboWaas2.TokenizationUnpauseEstimateFeeParams](docs/TokenizationUnpauseEstimateFeeParams.md)
|
|
690
|
+
- [CoboWaas2.TokenizationUnpauseTokenParams](docs/TokenizationUnpauseTokenParams.md)
|
|
691
|
+
- [CoboWaas2.TokenizationUnpauseTokenRequest](docs/TokenizationUnpauseTokenRequest.md)
|
|
692
|
+
- [CoboWaas2.TokenizationUpdateAddressAction](docs/TokenizationUpdateAddressAction.md)
|
|
693
|
+
- [CoboWaas2.TokenizationUpdateAllowlistAddressesEstimateFeeParams](docs/TokenizationUpdateAllowlistAddressesEstimateFeeParams.md)
|
|
694
|
+
- [CoboWaas2.TokenizationUpdateAllowlistAddressesParams](docs/TokenizationUpdateAllowlistAddressesParams.md)
|
|
695
|
+
- [CoboWaas2.TokenizationUpdateAllowlistAddressesParamsAddressesInner](docs/TokenizationUpdateAllowlistAddressesParamsAddressesInner.md)
|
|
696
|
+
- [CoboWaas2.TokenizationUpdateAllowlistAddressesRequest](docs/TokenizationUpdateAllowlistAddressesRequest.md)
|
|
697
|
+
- [CoboWaas2.TokenizationUpdateBlocklistAddressesEstimateFeeParams](docs/TokenizationUpdateBlocklistAddressesEstimateFeeParams.md)
|
|
698
|
+
- [CoboWaas2.TokenizationUpdateBlocklistAddressesParams](docs/TokenizationUpdateBlocklistAddressesParams.md)
|
|
699
|
+
- [CoboWaas2.TokenizationUpdateBlocklistAddressesParamsAddressesInner](docs/TokenizationUpdateBlocklistAddressesParamsAddressesInner.md)
|
|
700
|
+
- [CoboWaas2.TokenizationUpdateBlocklistAddressesRequest](docs/TokenizationUpdateBlocklistAddressesRequest.md)
|
|
701
|
+
- [CoboWaas2.TokenizationWeb3OperationSource](docs/TokenizationWeb3OperationSource.md)
|
|
630
702
|
- [CoboWaas2.TokensEventData](docs/TokensEventData.md)
|
|
631
703
|
- [CoboWaas2.TopUpAddress](docs/TopUpAddress.md)
|
|
632
704
|
- [CoboWaas2.Transaction](docs/Transaction.md)
|
|
@@ -841,4 +913,6 @@ Authentication schemes defined for the API:
|
|
|
841
913
|
- payment_merchant.create: Create payment merchant
|
|
842
914
|
- payment_merchant.read: Read payment merchant information
|
|
843
915
|
- payment_merchant.update: Update payment merchant
|
|
916
|
+
- payment_force_sweep.create: Create payment force sweep request
|
|
917
|
+
- payment_force_sweep.read: Read payment force sweep request information
|
|
844
918
|
|
package/dist/ApiClient.js
CHANGED
package/dist/api/OAuthApi.js
CHANGED
|
@@ -48,7 +48,7 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Get Access Token
|
|
51
|
-
* This operation acquires an Access Token and a Refresh Token for the Checkout SDK. For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
|
|
51
|
+
* This operation acquires an Access Token and a Refresh Token for the Checkout SDK. For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
|
|
52
52
|
* @param {module:model/ExchangePermissionTokenRequest} ExchangePermissionTokenRequest The request body to acquire an Access Token.
|
|
53
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ExchangePermissionToken201Response} and HTTP response
|
|
54
54
|
*/
|
|
@@ -76,7 +76,7 @@ var OAuthApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* Get Access Token
|
|
79
|
-
* This operation acquires an Access Token and a Refresh Token for the Checkout SDK. For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
|
|
79
|
+
* This operation acquires an Access Token and a Refresh Token for the Checkout SDK. For security purposes, an Access Token expires after a certain period. Once it expires, you need to call the [Refresh Access Token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-access-token) operation to get a new Access Token and a new Refresh Token.
|
|
80
80
|
* @param {module:model/ExchangePermissionTokenRequest} ExchangePermissionTokenRequest The request body to acquire an Access Token.
|
|
81
81
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ExchangePermissionToken201Response}
|
|
82
82
|
*/
|
|
@@ -13,10 +13,8 @@ var _CreateTransferTransaction201Response = _interopRequireDefault(require("../m
|
|
|
13
13
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
14
14
|
var _EstimateFeeParams = _interopRequireDefault(require("../model/EstimateFeeParams"));
|
|
15
15
|
var _EstimatedFee = _interopRequireDefault(require("../model/EstimatedFee"));
|
|
16
|
-
var _ListTransactionApprovalDetails200Response = _interopRequireDefault(require("../model/ListTransactionApprovalDetails200Response"));
|
|
17
16
|
var _ListTransactions200Response = _interopRequireDefault(require("../model/ListTransactions200Response"));
|
|
18
17
|
var _MessageSignParams = _interopRequireDefault(require("../model/MessageSignParams"));
|
|
19
|
-
var _TransactionApprovalDetail = _interopRequireDefault(require("../model/TransactionApprovalDetail"));
|
|
20
18
|
var _TransactionDetail = _interopRequireDefault(require("../model/TransactionDetail"));
|
|
21
19
|
var _TransactionRbf = _interopRequireDefault(require("../model/TransactionRbf"));
|
|
22
20
|
var _TransactionResend = _interopRequireDefault(require("../model/TransactionResend"));
|
|
@@ -412,50 +410,6 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
412
410
|
});
|
|
413
411
|
}
|
|
414
412
|
|
|
415
|
-
/**
|
|
416
|
-
* Get transaction approval details
|
|
417
|
-
* This operation retrieves detailed approval information about a specified transaction.
|
|
418
|
-
* @param {String} transaction_id The transaction ID.
|
|
419
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/TransactionApprovalDetail} and HTTP response
|
|
420
|
-
*/
|
|
421
|
-
}, {
|
|
422
|
-
key: "getTransactionApprovalDetailWithHttpInfo",
|
|
423
|
-
value: function getTransactionApprovalDetailWithHttpInfo(transaction_id) {
|
|
424
|
-
var postBody = null;
|
|
425
|
-
if (postBody && postBody.toJSON) {
|
|
426
|
-
postBody = postBody.toJSON();
|
|
427
|
-
}
|
|
428
|
-
// verify the required parameter 'transaction_id' is set
|
|
429
|
-
if (transaction_id === undefined || transaction_id === null) {
|
|
430
|
-
throw new Error("Missing the required parameter 'transaction_id' when calling getTransactionApprovalDetail");
|
|
431
|
-
}
|
|
432
|
-
var pathParams = {
|
|
433
|
-
'transaction_id': transaction_id
|
|
434
|
-
};
|
|
435
|
-
var queryParams = {};
|
|
436
|
-
var headerParams = {};
|
|
437
|
-
var formParams = {};
|
|
438
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
439
|
-
var contentTypes = [];
|
|
440
|
-
var accepts = ['application/json'];
|
|
441
|
-
var returnType = _TransactionApprovalDetail["default"];
|
|
442
|
-
return this.apiClient.callApi('/transactions/{transaction_id}/approval_detail', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
/**
|
|
446
|
-
* Get transaction approval details
|
|
447
|
-
* This operation retrieves detailed approval information about a specified transaction.
|
|
448
|
-
* @param {String} transaction_id The transaction ID.
|
|
449
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/TransactionApprovalDetail}
|
|
450
|
-
*/
|
|
451
|
-
}, {
|
|
452
|
-
key: "getTransactionApprovalDetail",
|
|
453
|
-
value: function getTransactionApprovalDetail(transaction_id) {
|
|
454
|
-
return this.getTransactionApprovalDetailWithHttpInfo(transaction_id).then(function (response_and_data) {
|
|
455
|
-
return response_and_data.data;
|
|
456
|
-
});
|
|
457
|
-
}
|
|
458
|
-
|
|
459
413
|
/**
|
|
460
414
|
* Get transaction information
|
|
461
415
|
* This operation retrieves detailed information about a specified transaction, such as the transaction status, source address, destination address, and timestamp.
|
|
@@ -500,52 +454,6 @@ var TransactionsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
500
454
|
});
|
|
501
455
|
}
|
|
502
456
|
|
|
503
|
-
/**
|
|
504
|
-
* List transaction approval details
|
|
505
|
-
* This operation retrieves detailed approval information for all transactions.
|
|
506
|
-
* @param {Object} opts Optional parameters
|
|
507
|
-
* @param {String} [transaction_ids] A list of transaction IDs, separated by comma.
|
|
508
|
-
* @param {String} [cobo_ids] A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
|
|
509
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListTransactionApprovalDetails200Response} and HTTP response
|
|
510
|
-
*/
|
|
511
|
-
}, {
|
|
512
|
-
key: "listTransactionApprovalDetailsWithHttpInfo",
|
|
513
|
-
value: function listTransactionApprovalDetailsWithHttpInfo(opts) {
|
|
514
|
-
opts = opts || {};
|
|
515
|
-
var postBody = null;
|
|
516
|
-
if (postBody && postBody.toJSON) {
|
|
517
|
-
postBody = postBody.toJSON();
|
|
518
|
-
}
|
|
519
|
-
var pathParams = {};
|
|
520
|
-
var queryParams = {
|
|
521
|
-
'transaction_ids': opts['transaction_ids'],
|
|
522
|
-
'cobo_ids': opts['cobo_ids']
|
|
523
|
-
};
|
|
524
|
-
var headerParams = {};
|
|
525
|
-
var formParams = {};
|
|
526
|
-
var authNames = ['OAuth2', 'CoboAuth'];
|
|
527
|
-
var contentTypes = [];
|
|
528
|
-
var accepts = ['application/json'];
|
|
529
|
-
var returnType = _ListTransactionApprovalDetails200Response["default"];
|
|
530
|
-
return this.apiClient.callApi('/transactions/approval_details', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
531
|
-
}
|
|
532
|
-
|
|
533
|
-
/**
|
|
534
|
-
* List transaction approval details
|
|
535
|
-
* This operation retrieves detailed approval information for all transactions.
|
|
536
|
-
* @param {Object} opts Optional parameters
|
|
537
|
-
* @param {String} opts.transaction_ids A list of transaction IDs, separated by comma.
|
|
538
|
-
* @param {String} opts.cobo_ids A list of Cobo IDs, separated by comma. A Cobo ID can be used to track a transaction.
|
|
539
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListTransactionApprovalDetails200Response}
|
|
540
|
-
*/
|
|
541
|
-
}, {
|
|
542
|
-
key: "listTransactionApprovalDetails",
|
|
543
|
-
value: function listTransactionApprovalDetails(opts) {
|
|
544
|
-
return this.listTransactionApprovalDetailsWithHttpInfo(opts).then(function (response_and_data) {
|
|
545
|
-
return response_and_data.data;
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
|
|
549
457
|
/**
|
|
550
458
|
* List all transactions
|
|
551
459
|
* This operation retrieves all the transactions under your organization. You can filter the results by request ID, Cobo ID, transaction ID, transaction hash, type, status, and timestamps. You can also paginate and sort your query results.
|
package/dist/api/WalletsApi.js
CHANGED
|
@@ -20,6 +20,7 @@ var _CreatedWalletInfo = _interopRequireDefault(require("../model/CreatedWalletI
|
|
|
20
20
|
var _DeleteWalletById201Response = _interopRequireDefault(require("../model/DeleteWalletById201Response"));
|
|
21
21
|
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
22
22
|
var _ExtendedTokenInfo = _interopRequireDefault(require("../model/ExtendedTokenInfo"));
|
|
23
|
+
var _GetMaxTransferableValueWithFeeModelRequest = _interopRequireDefault(require("../model/GetMaxTransferableValueWithFeeModelRequest"));
|
|
23
24
|
var _ListAddressBalancesByToken200Response = _interopRequireDefault(require("../model/ListAddressBalancesByToken200Response"));
|
|
24
25
|
var _ListAddresses200Response = _interopRequireDefault(require("../model/ListAddresses200Response"));
|
|
25
26
|
var _ListSupportedChains200Response = _interopRequireDefault(require("../model/ListSupportedChains200Response"));
|
|
@@ -566,6 +567,55 @@ var WalletsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
566
567
|
});
|
|
567
568
|
}
|
|
568
569
|
|
|
570
|
+
/**
|
|
571
|
+
* Estimate maximum transferable value
|
|
572
|
+
* This operation estimates the maximum transferable value from a wallet or a specific wallet address, based on the specified fee settings. The `to_address` property is required because it affects the fee calculation. <Note>This operation is applicable to Custodial Wallets (Web3 Wallets) and MPC Wallets only.</Note>
|
|
573
|
+
* @param {String} wallet_id The wallet ID.
|
|
574
|
+
* @param {Object} opts Optional parameters
|
|
575
|
+
* @param {module:model/GetMaxTransferableValueWithFeeModelRequest} [GetMaxTransferableValueWithFeeModelRequest] The request body for retrieving the maximum transferable value from a specified wallet.
|
|
576
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MaxTransferableValue} and HTTP response
|
|
577
|
+
*/
|
|
578
|
+
}, {
|
|
579
|
+
key: "getMaxTransferableValueWithFeeModelWithHttpInfo",
|
|
580
|
+
value: function getMaxTransferableValueWithFeeModelWithHttpInfo(wallet_id, opts) {
|
|
581
|
+
opts = opts || {};
|
|
582
|
+
var postBody = opts['GetMaxTransferableValueWithFeeModelRequest'];
|
|
583
|
+
if (postBody && postBody.toJSON) {
|
|
584
|
+
postBody = postBody.toJSON();
|
|
585
|
+
}
|
|
586
|
+
// verify the required parameter 'wallet_id' is set
|
|
587
|
+
if (wallet_id === undefined || wallet_id === null) {
|
|
588
|
+
throw new Error("Missing the required parameter 'wallet_id' when calling getMaxTransferableValueWithFeeModel");
|
|
589
|
+
}
|
|
590
|
+
var pathParams = {
|
|
591
|
+
'wallet_id': wallet_id
|
|
592
|
+
};
|
|
593
|
+
var queryParams = {};
|
|
594
|
+
var headerParams = {};
|
|
595
|
+
var formParams = {};
|
|
596
|
+
var authNames = ['OAuth2', 'CoboAuth'];
|
|
597
|
+
var contentTypes = ['application/json'];
|
|
598
|
+
var accepts = ['application/json'];
|
|
599
|
+
var returnType = _MaxTransferableValue["default"];
|
|
600
|
+
return this.apiClient.callApi('/wallets/{wallet_id}/max_transferable_value_with_fee_model', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Estimate maximum transferable value
|
|
605
|
+
* This operation estimates the maximum transferable value from a wallet or a specific wallet address, based on the specified fee settings. The `to_address` property is required because it affects the fee calculation. <Note>This operation is applicable to Custodial Wallets (Web3 Wallets) and MPC Wallets only.</Note>
|
|
606
|
+
* @param {String} wallet_id The wallet ID.
|
|
607
|
+
* @param {Object} opts Optional parameters
|
|
608
|
+
* @param {module:model/GetMaxTransferableValueWithFeeModelRequest} opts.GetMaxTransferableValueWithFeeModelRequest The request body for retrieving the maximum transferable value from a specified wallet.
|
|
609
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MaxTransferableValue}
|
|
610
|
+
*/
|
|
611
|
+
}, {
|
|
612
|
+
key: "getMaxTransferableValueWithFeeModel",
|
|
613
|
+
value: function getMaxTransferableValueWithFeeModel(wallet_id, opts) {
|
|
614
|
+
return this.getMaxTransferableValueWithFeeModelWithHttpInfo(wallet_id, opts).then(function (response_and_data) {
|
|
615
|
+
return response_and_data.data;
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
|
|
569
619
|
/**
|
|
570
620
|
* Get token information
|
|
571
621
|
* This operation retrieves the detailed information about a specified token.
|