@cobo/cobo-waas2 1.1.1
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 +414 -0
- package/dist/ApiClient.js +747 -0
- package/dist/Env.js +19 -0
- package/dist/api/DevelopersWebhooksApi.js +508 -0
- package/dist/api/OAuthApi.js +145 -0
- package/dist/api/TransactionsApi.js +542 -0
- package/dist/api/WalletsApi.js +1200 -0
- package/dist/api/WalletsMPCWalletsApi.js +955 -0
- package/dist/crypto/ApiSigner.js +52 -0
- package/dist/index.js +1742 -0
- package/dist/model/Activity.js +302 -0
- package/dist/model/ActivityAction.js +66 -0
- package/dist/model/ActivityInitiator.js +87 -0
- package/dist/model/ActivityStatus.js +66 -0
- package/dist/model/ActivityTimeline.js +140 -0
- package/dist/model/ActivityType.js +81 -0
- package/dist/model/AddressEncoding.js +86 -0
- package/dist/model/AddressInfo.js +174 -0
- package/dist/model/AddressTransferDestination.js +182 -0
- package/dist/model/AddressTransferDestinationAccountOutput.js +138 -0
- package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +136 -0
- package/dist/model/AmountDetailsInner.js +134 -0
- package/dist/model/AmountStatus.js +96 -0
- package/dist/model/AssetBalance.js +127 -0
- package/dist/model/AssetInfo.js +150 -0
- package/dist/model/BabylonStakeExtra.js +142 -0
- package/dist/model/BabylonValidator.js +199 -0
- package/dist/model/BaseContractCallSource.js +137 -0
- package/dist/model/BaseEstimateStakingFee.js +106 -0
- package/dist/model/BaseStakeExtra.js +107 -0
- package/dist/model/ChainInfo.js +172 -0
- package/dist/model/CheckAddressValidity200Response.js +106 -0
- package/dist/model/CoboSafeDelegate.js +143 -0
- package/dist/model/CoboSafeDelegateType.js +61 -0
- package/dist/model/ContractCallDestination.js +149 -0
- package/dist/model/ContractCallDestinationType.js +56 -0
- package/dist/model/ContractCallParams.js +198 -0
- package/dist/model/ContractCallSource.js +171 -0
- package/dist/model/ContractCallSourceType.js +66 -0
- package/dist/model/CreateAddressRequest.js +131 -0
- package/dist/model/CreateCustodialWalletParams.js +133 -0
- package/dist/model/CreateExchangeWalletParams.js +257 -0
- package/dist/model/CreateKeyShareHolder.js +119 -0
- package/dist/model/CreateKeyShareHolderGroupRequest.js +160 -0
- package/dist/model/CreateMpcProjectRequest.js +132 -0
- package/dist/model/CreateMpcVaultRequest.js +134 -0
- package/dist/model/CreateMpcWalletParams.js +166 -0
- package/dist/model/CreateSafeWalletParams.js +220 -0
- package/dist/model/CreateSmartContractWalletParams.js +185 -0
- package/dist/model/CreateStakeActivity.js +171 -0
- package/dist/model/CreateStakeActivityExtra.js +187 -0
- package/dist/model/CreateTransferTransaction201Response.js +136 -0
- package/dist/model/CreateTssRequestRequest.js +135 -0
- package/dist/model/CreateUnstakeActivity.js +137 -0
- package/dist/model/CreateWalletParams.js +229 -0
- package/dist/model/CreateWebhookEndpointRequest.js +139 -0
- package/dist/model/CreateWithdrawActivity.js +152 -0
- package/dist/model/CreatedWalletInfo.js +217 -0
- package/dist/model/CurveType.js +61 -0
- package/dist/model/CustodialTransferSource.js +122 -0
- package/dist/model/CustodialWalletInfo.js +163 -0
- package/dist/model/DeleteKeyShareHolderGroupById201Response.js +106 -0
- package/dist/model/DeleteWalletById201Response.js +106 -0
- package/dist/model/EigenLayerLstStakeExtra.js +129 -0
- package/dist/model/EigenLayerNativeStakeExtra.js +125 -0
- package/dist/model/EigenlayerValidator.js +159 -0
- package/dist/model/ErrorResponse.js +137 -0
- package/dist/model/EstimateContractCallFeeParams.js +178 -0
- package/dist/model/EstimateFeeParams.js +183 -0
- package/dist/model/EstimateFeeRequestType.js +61 -0
- package/dist/model/EstimateStakeFee.js +219 -0
- package/dist/model/EstimateTransferFeeParams.js +178 -0
- package/dist/model/EstimateUnstakeFee.js +177 -0
- package/dist/model/EstimateWithdrawFee.js +197 -0
- package/dist/model/EstimatedEvmEip1559Fee.js +164 -0
- package/dist/model/EstimatedEvmEip1559FeeSlow.js +168 -0
- package/dist/model/EstimatedEvmLegacyFee.js +164 -0
- package/dist/model/EstimatedEvmLegacyFeeSlow.js +148 -0
- package/dist/model/EstimatedFee.js +213 -0
- package/dist/model/EstimatedFixedFee.js +157 -0
- package/dist/model/EstimatedUtxoFee.js +164 -0
- package/dist/model/EstimatedUtxoFeeSlow.js +146 -0
- package/dist/model/EvmContractCallDestination.js +146 -0
- package/dist/model/EvmEIP191MessageSignDestination.js +122 -0
- package/dist/model/EvmEIP712MessageSignDestination.js +120 -0
- package/dist/model/EvmEip1559FeeBasePrice.js +101 -0
- package/dist/model/EvmEip1559FeeRate.js +164 -0
- package/dist/model/EvmLegacyFeeBasePrice.js +88 -0
- package/dist/model/EvmLegacyFeeRate.js +164 -0
- package/dist/model/ExchangeId.js +76 -0
- package/dist/model/ExchangeTransferDestination.js +152 -0
- package/dist/model/ExchangeTransferSource.js +137 -0
- package/dist/model/ExchangeWalletInfo.js +230 -0
- package/dist/model/ExtendedTokenInfo.js +294 -0
- package/dist/model/FeeAmount.js +88 -0
- package/dist/model/FeeGasLimit.js +88 -0
- package/dist/model/FeeRate.js +207 -0
- package/dist/model/FeeType.js +71 -0
- package/dist/model/FixedFeeRate.js +146 -0
- package/dist/model/GetToken200Response.js +135 -0
- package/dist/model/GetToken4XXResponse.js +124 -0
- package/dist/model/KeyShareHolder.js +137 -0
- package/dist/model/KeyShareHolderGroup.js +196 -0
- package/dist/model/KeyShareHolderGroupStatus.js +66 -0
- package/dist/model/KeyShareHolderGroupType.js +66 -0
- package/dist/model/KeyShareHolderStatus.js +71 -0
- package/dist/model/KeyShareHolderType.js +66 -0
- package/dist/model/ListAddresses200Response.js +121 -0
- package/dist/model/ListKeyShareHolderGroups200Response.js +121 -0
- package/dist/model/ListMpcProjects200Response.js +121 -0
- package/dist/model/ListMpcVaults200Response.js +121 -0
- package/dist/model/ListSupportedChains200Response.js +121 -0
- package/dist/model/ListSupportedTokens200Response.js +121 -0
- package/dist/model/ListTokenBalancesForAddress200Response.js +121 -0
- package/dist/model/ListTransactions200Response.js +121 -0
- package/dist/model/ListTssRequests200Response.js +121 -0
- package/dist/model/ListUtxos200Response.js +121 -0
- package/dist/model/ListWallets200Response.js +121 -0
- package/dist/model/ListWebhookEndpoints200Response.js +121 -0
- package/dist/model/ListWebhookEventDefinitions200ResponseInner.js +96 -0
- package/dist/model/ListWebhookEventLogs200Response.js +121 -0
- package/dist/model/ListWebhookEvents200Response.js +121 -0
- package/dist/model/LockUtxos201Response.js +83 -0
- package/dist/model/LockUtxosRequest.js +127 -0
- package/dist/model/LockUtxosRequestUtxosInner.js +136 -0
- package/dist/model/MPCDelegate.js +137 -0
- package/dist/model/MPCProject.js +141 -0
- package/dist/model/MPCVault.js +165 -0
- package/dist/model/MPCVaultType.js +61 -0
- package/dist/model/MPCWalletInfo.js +219 -0
- package/dist/model/MaxFeeAmount.js +88 -0
- package/dist/model/MaxTransferableValue.js +115 -0
- package/dist/model/MessageSignDestination.js +159 -0
- package/dist/model/MessageSignDestinationType.js +61 -0
- package/dist/model/MessageSignParams.js +184 -0
- package/dist/model/MessageSignSource.js +143 -0
- package/dist/model/MessageSignSourceType.js +61 -0
- package/dist/model/MpcContractCallSource.js +165 -0
- package/dist/model/MpcMessageSignSource.js +136 -0
- package/dist/model/MpcSigningGroup.js +101 -0
- package/dist/model/MpcTransferSource.js +194 -0
- package/dist/model/Pagination.js +137 -0
- package/dist/model/PoolDetails.js +363 -0
- package/dist/model/PoolDetailsAllOfValidatorsInfo.js +183 -0
- package/dist/model/PoolSummary.js +214 -0
- package/dist/model/RefreshTokenRequest.js +113 -0
- package/dist/model/ReplaceType.js +66 -0
- package/dist/model/RetryWebhookEventById201Response.js +83 -0
- package/dist/model/RootPubkey.js +97 -0
- package/dist/model/SafeContractCallSource.js +173 -0
- package/dist/model/SafeTransferSource.js +153 -0
- package/dist/model/SafeWallet.js +248 -0
- package/dist/model/SmartContractInitiator.js +126 -0
- package/dist/model/SmartContractWalletInfo.js +197 -0
- package/dist/model/SmartContractWalletOperationType.js +56 -0
- package/dist/model/SmartContractWalletType.js +56 -0
- package/dist/model/SourceGroup.js +124 -0
- package/dist/model/StakingPoolType.js +66 -0
- package/dist/model/StakingSource.js +171 -0
- package/dist/model/Stakings.js +295 -0
- package/dist/model/StakingsValidatorInfo.js +135 -0
- package/dist/model/SubWalletAssetBalance.js +140 -0
- package/dist/model/TSSGroups.js +110 -0
- package/dist/model/TSSRequest.js +133 -0
- package/dist/model/TSSRequestStatus.js +76 -0
- package/dist/model/TSSRequestType.js +66 -0
- package/dist/model/TokenBalance.js +127 -0
- package/dist/model/TokenBalanceBalance.js +154 -0
- package/dist/model/TokenInfo.js +231 -0
- package/dist/model/Transaction.js +443 -0
- package/dist/model/TransactionApprover.js +129 -0
- package/dist/model/TransactionBlockInfo.js +106 -0
- package/dist/model/TransactionCustodialAssetWalletSource.js +122 -0
- package/dist/model/TransactionDepositFromAddressSource.js +153 -0
- package/dist/model/TransactionDepositFromLoopSource.js +107 -0
- package/dist/model/TransactionDepositFromWalletSource.js +157 -0
- package/dist/model/TransactionDepositToAddressDestination.js +185 -0
- package/dist/model/TransactionDepositToWalletDestination.js +181 -0
- package/dist/model/TransactionDestination.js +329 -0
- package/dist/model/TransactionDestinationType.js +86 -0
- package/dist/model/TransactionDetail.js +607 -0
- package/dist/model/TransactionDetails.js +742 -0
- package/dist/model/TransactionEvmContractDestination.js +146 -0
- package/dist/model/TransactionEvmEip1559Fee.js +226 -0
- package/dist/model/TransactionEvmLegacyFee.js +195 -0
- package/dist/model/TransactionExchangeWalletSource.js +146 -0
- package/dist/model/TransactionFee.js +240 -0
- package/dist/model/TransactionFeeStationWalletSource.js +122 -0
- package/dist/model/TransactionFixedFee.js +157 -0
- package/dist/model/TransactionInitiatorType.js +71 -0
- package/dist/model/TransactionMPCWalletSource.js +194 -0
- package/dist/model/TransactionMessageSignEIP191Destination.js +122 -0
- package/dist/model/TransactionMessageSignEIP712Destination.js +120 -0
- package/dist/model/TransactionRawTxInfo.js +131 -0
- package/dist/model/TransactionRbf.js +167 -0
- package/dist/model/TransactionRbfSource.js +154 -0
- package/dist/model/TransactionReplacement.js +143 -0
- package/dist/model/TransactionRequestEvmEip1559Fee.js +182 -0
- package/dist/model/TransactionRequestEvmLegacyFee.js +162 -0
- package/dist/model/TransactionRequestFee.js +222 -0
- package/dist/model/TransactionRequestFixedFee.js +146 -0
- package/dist/model/TransactionRequestUtxoFee.js +161 -0
- package/dist/model/TransactionResend.js +111 -0
- package/dist/model/TransactionResult.js +137 -0
- package/dist/model/TransactionResultType.js +56 -0
- package/dist/model/TransactionSignatureResult.js +120 -0
- package/dist/model/TransactionSigner.js +147 -0
- package/dist/model/TransactionSmartContractSafeWalletSource.js +153 -0
- package/dist/model/TransactionSource.js +286 -0
- package/dist/model/TransactionSourceType.js +96 -0
- package/dist/model/TransactionStatus.js +106 -0
- package/dist/model/TransactionSubStatus.js +166 -0
- package/dist/model/TransactionTimeline.js +102 -0
- package/dist/model/TransactionTokeApproval.js +313 -0
- package/dist/model/TransactionTokenAmount.js +139 -0
- package/dist/model/TransactionTransferToAddressDestination.js +182 -0
- package/dist/model/TransactionTransferToAddressDestinationAccountOutput.js +113 -0
- package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +113 -0
- package/dist/model/TransactionTransferToWalletDestination.js +159 -0
- package/dist/model/TransactionType.js +76 -0
- package/dist/model/TransactionUtxo.js +97 -0
- package/dist/model/TransactionUtxoFee.js +170 -0
- package/dist/model/TransactionWebhookEventData.js +620 -0
- package/dist/model/TransferDestination.js +195 -0
- package/dist/model/TransferDestinationType.js +61 -0
- package/dist/model/TransferParams.js +198 -0
- package/dist/model/TransferSource.js +214 -0
- package/dist/model/UTXO.js +163 -0
- package/dist/model/UpdateCustodialWalletParams.js +120 -0
- package/dist/model/UpdateExchangeWalletParams.js +120 -0
- package/dist/model/UpdateGroupAction.js +56 -0
- package/dist/model/UpdateKeyShareHolderGroupByIdRequest.js +106 -0
- package/dist/model/UpdateMpcProjectByIdRequest.js +110 -0
- package/dist/model/UpdateMpcVaultByIdRequest.js +110 -0
- package/dist/model/UpdateMpcWalletParams.js +120 -0
- package/dist/model/UpdateSmartContractWalletParams.js +120 -0
- package/dist/model/UpdateWalletParams.js +185 -0
- package/dist/model/UpdateWebhookEndpointByIdRequest.js +132 -0
- package/dist/model/UtxoFeeBasePrice.js +88 -0
- package/dist/model/UtxoFeeRate.js +164 -0
- package/dist/model/WalletInfo.js +235 -0
- package/dist/model/WalletSubtype.js +86 -0
- package/dist/model/WalletType.js +71 -0
- package/dist/model/WebhookEndpoint.js +175 -0
- package/dist/model/WebhookEndpointStatus.js +81 -0
- package/dist/model/WebhookEvent.js +189 -0
- package/dist/model/WebhookEventData.js +299 -0
- package/dist/model/WebhookEventDataType.js +129 -0
- package/dist/model/WebhookEventLog.js +204 -0
- package/dist/model/WebhookEventStatus.js +66 -0
- package/dist/model/WebhookEventType.js +71 -0
- package/docs/Activity.md +23 -0
- package/docs/ActivityAction.md +14 -0
- package/docs/ActivityInitiator.md +9 -0
- package/docs/ActivityStatus.md +14 -0
- package/docs/ActivityTimeline.md +12 -0
- package/docs/ActivityType.md +20 -0
- package/docs/AddressEncoding.md +22 -0
- package/docs/AddressInfo.md +14 -0
- package/docs/AddressTransferDestination.md +14 -0
- package/docs/AddressTransferDestinationAccountOutput.md +11 -0
- package/docs/AddressTransferDestinationUtxoOutputsInner.md +11 -0
- package/docs/AmountDetailsInner.md +11 -0
- package/docs/AmountStatus.md +26 -0
- package/docs/AssetBalance.md +10 -0
- package/docs/AssetInfo.md +12 -0
- package/docs/BabylonStakeExtra.md +11 -0
- package/docs/BabylonValidator.md +27 -0
- package/docs/BaseContractCallSource.md +11 -0
- package/docs/BaseEstimateStakingFee.md +9 -0
- package/docs/BaseStakeExtra.md +9 -0
- package/docs/ChainInfo.md +14 -0
- package/docs/CheckAddressValidity200Response.md +9 -0
- package/docs/CoboSafeDelegate.md +11 -0
- package/docs/CoboSafeDelegateType.md +12 -0
- package/docs/ContractCallDestination.md +12 -0
- package/docs/ContractCallDestinationType.md +10 -0
- package/docs/ContractCallParams.md +15 -0
- package/docs/ContractCallSource.md +13 -0
- package/docs/ContractCallSourceType.md +14 -0
- package/docs/CreateAddressRequest.md +11 -0
- package/docs/CreateCustodialWalletParams.md +11 -0
- package/docs/CreateExchangeWalletParams.md +19 -0
- package/docs/CreateKeyShareHolder.md +12 -0
- package/docs/CreateKeyShareHolderGroupRequest.md +12 -0
- package/docs/CreateMpcProjectRequest.md +11 -0
- package/docs/CreateMpcVaultRequest.md +11 -0
- package/docs/CreateMpcWalletParams.md +12 -0
- package/docs/CreateSafeWalletParams.md +18 -0
- package/docs/CreateSmartContractWalletParams.md +18 -0
- package/docs/CreateStakeActivity.md +13 -0
- package/docs/CreateStakeActivityExtra.md +13 -0
- package/docs/CreateTransferTransaction201Response.md +11 -0
- package/docs/CreateTssRequestRequest.md +11 -0
- package/docs/CreateUnstakeActivity.md +11 -0
- package/docs/CreateWalletParams.md +20 -0
- package/docs/CreateWebhookEndpointRequest.md +11 -0
- package/docs/CreateWithdrawActivity.md +12 -0
- package/docs/CreatedWalletInfo.md +18 -0
- package/docs/CurveType.md +12 -0
- package/docs/CustodialTransferSource.md +10 -0
- package/docs/CustodialWalletInfo.md +13 -0
- package/docs/DeleteKeyShareHolderGroupById201Response.md +9 -0
- package/docs/DeleteWalletById201Response.md +9 -0
- package/docs/DevelopersWebhooksApi.md +496 -0
- package/docs/EigenLayerLstStakeExtra.md +10 -0
- package/docs/EigenLayerNativeStakeExtra.md +10 -0
- package/docs/EigenlayerValidator.md +13 -0
- package/docs/ErrorResponse.md +11 -0
- package/docs/EstimateContractCallFeeParams.md +14 -0
- package/docs/EstimateFeeParams.md +15 -0
- package/docs/EstimateFeeRequestType.md +12 -0
- package/docs/EstimateStakeFee.md +14 -0
- package/docs/EstimateTransferFeeParams.md +14 -0
- package/docs/EstimateUnstakeFee.md +12 -0
- package/docs/EstimateWithdrawFee.md +13 -0
- package/docs/EstimatedEvmEip1559Fee.md +13 -0
- package/docs/EstimatedEvmEip1559FeeSlow.md +11 -0
- package/docs/EstimatedEvmLegacyFee.md +13 -0
- package/docs/EstimatedEvmLegacyFeeSlow.md +10 -0
- package/docs/EstimatedFee.md +15 -0
- package/docs/EstimatedFixedFee.md +12 -0
- package/docs/EstimatedUtxoFee.md +13 -0
- package/docs/EstimatedUtxoFeeSlow.md +10 -0
- package/docs/EvmContractCallDestination.md +12 -0
- package/docs/EvmEIP191MessageSignDestination.md +10 -0
- package/docs/EvmEIP712MessageSignDestination.md +10 -0
- package/docs/EvmEip1559FeeBasePrice.md +10 -0
- package/docs/EvmEip1559FeeRate.md +13 -0
- package/docs/EvmLegacyFeeBasePrice.md +9 -0
- package/docs/EvmLegacyFeeRate.md +13 -0
- package/docs/ExchangeId.md +18 -0
- package/docs/ExchangeTransferDestination.md +12 -0
- package/docs/ExchangeTransferSource.md +11 -0
- package/docs/ExchangeWalletInfo.md +16 -0
- package/docs/ExtendedTokenInfo.md +19 -0
- package/docs/FeeAmount.md +9 -0
- package/docs/FeeGasLimit.md +9 -0
- package/docs/FeeRate.md +14 -0
- package/docs/FeeType.md +16 -0
- package/docs/FixedFeeRate.md +11 -0
- package/docs/GetToken200Response.md +13 -0
- package/docs/GetToken4XXResponse.md +10 -0
- package/docs/KeyShareHolder.md +14 -0
- package/docs/KeyShareHolderGroup.md +16 -0
- package/docs/KeyShareHolderGroupStatus.md +14 -0
- package/docs/KeyShareHolderGroupType.md +14 -0
- package/docs/KeyShareHolderStatus.md +16 -0
- package/docs/KeyShareHolderType.md +14 -0
- package/docs/ListAddresses200Response.md +10 -0
- package/docs/ListKeyShareHolderGroups200Response.md +10 -0
- package/docs/ListMpcProjects200Response.md +10 -0
- package/docs/ListMpcVaults200Response.md +10 -0
- package/docs/ListSupportedChains200Response.md +10 -0
- package/docs/ListSupportedTokens200Response.md +10 -0
- package/docs/ListTokenBalancesForAddress200Response.md +10 -0
- package/docs/ListTransactions200Response.md +10 -0
- package/docs/ListTssRequests200Response.md +10 -0
- package/docs/ListUtxos200Response.md +10 -0
- package/docs/ListWallets200Response.md +10 -0
- package/docs/ListWebhookEndpoints200Response.md +10 -0
- package/docs/ListWebhookEventDefinitions200ResponseInner.md +10 -0
- package/docs/ListWebhookEventLogs200Response.md +10 -0
- package/docs/ListWebhookEvents200Response.md +10 -0
- package/docs/LockUtxos201Response.md +9 -0
- package/docs/LockUtxosRequest.md +9 -0
- package/docs/LockUtxosRequestUtxosInner.md +11 -0
- package/docs/MPCDelegate.md +11 -0
- package/docs/MPCProject.md +14 -0
- package/docs/MPCVault.md +14 -0
- package/docs/MPCVaultType.md +12 -0
- package/docs/MPCWalletInfo.md +15 -0
- package/docs/MaxFeeAmount.md +9 -0
- package/docs/MaxTransferableValue.md +11 -0
- package/docs/MessageSignDestination.md +11 -0
- package/docs/MessageSignDestinationType.md +12 -0
- package/docs/MessageSignParams.md +14 -0
- package/docs/MessageSignSource.md +11 -0
- package/docs/MessageSignSourceType.md +12 -0
- package/docs/MpcContractCallSource.md +12 -0
- package/docs/MpcMessageSignSource.md +11 -0
- package/docs/MpcSigningGroup.md +10 -0
- package/docs/MpcTransferSource.md +13 -0
- package/docs/OAuthApi.md +112 -0
- package/docs/Pagination.md +11 -0
- package/docs/PoolDetails.md +24 -0
- package/docs/PoolDetailsAllOfValidatorsInfo.md +28 -0
- package/docs/PoolSummary.md +16 -0
- package/docs/RefreshTokenRequest.md +11 -0
- package/docs/ReplaceType.md +14 -0
- package/docs/RetryWebhookEventById201Response.md +9 -0
- package/docs/RootPubkey.md +10 -0
- package/docs/SafeContractCallSource.md +12 -0
- package/docs/SafeTransferSource.md +12 -0
- package/docs/SafeWallet.md +20 -0
- package/docs/SmartContractInitiator.md +10 -0
- package/docs/SmartContractWalletInfo.md +20 -0
- package/docs/SmartContractWalletOperationType.md +10 -0
- package/docs/SmartContractWalletType.md +10 -0
- package/docs/SourceGroup.md +10 -0
- package/docs/StakingPoolType.md +14 -0
- package/docs/StakingSource.md +13 -0
- package/docs/Stakings.md +22 -0
- package/docs/StakingsValidatorInfo.md +13 -0
- package/docs/SubWalletAssetBalance.md +11 -0
- package/docs/TSSGroups.md +11 -0
- package/docs/TSSRequest.md +13 -0
- package/docs/TSSRequestStatus.md +18 -0
- package/docs/TSSRequestType.md +14 -0
- package/docs/TokenBalance.md +10 -0
- package/docs/TokenBalanceBalance.md +12 -0
- package/docs/TokenInfo.md +19 -0
- package/docs/Transaction.md +36 -0
- package/docs/TransactionApprover.md +25 -0
- package/docs/TransactionBlockInfo.md +11 -0
- package/docs/TransactionCustodialAssetWalletSource.md +10 -0
- package/docs/TransactionDepositFromAddressSource.md +13 -0
- package/docs/TransactionDepositFromLoopSource.md +9 -0
- package/docs/TransactionDepositFromWalletSource.md +13 -0
- package/docs/TransactionDepositToAddressDestination.md +15 -0
- package/docs/TransactionDepositToWalletDestination.md +15 -0
- package/docs/TransactionDestination.md +26 -0
- package/docs/TransactionDestinationType.md +22 -0
- package/docs/TransactionDetail.md +37 -0
- package/docs/TransactionDetails.md +45 -0
- package/docs/TransactionEvmContractDestination.md +12 -0
- package/docs/TransactionEvmEip1559Fee.md +16 -0
- package/docs/TransactionEvmLegacyFee.md +14 -0
- package/docs/TransactionExchangeWalletSource.md +12 -0
- package/docs/TransactionFee.md +19 -0
- package/docs/TransactionFeeStationWalletSource.md +10 -0
- package/docs/TransactionFixedFee.md +12 -0
- package/docs/TransactionInitiatorType.md +16 -0
- package/docs/TransactionMPCWalletSource.md +13 -0
- package/docs/TransactionMessageSignEIP191Destination.md +10 -0
- package/docs/TransactionMessageSignEIP712Destination.md +10 -0
- package/docs/TransactionRawTxInfo.md +11 -0
- package/docs/TransactionRbf.md +13 -0
- package/docs/TransactionRbfSource.md +13 -0
- package/docs/TransactionReplacement.md +14 -0
- package/docs/TransactionRequestEvmEip1559Fee.md +13 -0
- package/docs/TransactionRequestEvmLegacyFee.md +12 -0
- package/docs/TransactionRequestFee.md +16 -0
- package/docs/TransactionRequestFixedFee.md +11 -0
- package/docs/TransactionRequestUtxoFee.md +12 -0
- package/docs/TransactionResend.md +9 -0
- package/docs/TransactionResult.md +10 -0
- package/docs/TransactionResultType.md +10 -0
- package/docs/TransactionSignatureResult.md +10 -0
- package/docs/TransactionSigner.md +28 -0
- package/docs/TransactionSmartContractSafeWalletSource.md +12 -0
- package/docs/TransactionSource.md +19 -0
- package/docs/TransactionSourceType.md +26 -0
- package/docs/TransactionStatus.md +30 -0
- package/docs/TransactionSubStatus.md +54 -0
- package/docs/TransactionTimeline.md +11 -0
- package/docs/TransactionTokeApproval.md +21 -0
- package/docs/TransactionTokenAmount.md +11 -0
- package/docs/TransactionTransferToAddressDestination.md +14 -0
- package/docs/TransactionTransferToAddressDestinationAccountOutput.md +11 -0
- package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +11 -0
- package/docs/TransactionTransferToWalletDestination.md +13 -0
- package/docs/TransactionType.md +18 -0
- package/docs/TransactionUtxo.md +10 -0
- package/docs/TransactionUtxoFee.md +13 -0
- package/docs/TransactionWebhookEventData.md +48 -0
- package/docs/TransactionsApi.md +562 -0
- package/docs/TransferDestination.md +17 -0
- package/docs/TransferDestinationType.md +12 -0
- package/docs/TransferParams.md +15 -0
- package/docs/TransferSource.md +15 -0
- package/docs/UTXO.md +16 -0
- package/docs/UpdateCustodialWalletParams.md +10 -0
- package/docs/UpdateExchangeWalletParams.md +10 -0
- package/docs/UpdateGroupAction.md +10 -0
- package/docs/UpdateKeyShareHolderGroupByIdRequest.md +9 -0
- package/docs/UpdateMpcProjectByIdRequest.md +9 -0
- package/docs/UpdateMpcVaultByIdRequest.md +9 -0
- package/docs/UpdateMpcWalletParams.md +10 -0
- package/docs/UpdateSmartContractWalletParams.md +10 -0
- package/docs/UpdateWalletParams.md +10 -0
- package/docs/UpdateWebhookEndpointByIdRequest.md +22 -0
- package/docs/UtxoFeeBasePrice.md +9 -0
- package/docs/UtxoFeeRate.md +13 -0
- package/docs/WalletInfo.md +18 -0
- package/docs/WalletSubtype.md +22 -0
- package/docs/WalletType.md +16 -0
- package/docs/WalletsApi.md +1198 -0
- package/docs/WalletsMPCWalletsApi.md +974 -0
- package/docs/WebhookEndpoint.md +14 -0
- package/docs/WebhookEndpointStatus.md +20 -0
- package/docs/WebhookEvent.md +16 -0
- package/docs/WebhookEventData.md +48 -0
- package/docs/WebhookEventDataType.md +20 -0
- package/docs/WebhookEventLog.md +17 -0
- package/docs/WebhookEventStatus.md +14 -0
- package/docs/WebhookEventType.md +16 -0
- package/package.json +49 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.ListWebhookEvents200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**data** | [**[WebhookEvent]**](WebhookEvent.md) | | [optional]
|
|
8
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CoboWaas2.LockUtxos201Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**executed** | **Boolean** | Whether the locking or unlocking operation has been successfully executed. - `true`: The operation has been successfully executed. - `false`: The operation has not been executed. | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.LockUtxosRequestUtxosInner
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**token_id** | **String** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). |
|
|
8
|
+
**tx_hash** | **String** | The transaction hash. |
|
|
9
|
+
**vout_n** | **Number** | The output index of the UTXO. |
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.MPCDelegate
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**delegate_type** | [**CoboSafeDelegateType**](CoboSafeDelegateType.md) | |
|
|
8
|
+
**wallet_id** | **String** | The wallet ID of the Delegate. This is required when initiating a transfer from Smart Contract Wallets (Safe{Wallet}). |
|
|
9
|
+
**address** | **String** | The wallet address of the Delegate. This is required when initiating a transfer from Smart Contract Wallets (Safe{Wallet}). |
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.MPCProject
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**project_id** | **String** | The project ID. | [optional]
|
|
8
|
+
**org_id** | **String** | The [organization](https://manuals.cobo.com/en/portal/organization/introduction) ID. | [optional]
|
|
9
|
+
**name** | **String** | The project name. | [optional]
|
|
10
|
+
**participants** | **Number** | The number of key share holders in the project. | [optional]
|
|
11
|
+
**threshold** | **Number** | The number of key share holders required to sign an operation in the project. | [optional]
|
|
12
|
+
**create_timestamp** | **Number** | The project's creation time in Unix timestamp format, measured in milliseconds. | [optional]
|
|
13
|
+
|
|
14
|
+
|
package/docs/MPCVault.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.MPCVault
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**vault_id** | **String** | The vault ID. | [optional]
|
|
8
|
+
**project_id** | **String** | The project ID. | [optional]
|
|
9
|
+
**name** | **String** | The vault name. | [optional]
|
|
10
|
+
**type** | [**MPCVaultType**](MPCVaultType.md) | | [optional]
|
|
11
|
+
**root_pubkeys** | [**[RootPubkey]**](RootPubkey.md) | | [optional]
|
|
12
|
+
**created_timestamp** | **Number** | The vault's creation time in Unix timestamp format, measured in milliseconds. | [optional]
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# CoboWaas2.MPCWalletInfo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**wallet_id** | **String** | The wallet ID. |
|
|
8
|
+
**wallet_type** | [**WalletType**](WalletType.md) | |
|
|
9
|
+
**wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
|
|
10
|
+
**name** | **String** | The wallet name. |
|
|
11
|
+
**org_id** | **String** | The ID of the owning organization. |
|
|
12
|
+
**project_id** | **String** | The project ID. | [optional]
|
|
13
|
+
**vault_id** | **String** | The ID of the owning vault. |
|
|
14
|
+
|
|
15
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CoboWaas2.MaxFeeAmount
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**max_fee_amount** | **String** | The maximum fee that you are willing to pay for the transaction. The transaction will fail if the transaction fee exceeds the maximum fee. | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.MaxTransferableValue
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**token_id** | **String** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). | [optional]
|
|
8
|
+
**max_transferable_value** | **String** | The maximum amount you can transfer from the wallet or the specified wallet address. | [optional]
|
|
9
|
+
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.MessageSignDestination
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**destination_type** | [**MessageSignDestinationType**](MessageSignDestinationType.md) | |
|
|
8
|
+
**message** | **String** | The raw data of the message to be signed, encoded in Base64 format. |
|
|
9
|
+
**structured_data** | **{String: Object}** | The structured data to be signed, formatted as a JSON object according to the EIP-712 standard. |
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.MessageSignParams
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. |
|
|
8
|
+
**chain_id** | **String** | The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
|
|
9
|
+
**source** | [**MessageSignSource**](MessageSignSource.md) | |
|
|
10
|
+
**destination** | [**MessageSignDestination**](MessageSignDestination.md) | |
|
|
11
|
+
**description** | **String** | The description of the message sign transaction. | [optional]
|
|
12
|
+
**category_names** | **[String]** | The custom category for you to identify your transactions. | [optional]
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.MessageSignSource
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**source_type** | [**MessageSignSourceType**](MessageSignSourceType.md) | |
|
|
8
|
+
**wallet_id** | **String** | The wallet ID. |
|
|
9
|
+
**address** | **String** | The wallet address. |
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# CoboWaas2.MpcContractCallSource
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**source_type** | [**ContractCallSourceType**](ContractCallSourceType.md) | |
|
|
8
|
+
**wallet_id** | **String** | The wallet ID. |
|
|
9
|
+
**address** | **String** | The wallet address. |
|
|
10
|
+
**nonce** | **Number** | The transaction nonce. | [optional]
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.MpcMessageSignSource
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**source_type** | [**MessageSignSourceType**](MessageSignSourceType.md) | |
|
|
8
|
+
**wallet_id** | **String** | The wallet ID. |
|
|
9
|
+
**address** | **String** | The wallet address. |
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.MpcSigningGroup
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**used_key_share_holder_group_id** | **String** | The ID of the Signing Group. | [optional]
|
|
8
|
+
**used_tss_node_ids** | **[String]** | The ID of the TSS Nodes that are required to participate in the signature. | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# CoboWaas2.MpcTransferSource
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**source_type** | [**WalletSubtype**](WalletSubtype.md) | |
|
|
8
|
+
**wallet_id** | **String** | The wallet ID. |
|
|
9
|
+
**address** | **String** | The wallet address. | [optional]
|
|
10
|
+
**included_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
|
|
11
|
+
**excluded_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
|
|
12
|
+
|
|
13
|
+
|
package/docs/OAuthApi.md
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# CoboWaas2.OAuthApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.dev.cobo.com/v2*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**getToken**](OAuthApi.md#getToken) | **GET** /oauth/token | Get Access Token
|
|
8
|
+
[**refreshToken**](OAuthApi.md#refreshToken) | **POST** /oauth/token | Refresh Access Token
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
## getToken
|
|
13
|
+
|
|
14
|
+
> GetToken200Response getToken(client_id, org_id, grant_type)
|
|
15
|
+
|
|
16
|
+
Get Access Token
|
|
17
|
+
|
|
18
|
+
<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, Org ID, and grant type. Access tokens allow the app to signal to the WaaS service that it has received permission from the organization admin to access specific resources. Once the app has been granted permission by an organization 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 need to [Refresh token](/v2/api-references/oauth/refresh-access-token) to get a new access token and a new fresh token.
|
|
19
|
+
|
|
20
|
+
### Example
|
|
21
|
+
|
|
22
|
+
```javascript
|
|
23
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
24
|
+
// initial default api client
|
|
25
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
26
|
+
// for dev env
|
|
27
|
+
// apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
28
|
+
apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
|
|
29
|
+
// call api
|
|
30
|
+
const apiInstance = new CoboWaas2.OAuthApi();
|
|
31
|
+
const client_id = "pvSwS8iFrfK0oZrB0ugG54XPDOLEv0Ij"; // String | 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.
|
|
32
|
+
const org_id = "e3986401-4aec-480a-973d-e775a4518413"; // String | Org ID, a unique identifier to distinguish different organizations. You can get the Org ID by retrieving the Manifest file after receiving the notification of app launch approval.
|
|
33
|
+
const grant_type = "org_implicit"; // String | The type of the permission granting. To get an access token, you need to set the value as `org_implicit`.
|
|
34
|
+
apiInstance.getToken(client_id, org_id, grant_type).then((data) => {
|
|
35
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
36
|
+
}, (error) => {
|
|
37
|
+
console.error(error);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Parameters
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
Name | Type | Description | Notes
|
|
46
|
+
------------- | ------------- | ------------- | -------------
|
|
47
|
+
**client_id** | **String**| 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. |
|
|
48
|
+
**org_id** | **String**| Org ID, a unique identifier to distinguish different organizations. You can get the Org ID by retrieving the Manifest file after receiving the notification of app launch approval. |
|
|
49
|
+
**grant_type** | **String**| The type of the permission granting. To get an access token, you need to set the value as `org_implicit`. |
|
|
50
|
+
|
|
51
|
+
### Return type
|
|
52
|
+
|
|
53
|
+
[**GetToken200Response**](GetToken200Response.md)
|
|
54
|
+
|
|
55
|
+
### Authorization
|
|
56
|
+
|
|
57
|
+
[CoboAuth](../README.md#CoboAuth)
|
|
58
|
+
|
|
59
|
+
### HTTP request headers
|
|
60
|
+
|
|
61
|
+
- **Content-Type**: Not defined
|
|
62
|
+
- **Accept**: application/json
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
## refreshToken
|
|
66
|
+
|
|
67
|
+
> GetToken200Response refreshToken(RefreshTokenRequest)
|
|
68
|
+
|
|
69
|
+
Refresh Access Token
|
|
70
|
+
|
|
71
|
+
<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 need to use this operation to get a new access token and a new fresh token.
|
|
72
|
+
|
|
73
|
+
### Example
|
|
74
|
+
|
|
75
|
+
```javascript
|
|
76
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
77
|
+
// initial default api client
|
|
78
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
79
|
+
// for dev env
|
|
80
|
+
// apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
81
|
+
apiClient.setPrivateKey("<YOUR_API_PRIVATE_KEY_IN_HEX>");
|
|
82
|
+
// call api
|
|
83
|
+
const apiInstance = new CoboWaas2.OAuthApi();
|
|
84
|
+
const RefreshTokenRequest = new CoboWaas2.RefreshTokenRequest(); // RefreshTokenRequest | The request body for refreshing an access token.
|
|
85
|
+
apiInstance.refreshToken(RefreshTokenRequest).then((data) => {
|
|
86
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
87
|
+
}, (error) => {
|
|
88
|
+
console.error(error);
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Parameters
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
Name | Type | Description | Notes
|
|
97
|
+
------------- | ------------- | ------------- | -------------
|
|
98
|
+
**RefreshTokenRequest** | [**RefreshTokenRequest**](RefreshTokenRequest.md)| The request body for refreshing an access token. |
|
|
99
|
+
|
|
100
|
+
### Return type
|
|
101
|
+
|
|
102
|
+
[**GetToken200Response**](GetToken200Response.md)
|
|
103
|
+
|
|
104
|
+
### Authorization
|
|
105
|
+
|
|
106
|
+
[CoboAuth](../README.md#CoboAuth)
|
|
107
|
+
|
|
108
|
+
### HTTP request headers
|
|
109
|
+
|
|
110
|
+
- **Content-Type**: application/json
|
|
111
|
+
- **Accept**: application/json
|
|
112
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.Pagination
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**before** | **String** | An object ID that serves as a starting point for retrieving data in reverse chronological order for the next request. If this property is empty, it means that you have reached the start of the data records. |
|
|
8
|
+
**after** | **String** | An object ID that acts as a starting point for retrieving data in chronological order for the next request. If this property is empty, it means that you have reached the end of the data records. |
|
|
9
|
+
**total_count** | **Number** | The total number of records that match the query, across all pages. |
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# CoboWaas2.PoolDetails
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**id** | **String** | The unique protocol id. |
|
|
8
|
+
**chain_id** | **String** | The unique chain id. |
|
|
9
|
+
**protocol** | **String** | The name of the protocol. |
|
|
10
|
+
**protocol_icon_url** | **String** | The URL of the protocol's icon. |
|
|
11
|
+
**supported_wallet_types** | [**[WalletType]**](WalletType.md) | The list of available wallet types. |
|
|
12
|
+
**supported_wallet_subtypes** | [**[WalletSubtype]**](WalletSubtype.md) | The list of available wallet types. |
|
|
13
|
+
**token_id** | **String** | The unique token id. |
|
|
14
|
+
**est_apr** | **Number** | The estimated APR. |
|
|
15
|
+
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | | [optional]
|
|
16
|
+
**min_amount** | **String** | The minimum amount to stake. | [optional]
|
|
17
|
+
**max_amount** | **String** | The maximum amount to stake. | [optional]
|
|
18
|
+
**min_stake_period** | **Number** | The minimum staking period in days. | [optional]
|
|
19
|
+
**max_stake_period** | **Number** | The maximum staking period in days. | [optional]
|
|
20
|
+
**min_stake_blocks** | **Number** | The minimum staking blocks. | [optional]
|
|
21
|
+
**max_stake_blocks** | **Number** | The maximum staking blocks. | [optional]
|
|
22
|
+
**validators_info** | [**[PoolDetailsAllOfValidatorsInfo]**](PoolDetailsAllOfValidatorsInfo.md) | The list of validators. |
|
|
23
|
+
|
|
24
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# CoboWaas2.PoolDetailsAllOfValidatorsInfo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**icon_url** | **String** | The URL of the validator's icon. |
|
|
8
|
+
**name** | **String** | The name of validator. |
|
|
9
|
+
**priority** | **Number** | The priority of validator. | [optional]
|
|
10
|
+
**public_key** | **String** | The public key of validator. |
|
|
11
|
+
**commission_rate** | **Number** | The commission of validator. |
|
|
12
|
+
**supported_pos_chains** | **[String]** | The list of supported pos chains. |
|
|
13
|
+
**address** | **String** | The address of validator. |
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Enum: [SupportedPosChainsEnum]
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
* `Babylon` (value: `"Babylon"`)
|
|
21
|
+
|
|
22
|
+
* `Cosmos` (value: `"Cosmos"`)
|
|
23
|
+
|
|
24
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# CoboWaas2.PoolSummary
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**id** | **String** | The unique protocol id. |
|
|
8
|
+
**chain_id** | **String** | The unique chain id. |
|
|
9
|
+
**protocol** | **String** | The name of the protocol. |
|
|
10
|
+
**protocol_icon_url** | **String** | The URL of the protocol's icon. |
|
|
11
|
+
**supported_wallet_types** | [**[WalletType]**](WalletType.md) | The list of available wallet types. |
|
|
12
|
+
**supported_wallet_subtypes** | [**[WalletSubtype]**](WalletSubtype.md) | The list of available wallet types. |
|
|
13
|
+
**token_id** | **String** | The unique token id. |
|
|
14
|
+
**est_apr** | **Number** | The estimated APR. |
|
|
15
|
+
|
|
16
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.RefreshTokenRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**client_id** | **String** | 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. | [optional]
|
|
8
|
+
**grant_type** | **String** | The type of the permission granting. To refresh an access token, you need to set the value as `refresh_token`. | [optional]
|
|
9
|
+
**refresh_token** | **String** | The refresh token of the expired or expiring access token. | [optional]
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CoboWaas2.RetryWebhookEventById201Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**retried** | **Boolean** | Whether the retry request has been successfully sent. | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.RootPubkey
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**root_pubkey** | **String** | The vault's [root extended public key](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/tss-node-deployment#tss-node-on-cobo-portal-and-mpc-root-extended-public-key). | [optional]
|
|
8
|
+
**curve** | [**CurveType**](CurveType.md) | | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# CoboWaas2.SafeContractCallSource
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**source_type** | [**ContractCallSourceType**](ContractCallSourceType.md) | |
|
|
8
|
+
**wallet_id** | **String** | The wallet ID. |
|
|
9
|
+
**address** | **String** | The wallet address. |
|
|
10
|
+
**delegate** | [**CoboSafeDelegate**](CoboSafeDelegate.md) | |
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# CoboWaas2.SafeTransferSource
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**source_type** | [**WalletSubtype**](WalletSubtype.md) | |
|
|
8
|
+
**wallet_id** | **String** | The wallet ID. |
|
|
9
|
+
**address** | **String** | The wallet address. |
|
|
10
|
+
**delegate** | [**CoboSafeDelegate**](CoboSafeDelegate.md) | |
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# CoboWaas2.SafeWallet
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**wallet_id** | **String** | The wallet ID. |
|
|
8
|
+
**wallet_type** | [**WalletType**](WalletType.md) | |
|
|
9
|
+
**wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
|
|
10
|
+
**name** | **String** | The wallet name. |
|
|
11
|
+
**org_id** | **String** | The ID of the owning organization. |
|
|
12
|
+
**chain_id** | **String** | The ID of the chain on which the wallet operates. | [optional]
|
|
13
|
+
**smart_contract_wallet_type** | [**SmartContractWalletType**](SmartContractWalletType.md) | |
|
|
14
|
+
**safe_address** | **String** | The Smart Contract Wallet address. | [optional]
|
|
15
|
+
**signers** | **[String]** | The signers of the Smart Contract Wallet. | [optional]
|
|
16
|
+
**threshold** | **Number** | The minimum number of confirmations required for the Smart Contract Wallet. | [optional]
|
|
17
|
+
**cobo_safe_address** | **String** | The address of Cobo Safe. | [optional]
|
|
18
|
+
**initiator** | [**SmartContractInitiator**](SmartContractInitiator.md) | | [optional]
|
|
19
|
+
|
|
20
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.SmartContractInitiator
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**wallet_id** | **String** | The initiator's wallet ID. |
|
|
8
|
+
**address** | **String** | The initiator's wallet address. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# CoboWaas2.SmartContractWalletInfo
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**wallet_id** | **String** | The wallet ID. |
|
|
8
|
+
**wallet_type** | [**WalletType**](WalletType.md) | |
|
|
9
|
+
**wallet_subtype** | [**WalletSubtype**](WalletSubtype.md) | |
|
|
10
|
+
**name** | **String** | The wallet name. |
|
|
11
|
+
**org_id** | **String** | The ID of the owning organization. |
|
|
12
|
+
**chain_id** | **String** | The ID of the chain on which the wallet operates. | [optional]
|
|
13
|
+
**smart_contract_wallet_type** | [**SmartContractWalletType**](SmartContractWalletType.md) | |
|
|
14
|
+
**safe_address** | **String** | The Smart Contract Wallet address. | [optional]
|
|
15
|
+
**signers** | **[String]** | The signers of the Smart Contract Wallet. | [optional]
|
|
16
|
+
**threshold** | **Number** | The minimum number of confirmations required for the Smart Contract Wallet. | [optional]
|
|
17
|
+
**cobo_safe_address** | **String** | The address of Cobo Safe. | [optional]
|
|
18
|
+
**initiator** | [**SmartContractInitiator**](SmartContractInitiator.md) | | [optional]
|
|
19
|
+
|
|
20
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.SourceGroup
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**key_share_holder_group_id** | **String** | The source key share holder group ID. |
|
|
8
|
+
**tss_node_ids** | **[String]** | The TSS Node IDs participating in creating a new key share holder group when `type` is set to either `KeyGenFromKeyGroup` or `Recovery`. **Note:** In any [Threshold Signature Schemes (TSS)](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#threshold-signature-scheme-tss) such as the 2-2, 2-3, and 3-3 schemes (in the \"threshold - participants\" format), for `tss_node_ids`, you only need to fill in 1 Cobo TSS Node ID and enough non-Cobo TSS Node IDs to satisfy the number of approvers specified in `threshold`. To obtain the Cobo TSS Node ID, run [List all Cobo key share holders](/v2/api-references/wallets--mpc-wallets/list-all-cobo-key-share-holders). | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CoboWaas2.StakingPoolType
|
|
2
|
+
|
|
3
|
+
## Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* `Babylon` (value: `"Babylon"`)
|
|
7
|
+
|
|
8
|
+
* `EigenLayerNativeETH` (value: `"EigenLayerNativeETH"`)
|
|
9
|
+
|
|
10
|
+
* `EigenLayerLst` (value: `"EigenLayerLst"`)
|
|
11
|
+
|
|
12
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
13
|
+
|
|
14
|
+
|