diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES
index 479c28b..00725da 100644
--- a/.openapi-generator/FILES
+++ b/.openapi-generator/FILES
@@ -10,6 +10,7 @@ api_developers_webhooks.go
api_o_auth.go
api_stakings.go
api_transactions.go
+api_travel_rule.go
api_wallets.go
api_wallets_exchange_wallet.go
api_wallets_mpc_wallets.go
@@ -23,6 +24,7 @@ crypto/signer.go
demo/server_demo.go
docs/Activity.md
docs/ActivityAction.md
+docs/ActivityExtra.md
docs/ActivityInitiator.md
docs/ActivityStatus.md
docs/ActivityTimeline.md
@@ -34,6 +36,7 @@ docs/AddressInfo.md
docs/AddressTransferDestination.md
docs/AddressTransferDestinationAccountOutput.md
docs/AddressTransferDestinationUtxoOutputsInner.md
+docs/AddressesEventData.md
docs/AmountDetailsInner.md
docs/AmountStatus.md
docs/ApiLogDetails.md
@@ -43,6 +46,7 @@ docs/AssetInfo.md
docs/AutoFuelType.md
docs/BabylonStakeEstimatedFee.md
docs/BabylonStakeExtra.md
+docs/BabylonStakingActivityDetailExtra.md
docs/BabylonStakingExtra.md
docs/BabylonValidator.md
docs/BaseContractCallSource.md
@@ -51,6 +55,7 @@ docs/BaseStakeExtra.md
docs/BaseStakeSource.md
docs/BroadcastSignedTransactions201ResponseInner.md
docs/BroadcastSignedTransactionsRequest.md
+docs/CallbackMessage.md
docs/ChainInfo.md
docs/CheckAddressChainsValidity200ResponseInner.md
docs/CheckAddressValidity200Response.md
@@ -64,6 +69,7 @@ docs/ContractCallParams.md
docs/ContractCallSource.md
docs/ContractCallSourceType.md
docs/CoreStakeExtra.md
+docs/CoreStakingActivityDetailExtra.md
docs/CoreStakingExtra.md
docs/CreateAddressRequest.md
docs/CreateClaimActivity.md
@@ -96,6 +102,7 @@ docs/CustodialTransferSource.md
docs/CustodialWalletInfo.md
docs/DeleteKeyShareHolderGroupById201Response.md
docs/DeleteWalletById201Response.md
+docs/DestinationWalletType.md
docs/DevelopersAPI.md
docs/DevelopersWebhooksAPI.md
docs/EigenLayerLstStakeExtra.md
@@ -120,6 +127,7 @@ docs/EstimatedUtxoFee.md
docs/EstimatedUtxoFeeSlow.md
docs/EthStakeEstimatedFee.md
docs/EthStakeExtra.md
+docs/EthStakingActivityDetailExtra.md
docs/EthStakingExtra.md
docs/EthStakingExtraAllOfBeaconValidators.md
docs/EthUnstakeExtra.md
@@ -145,6 +153,7 @@ docs/GetStakingEstimationFee201Response.md
docs/GetStakingEstimationFeeRequest.md
docs/GetToken2XXResponse.md
docs/GetToken4XXResponse.md
+docs/GetTransactionLimitation200Response.md
docs/KeyShareHolder.md
docs/KeyShareHolderGroup.md
docs/KeyShareHolderGroupStatus.md
@@ -154,6 +163,7 @@ docs/KeyShareHolderType.md
docs/ListAddressBooks200Response.md
docs/ListAddresses200Response.md
docs/ListAssetBalancesForExchangeWallet200Response.md
+docs/ListCallbackMessages200Response.md
docs/ListExchanges200ResponseInner.md
docs/ListKeyShareHolderGroups200Response.md
docs/ListMpcProjects200Response.md
@@ -163,6 +173,7 @@ docs/ListStakingPools200Response.md
docs/ListStakings200Response.md
docs/ListSupportedAssetsForExchange200Response.md
docs/ListSupportedChains200Response.md
+docs/ListSupportedCountries200ResponseInner.md
docs/ListSupportedTokens200Response.md
docs/ListTokenBalancesForAddress200Response.md
docs/ListTransactions200Response.md
@@ -179,6 +190,7 @@ docs/LockUtxosRequestUtxosInner.md
docs/MPCDelegate.md
docs/MPCProject.md
docs/MPCVault.md
+docs/MPCVaultEventData.md
docs/MPCVaultType.md
docs/MPCWalletInfo.md
docs/MaxFeeAmount.md
@@ -194,6 +206,7 @@ docs/MpcSigningGroup.md
docs/MpcStakeSource.md
docs/MpcTransferSource.md
docs/OAuthAPI.md
+docs/OrgInfo.md
docs/Pagination.md
docs/PoolDetails.md
docs/PoolDetailsAllOfValidatorsInfo.md
@@ -202,6 +215,7 @@ docs/RawMessageSignDestination.md
docs/RefreshToken2XXResponse.md
docs/RefreshTokenRequest.md
docs/ReplaceType.md
+docs/RetryCallbackMessage201Response.md
docs/RetryWebhookEventById201Response.md
docs/RoleScopes.md
docs/RootPubkey.md
@@ -212,6 +226,8 @@ docs/SafeWalletDelegates.md
docs/SafeWalletDelegatesContractCall.md
docs/SafeWalletDelegatesTransfer.md
docs/Scopes.md
+docs/SelectedEntityType.md
+docs/SelfCustodyWallet.md
docs/SmartContractInitiator.md
docs/SmartContractWalletInfo.md
docs/SmartContractWalletOperationType.md
@@ -225,6 +241,10 @@ docs/Stakings.md
docs/StakingsAPI.md
docs/StakingsExtra.md
docs/SubWalletAssetBalance.md
+docs/SubmitDepositTravelRuleInfo201Response.md
+docs/SwapActivity.md
+docs/SwapSummary.md
+docs/SwapTokenPair.md
docs/TSSGroups.md
docs/TSSRequest.md
docs/TSSRequestStatus.md
@@ -235,6 +255,8 @@ docs/TokenBalance.md
docs/TokenBalanceBalance.md
docs/TokenInfo.md
docs/Transaction.md
+docs/TransactionApprovalDetail.md
+docs/TransactionApprovalResult.md
docs/TransactionApprover.md
docs/TransactionBlockInfo.md
docs/TransactionCustodialAssetWalletSource.md
@@ -273,6 +295,8 @@ docs/TransactionRequestUtxoFee.md
docs/TransactionResend.md
docs/TransactionResult.md
docs/TransactionResultType.md
+docs/TransactionRoleApprovalDetail.md
+docs/TransactionSelectedUtxo.md
docs/TransactionSignatureResult.md
docs/TransactionSigner.md
docs/TransactionSmartContractSafeWalletSource.md
@@ -288,6 +312,7 @@ docs/TransactionTransferToAddressDestinationAccountOutput.md
docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md
docs/TransactionTransferToWalletDestination.md
docs/TransactionType.md
+docs/TransactionUserApprovalDetail.md
docs/TransactionUtxo.md
docs/TransactionUtxoFee.md
docs/TransactionWebhookEventData.md
@@ -296,6 +321,19 @@ docs/TransferDestination.md
docs/TransferDestinationType.md
docs/TransferParams.md
docs/TransferSource.md
+docs/TravelRuleAPI.md
+docs/TravelRuleDepositExchangesOrVASP.md
+docs/TravelRuleDepositExchangesOrVASPEntityInfo.md
+docs/TravelRuleDepositLegalEntity.md
+docs/TravelRuleDepositNaturalEntity.md
+docs/TravelRuleDepositRequest.md
+docs/TravelRuleDepositRequestTravelRuleInfo.md
+docs/TravelRuleWithdrawExchangesOrVASP.md
+docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md
+docs/TravelRuleWithdrawLegalEntity.md
+docs/TravelRuleWithdrawNaturalEntity.md
+docs/TravelRuleWithdrawRequest.md
+docs/TravelRuleWithdrawRequestTravelRuleInfo.md
docs/TriggerTestWebhookEvent201Response.md
docs/TriggerTestWebhookEventRequest.md
docs/UTXO.md
@@ -311,7 +349,9 @@ docs/UpdateWalletParams.md
docs/UpdateWebhookEndpointByIdRequest.md
docs/UtxoFeeBasePrice.md
docs/UtxoFeeRate.md
+docs/Vasp.md
docs/WalletInfo.md
+docs/WalletInfoEventData.md
docs/WalletSubtype.md
docs/WalletType.md
docs/WalletsAPI.md
@@ -331,6 +371,7 @@ go.mod
go.sum
model_activity.go
model_activity_action.go
+model_activity_extra.go
model_activity_initiator.go
model_activity_status.go
model_activity_timeline.go
@@ -341,6 +382,7 @@ model_address_info.go
model_address_transfer_destination.go
model_address_transfer_destination_account_output.go
model_address_transfer_destination_utxo_outputs_inner.go
+model_addresses_event_data.go
model_amount_details_inner.go
model_amount_status.go
model_api_log_details.go
@@ -350,6 +392,7 @@ model_asset_info.go
model_auto_fuel_type.go
model_babylon_stake_estimated_fee.go
model_babylon_stake_extra.go
+model_babylon_staking_activity_detail_extra.go
model_babylon_staking_extra.go
model_babylon_validator.go
model_base_contract_call_source.go
@@ -358,6 +401,7 @@ model_base_stake_extra.go
model_base_stake_source.go
model_broadcast_signed_transactions_201_response_inner.go
model_broadcast_signed_transactions_request.go
+model_callback_message.go
model_chain_info.go
model_check_address_chains_validity_200_response_inner.go
model_check_address_validity_200_response.go
@@ -371,6 +415,7 @@ model_contract_call_params.go
model_contract_call_source.go
model_contract_call_source_type.go
model_core_stake_extra.go
+model_core_staking_activity_detail_extra.go
model_core_staking_extra.go
model_create_address_request.go
model_create_claim_activity.go
@@ -403,6 +448,7 @@ model_custodial_transfer_source.go
model_custodial_wallet_info.go
model_delete_key_share_holder_group_by_id_201_response.go
model_delete_wallet_by_id_201_response.go
+model_destination_wallet_type.go
model_eigen_layer_lst_stake_extra.go
model_eigen_layer_native_stake_extra.go
model_eigenlayer_validator.go
@@ -425,6 +471,7 @@ model_estimated_utxo_fee.go
model_estimated_utxo_fee_slow.go
model_eth_stake_estimated_fee.go
model_eth_stake_extra.go
+model_eth_staking_activity_detail_extra.go
model_eth_staking_extra.go
model_eth_staking_extra_all_of_beacon_validators.go
model_eth_unstake_extra.go
@@ -450,6 +497,7 @@ model_get_staking_estimation_fee_201_response.go
model_get_staking_estimation_fee_request.go
model_get_token_2_xx_response.go
model_get_token_4_xx_response.go
+model_get_transaction_limitation_200_response.go
model_key_share_holder.go
model_key_share_holder_group.go
model_key_share_holder_group_status.go
@@ -459,6 +507,7 @@ model_key_share_holder_type.go
model_list_address_books_200_response.go
model_list_addresses_200_response.go
model_list_asset_balances_for_exchange_wallet_200_response.go
+model_list_callback_messages_200_response.go
model_list_exchanges_200_response_inner.go
model_list_key_share_holder_groups_200_response.go
model_list_mpc_projects_200_response.go
@@ -468,6 +517,7 @@ model_list_staking_pools_200_response.go
model_list_stakings_200_response.go
model_list_supported_assets_for_exchange_200_response.go
model_list_supported_chains_200_response.go
+model_list_supported_countries_200_response_inner.go
model_list_supported_tokens_200_response.go
model_list_token_balances_for_address_200_response.go
model_list_transactions_200_response.go
@@ -496,8 +546,10 @@ model_mpc_signing_group.go
model_mpc_stake_source.go
model_mpc_transfer_source.go
model_mpc_vault.go
+model_mpc_vault_event_data.go
model_mpc_vault_type.go
model_mpc_wallet_info.go
+model_org_info.go
model_pagination.go
model_pool_details.go
model_pool_details_all_of_validators_info.go
@@ -506,6 +558,7 @@ model_raw_message_sign_destination.go
model_refresh_token_2_xx_response.go
model_refresh_token_request.go
model_replace_type.go
+model_retry_callback_message_201_response.go
model_retry_webhook_event_by_id_201_response.go
model_role_scopes.go
model_root_pubkey.go
@@ -516,6 +569,8 @@ model_safe_wallet_delegates.go
model_safe_wallet_delegates_contract_call.go
model_safe_wallet_delegates_transfer.go
model_scopes.go
+model_selected_entity_type.go
+model_self_custody_wallet.go
model_smart_contract_initiator.go
model_smart_contract_wallet_info.go
model_smart_contract_wallet_operation_type.go
@@ -528,11 +583,17 @@ model_staking_source.go
model_stakings.go
model_stakings_extra.go
model_sub_wallet_asset_balance.go
+model_submit_deposit_travel_rule_info_201_response.go
+model_swap_activity.go
+model_swap_summary.go
+model_swap_token_pair.go
model_token_asset_model_type.go
model_token_balance.go
model_token_balance_balance.go
model_token_info.go
model_transaction.go
+model_transaction_approval_detail.go
+model_transaction_approval_result.go
model_transaction_approver.go
model_transaction_block_info.go
model_transaction_custodial_asset_wallet_source.go
@@ -571,6 +632,8 @@ model_transaction_request_utxo_fee.go
model_transaction_resend.go
model_transaction_result.go
model_transaction_result_type.go
+model_transaction_role_approval_detail.go
+model_transaction_selected_utxo.go
model_transaction_signature_result.go
model_transaction_signer.go
model_transaction_smart_contract_safe_wallet_source.go
@@ -586,6 +649,7 @@ model_transaction_transfer_to_address_destination_account_output.go
model_transaction_transfer_to_address_destination_utxo_outputs_inner.go
model_transaction_transfer_to_wallet_destination.go
model_transaction_type.go
+model_transaction_user_approval_detail.go
model_transaction_utxo.go
model_transaction_utxo_fee.go
model_transaction_webhook_event_data.go
@@ -593,6 +657,18 @@ model_transfer_destination.go
model_transfer_destination_type.go
model_transfer_params.go
model_transfer_source.go
+model_travel_rule_deposit_exchanges_or_vasp.go
+model_travel_rule_deposit_exchanges_or_vasp_entity_info.go
+model_travel_rule_deposit_legal_entity.go
+model_travel_rule_deposit_natural_entity.go
+model_travel_rule_deposit_request.go
+model_travel_rule_deposit_request_travel_rule_info.go
+model_travel_rule_withdraw_exchanges_or_vasp.go
+model_travel_rule_withdraw_exchanges_or_vasp_entity_info.go
+model_travel_rule_withdraw_legal_entity.go
+model_travel_rule_withdraw_natural_entity.go
+model_travel_rule_withdraw_request.go
+model_travel_rule_withdraw_request_travel_rule_info.go
model_trigger_test_webhook_event_201_response.go
model_trigger_test_webhook_event_request.go
model_tss_groups.go
@@ -613,7 +689,9 @@ model_update_webhook_endpoint_by_id_request.go
model_utxo.go
model_utxo_fee_base_price.go
model_utxo_fee_rate.go
+model_vasp.go
model_wallet_info.go
+model_wallet_info_event_data.go
model_wallet_subtype.go
model_wallet_type.go
model_webhook_endpoint.go
@@ -631,6 +709,7 @@ test/api_developers_webhooks_test.go
test/api_o_auth_test.go
test/api_stakings_test.go
test/api_transactions_test.go
+test/api_travel_rule_test.go
test/api_wallets_exchange_wallet_test.go
test/api_wallets_mpc_wallets_test.go
test/api_wallets_smart_contract_wallets_test.go
diff --git a/README.md b/README.md
index 05e1e3b..f57840c 100644
--- a/README.md
+++ b/README.md
@@ -9,14 +9,14 @@ The Cobo Wallet-as-a-Service (WaaS) 2.0 API is the latest version of Cobo’s Wa
- Programmatic control of smart contract wallets such as Safe{Wallet} with fine-grained access controls
- Seamlessly transfer funds across multiple exchanges, including Binance, OKX, Bybit, Deribit, and more
-For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](/v2/guides/overview/introduction).
+For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](https://www.cobo.com/developers/v2/guides/overview/introduction).
## Overview
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
- API version: v2
-- Package version: 1.7.0
+- Package version: 1.8.0
- Build package: org.openapitools.codegen.languages.GoClientCodegen
For more information, please visit [https://www.cobo.com/waas](https://www.cobo.com/waas)
@@ -81,6 +81,8 @@ Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AddressBooksAPI* | [**ListAddressBooks**](docs/AddressBooksAPI.md#listaddressbooks) | **Get** /address_books | List address book entries
*DevelopersAPI* | [**GetApiKeyInfo**](docs/DevelopersAPI.md#getapikeyinfo) | **Get** /developers/api_key_info | Get API key information
+*DevelopersAPI* | [**ListCallbackMessages**](docs/DevelopersAPI.md#listcallbackmessages) | **Get** /developers/callback_messages | List all callback messages
+*DevelopersAPI* | [**RetryCallbackMessage**](docs/DevelopersAPI.md#retrycallbackmessage) | **Post** /developers/callback_messages/{message_id}/retry | Retry callback message
*DevelopersWebhooksAPI* | [**CreateWebhookEndpoint**](docs/DevelopersWebhooksAPI.md#createwebhookendpoint) | **Post** /webhooks/endpoints | Register webhook endpoint
*DevelopersWebhooksAPI* | [**GetWebhookEndpointById**](docs/DevelopersWebhooksAPI.md#getwebhookendpointbyid) | **Get** /webhooks/endpoints/{endpoint_id} | Get webhook endpoint information
*DevelopersWebhooksAPI* | [**GetWebhookEventById**](docs/DevelopersWebhooksAPI.md#getwebhookeventbyid) | **Get** /webhooks/endpoints/{endpoint_id}/events/{event_id} | Retrieve event information
@@ -100,7 +102,7 @@ Class | Method | HTTP request | Description
*StakingsAPI* | [**GetStakingActivityById**](docs/StakingsAPI.md#getstakingactivitybyid) | **Get** /stakings/activities/{activity_id} | Get staking activity details
*StakingsAPI* | [**GetStakingById**](docs/StakingsAPI.md#getstakingbyid) | **Get** /stakings/{staking_id} | Get staking position details
*StakingsAPI* | [**GetStakingEstimationFee**](docs/StakingsAPI.md#getstakingestimationfee) | **Post** /stakings/estimate_fee | Estimate staking fees
-*StakingsAPI* | [**GetStakingEstimationFeeV2**](docs/StakingsAPI.md#getstakingestimationfeev2) | **Post** /stakings/estimate_fee_v2 | Estimate staking fees
+*StakingsAPI* | [**GetStakingEstimationFeeV2**](docs/StakingsAPI.md#getstakingestimationfeev2) | **Post** /stakings/estimate_fee_v2 | Estimate staking fees v2
*StakingsAPI* | [**GetStakingPoolById**](docs/StakingsAPI.md#getstakingpoolbyid) | **Get** /stakings/pools/{pool_id} | Get staking pool details
*StakingsAPI* | [**ListStakingActivities**](docs/StakingsAPI.md#liststakingactivities) | **Get** /stakings/activities | List staking activities
*StakingsAPI* | [**ListStakingPools**](docs/StakingsAPI.md#liststakingpools) | **Get** /stakings/pools | List staking pools
@@ -113,10 +115,15 @@ Class | Method | HTTP request | Description
*TransactionsAPI* | [**CreateTransferTransaction**](docs/TransactionsAPI.md#createtransfertransaction) | **Post** /transactions/transfer | Transfer token
*TransactionsAPI* | [**DropTransactionById**](docs/TransactionsAPI.md#droptransactionbyid) | **Post** /transactions/{transaction_id}/drop | Drop transaction
*TransactionsAPI* | [**EstimateFee**](docs/TransactionsAPI.md#estimatefee) | **Post** /transactions/estimate_fee | Estimate transaction fee
+*TransactionsAPI* | [**GetTransactionApprovalDetail**](docs/TransactionsAPI.md#gettransactionapprovaldetail) | **Get** /transactions/{transaction_id}/approval_detail | Get transaction approval information
*TransactionsAPI* | [**GetTransactionById**](docs/TransactionsAPI.md#gettransactionbyid) | **Get** /transactions/{transaction_id} | Get transaction information
*TransactionsAPI* | [**ListTransactions**](docs/TransactionsAPI.md#listtransactions) | **Get** /transactions | List all transactions
*TransactionsAPI* | [**ResendTransactionById**](docs/TransactionsAPI.md#resendtransactionbyid) | **Post** /transactions/{transaction_id}/resend | Resend transaction
*TransactionsAPI* | [**SpeedupTransactionById**](docs/TransactionsAPI.md#speeduptransactionbyid) | **Post** /transactions/{transaction_id}/speedup | Speed up transaction
+*TravelRuleAPI* | [**GetTransactionLimitation**](docs/TravelRuleAPI.md#gettransactionlimitation) | **Get** /travel_rule/transaction/limitation | Retrieve transaction limitations
+*TravelRuleAPI* | [**ListSupportedCountries**](docs/TravelRuleAPI.md#listsupportedcountries) | **Get** /travel_rule/transaction/countries | List supported countries
+*TravelRuleAPI* | [**SubmitDepositTravelRuleInfo**](docs/TravelRuleAPI.md#submitdeposittravelruleinfo) | **Post** /travel_rule/transaction/deposit/travel_rule_info | Submit Deposit Transaction Travel Rule information
+*TravelRuleAPI* | [**SubmitWithdrawTravelRuleInfo**](docs/TravelRuleAPI.md#submitwithdrawtravelruleinfo) | **Post** /travel_rule/transaction/withdraw/travel_rule_info | Submit Withdraw Transaction Travel Rule information
*WalletsAPI* | [**CheckAddressChainsValidity**](docs/WalletsAPI.md#checkaddresschainsvalidity) | **Get** /wallets/check_address_chains_validity | Check address validity across chains
*WalletsAPI* | [**CheckAddressValidity**](docs/WalletsAPI.md#checkaddressvalidity) | **Get** /wallets/check_address_validity | Check address validity
*WalletsAPI* | [**CheckAddressesValidity**](docs/WalletsAPI.md#checkaddressesvalidity) | **Get** /wallets/check_addresses_validity | Check addresses validity
@@ -168,6 +175,7 @@ Class | Method | HTTP request | Description
- [Activity](docs/Activity.md)
- [ActivityAction](docs/ActivityAction.md)
+ - [ActivityExtra](docs/ActivityExtra.md)
- [ActivityInitiator](docs/ActivityInitiator.md)
- [ActivityStatus](docs/ActivityStatus.md)
- [ActivityTimeline](docs/ActivityTimeline.md)
@@ -178,6 +186,7 @@ Class | Method | HTTP request | Description
- [AddressTransferDestination](docs/AddressTransferDestination.md)
- [AddressTransferDestinationAccountOutput](docs/AddressTransferDestinationAccountOutput.md)
- [AddressTransferDestinationUtxoOutputsInner](docs/AddressTransferDestinationUtxoOutputsInner.md)
+ - [AddressesEventData](docs/AddressesEventData.md)
- [AmountDetailsInner](docs/AmountDetailsInner.md)
- [AmountStatus](docs/AmountStatus.md)
- [ApiLogDetails](docs/ApiLogDetails.md)
@@ -187,6 +196,7 @@ Class | Method | HTTP request | Description
- [AutoFuelType](docs/AutoFuelType.md)
- [BabylonStakeEstimatedFee](docs/BabylonStakeEstimatedFee.md)
- [BabylonStakeExtra](docs/BabylonStakeExtra.md)
+ - [BabylonStakingActivityDetailExtra](docs/BabylonStakingActivityDetailExtra.md)
- [BabylonStakingExtra](docs/BabylonStakingExtra.md)
- [BabylonValidator](docs/BabylonValidator.md)
- [BaseContractCallSource](docs/BaseContractCallSource.md)
@@ -195,6 +205,7 @@ Class | Method | HTTP request | Description
- [BaseStakeSource](docs/BaseStakeSource.md)
- [BroadcastSignedTransactions201ResponseInner](docs/BroadcastSignedTransactions201ResponseInner.md)
- [BroadcastSignedTransactionsRequest](docs/BroadcastSignedTransactionsRequest.md)
+ - [CallbackMessage](docs/CallbackMessage.md)
- [ChainInfo](docs/ChainInfo.md)
- [CheckAddressChainsValidity200ResponseInner](docs/CheckAddressChainsValidity200ResponseInner.md)
- [CheckAddressValidity200Response](docs/CheckAddressValidity200Response.md)
@@ -208,6 +219,7 @@ Class | Method | HTTP request | Description
- [ContractCallSource](docs/ContractCallSource.md)
- [ContractCallSourceType](docs/ContractCallSourceType.md)
- [CoreStakeExtra](docs/CoreStakeExtra.md)
+ - [CoreStakingActivityDetailExtra](docs/CoreStakingActivityDetailExtra.md)
- [CoreStakingExtra](docs/CoreStakingExtra.md)
- [CreateAddressRequest](docs/CreateAddressRequest.md)
- [CreateClaimActivity](docs/CreateClaimActivity.md)
@@ -240,6 +252,7 @@ Class | Method | HTTP request | Description
- [CustodialWalletInfo](docs/CustodialWalletInfo.md)
- [DeleteKeyShareHolderGroupById201Response](docs/DeleteKeyShareHolderGroupById201Response.md)
- [DeleteWalletById201Response](docs/DeleteWalletById201Response.md)
+ - [DestinationWalletType](docs/DestinationWalletType.md)
- [EigenLayerLstStakeExtra](docs/EigenLayerLstStakeExtra.md)
- [EigenLayerNativeStakeExtra](docs/EigenLayerNativeStakeExtra.md)
- [EigenlayerValidator](docs/EigenlayerValidator.md)
@@ -262,6 +275,7 @@ Class | Method | HTTP request | Description
- [EstimatedUtxoFeeSlow](docs/EstimatedUtxoFeeSlow.md)
- [EthStakeEstimatedFee](docs/EthStakeEstimatedFee.md)
- [EthStakeExtra](docs/EthStakeExtra.md)
+ - [EthStakingActivityDetailExtra](docs/EthStakingActivityDetailExtra.md)
- [EthStakingExtra](docs/EthStakingExtra.md)
- [EthStakingExtraAllOfBeaconValidators](docs/EthStakingExtraAllOfBeaconValidators.md)
- [EthUnstakeExtra](docs/EthUnstakeExtra.md)
@@ -287,6 +301,7 @@ Class | Method | HTTP request | Description
- [GetStakingEstimationFeeRequest](docs/GetStakingEstimationFeeRequest.md)
- [GetToken2XXResponse](docs/GetToken2XXResponse.md)
- [GetToken4XXResponse](docs/GetToken4XXResponse.md)
+ - [GetTransactionLimitation200Response](docs/GetTransactionLimitation200Response.md)
- [KeyShareHolder](docs/KeyShareHolder.md)
- [KeyShareHolderGroup](docs/KeyShareHolderGroup.md)
- [KeyShareHolderGroupStatus](docs/KeyShareHolderGroupStatus.md)
@@ -296,6 +311,7 @@ Class | Method | HTTP request | Description
- [ListAddressBooks200Response](docs/ListAddressBooks200Response.md)
- [ListAddresses200Response](docs/ListAddresses200Response.md)
- [ListAssetBalancesForExchangeWallet200Response](docs/ListAssetBalancesForExchangeWallet200Response.md)
+ - [ListCallbackMessages200Response](docs/ListCallbackMessages200Response.md)
- [ListExchanges200ResponseInner](docs/ListExchanges200ResponseInner.md)
- [ListKeyShareHolderGroups200Response](docs/ListKeyShareHolderGroups200Response.md)
- [ListMpcProjects200Response](docs/ListMpcProjects200Response.md)
@@ -305,6 +321,7 @@ Class | Method | HTTP request | Description
- [ListStakings200Response](docs/ListStakings200Response.md)
- [ListSupportedAssetsForExchange200Response](docs/ListSupportedAssetsForExchange200Response.md)
- [ListSupportedChains200Response](docs/ListSupportedChains200Response.md)
+ - [ListSupportedCountries200ResponseInner](docs/ListSupportedCountries200ResponseInner.md)
- [ListSupportedTokens200Response](docs/ListSupportedTokens200Response.md)
- [ListTokenBalancesForAddress200Response](docs/ListTokenBalancesForAddress200Response.md)
- [ListTransactions200Response](docs/ListTransactions200Response.md)
@@ -321,6 +338,7 @@ Class | Method | HTTP request | Description
- [MPCDelegate](docs/MPCDelegate.md)
- [MPCProject](docs/MPCProject.md)
- [MPCVault](docs/MPCVault.md)
+ - [MPCVaultEventData](docs/MPCVaultEventData.md)
- [MPCVaultType](docs/MPCVaultType.md)
- [MPCWalletInfo](docs/MPCWalletInfo.md)
- [MaxFeeAmount](docs/MaxFeeAmount.md)
@@ -335,6 +353,7 @@ Class | Method | HTTP request | Description
- [MpcSigningGroup](docs/MpcSigningGroup.md)
- [MpcStakeSource](docs/MpcStakeSource.md)
- [MpcTransferSource](docs/MpcTransferSource.md)
+ - [OrgInfo](docs/OrgInfo.md)
- [Pagination](docs/Pagination.md)
- [PoolDetails](docs/PoolDetails.md)
- [PoolDetailsAllOfValidatorsInfo](docs/PoolDetailsAllOfValidatorsInfo.md)
@@ -343,6 +362,7 @@ Class | Method | HTTP request | Description
- [RefreshToken2XXResponse](docs/RefreshToken2XXResponse.md)
- [RefreshTokenRequest](docs/RefreshTokenRequest.md)
- [ReplaceType](docs/ReplaceType.md)
+ - [RetryCallbackMessage201Response](docs/RetryCallbackMessage201Response.md)
- [RetryWebhookEventById201Response](docs/RetryWebhookEventById201Response.md)
- [RoleScopes](docs/RoleScopes.md)
- [RootPubkey](docs/RootPubkey.md)
@@ -353,6 +373,8 @@ Class | Method | HTTP request | Description
- [SafeWalletDelegatesContractCall](docs/SafeWalletDelegatesContractCall.md)
- [SafeWalletDelegatesTransfer](docs/SafeWalletDelegatesTransfer.md)
- [Scopes](docs/Scopes.md)
+ - [SelectedEntityType](docs/SelectedEntityType.md)
+ - [SelfCustodyWallet](docs/SelfCustodyWallet.md)
- [SmartContractInitiator](docs/SmartContractInitiator.md)
- [SmartContractWalletInfo](docs/SmartContractWalletInfo.md)
- [SmartContractWalletOperationType](docs/SmartContractWalletOperationType.md)
@@ -365,6 +387,10 @@ Class | Method | HTTP request | Description
- [Stakings](docs/Stakings.md)
- [StakingsExtra](docs/StakingsExtra.md)
- [SubWalletAssetBalance](docs/SubWalletAssetBalance.md)
+ - [SubmitDepositTravelRuleInfo201Response](docs/SubmitDepositTravelRuleInfo201Response.md)
+ - [SwapActivity](docs/SwapActivity.md)
+ - [SwapSummary](docs/SwapSummary.md)
+ - [SwapTokenPair](docs/SwapTokenPair.md)
- [TSSGroups](docs/TSSGroups.md)
- [TSSRequest](docs/TSSRequest.md)
- [TSSRequestStatus](docs/TSSRequestStatus.md)
@@ -375,6 +401,8 @@ Class | Method | HTTP request | Description
- [TokenBalanceBalance](docs/TokenBalanceBalance.md)
- [TokenInfo](docs/TokenInfo.md)
- [Transaction](docs/Transaction.md)
+ - [TransactionApprovalDetail](docs/TransactionApprovalDetail.md)
+ - [TransactionApprovalResult](docs/TransactionApprovalResult.md)
- [TransactionApprover](docs/TransactionApprover.md)
- [TransactionBlockInfo](docs/TransactionBlockInfo.md)
- [TransactionCustodialAssetWalletSource](docs/TransactionCustodialAssetWalletSource.md)
@@ -413,6 +441,8 @@ Class | Method | HTTP request | Description
- [TransactionResend](docs/TransactionResend.md)
- [TransactionResult](docs/TransactionResult.md)
- [TransactionResultType](docs/TransactionResultType.md)
+ - [TransactionRoleApprovalDetail](docs/TransactionRoleApprovalDetail.md)
+ - [TransactionSelectedUtxo](docs/TransactionSelectedUtxo.md)
- [TransactionSignatureResult](docs/TransactionSignatureResult.md)
- [TransactionSigner](docs/TransactionSigner.md)
- [TransactionSmartContractSafeWalletSource](docs/TransactionSmartContractSafeWalletSource.md)
@@ -428,6 +458,7 @@ Class | Method | HTTP request | Description
- [TransactionTransferToAddressDestinationUtxoOutputsInner](docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md)
- [TransactionTransferToWalletDestination](docs/TransactionTransferToWalletDestination.md)
- [TransactionType](docs/TransactionType.md)
+ - [TransactionUserApprovalDetail](docs/TransactionUserApprovalDetail.md)
- [TransactionUtxo](docs/TransactionUtxo.md)
- [TransactionUtxoFee](docs/TransactionUtxoFee.md)
- [TransactionWebhookEventData](docs/TransactionWebhookEventData.md)
@@ -435,6 +466,18 @@ Class | Method | HTTP request | Description
- [TransferDestinationType](docs/TransferDestinationType.md)
- [TransferParams](docs/TransferParams.md)
- [TransferSource](docs/TransferSource.md)
+ - [TravelRuleDepositExchangesOrVASP](docs/TravelRuleDepositExchangesOrVASP.md)
+ - [TravelRuleDepositExchangesOrVASPEntityInfo](docs/TravelRuleDepositExchangesOrVASPEntityInfo.md)
+ - [TravelRuleDepositLegalEntity](docs/TravelRuleDepositLegalEntity.md)
+ - [TravelRuleDepositNaturalEntity](docs/TravelRuleDepositNaturalEntity.md)
+ - [TravelRuleDepositRequest](docs/TravelRuleDepositRequest.md)
+ - [TravelRuleDepositRequestTravelRuleInfo](docs/TravelRuleDepositRequestTravelRuleInfo.md)
+ - [TravelRuleWithdrawExchangesOrVASP](docs/TravelRuleWithdrawExchangesOrVASP.md)
+ - [TravelRuleWithdrawExchangesOrVASPEntityInfo](docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md)
+ - [TravelRuleWithdrawLegalEntity](docs/TravelRuleWithdrawLegalEntity.md)
+ - [TravelRuleWithdrawNaturalEntity](docs/TravelRuleWithdrawNaturalEntity.md)
+ - [TravelRuleWithdrawRequest](docs/TravelRuleWithdrawRequest.md)
+ - [TravelRuleWithdrawRequestTravelRuleInfo](docs/TravelRuleWithdrawRequestTravelRuleInfo.md)
- [TriggerTestWebhookEvent201Response](docs/TriggerTestWebhookEvent201Response.md)
- [TriggerTestWebhookEventRequest](docs/TriggerTestWebhookEventRequest.md)
- [UTXO](docs/UTXO.md)
@@ -450,7 +493,9 @@ Class | Method | HTTP request | Description
- [UpdateWebhookEndpointByIdRequest](docs/UpdateWebhookEndpointByIdRequest.md)
- [UtxoFeeBasePrice](docs/UtxoFeeBasePrice.md)
- [UtxoFeeRate](docs/UtxoFeeRate.md)
+ - [Vasp](docs/Vasp.md)
- [WalletInfo](docs/WalletInfo.md)
+ - [WalletInfoEventData](docs/WalletInfoEventData.md)
- [WalletSubtype](docs/WalletSubtype.md)
- [WalletType](docs/WalletType.md)
- [WebhookEndpoint](docs/WebhookEndpoint.md)
diff --git a/api/openapi.yaml b/api/openapi.yaml
index 46a4d1f..b57508e 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -14,7 +14,7 @@ info:
- Programmatic control of smart contract wallets such as Safe{Wallet} with fine-grained access controls
- Seamlessly transfer funds across multiple exchanges, including Binance, OKX, Bybit, Deribit, and more
- For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](/v2/guides/overview/introduction).
+ For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](https://www.cobo.com/developers/v2/guides/overview/introduction).
license:
name: Apache 2.0
url: https://www.apache.org/licenses/LICENSE-2.0.html
@@ -49,6 +49,8 @@ tags:
name: Developers
- description: Operations related to address books.
name: AddressBooks
+- description: Operations related to travel rule.
+ name: TravelRule
paths:
/wallets/chains:
get:
@@ -106,7 +108,7 @@ paths:
style: form
- description: "A list of chain IDs, separated by comma. The chain ID is the\
\ unique identifier of a blockchain. You can retrieve the IDs of all the\
- \ chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains)."
+ \ chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: "BTC,ETH"
explode: true
in: query
@@ -128,14 +130,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -144,12 +146,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -191,7 +194,7 @@ paths:
parameters:
- description: "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)."
+ \ enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: ETH
explode: false
in: path
@@ -281,7 +284,7 @@ paths:
style: form
- description: "A list of chain IDs, separated by comma. The chain ID is the\
\ unique identifier of a blockchain. You can retrieve the IDs of all the\
- \ chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains)."
+ \ chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: "BTC,ETH"
explode: true
in: query
@@ -293,7 +296,7 @@ paths:
style: form
- description: "A list of token IDs, separated by comma. The token ID is the\
\ unique identifier of a token. You can retrieve the IDs of all the tokens\
- \ you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens)."
+ \ you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: "ETH_USDT,ETH_USDC"
explode: true
in: query
@@ -315,14 +318,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -331,12 +334,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -378,7 +382,7 @@ paths:
parameters:
- description: "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)."
+ \ tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: ETH_USDT
explode: false
in: path
@@ -472,14 +476,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -488,12 +492,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -578,7 +583,7 @@ paths:
style: form
- description: "A list of chain IDs, separated by comma. The chain ID is the\
\ unique identifier of a blockchain. You can retrieve the IDs of all the\
- \ chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains)."
+ \ chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: "BTC,ETH"
explode: true
in: query
@@ -600,14 +605,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -616,12 +621,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -702,7 +708,7 @@ paths:
$ref: '#/components/schemas/WalletSubtype'
style: form
- description: |
- The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
+ The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: true
in: query
@@ -712,7 +718,7 @@ paths:
format: uuid
type: string
style: form
- - description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults)."
+ - description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: true
in: query
@@ -734,14 +740,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -750,12 +756,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -978,7 +985,7 @@ paths:
style: simple
- description: "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)."
+ \ tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: ETH_USDT
explode: true
in: query
@@ -1009,14 +1016,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -1025,12 +1032,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -1182,7 +1190,7 @@ paths:
style: simple
- description: "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)."
+ \ tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: ETH_USDT
explode: true
in: query
@@ -1262,7 +1270,7 @@ paths:
style: simple
- description: "A list of chain IDs, separated by comma. The chain ID is the\
\ unique identifier of a blockchain. You can retrieve the IDs of all the\
- \ chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains)."
+ \ chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: "BTC,ETH"
explode: true
in: query
@@ -1295,14 +1303,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -1311,12 +1319,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -1429,7 +1438,7 @@ paths:
style: simple
- description: "A list of token IDs, separated by comma. The token ID is the\
\ unique identifier of a token. You can retrieve the IDs of all the tokens\
- \ you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens)."
+ \ you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: "ETH_USDT,ETH_USDC"
explode: true
in: query
@@ -1451,14 +1460,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -1467,12 +1476,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -1526,7 +1536,7 @@ paths:
style: simple
- description: "A list of token IDs, separated by comma. The token ID is the\
\ unique identifier of a token. You can retrieve the IDs of all the tokens\
- \ you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens)."
+ \ you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: "ETH_USDT,ETH_USDC"
explode: true
in: query
@@ -1548,14 +1558,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -1564,12 +1574,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -1611,7 +1622,7 @@ paths:
parameters:
- description: "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)."
+ \ enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: ETH
explode: true
in: query
@@ -1663,7 +1674,7 @@ paths:
parameters:
- description: "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)."
+ \ enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: ETH
explode: true
in: query
@@ -1727,7 +1738,7 @@ paths:
style: form
- description: "A list of chain IDs, separated by comma. The chain ID is the\
\ unique identifier of a blockchain. You can retrieve the IDs of all the\
- \ chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains)."
+ \ chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: "BTC,ETH"
explode: true
in: query
@@ -1817,14 +1828,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -1833,12 +1844,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -1915,7 +1927,7 @@ paths:
operationId: get_mpc_project_by_id
parameters:
- description: "The project ID, which you can retrieve by calling [List all\
- \ projects](/v2/api-references/wallets--mpc-wallets/list-all-projects)."
+ \ projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -1958,7 +1970,7 @@ paths:
operationId: update_mpc_project_by_id
parameters:
- description: "The project ID, which you can retrieve by calling [List all\
- \ projects](/v2/api-references/wallets--mpc-wallets/list-all-projects)."
+ \ projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -2006,7 +2018,7 @@ paths:
1. `project_id` is required when `vault_type` is set to `User-Controlled`.
2. `project_id` must be left blank when `vault_type` is set to `Org-Controlled`.
- To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
+ To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
operationId: list_mpc_vaults
parameters:
- description: |
@@ -2022,7 +2034,7 @@ paths:
$ref: '#/components/schemas/MPCVaultType'
style: form
- description: |
- The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
+ The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: true
in: query
@@ -2044,14 +2056,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -2060,12 +2072,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -2103,7 +2116,7 @@ paths:
description: |
This operation creates a vault.
- To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
+ To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
operationId: create_mpc_vault
requestBody:
$ref: '#/components/requestBodies/createMpcVaultBody'
@@ -2140,10 +2153,10 @@ paths:
description: |
This operation retrieves detailed information about a vault.
- To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
+ To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
operationId: get_mpc_vault_by_id
parameters:
- - description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
+ - description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -2182,10 +2195,10 @@ paths:
description: |
This operation updates a vault's name.
- To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
+ To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
operationId: update_mpc_vault_by_id
parameters:
- - description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
+ - description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -2231,7 +2244,7 @@ paths:
This operation retrieves all key share holder groups under a specified vault. You can filter the result by group type.
operationId: list_key_share_holder_groups
parameters:
- - description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
+ - description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -2269,14 +2282,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -2285,12 +2298,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -2326,10 +2340,10 @@ paths:
- Wallets - MPC Wallets
post:
description: |
- This operation creates a key share holder group for a specified vault. This operation will not return the `tss_key_share_groups` property until key shares have been created using the [Create TSS request](/v2/api-references/wallets--mpc-wallets/create-tss-request) operation. Creating a wallet with the [Create wallet](/v2/api-references/wallets/create-wallet) operation is only possible after you've completed the previous actions.
+ This operation creates a key share holder group for a specified vault. This operation will not return the `tss_key_share_groups` property until key shares have been created using the [Create TSS request](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/create-tss-request) operation. Creating a wallet with the [Create wallet](https://www.cobo.com/developers/v2/api-references/wallets/create-wallet) operation is only possible after you've completed the previous actions.
operationId: create_key_share_holder_group
parameters:
- - description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
+ - description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -2375,7 +2389,7 @@ paths:
This operation retrieves detailed information about a specified key share holder group.
operationId: get_key_share_holder_group_by_id
parameters:
- - description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
+ - description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -2424,7 +2438,7 @@ paths:
This operation updates a specified active [Signing Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups). For example, you can use this operation to upgrade a Signing Group to the [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups).
operationId: update_key_share_holder_group_by_id
parameters:
- - description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
+ - description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -2478,7 +2492,7 @@ paths:
description: This operation deletes a specified key share holder group.
operationId: delete_key_share_holder_group_by_id
parameters:
- - description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
+ - description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -2531,7 +2545,7 @@ paths:
This operation retrieves a list of TSS requests and their details.
operationId: list_tss_requests
parameters:
- - description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
+ - description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -2542,7 +2556,7 @@ paths:
type: string
style: simple
- description: "The key share holder group ID of the TSS request, which you\
- \ can retrieve by calling [List all key share holder groups](/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups)."
+ \ can retrieve by calling [List all key share holder groups](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups)."
example: a3a45e99-5a12-444f-867a-ffe0ebb1bb30
explode: true
in: query
@@ -2563,14 +2577,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -2579,12 +2593,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -2623,7 +2638,7 @@ paths:
This operation creates a TSS request under a specified vault. You can use this operation to perform actions such as key generation and recovery.
operationId: create_tss_request
parameters:
- - description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
+ - description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -2669,7 +2684,7 @@ paths:
This operation retrieves detailed information about a TSS request.
operationId: get_tss_request_by_id
parameters:
- - description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
+ - description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -2680,7 +2695,7 @@ paths:
type: string
style: simple
- description: "The TSS request ID, which you can retrieve by calling [List\
- \ TSS requests](/v2/api-references/wallets--mpc-wallets/list-tss-requests)."
+ \ TSS requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests)."
example: "20240711114129000132315000003970"
explode: false
in: path
@@ -2723,7 +2738,7 @@ paths:
This operation cancels a TSS request.
operationId: cancel_tss_request_by_id
parameters:
- - description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
+ - description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -2734,7 +2749,7 @@ paths:
type: string
style: simple
- description: "The TSS request ID, which you can retrieve by calling [List\
- \ TSS requests](/v2/api-references/wallets--mpc-wallets/list-tss-requests)."
+ \ TSS requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests)."
example: "20240711114129000132315000003970"
explode: false
in: path
@@ -2838,14 +2853,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -2854,12 +2869,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -2921,7 +2937,7 @@ paths:
- description: "(This concept applies to Exchange Wallets only) The asset ID.\
\ An asset ID is the unique identifier of the asset held within your linked\
\ exchange account. You can get the ID of the assets supported by an exchanges\
- \ by calling [List supported assets](/v2/api-references/wallets--exchange-wallet/list-supported-assets)."
+ \ by calling [List supported assets](https://www.cobo.com/developers/v2/api-references/wallets--exchange-wallet/list-supported-assets)."
example: USDT
explode: false
in: path
@@ -2975,7 +2991,7 @@ paths:
style: simple
- description: "A list of trading account types, separated by comma. You can\
\ get the the supported trading account types of an exchange by calling\
- \ [List supported exchanges](/v2/api-references/wallets--exchange-wallet/list-supported-exchanges)."
+ \ [List supported exchanges](https://www.cobo.com/developers/v2/api-references/wallets--exchange-wallet/list-supported-exchanges)."
example: "Trading,Funding"
explode: true
in: query
@@ -3008,14 +3024,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -3024,12 +3040,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -3117,7 +3134,7 @@ paths:
parameters:
- description: "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)."
+ \ tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: ETH_USDT
explode: true
in: query
@@ -3179,7 +3196,7 @@ paths:
You need to specify the transaction information, including the request ID, request type, source address, destination address, token ID (only applicable to token transfers), and chain ID (only applicable to contract calls).
- The response can contain different properties based on the transaction fee model used by the chain. For the legacy, EIP-1559, and UTXO fee models, Cobo also supports three different transaction speed levels: slow, recommended, and fast. For more information about estimating transaction fees, refer to [Estimate transaction fee](/v2/guides/transactions/estimate-fees).
+ The response can contain different properties based on the transaction fee model used by the chain. For the legacy, EIP-1559, and UTXO fee models, Cobo also supports three different transaction speed levels: slow, recommended, and fast. For more information about estimating transaction fees, refer to [Estimate transaction fee](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees).
operationId: estimate_fee
requestBody:
$ref: '#/components/requestBodies/estimateFeeBody'
@@ -3301,7 +3318,7 @@ paths:
\ provide details such as the source address, destination address, and the\
\ message to be signed. A transaction request for tracking is returned upon\
\ successful operation.\n\nYou can get the signature result by calling [Get\
- \ transaction information](/v2/api-references/transactions/get-transaction-information).\
+ \ transaction information](https://www.cobo.com/developers/v2/api-references/transactions/get-transaction-information).\
\ \n\nThis operation only applies to transactions from MPC Wallets.\n"
operationId: create_message_sign_transaction
requestBody:
@@ -3426,7 +3443,7 @@ paths:
style: form
- description: "A list of chain IDs, separated by comma. The chain ID is the\
\ unique identifier of a blockchain. You can retrieve the IDs of all the\
- \ chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains)."
+ \ chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: "BTC,ETH"
explode: true
in: query
@@ -3438,7 +3455,7 @@ paths:
style: form
- description: "A list of token IDs, separated by comma. The token ID is the\
\ unique identifier of a token. You can retrieve the IDs of all the tokens\
- \ you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens)."
+ \ you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: "ETH_USDT,ETH_USDC"
explode: true
in: query
@@ -3460,7 +3477,7 @@ paths:
description: "A list of asset IDs, separated by comma."
type: string
style: form
- - description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults)."
+ - description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: true
in: query
@@ -3471,7 +3488,7 @@ paths:
type: string
style: form
- description: |
- The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
+ The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: true
in: query
@@ -3517,14 +3534,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -3533,12 +3550,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -3616,9 +3634,10 @@ paths:
/transactions/{transaction_id}/resend:
post:
description: |
- This operation resends a specified transaction. Resending a transaction initiates a new attempt to process the transaction that failed previously. A transaction can be resent if its status is `failed`.
+ This operation resends a specified transaction. Resending a transaction means retrying a previously failed transaction. For more details about resending a transaction, see [Resend a transaction](/v2/guides/transactions/manage-transactions#resend-a-transaction).
+
+ A transaction can be resent if its status is `failed`.
- A transaction request for tracking is returned upon successful operation.
This operation only applies to transactions from MPC Wallets in the SOL token.
operationId: resend_transaction_by_id
parameters:
@@ -3661,12 +3680,13 @@ paths:
- Transactions
/transactions/{transaction_id}/cancel:
post:
- description: "This operation cancels a specified transaction. A transaction\
- \ can be cancelled if its status is either of the following:\n- `Submitted`\n\
- - `PendingScreening`\n- `PendingAuthorization`\n- `PendingSignature` \n\n\
- A transaction request for tracking is returned upon successful operation.\n\
- This operation only applies to transactions from MPC Wallets and Smart\
- \ Contract Wallets.\n"
+ description: "This operation cancels a specified transaction. Canceling a transaction\
+ \ stops it while it is still pending. For more information, see [Cancel a\
+ \ transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#cancel-a-transaction).\n\
+ \nThis operation only applies to transactions from MPC Wallets and Smart\
+ \ Contract Wallets.\n\nA transaction can be cancelled if its status\
+ \ is either of the following:\n- `Submitted`\n- `PendingScreening`\n- `PendingAuthorization`\n\
+ - `PendingSignature` \n"
operationId: cancel_transaction_by_id
parameters:
- description: The transaction ID.
@@ -3708,7 +3728,7 @@ paths:
post:
description: "This operation is only applicable to the staking scenarios.\n\
This operation broadcasts a list of signed transactions. \n\nIf you set `auto_broadcast`\
- \ to `false` when [creating a staking activity](/v2/api-references/staking/create-stake-activity),\
+ \ to `false` when [creating a staking activity](https://www.cobo.com/developers/v2/api-references/staking/create-stake-activity),\
\ the transaction will not be submitted to the blockchain automatically after\
\ being signed. In such cases, you can call this operation to broadcast the\
\ transaction to the blockchain.\n\nA transaction can only be broadcast if\
@@ -3745,31 +3765,14 @@ paths:
- Transactions
/transactions/{transaction_id}/drop:
post:
- description: "This operation drops a specified transaction. \n\nDropping a transaction\
- \ will trigger a Replace-By-Fee (RBF) transaction which is a new version of\
- \ the original transaction. It must have a higher transaction fee to incentivize\
- \ miners to prioritize its confirmation over the original one. A transaction\
- \ can be dropped if its status is `Broadcasting`.\n\n
\n- For EVM chains,\
- \ this RBF transaction has a transfer amount of `0` and the sending address\
- \ is the same as the receiving address.
\n- For UTXO chains, this RBF\
- \ transaction has a transfer amount of `0` and the destination address is\
- \ the same as the change address in the original transaction.
\n
\n\
- \nYou can use the `address` or `included_utxos` properties in the request\
- \ body to specify the address or UTXOs that will cover the transaction fee.\
- \ Generally, the transaction fee is paid by the original transaction's source.\
- \ If that source's balance is insufficient, the specified address or UTXOs\
- \ can be used to cover the fee.\n\nA transaction request for tracking is returned\
- \ upon successful operation.\n\nWhen a transaction is being dropped, any subsequent\
- \ drop or speed up operations will still apply to the original transaction.\
- \ For example, if a user creates Transaction A and later performs a drop operation\
- \ on Transaction A using Transaction B, followed by a speed up operation on\
- \ Transaction B using Transaction C, the speed up operation will still apply\
- \ to Transaction A, not Transaction B.\n\nThis operation only applies\
- \ to transactions from MPC Wallets and Smart Contract Wallets. It does not\
- \ apply to transactions on the following chains: VET, TRON, TVET, SOL, and\
- \ TON.\n\nIf you drop a transaction from a Smart Contract Wallet,\
- \ two RBF transactions will be triggered, one for the transaction from the\
- \ Smart Contract Wallet, and the other for the transaction from the Delegate.\n"
+ description: |
+ This operation drops a specified transaction. Dropping a transaction leverages RBF to replace the original transaction with a version that effectively cancels it. For more details about dropping a transaction, refer to [Drop a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#drop-a-transaction).
+
+ A transaction can be sped up only if its status is `Broadcasting`.
+
+ This operation only applies to transactions from MPC Wallets and Smart Contract Wallets. It does not apply to transactions on the following chains: VET, TRON, TVET, SOL, and TON.
+
+ You can use the `address` or `included_utxos` properties in the request body to specify the address or UTXOs that will cover the transaction fee. Generally, the transaction fee is paid by the original transaction's source. If that source's balance is insufficient, the specified address or UTXOs can be used to cover the fee.
operationId: drop_transaction_by_id
parameters:
- description: The transaction ID.
@@ -3811,23 +3814,16 @@ paths:
- Transactions
/transactions/{transaction_id}/speedup:
post:
- description: "This operation accelerates a specified transaction. \n\nSpeeding\
- \ up a transaction will trigger a Replace-By-Fee (RBF) transaction which is\
- \ a new version of the original transaction. It shares the same inputs but\
- \ must have a higher transaction fee to incentivize miners to prioritize its\
- \ confirmation over the previous one. A transaction can be accelerated if\
- \ its status is `Broadcasting`.\n\nYou can use the `address` or `included_utxos`\
- \ properties in the request body to specify the address or UTXOs that will\
- \ cover the transaction fee. Generally, the transaction fee is paid by the\
- \ original transaction's source. If that source's balance is insufficient,\
- \ the specified address or UTXOs can be used to cover the fee.\n\nA transaction\
- \ request for tracking is returned upon successful operation.\n\nThis\
- \ operation only applies to transactions from MPC Wallets and Smart Contract\
- \ Wallets. It does not apply to transactions on the following chains: VET,\
- \ TRON, TVET, SOL, and TON.\n\nIf you speed up a transaction\
- \ from a Smart Contract Wallet, two RBF transactions will be triggered, one\
- \ for the transaction from the Smart Contract Wallet, and the other for the\
- \ transaction from the Delegate.\n"
+ description: |
+ This operation accelerates a specified transaction. Speeding up a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. For more details about speeding up a transaction, refer to [Speed up a transaction](/v2/guides/transactions/manage-transactions#speed-up-a-transaction).
+
+ You can use the `address` or `included_utxos` properties in the request body to specify the address or UTXOs that will cover the transaction fee. Generally, the transaction fee is paid by the original transaction's source. If that source's balance is insufficient, the specified address or UTXOs can be used to cover the fee.
+
+ A transaction can be sped up only if its status is `Broadcasting`.
+
+ This operation only applies to transactions from MPC Wallets and Smart Contract Wallets. It does not apply to transactions on the following chains: VET, TRON, TVET, SOL, and TON.
+
+ If you speed up a transaction from a Smart Contract Wallet, two RBF transactions will be triggered, one for the transaction from the Smart Contract Wallet, and the other for the transaction from the Delegate.
operationId: speedup_transaction_by_id
parameters:
- description: The transaction ID.
@@ -3867,6 +3863,47 @@ paths:
summary: Speed up transaction
tags:
- Transactions
+ /transactions/{transaction_id}/approval_detail:
+ get:
+ description: |
+ This operation retrieves approval detailed information about a specified transaction.
+ operationId: get_transaction_approval_detail
+ parameters:
+ - description: The transaction ID.
+ example: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ explode: false
+ in: path
+ name: transaction_id
+ required: true
+ schema:
+ format: uuid
+ type: string
+ style: simple
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TransactionApprovalDetail'
+ description: The information about a transaction approval detail.
+ "4XX":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Bad request. Your request contains malformed syntax or invalid
+ parameters.
+ "5XX":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Internal server error.
+ security:
+ - CoboAuth: []
+ summary: Get transaction approval information
+ tags:
+ - Transactions
/oauth/token:
get:
description: "This operation is only applicable to Cobo Portal App developers.\
@@ -3879,7 +3916,7 @@ paths:
\ Once the app has been granted permission by the organization's admin, it\
\ can use this operation to obtain both an Org Access Token and a Refresh\
\ Token.\n\nFor security purposes, Org Access Tokens expire after a certain\
- \ period. Once they expire, the app needs to call [Refresh token](/v2/api-references/oauth/refresh-org-access-token)\
+ \ period. Once they expire, the app needs to call [Refresh token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-org-access-token)\
\ to get a new Org Access Token and a new Refresh Token. \n"
operationId: get_token
parameters:
@@ -4006,14 +4043,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -4022,12 +4059,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -4098,7 +4136,7 @@ paths:
operationId: get_webhook_endpoint_by_id
parameters:
- description: "The webhook endpoint ID. You can retrieve a list of webhook\
- \ endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints)."
+ \ endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -4136,7 +4174,7 @@ paths:
operationId: update_webhook_endpoint_by_id
parameters:
- description: "The webhook endpoint ID. You can retrieve a list of webhook\
- \ endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints)."
+ \ endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -4245,7 +4283,7 @@ paths:
operationId: list_webhook_events
parameters:
- description: "The webhook endpoint ID. You can retrieve a list of webhook\
- \ endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints)."
+ \ endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -4283,14 +4321,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -4299,12 +4337,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -4343,7 +4382,7 @@ paths:
operationId: get_webhook_event_by_id
parameters:
- description: "The event ID. You can obtain a list of event IDs by calling\
- \ [List all events](/v2/api-references/developers--webhooks/list-all-events)."
+ \ [List all events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-events)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -4354,7 +4393,7 @@ paths:
type: string
style: simple
- description: "The webhook endpoint ID. You can retrieve a list of webhook\
- \ endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints)."
+ \ endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -4394,7 +4433,7 @@ paths:
operationId: list_webhook_event_logs
parameters:
- description: "The event ID. You can obtain a list of event IDs by calling\
- \ [List all events](/v2/api-references/developers--webhooks/list-all-events)."
+ \ [List all events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-events)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -4405,7 +4444,7 @@ paths:
type: string
style: simple
- description: "The webhook endpoint ID. You can retrieve a list of webhook\
- \ endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints)."
+ \ endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -4427,14 +4466,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -4443,12 +4482,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -4487,7 +4527,7 @@ paths:
operationId: retry_webhook_event_by_id
parameters:
- description: "The event ID. You can obtain a list of event IDs by calling\
- \ [List all events](/v2/api-references/developers--webhooks/list-all-events)."
+ \ [List all events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-events)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -4498,7 +4538,7 @@ paths:
type: string
style: simple
- description: "The webhook endpoint ID. You can retrieve a list of webhook\
- \ endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints)."
+ \ endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -4543,7 +4583,7 @@ paths:
parameters:
- description: "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)."
+ \ enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: ETH
explode: true
in: query
@@ -4554,7 +4594,7 @@ paths:
style: form
- description: "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)."
+ \ tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: ETH_USDT
explode: true
in: query
@@ -4575,14 +4615,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -4591,12 +4631,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -4643,8 +4684,8 @@ paths:
parameters:
- description: "The ID of the staking pool. A staking pool is a pairing of a\
\ staking protocol and a specific type of token. You can call [List staking\
- \ pools](/v2/api-references/stakings/list-staking-pools) to retrieve a list\
- \ of staking pools."
+ \ pools](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-pools)\
+ \ to retrieve a list of staking pools."
example: babylon_btc
explode: false
in: path
@@ -4691,7 +4732,7 @@ paths:
- Stakings
/stakings/estimate_fee:
post:
- description: "This operation is deprecated. Please use the [updated version](/v2/api-references/stakings/estimate-staking-fees-1)\
+ description: "This operation is deprecated. Please use the [updated version](https://www.cobo.com/developers/v2/api-references/stakings/estimate-staking-fees-v2)\
\ instead. \nThis operation calculates the fee required for a staking\
\ activity based on factors such as network congestion and transaction complexity.\n\
\nFor some protocols, you can use the `fee.fee_rate` property in the request\
@@ -4741,7 +4782,7 @@ paths:
$ref: '#/components/schemas/ErrorResponse'
description: Bad request. Your request contains malformed syntax or invalid
parameters.
- summary: Estimate staking fees
+ summary: Estimate staking fees v2
tags:
- Stakings
/stakings/activities/stake:
@@ -4791,8 +4832,8 @@ paths:
parameters:
- description: "The ID of the staking pool. A staking pool is a pairing of a\
\ staking protocol and a specific type of token. You can call [List staking\
- \ pools](/v2/api-references/stakings/list-staking-pools) to retrieve a list\
- \ of staking pools."
+ \ pools](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-pools)\
+ \ to retrieve a list of staking pools."
example: babylon_btc
explode: true
in: query
@@ -4833,7 +4874,7 @@ paths:
style: form
- description: "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)."
+ \ tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: ETH_USDT
explode: true
in: query
@@ -4854,14 +4895,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -4870,12 +4911,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -4921,7 +4963,7 @@ paths:
operationId: get_staking_by_id
parameters:
- description: "The ID of the staking position. You can retrieve a list of staking\
- \ positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions)."
+ \ positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -5096,8 +5138,8 @@ paths:
parameters:
- description: "The ID of the staking pool. A staking pool is a pairing of a\
\ staking protocol and a specific type of token. You can call [List staking\
- \ pools](/v2/api-references/stakings/list-staking-pools) to retrieve a list\
- \ of staking pools."
+ \ pools](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-pools)\
+ \ to retrieve a list of staking pools."
example: babylon_btc
explode: true
in: query
@@ -5165,6 +5207,16 @@ paths:
schema:
type: string
style: form
+ - description: 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.
+ example: web_send_by_user_327_1610444045047
+ explode: true
+ in: query
+ name: request_id
+ required: false
+ schema:
+ type: string
+ style: form
- description: "The maximum number of objects to return. For most operations,\
\ the value range is [1, 50]."
example: 10
@@ -5177,14 +5229,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -5193,12 +5245,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -5318,41 +5371,63 @@ paths:
summary: Get API key information
tags:
- Developers
- /address_books:
+ /developers/callback_messages:
get:
description: |
- This operation retrieves a list of addresses from your address book.
- operationId: list_address_books
+ This operation retrieves all the callback messages in your organization.
+
+ For more details about how to respond to callback messages, refer to [Callback messages](/v2/guides/webhooks-callbacks/set-up-endpoint#callback-messages).
+ operationId: list_callback_messages
parameters:
- - description: "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)."
- example: ETH
+ - description: "A list of callback message IDs, separated by commas."
+ example: "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479"
explode: true
in: query
- name: chain_id
- required: true
+ name: callback_message_ids
+ required: false
schema:
type: string
style: form
- - description: The wallet address.
- example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
+ - description: "A list of request IDs, separated by commas. The request ID is\
+ \ provided by you and must be unique within your organization."
+ example: "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479"
explode: true
in: query
- name: address
+ name: request_ids
required: false
schema:
- description: The wallet address.
type: string
style: form
- - description: The address label.
- example: test
+ - description: "A list of transaction IDs, separated by commas."
+ example: "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479"
explode: true
in: query
- name: label
+ name: transaction_ids
required: false
schema:
- description: The address label.
+ type: string
+ style: form
+ - description: "A list of wallet IDs, separated by commas."
+ example: "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479"
+ explode: true
+ in: query
+ name: wallet_ids
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: "The callback message status. Possible values include `Approved`,\
+ \ `Denied`, and `Failed`."
+ example: Approved
+ explode: true
+ in: query
+ name: status
+ required: false
+ schema:
+ enum:
+ - Denied
+ - Approved
+ - Failed
type: string
style: form
- description: "The maximum number of objects to return. For most operations,\
@@ -5367,14 +5442,14 @@ paths:
format: int32
type: integer
style: form
- - description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -5383,12 +5458,13 @@ paths:
schema:
type: string
style: form
- - description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -5402,8 +5478,8 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/list_address_books_200_response'
- description: The information about an address book entry.
+ $ref: '#/components/schemas/list_callback_messages_200_response'
+ description: The information about callback messages.
"4XX":
content:
application/json:
@@ -5417,9 +5493,346 @@ paths:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Internal server error.
- summary: List address book entries
- tags:
+ security:
+ - CoboAuth: []
+ summary: List all callback messages
+ tags:
+ - Developers
+ /developers/callback_messages/{message_id}/retry:
+ post:
+ description: |
+ This operation resends a callback message that failed previously.
+
+ If your callback endpoint doesn't respond as expected, the WaaS service will retry sending the callback message up to 30 times. After that, the callback message status will be `Failed`. Use this operation to resend the message. For more details, refer to [Webhooks and Callbacks](/v2/guides/webhooks-callbacks/set-up-endpoint#callback-messages).
+ operationId: retry_callback_message
+ parameters:
+ - description: The callback message ID.
+ example: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ explode: false
+ in: path
+ name: message_id
+ required: true
+ schema:
+ type: string
+ style: simple
+ responses:
+ "201":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/retry_callback_message_201_response'
+ description: The request was successful.
+ "4XX":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Bad request. Your request contains malformed syntax or invalid
+ parameters.
+ "5XX":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Internal server error.
+ security:
+ - CoboAuth: []
+ summary: Retry callback message
+ tags:
+ - Developers
+ /address_books:
+ get:
+ description: |
+ This operation retrieves a list of addresses from your address book.
+ operationId: list_address_books
+ parameters:
+ - description: "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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
+ example: ETH
+ explode: true
+ in: query
+ name: chain_id
+ required: true
+ schema:
+ type: string
+ style: form
+ - description: The wallet address.
+ example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
+ explode: true
+ in: query
+ name: address
+ required: false
+ schema:
+ description: The wallet address.
+ type: string
+ style: form
+ - description: The address label.
+ example: test
+ explode: true
+ in: query
+ name: label
+ required: false
+ schema:
+ description: The address label.
+ type: string
+ style: form
+ - description: "The maximum number of objects to return. For most operations,\
+ \ the value range is [1, 50]."
+ example: 10
+ explode: true
+ in: query
+ name: limit
+ required: false
+ schema:
+ default: 10
+ format: int32
+ type: integer
+ style: form
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n\
+ - If you set it to `infinity`, the last page of data is returned.\n"
+ example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
+ explode: true
+ in: query
+ name: before
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A,\
+ \ Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n-\
+ \ If you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
+ example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
+ explode: true
+ in: query
+ name: after
+ required: false
+ schema:
+ type: string
+ style: form
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/list_address_books_200_response'
+ description: The information about an address book entry.
+ "4XX":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Bad request. Your request contains malformed syntax or invalid
+ parameters.
+ "5XX":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Internal server error.
+ summary: List address book entries
+ tags:
- AddressBooks
+ /travel_rule/transaction/countries:
+ get:
+ description: This operation retrieves all countries supported.
+ operationId: list_supported_countries
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ items:
+ $ref: '#/components/schemas/list_supported_countries_200_response_inner'
+ type: array
+ description: A list of countries supported.
+ "4XX":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Bad request. Your request contains malformed syntax or invalid
+ parameters.
+ "5XX":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Internal server error.
+ security:
+ - CoboAuth: []
+ - OAuth2:
+ - travel_rule:read
+ summary: List supported countries
+ tags:
+ - TravelRule
+ /travel_rule/transaction/limitation:
+ get:
+ description: "This endpoint retrieves transaction-related limitations based\
+ \ on the provided `transaction_type` and `transaction_id`.\n\nThe response\
+ \ includes the following information:\n- **`vasp_list`**: A list of Virtual\
+ \ Asset Service Providers (VASPs) associated with the transaction token.\n\
+ - **`is_threshold_reached`**: Indicates whether the transaction amount has\
+ \ exceeded the predefined threshold. \n - If `true`: Additional Travel Rule\
+ \ information may be required for processing.\n- **`self_custody_wallet_challenge`**:\
+ \ A challenge string for verifying ownership of self-custody wallets.\n- **`connect_wallet_list`**:\
+ \ A list of supported wallet integrations for the transaction, such as MetaMask\
+ \ or WalletConnect.\n\nUse this endpoint to ensure compliance with Travel\
+ \ Rule requirements and to retrieve supported options for completing the transaction.\n"
+ operationId: get_transaction_limitation
+ parameters:
+ - description: "The transaction type. Possible values include: \n - `DEPOSIT`:\
+ \ A deposit transaction.\n - `WITHDRAW`: A withdrawal transaction.\n"
+ example: DEPOSIT
+ explode: true
+ in: query
+ name: transaction_type
+ required: true
+ schema:
+ enum:
+ - DEPOSIT
+ - WITHDRAW
+ type: string
+ style: form
+ - description: The transaction ID
+ explode: true
+ in: query
+ name: transaction_id
+ required: true
+ schema:
+ example: 123e4567-e89b-12d3-a456-426614174000
+ format: uuid
+ type: string
+ style: form
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/get_transaction_limitation_200_response'
+ description: The request was successful.
+ "4XX":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Bad request. Your request contains malformed syntax or invalid
+ parameters.
+ "5XX":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Internal server error.
+ security:
+ - CoboAuth: []
+ - OAuth2:
+ - travel_rule:read
+ summary: Retrieve transaction limitations
+ tags:
+ - TravelRule
+ /travel_rule/transaction/deposit/travel_rule_info:
+ post:
+ description: |
+ This operation allows you to submit the required Travel Rule information based on the transaction details. It supports both self-custody wallets and exchanges/VASPs, ensuring compliance with Travel Rule requirements.
+
+
+ - **Destination Wallet Type (`destination_wallet_type`)**:
+ - `SELF_CUSTODY_WALLET`: A self-custodial wallet (e.g., plugin wallet). Requires `self_custody_wallet_sign`, `self_custody_wallet_address`, and `self_custody_wallet_challenge`.
+ - `EXCHANGES_OR_VASP`: A wallet associated with an exchange or VASP. Requires `vendor_vasp_id` and information depending on `selected_entity_type`.
+
+ - **Entity Types (`selected_entity_type`)**:
+ - `LEGAL`: For legal entities, provide `legal_name`, `date_of_incorporation`, and `place_of_incorporation`.
+ - `NATURAL`: For natural persons, provide `date_of_birth`, `place_of_birth`, `first_name`, and `last_name`.
+ operationId: submit_deposit_travel_rule_info
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TravelRuleDepositRequest'
+ responses:
+ "201":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/submit_deposit_travel_rule_info_201_response'
+ description: Successfully submitted Travel Rule information.
+ "4XX":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Bad request. Your request contains malformed syntax or invalid
+ parameters.
+ "5XX":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Internal server error.
+ security:
+ - CoboAuth: []
+ - OAuth2:
+ - travel_rule:edit
+ summary: Submit Deposit Transaction Travel Rule information
+ tags:
+ - TravelRule
+ /travel_rule/transaction/withdraw/travel_rule_info:
+ post:
+ description: |
+ This operation allows you to submit the required Travel Rule information based on the transaction details. It supports both self-custody wallets and exchanges/VASPs, ensuring compliance with Travel Rule requirements.
+
+
+ - **Destination Wallet Type (`destination_wallet_type`)**:
+ - `SELF_CUSTODY_WALLET`: A self-custodial wallet (e.g., plugin wallet). Requires `self_custody_wallet_sign`, `self_custody_wallet_address`, and `self_custody_wallet_challenge`.
+ - `EXCHANGES_OR_VASP`: A wallet associated with an exchange or VASP. Requires `vendor_vasp_id` and information depending on `selected_entity_type`.
+
+ - **Entity Types (`selected_entity_type`)**:
+ - `LEGAL`: For legal entities, provide `legal_name`.
+ - `NATURAL`: For natural persons, provide `date_of_birth`, `place_of_birth`, `first_name`, and `last_name`.
+ operationId: submit_withdraw_travel_rule_info
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TravelRuleWithdrawRequest'
+ responses:
+ "201":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/submit_deposit_travel_rule_info_201_response'
+ description: Successfully submitted Travel Rule information.
+ "4XX":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Bad request. Your request contains malformed syntax or invalid
+ parameters.
+ "5XX":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/ErrorResponse'
+ description: Internal server error.
+ security:
+ - CoboAuth: []
+ - OAuth2:
+ - travel_rule:edit
+ summary: Submit Withdraw Transaction Travel Rule information
+ tags:
+ - TravelRule
components:
parameters:
sortByParam:
@@ -5464,14 +5877,14 @@ components:
type: integer
style: form
beforeParam:
- description: |
- An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
-
- - If you set `before` to `infinity`, the last page of data is returned.
+ description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data before the specified object relative to the\
+ \ current dataset. \n\nSuppose the current data is ordered as Object A, Object\
+ \ B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object A. \n\n**Notes**: \n- If\
+ \ you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n-\
+ \ If you set it to `infinity`, the last page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
explode: true
in: query
@@ -5481,12 +5894,13 @@ components:
type: string
style: form
afterParam:
- description: |
- An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request.
-
- - If you set both `after` and `before`, an error will occur.
-
- - If you leave both `before` and `after` empty, the first page of data is returned.
+ description: "This parameter specifies an object ID as a starting point for\
+ \ pagination, retrieving data after the specified object relative to the current\
+ \ dataset. \n\nSuppose the current data is ordered as Object A, Object B,\
+ \ and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`),\
+ \ the response will include Object B and Object C. \n\n**Notes**: \n- If\
+ \ you set both `after` and `before`, an error will occur.\n- If you leave\
+ \ both `before` and `after` empty, the first page of data is returned.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
explode: true
in: query
@@ -5535,7 +5949,7 @@ components:
chainIdParam:
description: "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)."
+ \ enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: ETH
explode: false
in: path
@@ -5547,7 +5961,7 @@ components:
requiredChainIdParam:
description: "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)."
+ \ enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: ETH
explode: true
in: query
@@ -5559,7 +5973,7 @@ components:
optionalChainIdParam:
description: "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)."
+ \ enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: ETH
explode: true
in: query
@@ -5571,7 +5985,7 @@ components:
optionalChainIdListParam:
description: "A list of chain IDs, separated by comma. The chain ID is the unique\
\ identifier of a blockchain. You can retrieve the IDs of all the chains you\
- \ can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains)."
+ \ can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: "BTC,ETH"
explode: true
in: query
@@ -5584,7 +5998,7 @@ components:
requiredChainIdListParam:
description: "A list of chain IDs, separated by comma. The chain ID is the unique\
\ identifier of a blockchain. You can retrieve the IDs of all the chains you\
- \ can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains)."
+ \ can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: "BTC,ETH"
explode: true
in: query
@@ -5597,7 +6011,7 @@ components:
tokenIdParam:
description: "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)."
+ \ tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: ETH_USDT
explode: false
in: path
@@ -5609,7 +6023,7 @@ components:
optionalTokenIdParam:
description: "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)."
+ \ tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: ETH_USDT
explode: true
in: query
@@ -5621,7 +6035,7 @@ components:
optionalTokenListIdParam:
description: "A list of token IDs, separated by comma. The token ID is the unique\
\ identifier of a token. You can retrieve the IDs of all the tokens you can\
- \ use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens)."
+ \ use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: "ETH_USDT,ETH_USDC"
explode: true
in: query
@@ -5634,7 +6048,7 @@ components:
requiredTokenIdParam:
description: "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)."
+ \ tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: ETH_USDT
explode: true
in: query
@@ -5741,6 +6155,17 @@ components:
format: uuid
type: string
style: form
+ requiredWalletIdParam:
+ description: The wallet ID.
+ example: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ explode: true
+ in: query
+ name: wallet_id
+ required: true
+ schema:
+ format: uuid
+ type: string
+ style: form
optionalWalletListIdParam:
description: "A list of wallet IDs, separated by comma."
example: "f47ac10b-58cc-4372-a567-0e02b2c3d479,1ddca562-8434-41c9-8809-d437bad9c868"
@@ -5810,7 +6235,7 @@ components:
optionalTradingAccountTypeListParam:
description: "A list of trading account types, separated by comma. You can get\
\ the the supported trading account types of an exchange by calling [List\
- \ supported exchanges](/v2/api-references/wallets--exchange-wallet/list-supported-exchanges)."
+ \ supported exchanges](https://www.cobo.com/developers/v2/api-references/wallets--exchange-wallet/list-supported-exchanges)."
example: "Trading,Funding"
explode: true
in: query
@@ -5920,7 +6345,7 @@ components:
$ref: '#/components/schemas/KeyShareHolderGroupType'
style: form
projectIdParam:
- description: "The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects)."
+ description: "The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -5932,7 +6357,7 @@ components:
style: simple
optionalProjectIdQueryParam:
description: |
- The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
+ The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: true
in: query
@@ -5954,7 +6379,7 @@ components:
style: form
requiredKeyShareHolderGroupIdParam:
description: "The key share holder group ID of the TSS request, which you can\
- \ retrieve by calling [List all key share holder groups](/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups)."
+ \ retrieve by calling [List all key share holder groups](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups)."
example: a3a45e99-5a12-444f-867a-ffe0ebb1bb30
explode: true
in: query
@@ -5965,7 +6390,7 @@ components:
style: form
tssRequestIdParam:
description: "The TSS request ID, which you can retrieve by calling [List TSS\
- \ requests](/v2/api-references/wallets--mpc-wallets/list-tss-requests)."
+ \ requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests)."
example: "20240711114129000132315000003970"
explode: false
in: path
@@ -5975,7 +6400,7 @@ components:
type: string
style: simple
vaultIdParam:
- description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
+ description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -5986,7 +6411,7 @@ components:
type: string
style: simple
optionalVaultIdQueryParam:
- description: "The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults)."
+ description: "The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: true
in: query
@@ -6272,7 +6697,7 @@ components:
style: simple
webhookEventIdParam:
description: "The event ID. You can obtain a list of event IDs by calling [List\
- \ all events](/v2/api-references/developers--webhooks/list-all-events)."
+ \ all events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-events)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -6284,7 +6709,7 @@ components:
style: simple
endpointIdParam:
description: "The webhook endpoint ID. You can retrieve a list of webhook endpoint\
- \ IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints)."
+ \ IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -6306,7 +6731,7 @@ components:
style: simple
poolIdRequiredParam:
description: "The ID of the staking pool. A staking pool is a pairing of a staking\
- \ protocol and a specific type of token. You can call [List staking pools](/v2/api-references/stakings/list-staking-pools)\
+ \ protocol and a specific type of token. You can call [List staking pools](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-pools)\
\ to retrieve a list of staking pools."
example: babylon_btc
explode: false
@@ -6318,7 +6743,7 @@ components:
style: simple
poolIdOptionalParam:
description: "The ID of the staking pool. A staking pool is a pairing of a staking\
- \ protocol and a specific type of token. You can call [List staking pools](/v2/api-references/stakings/list-staking-pools)\
+ \ protocol and a specific type of token. You can call [List staking pools](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-pools)\
\ to retrieve a list of staking pools."
example: babylon_btc
explode: true
@@ -6330,7 +6755,7 @@ components:
style: form
stakingIdRequiredParam:
description: "The ID of the staking position. You can retrieve a list of staking\
- \ positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions)."
+ \ positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
explode: false
in: path
@@ -6449,6 +6874,31 @@ components:
description: The address label.
type: string
style: form
+ requiredTransactionTypeParam:
+ description: "The transaction type. Possible values include: \n - `DEPOSIT`:\
+ \ A deposit transaction.\n - `WITHDRAW`: A withdrawal transaction.\n"
+ example: DEPOSIT
+ explode: true
+ in: query
+ name: transaction_type
+ required: true
+ schema:
+ enum:
+ - DEPOSIT
+ - WITHDRAW
+ type: string
+ style: form
+ requiredTransactionIdParam:
+ description: The transaction ID
+ explode: true
+ in: query
+ name: transaction_id
+ required: true
+ schema:
+ example: 123e4567-e89b-12d3-a456-426614174000
+ format: uuid
+ type: string
+ style: form
apilogIdParam:
description: The API log ID.
example: e39864014aec480a973de775a4518413
@@ -6487,7 +6937,7 @@ components:
style: form
optionalApiStatusCodeParam:
description: "The HTTP status code returned by the API request. For more details,\
- \ refer to [Error codes and status codes](/v2/api-references/error-codes)."
+ \ refer to [Error codes and status codes](https://www.cobo.com/developers/v2/api-references/error-codes)."
example: "400,401"
explode: true
in: query
@@ -6518,7 +6968,7 @@ components:
style: form
optionalApiKeyParam:
description: "The API key used to call the API. For more details, refer to [API\
- \ key](/v2/guides/overview/cobo-auth#api-key)."
+ \ key](https://www.cobo.com/developers/v2/guides/overview/cobo-auth#api-key)."
example: 8926ce37029ed650eb7aee66999658cad2653dbc2dbc758c04fc4dc937b47f25
explode: true
in: query
@@ -6537,38 +6987,230 @@ components:
schema:
type: string
style: form
- optionalApiIpAddressParam:
- description: The client's IP address that made the API request.
- example: 127.0.0.1
+ optionalApiIpAddressParam:
+ description: The client's IP address that made the API request.
+ example: 127.0.0.1
+ explode: true
+ in: query
+ name: ip_address
+ required: false
+ schema:
+ type: string
+ style: form
+ optionalApiLogStatusParam:
+ description: The API request status. Possible values are `Success` and `Failed`.
+ example: Success
+ explode: true
+ in: query
+ name: status
+ required: false
+ schema:
+ enum:
+ - Success
+ - Failed
+ type: string
+ style: form
+ optionalApiLogClientIdParam:
+ description: The client ID of the Cobo Portal App that made the API request.
+ example: 9535384b-33cf-4ef7-88fa-74136f9748db1
+ explode: true
+ in: query
+ name: client_id
+ required: false
+ schema:
+ type: string
+ style: form
+ optionalCallbackMessageIdsParam:
+ description: "A list of callback message IDs, separated by commas."
+ example: "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479"
+ explode: true
+ in: query
+ name: callback_message_ids
+ required: false
+ schema:
+ type: string
+ style: form
+ optionalTransactionIdsParam:
+ description: "A list of transaction IDs, separated by commas."
+ example: "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479"
+ explode: true
+ in: query
+ name: transaction_ids
+ required: false
+ schema:
+ type: string
+ style: form
+ optionalWalletIdsParam:
+ description: "A list of wallet IDs, separated by commas."
+ example: "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479"
+ explode: true
+ in: query
+ name: wallet_ids
+ required: false
+ schema:
+ type: string
+ style: form
+ optionalRequestIdsParam:
+ description: "A list of request IDs, separated by commas. The request ID is\
+ \ provided by you and must be unique within your organization."
+ example: "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479"
+ explode: true
+ in: query
+ name: request_ids
+ required: false
+ schema:
+ type: string
+ style: form
+ optionalCallbackStatusParam:
+ description: "The callback message status. Possible values include `Approved`,\
+ \ `Denied`, and `Failed`."
+ example: Approved
+ explode: true
+ in: query
+ name: status
+ required: false
+ schema:
+ enum:
+ - Denied
+ - Approved
+ - Failed
+ type: string
+ style: form
+ callbackMessageIdParam:
+ description: The callback message ID.
+ example: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ explode: false
+ in: path
+ name: message_id
+ required: true
+ schema:
+ type: string
+ style: simple
+ activityIdParam:
+ description: The unique id of the activity.
+ example: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ explode: false
+ in: path
+ name: activity_id
+ required: true
+ schema:
+ type: string
+ style: simple
+ initiatorOptionalParam:
+ description: "The activity initiator, which is your API key by default. You\
+ \ can also specify the initiator when creating the activity."
+ example: steve@example.com
+ explode: true
+ in: query
+ name: initiator
+ required: false
+ schema:
+ type: string
+ style: form
+ payAmountRequiredParam:
+ description: The amount of pay token to swap.
+ example: "1.5"
+ explode: true
+ in: query
+ name: pay_amount
+ required: true
+ schema:
+ type: string
+ style: form
+ payAmountOptionalParam:
+ description: The amount of pay token to swap.
+ example: "1.5"
+ explode: true
+ in: query
+ name: pay_amount
+ required: false
+ schema:
+ type: string
+ style: form
+ receiveAmountRequiredParam:
+ description: The amount of token to receive.
+ example: "2000"
+ explode: true
+ in: query
+ name: receive_amount
+ required: true
+ schema:
+ type: string
+ style: form
+ receiveAmountOptionalParam:
+ description: The amount of token to receive.
+ example: "2000"
+ explode: true
+ in: query
+ name: receive_amount
+ required: false
+ schema:
+ type: string
+ style: form
+ payTokenIdRequiredParam:
+ description: Unique id of the token to pay.
+ example: ETH
+ explode: true
+ in: query
+ name: pay_token_id
+ required: true
+ schema:
+ type: string
+ style: form
+ receiveTokenIdRequiredParam:
+ description: Unique id of the token to receive.
+ example: USDT
explode: true
in: query
- name: ip_address
- required: false
+ name: receive_token_id
+ required: true
schema:
type: string
style: form
- optionalApiLogStatusParam:
- description: The API request status. Possible values are `Success` and `Failed`.
+ swapActivityStatusOptionalParam:
example: Success
explode: true
in: query
name: status
required: false
schema:
+ description: |
+ The status of the swap activity. Possible values include:
+ - `Success`: The activity is successfully completed.
+ - `Processing`: The activity is being processed.
+ - `Failed`: The activity has failed.
enum:
- Success
+ - Processing
- Failed
+ example: Success
type: string
style: form
- optionalApiLogClientIdParam:
- description: The client ID of the Cobo Portal App that made the API request.
- example: 9535384b-33cf-4ef7-88fa-74136f9748db1
+ swapActivityMinUpdatedTimestampOptionalParam:
+ description: "The start time of the query. All staking activities updated after\
+ \ the specified time will be retrieved. The time is in Unix timestamp format,\
+ \ measured in milliseconds."
+ example: 1635744000000
explode: true
in: query
- name: client_id
+ name: min_updated_timestamp
required: false
schema:
- type: string
+ format: int64
+ type: integer
+ style: form
+ swapActivityMaxUpdatedTimestampOptionalParam:
+ description: "The end time of the query. All staking activities updated before\
+ \ the specified time will be retrieved. The time is in Unix timestamp format,\
+ \ measured in milliseconds."
+ example: 1635744000000
+ explode: true
+ in: query
+ name: max_updated_timestamp
+ required: false
+ schema:
+ format: int64
+ type: integer
style: form
requestBodies:
createWalletBody:
@@ -6740,6 +7382,27 @@ components:
$ref: '#/components/schemas/refresh_token_request'
description: The request body for refreshing an Org Access Token.
required: true
+ createSwapActivityBody:
+ content:
+ application/json:
+ schema:
+ properties:
+ wallet_id:
+ description: The unique identifier of the wallet.
+ example: 123e4567-e89b-12d3-a456-426614174000
+ format: uuid
+ type: string
+ quote_id:
+ description: The unique identifier of the quote.
+ example: 123e4567-e89b-12d3-a456-426614174001
+ format: uuid
+ type: string
+ required:
+ - quote_id
+ - wallet_id
+ type: object
+ description: The request body for creating a swap activity.
+ required: true
responses:
badRequestError:
content:
@@ -7094,6 +7757,12 @@ components:
$ref: '#/components/schemas/broadcast_signed_transactions_201_response_inner'
type: array
description: The request was successful.
+ getTransactionApprovalDetailResponse:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TransactionApprovalDetail'
+ description: The information about a transaction approval detail.
createWebhookEndpointResponse:
content:
application/json:
@@ -7168,12 +7837,6 @@ components:
schema:
$ref: '#/components/schemas/create_stake_activity_201_response'
description: Successfully created a staking activity.
- activityDetailsResponse:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Activity'
- description: A staking activity has been successfully retrieved.
stakingsDetailsResponse:
content:
application/json:
@@ -7234,6 +7897,26 @@ components:
schema:
$ref: '#/components/schemas/list_address_books_200_response'
description: The information about an address book entry.
+ getCountriesResponse:
+ content:
+ application/json:
+ schema:
+ items:
+ $ref: '#/components/schemas/list_supported_countries_200_response_inner'
+ type: array
+ description: A list of countries supported.
+ getTransactionLimitationResponse:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/get_transaction_limitation_200_response'
+ description: The request was successful.
+ submitTravelRuleInfoResponse:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/submit_deposit_travel_rule_info_201_response'
+ description: Successfully submitted Travel Rule information.
listApiLogsResponse:
content:
application/json:
@@ -7262,6 +7945,130 @@ components:
schema:
$ref: '#/components/schemas/get_api_key_info_200_response'
description: The API key information.
+ listCallbackMessagesResponse:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/list_callback_messages_200_response'
+ description: The information about callback messages.
+ retryCallbackMessageResponse:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/retry_callback_message_201_response'
+ description: The request was successful.
+ getSwapSummaryResponse:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SwapSummary'
+ description: The summary information of swap activities.
+ getSwapActivityResponse:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/SwapActivity'
+ description: The swap activity details have been successfully retrieved.
+ listSwapActivitiesResponse:
+ content:
+ application/json:
+ schema:
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/SwapActivity'
+ type: array
+ pagination:
+ $ref: '#/components/schemas/Pagination'
+ type: object
+ description: A list of staking activities have been successfully retrieved.
+ listSwapTokenPairsResponse:
+ content:
+ application/json:
+ schema:
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/SwapTokenPair'
+ type: array
+ pagination:
+ $ref: '#/components/schemas/Pagination'
+ type: object
+ description: The supported token pairs have been successfully retrieved.
+ getSwapQuoteResponse:
+ content:
+ application/json:
+ schema:
+ properties:
+ quote_id:
+ description: The unique identifier of this quote.
+ example: 550e8400-e29b-41d4-a716-446655440000
+ type: string
+ pay_amount:
+ description: The amount of tokens to pay.
+ example: "1.5"
+ type: string
+ pay_usd_value:
+ description: The USD value of pay_amount.
+ example: "2850.75"
+ type: string
+ receive_amount:
+ description: The amount of tokens to receive.
+ example: "2000"
+ type: string
+ receive_usd_value:
+ description: The USD value of receive_amount.
+ example: "2000"
+ type: string
+ fee_token_id:
+ description: The token to pay for fee.
+ example: "1.5"
+ type: string
+ fee_amount:
+ description: The amount of tokens to pay for fee.
+ example: "2000"
+ type: string
+ fee_usd_value:
+ description: The USD value of fee_amount.
+ example: "2850.75"
+ type: string
+ min_pay_amount:
+ description: The minimum amount of tokens to pay.
+ example: "0"
+ type: string
+ max_pay_amount:
+ description: The maximum amount of tokens to pay.
+ example: "1000"
+ type: string
+ min_receive_amount:
+ description: The minimum amount of tokens to receive.
+ example: "0"
+ type: string
+ max_receive_amount:
+ description: The maximum amount of tokens to receive.
+ example: "0"
+ type: string
+ quote_created_time:
+ description: "The time when the quote was created, in Unix timestamp\
+ \ format, measured in milliseconds."
+ example: 1677587333000
+ type: integer
+ quote_expired_time:
+ description: "The time when the quote will expire, in Unix timestamp\
+ \ format, measured in milliseconds."
+ example: 1677587393000
+ type: integer
+ required:
+ - activity_id
+ - pay_amount
+ - pay_usd_value
+ - quote_created_time
+ - quote_expired_time
+ - quote_id
+ - receive_amount
+ - receive_usd_value
+ type: object
+ description: The swap quote has been successfully retrieved.
schemas:
Pagination:
description: The pagination information of the returned data.
@@ -7271,17 +8078,19 @@ components:
after: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
properties:
before:
- description: "An object ID that serves as a starting point for retrieving\
- \ data in reverse chronological order for the next request. \n\nIf this\
- \ property is empty, it means that you have reached the start of the data\
- \ records.\n"
+ description: "An object ID used to retrieve records before the specified\
+ \ object, indicating earlier or smaller records relative to the current\
+ \ dataset. You can use it to paginate backwards. \n\nIf empty, it means\
+ \ you have reached the start of the data. \n\nMost API endpoints sort\
+ \ by object ID, but some use other fields depending on the endpoint.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
type: string
after:
- description: |
- 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.
+ description: "An object ID used to retrieve records after the specified\
+ \ object, indicating newer or larger records relative to the current dataset.\
+ \ You can use it to paginate forwards. \n\nIf empty, it means you have\
+ \ reached the end of the data. \n\nMost API endpoints sort by object\
+ \ ID, but some use other fields depending on the endpoint.\n"
example: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
type: string
total_count:
@@ -7302,7 +8111,7 @@ components:
error_code: 0
properties:
error_code:
- description: "The error code. Refer to [Error codes and status codes](/v2/api-references/error-codes)\
+ description: "The error code. Refer to [Error codes and status codes](https://www.cobo.com/developers/v2/api-references/error-codes)\
\ for more details."
type: integer
error_message:
@@ -7364,7 +8173,7 @@ components:
token_id:
description: "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)."
+ \ enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: ETH_USDT
type: string
chain_id:
@@ -7487,7 +8296,7 @@ components:
chain_id:
description: "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)."
+ \ enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: ETH
type: string
symbol:
@@ -7626,7 +8435,7 @@ components:
token_id:
description: "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)."
+ \ enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: BTC
type: string
balance:
@@ -7876,7 +8685,7 @@ components:
token_id:
description: "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)."
+ \ enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: ETH
type: string
max_transferable_value:
@@ -7890,7 +8699,7 @@ components:
AddressInfo:
description: The address information.
example:
- path: m/44'/60'/0'/0
+ path: m/44/0/2/0/0
address: 0x0000000000000000000000000000000000000000
chain_id: ETH
x_only_pubkey: 0x165ed2f04462ec0d3d44dc8690fa9000903b5a96f14ad7f233c21ff748a17b54
@@ -7898,7 +8707,8 @@ components:
taproot_internal_address: 3HYV6ta67197syD1ZVFganpmL2wLz4RyoC
taproot_script_tree_hash: 0x138fdd0f6c3803d45553e730c25924baf7be741b8a72a4e6fdbd9d44cb19f85b
encoding: ENCODING_P2PKH
- pubkey: xpub661MyMwAqRbcG4vPNi58VQJrXW8D9VzmauuRq2rTY3oUVnKGuLTxQxvvoEXgLvZ7N9GQXQkWVgKn1rzEUUEm4NdvrBKUqjpNJEnn2UL4rYq
+ root_pubkey: xpub661MyMwAqRbcG4vPNi58VQJrXW8D9VzmauuRq2rTY3oUVnKGuLTxQxvvoEXgLvZ7N9GQXQkWVgKn1rzEUUEm4NdvrBKUqjpNJEnn2UL4rYq
+ pubkey: xpub6HFaEKt4XdwgEQrQmWr8AEAZ7XBSGh7QYFspwdE86sJn6PjkqsPwVQc2poriBdizqXnTB3UWurJJAZpFnD2DAp9vFTmM2gQ264AArYtFWLH
properties:
address:
description: The wallet address.
@@ -7907,7 +8717,7 @@ components:
chain_id:
description: "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)."
+ \ enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: ETH
type: string
memo:
@@ -7918,19 +8728,24 @@ components:
description: "The derivation path of the address. This property applies\
\ to MPC Wallets only. To learn the meaning of each level in the path,\
\ see [Path levels](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#path-levels)."
- example: m/44'/60'/0'/0
+ example: m/44/0/2/0/0
type: string
encoding:
$ref: '#/components/schemas/AddressEncoding'
pubkey:
description: The public key of the address. This property applies to MPC
Wallets only.
- example: xpub661MyMwAqRbcG4vPNi58VQJrXW8D9VzmauuRq2rTY3oUVnKGuLTxQxvvoEXgLvZ7N9GQXQkWVgKn1rzEUUEm4NdvrBKUqjpNJEnn2UL4rYq
+ example: xpub6HFaEKt4XdwgEQrQmWr8AEAZ7XBSGh7QYFspwdE86sJn6PjkqsPwVQc2poriBdizqXnTB3UWurJJAZpFnD2DAp9vFTmM2gQ264AArYtFWLH
type: string
x_only_pubkey:
description: The 32-byte x-only public key in hexadecimal format after tweaking.
example: 0x165ed2f04462ec0d3d44dc8690fa9000903b5a96f14ad7f233c21ff748a17b54
type: string
+ root_pubkey:
+ description: The root public key of the address. This property applies to
+ MPC Wallets only.
+ example: xpub661MyMwAqRbcG4vPNi58VQJrXW8D9VzmauuRq2rTY3oUVnKGuLTxQxvvoEXgLvZ7N9GQXQkWVgKn1rzEUUEm4NdvrBKUqjpNJEnn2UL4rYq
+ type: string
taproot_script_tree_hash:
description: The information about the new address.
example: 0x138fdd0f6c3803d45553e730c25924baf7be741b8a72a4e6fdbd9d44cb19f85b
@@ -7982,7 +8797,7 @@ components:
- $ref: '#/components/schemas/CreateCustodialWalletParams'
- properties:
vault_id:
- description: "The ID of the owning vault. You can call [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults)\
+ description: "The ID of the owning vault. You can call [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults)\
\ to retrieve all vault IDs under your organization."
type: string
required:
@@ -8240,6 +9055,27 @@ components:
oneOf:
- $ref: '#/components/schemas/SafeWalletDelegatesContractCall'
- $ref: '#/components/schemas/SafeWalletDelegatesTransfer'
+ OrgInfo:
+ description: |
+ [organization](https://manuals.cobo.com/en/portal/organization/introduction).
+ properties:
+ org_id:
+ description: The ID of the owning organization.
+ example: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ type: string
+ name:
+ description: The organization name.
+ example: Org name
+ type: string
+ created_timestamp:
+ description: "The organization's creation time in Unix timestamp format,\
+ \ measured in milliseconds."
+ example: 1718619403933
+ format: int64
+ type: integer
+ required:
+ - org_id
+ type: object
CurveType:
description: |
The elliptic curve type of the [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). Possible values include:
@@ -8319,7 +9155,7 @@ components:
KeyShareHolderGroupStatus:
description: |
The status of the key share holder group. Possible values include:
- - `New`: The key share holder group has been newly created. The status will become `Valid` after you call [Create TSS request](/v2/api-references/wallets--mpc-wallet/create-a-tss-request-to-generate-key-secrets-for-a-tss-group) and specifying this key share holder group as the target key share holder group.
+ - `New`: The key share holder group has been newly created. The status will become `Valid` after you call [Create TSS request](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/create-a-tss-request-to-generate-key-secrets-for-a-tss-group) and specifying this key share holder group as the target key share holder group.
- `Valid`: The key share holder group is valid.
@@ -8359,7 +9195,7 @@ components:
$ref: '#/components/schemas/KeyShareHolderType'
tss_node_id:
description: "Key share holder's TSS Node ID. You can obtain the TSS Node\
- \ ID using either mobile co-signer or API co-signer. See the \"Primary\
+ \ ID using either mobile co-signer or server co-signer. See the \"Primary\
\ Purposes\" row on the table in [Create a Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group)."
example: coboAbCdEfGhIjKlMnOpQrStUvWxYz1234567890abcdefghi
type: string
@@ -8424,7 +9260,7 @@ components:
- `NotActivated`: The TSS Node has not been activated. This status is only applicable to [mobile co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/back-up-key-share-groups#mobile-co-signer) using the [Cobo Guard](https://manuals.cobo.com/en/guard/introduction).
- - `Changed`: The TSS Node has been changed. This happens when the key share holder sets up their [Cobo Guard](https://manuals.cobo.com/en/guard/introduction) on a new phone. This `Changed` status serves as a reminder for you to call [Create TSS request](/v2/api-references/wallets--mpc-wallet/create-a-tss-request-to-generate-key-secrets-for-a-tss-group) with the `KeyGenFromKeyGroup` and `Recovery` action `type` to finalize the setup of the key share holder's new phone. Once all set, the old TSS Node with the `Changed` status will be deleted.
+ - `Changed`: The TSS Node has been changed. This happens when the key share holder sets up their [Cobo Guard](https://manuals.cobo.com/en/guard/introduction) on a new phone. This `Changed` status serves as a reminder for you to call [Create TSS request](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/create-a-tss-request-to-generate-key-secrets-for-a-tss-group) with the `KeyGenFromKeyGroup` and `Recovery` action `type` to finalize the setup of the key share holder's new phone. Once all set, the old TSS Node with the `Changed` status will be deleted.
enum:
- Valid
- NotConfigured
@@ -8440,7 +9276,7 @@ components:
- `Mobile`: The TSS Node is generated and held by a [mobile co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group) using [Cobo Guard](https://manuals.cobo.com/en/guard/introduction).
- - `API`: The TSS Node is generated and held by an [API co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group) using the [TSS Node software package](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/tss-node-deployment).
+ - `API`: The TSS Node is generated and held by a [server co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group) using the [TSS Node software package](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/tss-node-deployment).
enum:
- Cobo
- Mobile
@@ -8621,7 +9457,7 @@ components:
\ to be started. \n - For [MPC Wallets (User-Controlled Wallets)](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/introduction),\
\ you need to use the Client App and call the UCW SDK to start the TSS request\
\ approval process.\n - For [MPC Wallets (Organization-Controlled Wallets)](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/introduction):\n\
- \ - If you are using the [API co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group),\
+ \ - If you are using the [server co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group),\
\ this status indicates that the TSS Node will soon request the callback server\
\ to start the [risk controls](https://manuals.cobo.com/en/portal/risk-controls/introduction)\
\ check. No further action is required from you at this stage.\n - If you\
@@ -8631,7 +9467,7 @@ components:
\ `KeyGeneratingFailed`: The key share generation process has failed for the\
\ action to be done to the TSS request.\n\n- `Success`: The action done to\
\ the TSS request has been completed successfully. If you see this status\
- \ while running [Cancel TSS request](/v2/api-references/wallets--mpc-wallets/cancel-tss-request),\
+ \ while running [Cancel TSS request](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/cancel-tss-request),\
\ this mean the specified TSS request has been successfully canceled.\n"
enum:
- PendingKeyHolderConfirmation
@@ -8645,9 +9481,9 @@ components:
TSSRequestType:
description: |
The TSS request type. Possible values include:
- - `KeyGen`: This is a key generation request to create a [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) and key shares for your [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) after you've created the Main Group with [Create key share holder group](/v2/api-references/wallets--mpc-wallets/create-key-share-holder-group). You only need to do this once per [organization](https://manuals.cobo.com/en/portal/organization/introduction).
+ - `KeyGen`: This is a key generation request to create a [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) and key shares for your [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) after you've created the Main Group with [Create key share holder group](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/create-key-share-holder-group). You only need to do this once per [organization](https://manuals.cobo.com/en/portal/organization/introduction).
- - `KeyGenFromKeyGroup`: This is a request to use the [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) to create key shares for your [Signing Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) or [Recovery Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) after you've created these key share holder groups with [Create key share holder group](/v2/api-references/wallets--mpc-wallets/create-key-share-holder-group).
+ - `KeyGenFromKeyGroup`: This is a request to use the [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) to create key shares for your [Signing Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) or [Recovery Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) after you've created these key share holder groups with [Create key share holder group](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/create-key-share-holder-group).
- `Recovery`: This is a request to create key shares using the [Recovery Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) for a key share holder in the [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) if their key share has been lost (e.g. by losing their phone).
enum:
@@ -8687,7 +9523,7 @@ components:
\ 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).\n"
+ \ all Cobo key share holders](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-cobo-key-share-holders).\n"
items:
example: cobo5yb7BNEBwwp5XXedbhnzQfvQtp132W4dH4Jz4x4eDp4KA
type: string
@@ -8702,7 +9538,7 @@ components:
\ The legacy fee model.\n- `UTXO`: The fee model used in UTXO-based blockchains,\
\ such as Bitcoin.\n\nEach fee model requires a different set of properties.\
\ Switch between the above tabs for details.\n\nTo learn more about the fee\
- \ models, refer to [Fee models](/v2/guides/transactions/estimate-fees#fee-models).\n"
+ \ models, refer to [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models).\n"
enum:
- Fixed
- EVM_EIP_1559
@@ -9014,7 +9850,7 @@ components:
description: |
The preset properties to limit transaction fee.
- In the fixed fee model, the transaction fee is a fixed amount within a certain amount of period regardless of the transaction size or network congestion, which can vary between different chains. For more information about the fixed fee model, refer to [Fee models](/v2/guides/transactions/estimate-fees#fee-models).
+ In the fixed fee model, the transaction fee is a fixed amount within a certain amount of period regardless of the transaction size or network congestion, which can vary between different chains. For more information about the fixed fee model, refer to [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models).
You can specify the maximum fee amount to limit the transaction fee. The transaction will fail if the transaction fee exceeds the specified maximum fee amount.
@@ -9050,7 +9886,7 @@ components:
\ fee model, the transaction fee is calculated by multiplying the gas price\
\ and the gas units used by the transaction. This can be expressed as: Transaction\
\ fee = gas price * gas units used. For more information about the EIP-1559\
- \ fee model, refer to [Fee models](/v2/guides/transactions/estimate-fees#fee-models).\n\
+ \ fee model, refer to [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models).\n\
\nYou can specify the maximum gas fee per gas unit, maximum priority fee per\
\ gas unit, and the gas limit to limit the gas price, priority fee per gas\
\ unit, gas units used in the transaction. \n\nSwitch between the tabs to\
@@ -9083,7 +9919,7 @@ components:
description: |
The preset properties to limit transaction fee.
- In the legacy fee model, the transaction fee is calculated by multiplying the gas price by the gas units used by the transaction. This can be expressed as: Transaction fee = (gas price * gas units used). For more information about the legacy fee model, refer to [Fee models](/v2/guides/transactions/estimate-fees#fee-models).
+ In the legacy fee model, the transaction fee is calculated by multiplying the gas price by the gas units used by the transaction. This can be expressed as: Transaction fee = (gas price * gas units used). For more information about the legacy fee model, refer to [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models).
You can specify the gas limit to limit the gas units used in the transaction.
@@ -9114,7 +9950,7 @@ components:
description: |
The preset properties to limit transaction fee.
- In the UTXO fee model, the transaction fee is calculated by multiplying the fee rate by the transaction size. This can be expressed as: Transaction fee = fee rate * transaction size. For more information about the UTXO fee model, see [Fee models](/v2/guides/transactions/estimate-fees#fee-models).
+ In the UTXO fee model, the transaction fee is calculated by multiplying the fee rate by the transaction size. This can be expressed as: Transaction fee = fee rate * transaction size. For more information about the UTXO fee model, see [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models).
You can specify the maximum fee amount to limit the transaction fee. The transaction will fail if the transaction fee exceeds the specified maximum fee amount.
@@ -9197,10 +10033,14 @@ components:
request_id: web_send_by_user_327_1610444045047
raw_tx_info:
selected_utxos:
- - vout_n: 0
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
- - vout_n: 0
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
used_nonce: 9
replacement:
@@ -9247,13 +10087,13 @@ components:
chain_id:
description: "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)."
+ \ enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: ETH
type: string
token_id:
description: "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)."
+ \ enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: ETH_USDT
type: string
asset_id:
@@ -9410,10 +10250,14 @@ components:
request_id: web_send_by_user_327_1610444045047
raw_tx_info:
selected_utxos:
- - vout_n: 0
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
- - vout_n: 0
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
used_nonce: 9
replacement:
@@ -9447,7 +10291,7 @@ components:
token_id:
description: "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)."
+ \ enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: ETH_USDT
type: string
asset_id:
@@ -9608,7 +10452,7 @@ components:
\ Wallets)](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/introduction),\
\ you need to use the Client App and call the UCW SDK to start the transaction\
\ approval process.\n - For [MPC Wallets (Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/introduction)):\n\
- \ - If you are using the [API co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups),\
+ \ - If you are using the [server co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups),\
\ this status indicates that the TSS Node will soon request the callback server\
\ to start the [risk controls](https://manuals.cobo.com/en/portal/risk-controls/introduction)\
\ check. No further action is required from you at this stage.\n - If\
@@ -9621,7 +10465,7 @@ components:
\ failed verification.\n - `FailedBroadcasting`: The transaction failed to\
\ be broadcast to the blockchain network.\n - `CanceledBySpender`: The transaction\
\ is canceled by a Spender.\n - `CanceledByAPI`: The transaction is canceled\
- \ by a [Cancel transaction](/v2/api-references/transactions/cancel-transaction)\
+ \ by a [Cancel transaction](https://www.cobo.com/developers/v2/api-references/transactions/cancel-transaction)\
\ operation.\n - `Queue`: The transaction is queued to be processed by Cobo\
\ Portal.\n - `Reverting`: The transaction is being reverted due to failure\
\ on the blockchain.\n - `OnchainRejection`: The transaction is rejected\
@@ -9740,7 +10584,7 @@ components:
type: object
TransactionSourceType:
description: |
- The transaction source. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The transaction source. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
enum:
- Asset
- Org-Controlled
@@ -9755,7 +10599,7 @@ components:
type: string
TransactionCustodialAssetWalletSource:
description: |
- Information about the transaction source type `Asset`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ Information about the transaction source type `Asset`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction sources.
example:
@@ -9776,7 +10620,7 @@ components:
type: object
TransactionMPCWalletSource:
description: |
- Information about the transaction source type `Org-Controlled` and `User-Controlled`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ Information about the transaction source type `Org-Controlled` and `User-Controlled`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction sources.
properties:
@@ -9811,7 +10655,7 @@ components:
type: object
TransactionSmartContractSafeWalletSource:
description: |
- Information about the transaction source type `Safe{Wallet}`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ Information about the transaction source type `Safe{Wallet}`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction sources.
properties:
@@ -9836,7 +10680,7 @@ components:
type: object
TransactionExchangeWalletSource:
description: |
- Information about the transaction source types `Main` and `Sub`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ Information about the transaction source types `Main` and `Sub`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction sources.
properties:
@@ -9861,7 +10705,7 @@ components:
type: object
TransactionDepositFromAddressSource:
description: |
- Information about the transaction source type `DepositFromAddress`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ Information about the transaction source type `DepositFromAddress`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction sources.
properties:
@@ -9889,7 +10733,7 @@ components:
type: object
TransactionDepositFromWalletSource:
description: |
- Information about the transaction source type `DepositFromWallet`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ Information about the transaction source type `DepositFromWallet`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction sources.
properties:
@@ -9917,7 +10761,7 @@ components:
type: object
TransactionDepositFromLoopSource:
description: |
- Information about the transaction source type `DepositFromLoop`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ Information about the transaction source type `DepositFromLoop`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction sources.
properties:
@@ -9944,7 +10788,7 @@ components:
type: object
TransactionDestinationType:
description: |
- The transaction destination type. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The transaction destination type. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
enum:
- Address
- ExchangeWallet
@@ -9958,7 +10802,7 @@ components:
type: string
TransactionDepositToAddressDestination:
description: |
- Information about the transaction destination type `DepositToAddress`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ Information about the transaction destination type `DepositToAddress`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction destinations.
properties:
@@ -9999,7 +10843,7 @@ components:
type: object
TransactionDepositToWalletDestination:
description: |
- Information about the transaction destination type `DepositToWallet`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ Information about the transaction destination type `DepositToWallet`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction destinations.
properties:
@@ -10116,7 +10960,7 @@ components:
type: object
TransactionEvmContractDestination:
description: |
- Information about the transaction destination type `EVM_Contract`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ Information about the transaction destination type `EVM_Contract`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction destinations.
properties:
@@ -10146,7 +10990,7 @@ components:
type: object
TransactionMessageSignEIP191Destination:
description: |
- Information about the transaction destination type `EVM_EIP_191_Signature`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ Information about the transaction destination type `EVM_EIP_191_Signature`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction destinations.
properties:
@@ -10164,7 +11008,7 @@ components:
type: object
TransactionMessageSignEIP712Destination:
description: |
- Information about the transaction destination type `EVM_EIP_712_Signature`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ Information about the transaction destination type `EVM_EIP_712_Signature`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction destinations.
properties:
@@ -10184,7 +11028,7 @@ components:
type: object
TransactionRawMessageSignDestination:
description: |
- The information about the destination `Raw_Message_Signature`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The information about the destination `Raw_Message_Signature`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction destinations.
properties:
@@ -10200,7 +11044,7 @@ components:
type: object
TransactionTransferToAddressDestination:
description: |
- Information about the transaction destination type `Address`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ Information about the transaction destination type `Address`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction destinations.
example:
@@ -10251,7 +11095,7 @@ components:
type: object
TransactionTransferToWalletDestination:
description: |
- Information about the transaction destination type `ExchangeWallet`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ Information about the transaction destination type `ExchangeWallet`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction destinations.
properties:
@@ -10337,10 +11181,14 @@ components:
description: The raw transaction information.
example:
selected_utxos:
- - vout_n: 0
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
- - vout_n: 0
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
used_nonce: 9
properties:
@@ -10351,13 +11199,38 @@ components:
selected_utxos:
description: The selected UTXOs to be consumed in the transaction.
items:
- $ref: '#/components/schemas/TransactionUtxo'
+ $ref: '#/components/schemas/TransactionSelectedUtxo'
type: array
raw_tx:
description: The raw transaction data.
example: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
type: string
type: object
+ TransactionSelectedUtxo:
+ description: The selected UTXO information.
+ example:
+ address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
+ tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
+ properties:
+ tx_hash:
+ description: The transaction hash of the UTXO.
+ example: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ type: string
+ vout_n:
+ description: The output index of the UTXO.
+ example: 0
+ type: integer
+ address:
+ description: The address of the UTXO.
+ example: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ type: string
+ value:
+ description: The value of the UTXO.
+ example: "0.5"
+ type: string
+ type: object
TransactionUtxo:
description: The UTXO information.
example:
@@ -10602,9 +11475,166 @@ components:
- ProActiveAutoFuel
example: PassiveAutoFuel
type: string
+ TransactionApprovalDetail:
+ description: The approval detail data for transaction.
+ example:
+ approver:
+ result: Approved
+ review_threshold: 1
+ complete_time: complete_time
+ user_details:
+ - result: Approved
+ signature: signature
+ language: en
+ message: message
+ extra_message: extra_message
+ message_version: 1.0.1
+ pubkey: 96db1b3c68c3a3497bffb7e257a3900b0e86575c968a346a6696d1676fa8c5a6431b46c867134bd5fb8a9b5f787fa0c534d7c7664f1e52c432ce64326cc4cc1d
+ - result: Approved
+ signature: signature
+ language: en
+ message: message
+ extra_message: extra_message
+ message_version: 1.0.1
+ pubkey: 96db1b3c68c3a3497bffb7e257a3900b0e86575c968a346a6696d1676fa8c5a6431b46c867134bd5fb8a9b5f787fa0c534d7c7664f1e52c432ce64326cc4cc1d
+ initiator: tom@gmail.com
+ address_owner:
+ result: Approved
+ review_threshold: 1
+ complete_time: complete_time
+ user_details:
+ - result: Approved
+ signature: signature
+ language: en
+ message: message
+ extra_message: extra_message
+ message_version: 1.0.1
+ pubkey: 96db1b3c68c3a3497bffb7e257a3900b0e86575c968a346a6696d1676fa8c5a6431b46c867134bd5fb8a9b5f787fa0c534d7c7664f1e52c432ce64326cc4cc1d
+ - result: Approved
+ signature: signature
+ language: en
+ message: message
+ extra_message: extra_message
+ message_version: 1.0.1
+ pubkey: 96db1b3c68c3a3497bffb7e257a3900b0e86575c968a346a6696d1676fa8c5a6431b46c867134bd5fb8a9b5f787fa0c534d7c7664f1e52c432ce64326cc4cc1d
+ initiator: tom@gmail.com
+ spender:
+ result: Approved
+ review_threshold: 1
+ complete_time: complete_time
+ user_details:
+ - result: Approved
+ signature: signature
+ language: en
+ message: message
+ extra_message: extra_message
+ message_version: 1.0.1
+ pubkey: 96db1b3c68c3a3497bffb7e257a3900b0e86575c968a346a6696d1676fa8c5a6431b46c867134bd5fb8a9b5f787fa0c534d7c7664f1e52c432ce64326cc4cc1d
+ - result: Approved
+ signature: signature
+ language: en
+ message: message
+ extra_message: extra_message
+ message_version: 1.0.1
+ pubkey: 96db1b3c68c3a3497bffb7e257a3900b0e86575c968a346a6696d1676fa8c5a6431b46c867134bd5fb8a9b5f787fa0c534d7c7664f1e52c432ce64326cc4cc1d
+ initiator: tom@gmail.com
+ properties:
+ spender:
+ $ref: '#/components/schemas/TransactionRoleApprovalDetail'
+ approver:
+ $ref: '#/components/schemas/TransactionRoleApprovalDetail'
+ address_owner:
+ $ref: '#/components/schemas/TransactionRoleApprovalDetail'
+ type: object
+ TransactionApprovalResult:
+ description: "The transaction approval result. Possible values include: \n \
+ \ - `Approved`: The transaction is approved.\n - `Rejected`: The transaction\
+ \ is rejected. \n - `Pending`: The transaction is pending approvals.\n"
+ enum:
+ - Approved
+ - Rejected
+ - Pending
+ example: Approved
+ type: string
+ TransactionRoleApprovalDetail:
+ description: The role approval data for transaction.
+ example:
+ result: Approved
+ review_threshold: 1
+ complete_time: complete_time
+ user_details:
+ - result: Approved
+ signature: signature
+ language: en
+ message: message
+ extra_message: extra_message
+ message_version: 1.0.1
+ pubkey: 96db1b3c68c3a3497bffb7e257a3900b0e86575c968a346a6696d1676fa8c5a6431b46c867134bd5fb8a9b5f787fa0c534d7c7664f1e52c432ce64326cc4cc1d
+ - result: Approved
+ signature: signature
+ language: en
+ message: message
+ extra_message: extra_message
+ message_version: 1.0.1
+ pubkey: 96db1b3c68c3a3497bffb7e257a3900b0e86575c968a346a6696d1676fa8c5a6431b46c867134bd5fb8a9b5f787fa0c534d7c7664f1e52c432ce64326cc4cc1d
+ initiator: tom@gmail.com
+ properties:
+ result:
+ $ref: '#/components/schemas/TransactionApprovalResult'
+ review_threshold:
+ description: The threshold for passing the review of this role.
+ example: 1
+ type: integer
+ initiator:
+ description: The initiator of the transaction.
+ example: tom@gmail.com
+ type: string
+ complete_time:
+ description: Time to complete the review.
+ type: string
+ user_details:
+ items:
+ $ref: '#/components/schemas/TransactionUserApprovalDetail'
+ type: array
+ type: object
+ TransactionUserApprovalDetail:
+ description: The user approval data for transaction.
+ example:
+ result: Approved
+ signature: signature
+ language: en
+ message: message
+ extra_message: extra_message
+ message_version: 1.0.1
+ pubkey: 96db1b3c68c3a3497bffb7e257a3900b0e86575c968a346a6696d1676fa8c5a6431b46c867134bd5fb8a9b5f787fa0c534d7c7664f1e52c432ce64326cc4cc1d
+ properties:
+ pubkey:
+ description: The gaurd pubkey of the user who audited the message.
+ example: 96db1b3c68c3a3497bffb7e257a3900b0e86575c968a346a6696d1676fa8c5a6431b46c867134bd5fb8a9b5f787fa0c534d7c7664f1e52c432ce64326cc4cc1d
+ type: string
+ result:
+ $ref: '#/components/schemas/TransactionApprovalResult'
+ signature:
+ description: Signature of the audited message.
+ type: string
+ language:
+ description: The language of the audited message.
+ example: en
+ type: string
+ message_version:
+ description: Version of the audited message.
+ example: 1.0.1
+ type: string
+ message:
+ description: The audited message.
+ type: string
+ extra_message:
+ description: The extra audited message.
+ type: string
+ type: object
CustodialTransferSource:
description: |
- The information about the transaction source types `Asset` and `Web3`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The information about the transaction source types `Asset` and `Web3`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction sources.
example:
@@ -10625,7 +11655,7 @@ components:
type: object
MpcTransferSource:
description: |
- The information about the transaction source types `Org-Controlled` and `User-Controlled`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The information about the transaction source types `Org-Controlled` and `User-Controlled`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail.
@@ -10675,7 +11705,7 @@ components:
type: object
SafeTransferSource:
description: |
- The information about the transaction source type `Safe{Wallet}`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The information about the transaction source type `Safe{Wallet}`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction sources.
properties:
@@ -10720,7 +11750,7 @@ components:
- $ref: '#/components/schemas/MPCDelegate'
MPCDelegate:
description: "The information about the MPC Wallet as the Delegate. You can\
- \ call the [List Delegates](/v2/api-references/wallets--smart-contract-wallets/list-delegates)\
+ \ call the [List Delegates](https://www.cobo.com/developers/v2/api-references/wallets--smart-contract-wallets/list-delegates)\
\ operation to retrieve the applicable Delegates."
example:
wallet_id: 123e4567-e89b-12d3-a456-426614174000
@@ -10748,7 +11778,7 @@ components:
type: object
ExchangeTransferSource:
description: |
- The information about the transaction source types `Main` and `Sub`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The information about the transaction source types `Main` and `Sub`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Assets in an Exchange Wallet (Sub Account) can only be transferred to another Exchange Wallet.
@@ -10788,7 +11818,7 @@ components:
- $ref: '#/components/schemas/ExchangeTransferSource'
AddressTransferDestination:
description: |
- The information about the transaction destination type `Address`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The information about the transaction destination type `Address`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Specify either the `account_output` property or the `utxo_outputs` property. You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the `utxo_outputs` property to specify the destination addresses.
@@ -10845,7 +11875,7 @@ components:
type: object
ExchangeTransferDestination:
description: |
- The information about the transaction destination type `ExchangeWallet`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The information about the transaction destination type `ExchangeWallet`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
An Exchange Wallet (Sub Account) can only receive asset transfers from another Exchange Wallet.
@@ -10876,7 +11906,7 @@ components:
type: object
TransferDestinationType:
description: |
- The transaction destination type. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The transaction destination type. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Each destination type requires a different set of properties. Switch between the above tabs for details.
enum:
@@ -10934,7 +11964,7 @@ components:
$ref: '#/components/schemas/TransferSource'
token_id:
description: "The token ID of the transferred 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).\
+ \ IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).\
\ For transfers from Exchange Wallets, this property value represents\
\ the asset ID."
example: ETH_USDT
@@ -11019,7 +12049,7 @@ components:
$ref: '#/components/schemas/TransferSource'
token_id:
description: "The token ID of the transferred 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)."
+ \ IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: ETH_USDT
type: string
destination:
@@ -11048,7 +12078,7 @@ components:
chain_id:
description: "The chain ID of the chain on which the smart contract is deployed.\
\ You can retrieve the IDs of all the chains you can use by calling [List\
- \ enabled chains](/v2/api-references/wallets/list-enabled-chains)."
+ \ enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: ETH
type: string
source:
@@ -11066,7 +12096,7 @@ components:
type: object
BaseContractCallSource:
description: |
- The information about the transaction source type `Org-Controlled` and `User-Controlled`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The information about the transaction source type `Org-Controlled` and `User-Controlled`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction sources.
properties:
@@ -11104,13 +12134,13 @@ components:
- delegate
type: object
description: |
- The information about the transaction source type `Safe{Wallet}`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The information about the transaction source type `Safe{Wallet}`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Switch between the tabs to display the properties for different transaction sources.
title: Contract Call from Smart Contract Wallet
ContractCallSourceType:
description: |
- The type of the source. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The type of the source. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Each source type requires a different set of properties. Switch between the above tabs for details.
enum:
@@ -11131,14 +12161,14 @@ components:
- $ref: '#/components/schemas/SafeContractCallSource'
ContractCallDestinationType:
description: |
- The type of the contract format. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The type of the contract format. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
enum:
- EVM_Contract
example: EVM_Contract
type: string
EvmContractCallDestination:
description: "The information about the transaction destination. Refer to [Transaction\
- \ sources and destinations](/v2/guides/transactions/sources-and-destinations)\
+ \ sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations)\
\ for a detailed introduction about the supported sources and destinations\
\ for each transaction type."
example:
@@ -11209,7 +12239,7 @@ components:
chain_id:
description: "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)."
+ \ enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: ETH
type: string
source:
@@ -11263,7 +12293,7 @@ components:
type: object
MessageSignSourceType:
description: |
- The wallet subtype of the transaction source. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The wallet subtype of the transaction source. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
enum:
- Org-Controlled
- User-Controlled
@@ -11279,7 +12309,7 @@ components:
- $ref: '#/components/schemas/MpcMessageSignSource'
EvmEIP191MessageSignDestination:
description: "The information about the destination `EVM_EIP_191_Signature`.\
- \ Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations)\
+ \ Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations)\
\ for a detailed introduction about the supported sources and destinations\
\ for each transaction type."
example:
@@ -11300,7 +12330,7 @@ components:
type: object
EvmEIP712MessageSignDestination:
description: "The information about the destination `EVM_EIP_712_Signature`.\
- \ Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations)\
+ \ Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations)\
\ for a detailed introduction about the supported sources and destinations\
\ for each transaction type."
properties:
@@ -11320,7 +12350,7 @@ components:
type: object
RawMessageSignDestination:
description: "The information about the destination `Raw_Message_Signature`.\
- \ Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations)\
+ \ Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations)\
\ for a detailed introduction about the supported sources and destinations\
\ for each transaction type."
properties:
@@ -11336,7 +12366,7 @@ components:
type: object
MessageSignDestinationType:
description: |
- The type of the signature format. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+ The type of the signature format. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
Each signature format type requires a different set of properties. Switch between the above tabs for details.
enum:
@@ -11379,7 +12409,7 @@ components:
chain_id:
description: "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)."
+ \ enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: ETH
type: string
source:
@@ -11467,10 +12497,14 @@ components:
request_id: web_send_by_user_327_1610444045047
raw_tx_info:
selected_utxos:
- - vout_n: 0
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
- - vout_n: 0
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
used_nonce: 9
replacement:
@@ -11537,9 +12571,15 @@ components:
The data type of the event.
- `Transaction`: The transaction event data.
- `TSSRequest`: The TSS request event data.
+ - `Addresses`: The addresses event data.
+ - `WalletInfo`: The wallet information event data.
+ - `MPCVault`: The MPC vault event data.
enum:
- Transaction
- TSSRequest
+ - Addresses
+ - WalletInfo
+ - MPCVault
example: Transaction
type: string
required:
@@ -11550,10 +12590,16 @@ components:
mapping:
Transaction: '#/components/schemas/TransactionWebhookEventData'
TSSRequest: '#/components/schemas/TSSRequestWebhookEventData'
+ Addresses: '#/components/schemas/AddressesEventData'
+ WalletInfo: '#/components/schemas/WalletInfoEventData'
+ MPCVault: '#/components/schemas/MPCVaultEventData'
propertyName: data_type
oneOf:
- $ref: '#/components/schemas/TransactionWebhookEventData'
- $ref: '#/components/schemas/TSSRequestWebhookEventData'
+ - $ref: '#/components/schemas/AddressesEventData'
+ - $ref: '#/components/schemas/WalletInfoEventData'
+ - $ref: '#/components/schemas/MPCVaultEventData'
TransactionWebhookEventData:
allOf:
- $ref: '#/components/schemas/WebhookEventDataType'
@@ -11616,10 +12662,14 @@ components:
request_id: web_send_by_user_327_1610444045047
raw_tx_info:
selected_utxos:
- - vout_n: 0
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
- - vout_n: 0
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
used_nonce: 9
replacement:
@@ -11637,9 +12687,33 @@ components:
- $ref: '#/components/schemas/WebhookEventDataType'
- $ref: '#/components/schemas/TSSRequest'
title: TSS Request Event Data
+ AddressesEventData:
+ allOf:
+ - $ref: '#/components/schemas/WebhookEventDataType'
+ - properties:
+ addresses:
+ description: A list of addresses.
+ items:
+ $ref: '#/components/schemas/AddressInfo'
+ type: array
+ type: object
+ title: Addresses Event Data
+ WalletInfoEventData:
+ allOf:
+ - $ref: '#/components/schemas/WebhookEventDataType'
+ - properties:
+ wallet:
+ $ref: '#/components/schemas/WalletInfo'
+ type: object
+ title: Wallet Event Data
+ MPCVaultEventData:
+ allOf:
+ - $ref: '#/components/schemas/WebhookEventDataType'
+ - $ref: '#/components/schemas/MPCVault'
+ title: MPC Vault Event Data
WebhookEventType:
description: "The event type. To learn the trigger condition of each event type,\
- \ refer to [Webhook event types and event data](/v2/guides/webhooks-callbacks/webhook-event-type)."
+ \ refer to [Webhook event types and event data](https://www.cobo.com/developers/v2/guides/webhooks-callbacks/webhook-event-type)."
enum:
- wallets.transaction.created
- wallets.transaction.updated
@@ -11649,6 +12723,9 @@ components:
- wallets.mpc.tss_request.updated
- wallets.mpc.tss_request.failed
- wallets.mpc.tss_request.succeeded
+ - wallets.addresses.created
+ - wallets.created
+ - mpc_vaults.created
example: wallets.transaction.created
type: string
WebhookEventStatus:
@@ -11728,10 +12805,14 @@ components:
request_id: web_send_by_user_327_1610444045047
raw_tx_info:
selected_utxos:
- - vout_n: 0
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
- - vout_n: 0
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
used_nonce: 9
replacement:
@@ -11932,7 +13013,7 @@ components:
Whether to automatically broadcast the transaction. The default value is `true`.
- `true`: Automatically broadcast the transaction.
- - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself.
+ - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](https://www.cobo.com/developers/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](https://www.cobo.com/developers/v2/api-references/transactions/get-transaction-information) and broadcast it yourself.
example: false
type: boolean
required:
@@ -11994,6 +13075,7 @@ components:
fee_amount: "0.1"
token_id: TRON
fee_type: EVM_EIP_1559
+ core_btc_staking_address: bc1qcqj9k34vrvgmmvt85ym2ua79k2d22vcfxmuratakfm78chdqksnq5agezk
pool_type: Babylon
properties:
pool_type:
@@ -12008,6 +13090,11 @@ components:
items:
type: string
type: array
+ core_btc_staking_address:
+ description: P2WSH address generated for this staking operation(If the estimated
+ fee is for core BTC staking).
+ example: bc1qcqj9k34vrvgmmvt85ym2ua79k2d22vcfxmuratakfm78chdqksnq5agezk
+ type: string
title: Ethereum Staking Fee
type: object
EthStakeExtra:
@@ -12080,6 +13167,7 @@ components:
pos_chain: Babylon Chain
unlock_timestamp: 1640995200000
pool_type: Babylon
+ title: Babylon
EthStakingExtra:
allOf:
- $ref: '#/components/schemas/BaseStakeExtra'
@@ -12097,6 +13185,7 @@ components:
required:
- pos_chain
type: object
+ title: Ethereum Beacon Chain
CoreStakingExtra:
allOf:
- $ref: '#/components/schemas/BaseStakeExtra'
@@ -12130,30 +13219,116 @@ components:
- timelock
- validator_address
type: object
+ title: CoreBTC
EigenLayerLstStakeExtra:
allOf:
- $ref: '#/components/schemas/BaseStakeExtra'
- - description: The stake extra of LST on Eigenlayer.
+ - description: The stake extra of LST on Eigenlayer.
+ properties:
+ operator:
+ description: The operator's address.
+ example: 0xdAC17F958D2ee523a2206206994597C13D831ec7
+ type: string
+ required:
+ - id
+ type: object
+ EigenLayerNativeStakeExtra:
+ allOf:
+ - $ref: '#/components/schemas/BaseStakeExtra'
+ - description: The stake extra of eigen layer native ETH.
+ properties:
+ fee_recipient:
+ description: "The fee recipient address, if not provided the staker address\
+ \ will be used."
+ example: 30
+ format: int32
+ type: number
+ type: object
+ BabylonStakingActivityDetailExtra:
+ allOf:
+ - $ref: '#/components/schemas/BaseStakeExtra'
+ - description: The staking information specific to the Babylon protocol.
+ properties:
+ finality_provider_public_key:
+ description: The public key of the finality provider.
+ example: eca1b104dce16c30705f4147a9c4a373ac88646c5d1bcda6a89c018940cb96a0
+ pattern: "^[0-9a-fA-F]{64}$"
+ type: string
+ stake_block_time:
+ description: The number of blocks that need to be processed before the
+ locked tokens are unlocked and become accessible.
+ example: 2000
+ format: int64
+ type: integer
+ auto_broadcast:
+ description: |
+ Whether to automatically broadcast the transaction.
+
+ - `true`: Automatically broadcast the transaction.
+ - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself.
+ example: false
+ type: boolean
+ param_version:
+ description: The version of babylon global parameters.
+ example: 2
+ format: int64
+ type: integer
+ withdraw_from_type:
+ $ref: '#/components/schemas/ActivityType'
+ type: object
+ example:
+ param_version: 2
+ finality_provider_public_key: eca1b104dce16c30705f4147a9c4a373ac88646c5d1bcda6a89c018940cb96a0
+ stake_block_time: 2000
+ auto_broadcast: false
+ withdraw_from_type: Stake
+ pool_type: Babylon
+ title: Babylon
+ EthStakingActivityDetailExtra:
+ allOf:
+ - $ref: '#/components/schemas/BaseStakeExtra'
+ - description: The staking information specific to the Ethereum Beacon Chain.
properties:
- operator:
- description: The operator's address.
- example: 0xdAC17F958D2ee523a2206206994597C13D831ec7
+ provider_name:
+ description: The name of the provider.
+ example: Stakefish
type: string
- required:
- - id
+ validator_pubkeys:
+ description: A list of public keys identifying the validators to unstake
+ from the Ethereum Beacon Chain.
+ example:
+ - 0x1234567890987654321012345678909876543210
+ - 0x1234567890987654321012345678909876543210
+ items:
+ type: string
+ type: array
type: object
- EigenLayerNativeStakeExtra:
+ title: Ethereum Beacon Chain
+ CoreStakingActivityDetailExtra:
allOf:
- $ref: '#/components/schemas/BaseStakeExtra'
- - description: The stake extra of eigen layer native ETH.
+ - description: The staking information specific to the CoreBTC staking protocol.
properties:
- fee_recipient:
- description: "The fee recipient address, if not provided the staker address\
- \ will be used."
- example: 30
- format: int32
- type: number
+ timelock:
+ description: The Unix timestamp (in seconds) when the staking position
+ will be unlocked and available for withdrawal.
+ example: 1704067200
+ type: integer
+ change_address:
+ description: "The change bitcoin address. If not provided, the source\
+ \ wallet's address will be used as the change address."
+ example: bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh
+ type: string
+ validator_address:
+ description: The validator evm address.
+ example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
+ type: string
+ reward_address:
+ description: The reward evm address.
+ example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
+ type: string
type: object
+ title: CoreBTC
Activity:
description: The staking activity.
example:
@@ -12171,6 +13346,16 @@ components:
wallet_id: 0111039d-27fb-49ba-b172-6e0aa80e37ec
token_id: BTC
updated_timestamp: 1640995200000
+ extra:
+ param_version: 2
+ finality_provider_public_key: eca1b104dce16c30705f4147a9c4a373ac88646c5d1bcda6a89c018940cb96a0
+ stake_block_time: 2000
+ auto_broadcast: false
+ withdraw_from_type: Stake
+ pool_type: Babylon
+ request_ids:
+ - f47ac10b-58cc-4372-a567-0e02b2c3d479
+ - f47ac10b-58cc-4372-a567-0e02b2c3d479
timeline:
- transaction_id: aff0e1cb-15b2-4e1f-9b9d-a9133715986f
action: Submitted
@@ -12217,6 +13402,12 @@ components:
description: The ID of the corresponding staking position.
example: 0011039d-27fb-49ba-b172-6e0aa80e37ec
type: string
+ request_ids:
+ description: The request IDs of the corresponding transactions of the activity.
+ items:
+ example: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ type: string
+ type: array
amount:
description: The staking amount.
example: "100.00"
@@ -12236,6 +13427,8 @@ components:
$ref: '#/components/schemas/TransactionRequestFee'
status:
$ref: '#/components/schemas/ActivityStatus'
+ extra:
+ $ref: '#/components/schemas/Activity_extra'
created_timestamp:
description: The time when the activity was created.
example: 1640995200000
@@ -12265,6 +13458,12 @@ components:
- `ClaimRewards`: Claim the rewards from the validator.
- `ActivateValidator`: Activate the validator to start staking.
- `UnstakeETH`: Unstake ETH from the validator.
+ - `ApproveUSDC`: Approve the USDC token to be used for staking.
+ - `ConvertToUSDS`: Convert the USDC token to the USDS token.
+ - `ApproveUSDS`: Approve the USDS token to be used for staking.
+ - `DepositUSDS`: Deposit the USDS token to the validator.
+ - `WithdrawUSDS`: Withdraw the USDS token from the validator.
+ - `ConvertToUSDC`: Convert the USDS token to the USDC token.
enum:
- Submitted
- BTCConfirmation
@@ -12273,6 +13472,12 @@ components:
- ClaimRewards
- ActivateValidator
- UnstakeETH
+ - ApproveUSDC
+ - ConvertToUSDS
+ - ApproveUSDS
+ - DepositUSDS
+ - WithdrawUSDS
+ - ConvertToUSDC
example: Submitted
type: string
ActivityTimeline:
@@ -12343,7 +13548,6 @@ components:
required:
- address
- amount
- - extra
- fee
- pool_id
- wallet_id
@@ -12401,7 +13605,7 @@ components:
type: string
staking_id:
description: "The ID of the staking position. You can retrieve a list of\
- \ staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions)."
+ \ staking positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
type: string
fee:
@@ -12810,6 +14014,7 @@ components:
- Babylon
- ETHBeacon
- CoreBTC
+ - SkyFarm
example: Babylon
type: string
StakingPoolId:
@@ -12823,6 +14028,7 @@ components:
- beacon_eth_holesky
- core_btc
- core_xtn
+ - sky_farm_eth_usdc
example: babylon_btc_signet
type: string
BaseEstimateStakingFee:
@@ -12853,7 +14059,7 @@ components:
- properties:
staking_id:
description: "The ID of the staking position. You can retrieve a list\
- \ of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions)."
+ \ of staking positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions)."
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
type: string
fee:
@@ -12919,6 +14125,303 @@ components:
- label
- org_id
type: object
+ TravelRuleDepositExchangesOrVASP:
+ description: Required fields for `EXCHANGES_OR_VASP`.
+ example:
+ vendor_code: NB
+ vendor_vasp_name: Others vendor
+ entity_info:
+ place_of_incorporation: "City, Country"
+ selected_entity_type: LEGAL
+ date_of_incorporation: 2010-05-20
+ legal_name: Company ABC Ltd.
+ vendor_vasp_id: did:ethr:0x45fca8109a8d2ce93e37f79f0acbb16f4a91f4c5
+ destination_wallet_type: EXCHANGES_OR_VASP
+ properties:
+ destination_wallet_type:
+ $ref: '#/components/schemas/DestinationWalletType'
+ vendor_code:
+ description: The vendor code for exchanges or VASPs.
+ example: NB
+ type: string
+ vendor_vasp_id:
+ description: The unique identifier of the VASP.
+ example: did:ethr:0x45fca8109a8d2ce93e37f79f0acbb16f4a91f4c5
+ type: string
+ vendor_vasp_name:
+ description: The vendor name to be provided when selecting "Others" as the
+ VASP case. This field allows customers to specify the name of a vendor
+ not listed.
+ example: Others vendor
+ type: string
+ entity_info:
+ $ref: '#/components/schemas/TravelRuleDepositExchangesOrVASP_entity_info'
+ required:
+ - destination_wallet_type
+ - entity_info
+ - vendor_code
+ - vendor_vasp_id
+ type: object
+ TravelRuleDepositLegalEntity:
+ description: Required fields for LEGAL entities.
+ example:
+ place_of_incorporation: "City, Country"
+ selected_entity_type: LEGAL
+ date_of_incorporation: 2010-05-20
+ legal_name: Company ABC Ltd.
+ properties:
+ selected_entity_type:
+ description: Specifies the type of entity associated with the transaction.
+ enum:
+ - LEGAL
+ - NATURAL
+ example: LEGAL
+ type: string
+ legal_name:
+ description: The legal name of the entity.
+ example: Company ABC Ltd.
+ type: string
+ date_of_incorporation:
+ description: |
+ The incorporation date of the entity. This field is required when:
+ - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`.
+ - **Entity Type**: LEGAL.
+ Otherwise, this field can be omitted.
+ example: 2010-05-20
+ format: date
+ type: string
+ place_of_incorporation:
+ description: |
+ The place of incorporation of the entity. This field is required when:
+ - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`.
+ - **Entity Type**: LEGAL.
+ Otherwise, this field can be omitted.
+ example: "City, Country"
+ type: string
+ required:
+ - legal_name
+ - selected_entity_type
+ type: object
+ TravelRuleDepositNaturalEntity:
+ description: Required fields for NATURAL entities.
+ properties:
+ selected_entity_type:
+ description: Specifies the type of entity associated with the transaction.
+ enum:
+ - LEGAL
+ - NATURAL
+ example: NATURAL
+ type: string
+ first_name:
+ description: The first name of the user.
+ example: John
+ type: string
+ last_name:
+ description: The last name of the user.
+ example: Doe
+ type: string
+ date_of_birth:
+ description: |
+ The date of birth of the user. This field is required when:
+ - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`.
+ - **Entity Type**: NATURAL.
+ Otherwise, this field can be omitted.
+ example: 1980-01-01
+ format: date
+ type: string
+ place_of_birth:
+ description: |
+ The place of birth of the user. This field is required when:
+ - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`.
+ - **Entity Type**: NATURAL.
+ Otherwise, this field can be omitted.
+ example: "City, Country"
+ type: string
+ required:
+ - first_name
+ - last_name
+ - selected_entity_type
+ type: object
+ TravelRuleDepositRequest:
+ example:
+ transaction_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ travel_rule_info:
+ vendor_code: NB
+ vendor_vasp_name: Others vendor
+ entity_info:
+ place_of_incorporation: "City, Country"
+ selected_entity_type: LEGAL
+ date_of_incorporation: 2010-05-20
+ legal_name: Company ABC Ltd.
+ vendor_vasp_id: did:ethr:0x45fca8109a8d2ce93e37f79f0acbb16f4a91f4c5
+ destination_wallet_type: EXCHANGES_OR_VASP
+ properties:
+ transaction_id:
+ description: The transaction ID.
+ example: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ type: string
+ travel_rule_info:
+ $ref: '#/components/schemas/TravelRuleDepositRequest_travel_rule_info'
+ required:
+ - transaction_id
+ - travel_rule_info
+ type: object
+ SelfCustodyWallet:
+ description: Required fields for `SELF_CUSTODY_WALLET`.
+ example:
+ self_custody_wallet_address: 0x1234567890abcdef1234567890abcdef12345678
+ self_custody_wallet_challenge: challenge_token_abc123
+ self_custody_wallet_sign: 0xf0a0ca69dd3afc57235c72aba3ff1f1144ee5409aeec013a9b17cdb58d0185a66a525945bfbd66e87bf0503eb0b83bf90cb973a8cbb730d19dc032e00dfe393a1c
+ destination_wallet_type: EXCHANGES_OR_VASP
+ properties:
+ destination_wallet_type:
+ $ref: '#/components/schemas/DestinationWalletType'
+ self_custody_wallet_challenge:
+ description: The challenge obtained from a previous operation.
+ example: challenge_token_abc123
+ type: string
+ self_custody_wallet_address:
+ description: The address of the self-custodial wallet.
+ example: 0x1234567890abcdef1234567890abcdef12345678
+ type: string
+ self_custody_wallet_sign:
+ description: The signed message from the self-custodial wallet.
+ example: 0xf0a0ca69dd3afc57235c72aba3ff1f1144ee5409aeec013a9b17cdb58d0185a66a525945bfbd66e87bf0503eb0b83bf90cb973a8cbb730d19dc032e00dfe393a1c
+ type: string
+ required:
+ - destination_wallet_type
+ - self_custody_wallet_address
+ - self_custody_wallet_challenge
+ - self_custody_wallet_sign
+ type: object
+ DestinationWalletType:
+ description: The type of the destination wallet.
+ enum:
+ - EXCHANGES_OR_VASP
+ - SELF_CUSTODY_WALLET
+ example: EXCHANGES_OR_VASP
+ type: string
+ SelectedEntityType:
+ description: Specifies the type of entity. This must be `LEGAL`.
+ enum:
+ - LEGAL
+ - NATURAL
+ example: LEGAL
+ type: string
+ Vasp:
+ description: The information of an vasp.
+ example:
+ vendor_code: NB
+ name: ManyAges
+ vendor_vasp_id: did:ethr:0x34414c8d5c8ed6f242aa6558ecb500283bab10f4
+ properties:
+ name:
+ description: The name of the vasp.
+ example: ManyAges
+ format: name
+ type: string
+ vendor_code:
+ description: The symbol.
+ example: NB
+ type: string
+ vendor_vasp_id:
+ description: The vasp str id.
+ example: did:ethr:0x34414c8d5c8ed6f242aa6558ecb500283bab10f4
+ type: string
+ required:
+ - name
+ - vendor_code
+ - vendor_vasp_id
+ type: object
+ TravelRuleWithdrawExchangesOrVASP:
+ description: Required fields for `EXCHANGES_OR_VASP`.
+ properties:
+ destination_wallet_type:
+ $ref: '#/components/schemas/DestinationWalletType'
+ vendor_code:
+ description: The vendor code for exchanges or VASPs.
+ example: NB
+ type: string
+ vendor_vasp_id:
+ description: The unique identifier of the VASP.
+ example: did:ethr:0x45fca8109a8d2ce93e37f79f0acbb16f4a91f4c5
+ type: string
+ entity_info:
+ $ref: '#/components/schemas/TravelRuleWithdrawExchangesOrVASP_entity_info'
+ required:
+ - destination_wallet_type
+ - entity_info
+ - vendor_code
+ - vendor_vasp_id
+ type: object
+ TravelRuleWithdrawLegalEntity:
+ description: Required fields for LEGAL entities.
+ properties:
+ selected_entity_type:
+ $ref: '#/components/schemas/SelectedEntityType'
+ legal_name:
+ description: The legal name of the entity.
+ example: Company ABC Ltd.
+ type: string
+ date_of_incorporation:
+ description: The incorporation date of the entity.
+ example: 2010-05-20
+ format: date
+ type: string
+ place_of_incorporation:
+ description: The place of incorporation of the entity.
+ example: "City, Country"
+ type: string
+ required:
+ - legal_name
+ - selected_entity_type
+ type: object
+ TravelRuleWithdrawNaturalEntity:
+ description: Required fields for NATURAL entities.
+ properties:
+ selected_entity_type:
+ $ref: '#/components/schemas/SelectedEntityType'
+ first_name:
+ description: The first name of the user.
+ example: John
+ type: string
+ last_name:
+ description: The last name of the user.
+ example: Doe
+ type: string
+ date_of_birth:
+ description: The date of birth of the user.
+ example: 1980-01-01
+ format: date
+ type: string
+ place_of_birth:
+ description: The place of birth of the user.
+ example: "City, Country"
+ type: string
+ required:
+ - first_name
+ - last_name
+ - selected_entity_type
+ type: object
+ TravelRuleWithdrawRequest:
+ example:
+ transaction_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ travel_rule_info:
+ self_custody_wallet_address: 0x1234567890abcdef1234567890abcdef12345678
+ self_custody_wallet_challenge: challenge_token_abc123
+ self_custody_wallet_sign: 0xf0a0ca69dd3afc57235c72aba3ff1f1144ee5409aeec013a9b17cdb58d0185a66a525945bfbd66e87bf0503eb0b83bf90cb973a8cbb730d19dc032e00dfe393a1c
+ destination_wallet_type: EXCHANGES_OR_VASP
+ properties:
+ transaction_id:
+ description: The transaction ID.
+ example: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ type: string
+ travel_rule_info:
+ $ref: '#/components/schemas/TravelRuleWithdrawRequest_travel_rule_info'
+ required:
+ - transaction_id
+ - travel_rule_info
+ type: object
ApiLogSummary:
description: The information about an API log.
properties:
@@ -12982,7 +14485,7 @@ components:
type: integer
api_key:
description: "The API key used to call the API. For more details, refer\
- \ to [API key](/v2/guides/overview/cobo-auth#api-key)."
+ \ to [API key](https://www.cobo.com/developers/v2/guides/overview/cobo-auth#api-key)."
example: 8926ce37029ed650eb7aee66999658cad2653dbc2dbc758c04fc4dc937b47f25
type: string
response_body:
@@ -13101,6 +14604,237 @@ components:
type: string
type: array
type: object
+ CallbackMessage:
+ description: The information about a callback message.
+ example:
+ transaction_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ result: ok
+ wallet_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ data:
+ is_loop: false
+ chain_id: ETH
+ confirmed_num: 12
+ fee:
+ effective_gas_price: "100000000"
+ max_priority_fee_per_gas: "1000000000000"
+ gas_limit: "21000"
+ token_id: ETH
+ gas_used: "100000000"
+ max_fee_per_gas: "9000000000000"
+ fee_type: EVM_EIP_1559
+ fee_used: "0.1"
+ initiator: "API Prod Key #1"
+ destination:
+ account_output:
+ amount: "1.5"
+ address: 19AR6YWEGbSoY8UT9Ksy9WrmrZPD5sL4Ku
+ memo: "82840924"
+ destination_type: Address
+ change_address: 19AR6YWEGbSoY8UT9Ksy9WrmrZPD5sDEMO
+ utxo_outputs:
+ - amount: "1.5"
+ address: 19AR6YWEGbSoY8UT9Ksy9WrmrZPD5sDEMO
+ - amount: "1.5"
+ address: 19AR6YWEGbSoY8UT9Ksy9WrmrZPD5sDEMO
+ force_internal: false
+ force_external: false
+ description: withdrawal to exchange trading account
+ block_info:
+ block_timestamp: 1717740319
+ block_number: 123
+ block_hash: 0xc9ee947f8bb6027c161888bf0d004bec05e7c2beec7e6b187dc512174e438735
+ asset_id: USDT
+ source:
+ wallet_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ source_type: DepositFromAddress
+ confirming_threshold: 15
+ type: Deposit
+ result:
+ result_type: Address
+ signature: 0x6a8d82c2b080c18e7c1d187a95b3d9b0b9b20454d5e1d784b8a4625d16772d3f
+ token_id: ETH_USDT
+ updated_timestamp: 1610445878970
+ transaction_hash: 239861be9a4afe080c359b7fe4a1d035945ec46256b1a0f44d1267c71de8ec28
+ transaction_id: aff0e1cb-15b2-4e1f-9b9d-a9133715986f
+ sub_status: PendingDoubleCheck
+ cobo_id: "20231213122855000000000000000000"
+ created_timestamp: 1610445878970
+ initiator_type: API
+ wallet_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ category:
+ - Payment
+ - Payment
+ request_id: web_send_by_user_327_1610444045047
+ raw_tx_info:
+ selected_utxos:
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
+ tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
+ tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
+ raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
+ used_nonce: 9
+ replacement:
+ replaced_transaction_hash: 239861be9a4afe080c359b7fe4a1d035945ec46256b1a0f44d1267c71de8ec28
+ replaced_transaction_id: aff0e1cb-15b2-4e1f-9b9d-a9133715986f
+ replaced_by_transaction_id: aff0e1cb-15b2-4e1f-9b9d-a9133715986f
+ replaced_by_type: Resend
+ replaced_by_transaction_hash: 239861be9a4afe080c359b7fe4a1d035945ec46256b1a0f44d1267c71de8ec28
+ replaced_type: Resend
+ failed_reason: Rejected by signer Cobo TSS
+ status: Submitted
+ updated_timestamp: 1640918000000
+ created_timestamp: 1640918000000
+ id: 00000000-0000-0000-0000-000000000000
+ request_id: "1734602498819"
+ url: https://example.com/withdraw_callback
+ status: Approved
+ properties:
+ id:
+ description: The callback message ID.
+ example: 00000000-0000-0000-0000-000000000000
+ format: uuid
+ type: string
+ created_timestamp:
+ description: "The time when the callback message was created, in Unix timestamp\
+ \ format, measured in milliseconds."
+ example: 1640918000000
+ format: int64
+ type: integer
+ updated_timestamp:
+ description: "The time when the callback message was updated, in Unix timestamp\
+ \ format, measured in milliseconds."
+ example: 1640918000000
+ format: int64
+ type: integer
+ request_id:
+ description: The request ID of the transaction.
+ example: "1734602498819"
+ type: string
+ transaction_id:
+ description: The transaction ID.
+ example: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ type: string
+ wallet_id:
+ description: The wallet ID.
+ example: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ type: string
+ url:
+ description: The callback endpoint URL.
+ example: https://example.com/withdraw_callback
+ type: string
+ data:
+ $ref: '#/components/schemas/Transaction'
+ status:
+ description: |
+ The callback message status. Possible values include `Denied`, `Approved`, and `Failed`.
+ enum:
+ - Denied
+ - Approved
+ - Failed
+ example: Approved
+ type: string
+ result:
+ description: |
+ The callback message result. Possible values include `ok` and `deny`.
+ enum:
+ - ok
+ - deny
+ example: ok
+ type: string
+ required:
+ - created_timestamp
+ - data
+ - id
+ - request_id
+ - status
+ - transaction_id
+ - updated_timestamp
+ - url
+ type: object
+ SwapActivity:
+ properties:
+ activity_id:
+ description: The unique identifier of the swap activity.
+ example: 123e4567-e89b-12d3-a456-426614174000
+ format: uuid
+ type: string
+ status:
+ description: The status of the swap activity.
+ example: Success
+ type: string
+ wallet_id:
+ description: The unique identifier of the wallet.
+ example: 123e4567-e89b-12d3-a456-426614174001
+ format: uuid
+ type: string
+ pay_token_id:
+ description: The token symbol to swap from.
+ example: ETH
+ type: string
+ receive_token_id:
+ description: The token symbol to swap to.
+ example: USDT
+ type: string
+ pay_amount:
+ description: The amount of tokens to bridge.
+ example: "1.5"
+ type: string
+ receive_amount:
+ description: The amount of tokens to receive.
+ example: "2000"
+ type: string
+ fee_amount:
+ description: The amount of fee.
+ example: "0.005"
+ type: string
+ initiator:
+ description: The initiator of the swap activity.
+ example: John Doe
+ nullable: true
+ type: string
+ initiator_type:
+ $ref: '#/components/schemas/TransactionInitiatorType'
+ created_timestamp:
+ description: "The time when the swap activity was created, in Unix timestamp\
+ \ format, measured in milliseconds."
+ example: 1677587333000
+ type: integer
+ updated_timestamp:
+ description: "The time when the swap activity was last updated, in Unix\
+ \ timestamp format, measured in milliseconds."
+ example: 1677587393000
+ type: integer
+ type: object
+ SwapTokenPair:
+ properties:
+ pay_token_id:
+ description: The source token symbol.
+ example: ETH
+ type: string
+ receive_token_id:
+ description: The target token symbol.
+ example: USDT
+ type: string
+ type: object
+ SwapSummary:
+ properties:
+ total_usd_value:
+ description: "The total USD value of the swap activities, represented as\
+ \ a string."
+ example: "12345.67"
+ type: string
+ activity_count:
+ description: The total number of swap activities.
+ example: 100
+ type: integer
+ required:
+ - activity_count
+ - total_usd_value
+ type: object
list_supported_chains_200_response:
example:
pagination:
@@ -13248,7 +14982,7 @@ components:
token_id:
description: "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)."
+ \ enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens)."
example: BTC
type: string
tx_hash:
@@ -13292,7 +15026,7 @@ components:
total_count: 10000
after: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
data:
- - path: m/44'/60'/0'/0
+ - path: m/44/0/2/0/0
address: 0x0000000000000000000000000000000000000000
chain_id: ETH
x_only_pubkey: 0x165ed2f04462ec0d3d44dc8690fa9000903b5a96f14ad7f233c21ff748a17b54
@@ -13300,8 +15034,9 @@ components:
taproot_internal_address: 3HYV6ta67197syD1ZVFganpmL2wLz4RyoC
taproot_script_tree_hash: 0x138fdd0f6c3803d45553e730c25924baf7be741b8a72a4e6fdbd9d44cb19f85b
encoding: ENCODING_P2PKH
- pubkey: xpub661MyMwAqRbcG4vPNi58VQJrXW8D9VzmauuRq2rTY3oUVnKGuLTxQxvvoEXgLvZ7N9GQXQkWVgKn1rzEUUEm4NdvrBKUqjpNJEnn2UL4rYq
- - path: m/44'/60'/0'/0
+ root_pubkey: xpub661MyMwAqRbcG4vPNi58VQJrXW8D9VzmauuRq2rTY3oUVnKGuLTxQxvvoEXgLvZ7N9GQXQkWVgKn1rzEUUEm4NdvrBKUqjpNJEnn2UL4rYq
+ pubkey: xpub6HFaEKt4XdwgEQrQmWr8AEAZ7XBSGh7QYFspwdE86sJn6PjkqsPwVQc2poriBdizqXnTB3UWurJJAZpFnD2DAp9vFTmM2gQ264AArYtFWLH
+ - path: m/44/0/2/0/0
address: 0x0000000000000000000000000000000000000000
chain_id: ETH
x_only_pubkey: 0x165ed2f04462ec0d3d44dc8690fa9000903b5a96f14ad7f233c21ff748a17b54
@@ -13309,7 +15044,8 @@ components:
taproot_internal_address: 3HYV6ta67197syD1ZVFganpmL2wLz4RyoC
taproot_script_tree_hash: 0x138fdd0f6c3803d45553e730c25924baf7be741b8a72a4e6fdbd9d44cb19f85b
encoding: ENCODING_P2PKH
- pubkey: xpub661MyMwAqRbcG4vPNi58VQJrXW8D9VzmauuRq2rTY3oUVnKGuLTxQxvvoEXgLvZ7N9GQXQkWVgKn1rzEUUEm4NdvrBKUqjpNJEnn2UL4rYq
+ root_pubkey: xpub661MyMwAqRbcG4vPNi58VQJrXW8D9VzmauuRq2rTY3oUVnKGuLTxQxvvoEXgLvZ7N9GQXQkWVgKn1rzEUUEm4NdvrBKUqjpNJEnn2UL4rYq
+ pubkey: xpub6HFaEKt4XdwgEQrQmWr8AEAZ7XBSGh7QYFspwdE86sJn6PjkqsPwVQc2poriBdizqXnTB3UWurJJAZpFnD2DAp9vFTmM2gQ264AArYtFWLH
properties:
data:
items:
@@ -13323,7 +15059,7 @@ components:
chain_id:
description: "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)."
+ \ enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains)."
example: ETH
type: string
count:
@@ -13523,7 +15259,7 @@ components:
properties:
project_id:
description: |
- The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
+ The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
**Notes:**
1. If you set `vault_type` to `OrgControlled`, the value of `project_id` will be ignored.
@@ -13905,10 +15641,14 @@ components:
request_id: web_send_by_user_327_1610444045047
raw_tx_info:
selected_utxos:
- - vout_n: 0
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
- - vout_n: 0
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
used_nonce: 9
replacement:
@@ -13976,10 +15716,14 @@ components:
request_id: web_send_by_user_327_1610444045047
raw_tx_info:
selected_utxos:
- - vout_n: 0
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
- - vout_n: 0
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
used_nonce: 9
replacement:
@@ -14004,7 +15748,7 @@ components:
transaction_ids:
description: "The transaction IDs of the signed transactions to be broadcast.\
\ You can retrieve the transactions corresponding to a staking activity\
- \ by calling [Get staking activity details](/v2/api-references/stakings/get-staking-activity-details)."
+ \ by calling [Get staking activity details](https://www.cobo.com/developers/v2/api-references/stakings/get-staking-activity-details)."
items:
example: f47ac10b-58cc-4372-a567-0e02b2c3d479
type: string
@@ -14167,7 +15911,7 @@ components:
type: string
subscribed_events:
description: |
- The event types you want to subscribe to for this webhook endpoint. You can call [Get webhook event types](/v2/api-references/developers--webhooks/get-webhook-event-types) to retrieve all available event types.
+ The event types you want to subscribe to for this webhook endpoint. You can call [Get webhook event types](https://www.cobo.com/developers/v2/api-references/developers--webhooks/get-webhook-event-types) to retrieve all available event types.
items:
$ref: '#/components/schemas/WebhookEventType'
type: array
@@ -14183,7 +15927,7 @@ components:
properties:
subscribed_events:
description: "The new event types you want to subscribe to for this webhook\
- \ endpoint. You can call [Get webhook event types](/v2/api-references/developers--webhooks/get-webhook-event-types)\
+ \ endpoint. You can call [Get webhook event types](https://www.cobo.com/developers/v2/api-references/developers--webhooks/get-webhook-event-types)\
\ to retrieve all available event types."
items:
$ref: '#/components/schemas/WebhookEventType'
@@ -14223,7 +15967,7 @@ components:
\ fields must match the webhook event data structure, depending on the\
\ specified event type. For a complete introduction of the webhook event\
\ data structure, refer to the `data.data` property in the response of\
- \ [List all webhook events](/v2/api-references/developers--webhooks/list-all-webhook-events).\n\
+ \ [List all webhook events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-webhook-events).\n\
\nIf this property is not provided, a default payload will be returned.\n"
example:
chain_id: ETH
@@ -14312,10 +16056,14 @@ components:
request_id: web_send_by_user_327_1610444045047
raw_tx_info:
selected_utxos:
- - vout_n: 0
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
- - vout_n: 0
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
used_nonce: 9
replacement:
@@ -14392,10 +16140,14 @@ components:
request_id: web_send_by_user_327_1610444045047
raw_tx_info:
selected_utxos:
- - vout_n: 0
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
- - vout_n: 0
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
used_nonce: 9
replacement:
@@ -14488,10 +16240,14 @@ components:
request_id: web_send_by_user_327_1610444045047
raw_tx_info:
selected_utxos:
- - vout_n: 0
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
- - vout_n: 0
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
used_nonce: 9
replacement:
@@ -14577,10 +16333,14 @@ components:
request_id: web_send_by_user_327_1610444045047
raw_tx_info:
selected_utxos:
- - vout_n: 0
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
- - vout_n: 0
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
used_nonce: 9
replacement:
@@ -14808,6 +16568,16 @@ components:
wallet_id: 0111039d-27fb-49ba-b172-6e0aa80e37ec
token_id: BTC
updated_timestamp: 1640995200000
+ extra:
+ param_version: 2
+ finality_provider_public_key: eca1b104dce16c30705f4147a9c4a373ac88646c5d1bcda6a89c018940cb96a0
+ stake_block_time: 2000
+ auto_broadcast: false
+ withdraw_from_type: Stake
+ pool_type: Babylon
+ request_ids:
+ - f47ac10b-58cc-4372-a567-0e02b2c3d479
+ - f47ac10b-58cc-4372-a567-0e02b2c3d479
timeline:
- transaction_id: aff0e1cb-15b2-4e1f-9b9d-a9133715986f
action: Submitted
@@ -14837,6 +16607,16 @@ components:
wallet_id: 0111039d-27fb-49ba-b172-6e0aa80e37ec
token_id: BTC
updated_timestamp: 1640995200000
+ extra:
+ param_version: 2
+ finality_provider_public_key: eca1b104dce16c30705f4147a9c4a373ac88646c5d1bcda6a89c018940cb96a0
+ stake_block_time: 2000
+ auto_broadcast: false
+ withdraw_from_type: Stake
+ pool_type: Babylon
+ request_ids:
+ - f47ac10b-58cc-4372-a567-0e02b2c3d479
+ - f47ac10b-58cc-4372-a567-0e02b2c3d479
timeline:
- transaction_id: aff0e1cb-15b2-4e1f-9b9d-a9133715986f
action: Submitted
@@ -14970,6 +16750,206 @@ components:
- name
- updated_timestamp
type: object
+ list_callback_messages_200_response:
+ example:
+ pagination:
+ before: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1
+ total_count: 10000
+ after: RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk
+ data:
+ - transaction_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ result: ok
+ wallet_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ data:
+ is_loop: false
+ chain_id: ETH
+ confirmed_num: 12
+ fee:
+ effective_gas_price: "100000000"
+ max_priority_fee_per_gas: "1000000000000"
+ gas_limit: "21000"
+ token_id: ETH
+ gas_used: "100000000"
+ max_fee_per_gas: "9000000000000"
+ fee_type: EVM_EIP_1559
+ fee_used: "0.1"
+ initiator: "API Prod Key #1"
+ destination:
+ account_output:
+ amount: "1.5"
+ address: 19AR6YWEGbSoY8UT9Ksy9WrmrZPD5sL4Ku
+ memo: "82840924"
+ destination_type: Address
+ change_address: 19AR6YWEGbSoY8UT9Ksy9WrmrZPD5sDEMO
+ utxo_outputs:
+ - amount: "1.5"
+ address: 19AR6YWEGbSoY8UT9Ksy9WrmrZPD5sDEMO
+ - amount: "1.5"
+ address: 19AR6YWEGbSoY8UT9Ksy9WrmrZPD5sDEMO
+ force_internal: false
+ force_external: false
+ description: withdrawal to exchange trading account
+ block_info:
+ block_timestamp: 1717740319
+ block_number: 123
+ block_hash: 0xc9ee947f8bb6027c161888bf0d004bec05e7c2beec7e6b187dc512174e438735
+ asset_id: USDT
+ source:
+ wallet_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ source_type: DepositFromAddress
+ confirming_threshold: 15
+ type: Deposit
+ result:
+ result_type: Address
+ signature: 0x6a8d82c2b080c18e7c1d187a95b3d9b0b9b20454d5e1d784b8a4625d16772d3f
+ token_id: ETH_USDT
+ updated_timestamp: 1610445878970
+ transaction_hash: 239861be9a4afe080c359b7fe4a1d035945ec46256b1a0f44d1267c71de8ec28
+ transaction_id: aff0e1cb-15b2-4e1f-9b9d-a9133715986f
+ sub_status: PendingDoubleCheck
+ cobo_id: "20231213122855000000000000000000"
+ created_timestamp: 1610445878970
+ initiator_type: API
+ wallet_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ category:
+ - Payment
+ - Payment
+ request_id: web_send_by_user_327_1610444045047
+ raw_tx_info:
+ selected_utxos:
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
+ tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
+ tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
+ raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
+ used_nonce: 9
+ replacement:
+ replaced_transaction_hash: 239861be9a4afe080c359b7fe4a1d035945ec46256b1a0f44d1267c71de8ec28
+ replaced_transaction_id: aff0e1cb-15b2-4e1f-9b9d-a9133715986f
+ replaced_by_transaction_id: aff0e1cb-15b2-4e1f-9b9d-a9133715986f
+ replaced_by_type: Resend
+ replaced_by_transaction_hash: 239861be9a4afe080c359b7fe4a1d035945ec46256b1a0f44d1267c71de8ec28
+ replaced_type: Resend
+ failed_reason: Rejected by signer Cobo TSS
+ status: Submitted
+ updated_timestamp: 1640918000000
+ created_timestamp: 1640918000000
+ id: 00000000-0000-0000-0000-000000000000
+ request_id: "1734602498819"
+ url: https://example.com/withdraw_callback
+ status: Approved
+ - transaction_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ result: ok
+ wallet_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ data:
+ is_loop: false
+ chain_id: ETH
+ confirmed_num: 12
+ fee:
+ effective_gas_price: "100000000"
+ max_priority_fee_per_gas: "1000000000000"
+ gas_limit: "21000"
+ token_id: ETH
+ gas_used: "100000000"
+ max_fee_per_gas: "9000000000000"
+ fee_type: EVM_EIP_1559
+ fee_used: "0.1"
+ initiator: "API Prod Key #1"
+ destination:
+ account_output:
+ amount: "1.5"
+ address: 19AR6YWEGbSoY8UT9Ksy9WrmrZPD5sL4Ku
+ memo: "82840924"
+ destination_type: Address
+ change_address: 19AR6YWEGbSoY8UT9Ksy9WrmrZPD5sDEMO
+ utxo_outputs:
+ - amount: "1.5"
+ address: 19AR6YWEGbSoY8UT9Ksy9WrmrZPD5sDEMO
+ - amount: "1.5"
+ address: 19AR6YWEGbSoY8UT9Ksy9WrmrZPD5sDEMO
+ force_internal: false
+ force_external: false
+ description: withdrawal to exchange trading account
+ block_info:
+ block_timestamp: 1717740319
+ block_number: 123
+ block_hash: 0xc9ee947f8bb6027c161888bf0d004bec05e7c2beec7e6b187dc512174e438735
+ asset_id: USDT
+ source:
+ wallet_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ source_type: DepositFromAddress
+ confirming_threshold: 15
+ type: Deposit
+ result:
+ result_type: Address
+ signature: 0x6a8d82c2b080c18e7c1d187a95b3d9b0b9b20454d5e1d784b8a4625d16772d3f
+ token_id: ETH_USDT
+ updated_timestamp: 1610445878970
+ transaction_hash: 239861be9a4afe080c359b7fe4a1d035945ec46256b1a0f44d1267c71de8ec28
+ transaction_id: aff0e1cb-15b2-4e1f-9b9d-a9133715986f
+ sub_status: PendingDoubleCheck
+ cobo_id: "20231213122855000000000000000000"
+ created_timestamp: 1610445878970
+ initiator_type: API
+ wallet_id: f47ac10b-58cc-4372-a567-0e02b2c3d479
+ category:
+ - Payment
+ - Payment
+ request_id: web_send_by_user_327_1610444045047
+ raw_tx_info:
+ selected_utxos:
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
+ tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
+ - address: 2N2xFZtbCFB6Nb3Pj9Sxsx5mX2fxX3yEgkE
+ vout_n: 0
+ tx_hash: 7014d7d9b91862d7131f7543d84da3bec60e20be93c23ad01167c48b778fdemo
+ value: "0.5"
+ raw_tx: 0xa22cb4650000000000000000000000001e0049783f008a0085193e00003d00cd54003c71000000000000000000000000000000000000000000000000000000000000DEMO
+ used_nonce: 9
+ replacement:
+ replaced_transaction_hash: 239861be9a4afe080c359b7fe4a1d035945ec46256b1a0f44d1267c71de8ec28
+ replaced_transaction_id: aff0e1cb-15b2-4e1f-9b9d-a9133715986f
+ replaced_by_transaction_id: aff0e1cb-15b2-4e1f-9b9d-a9133715986f
+ replaced_by_type: Resend
+ replaced_by_transaction_hash: 239861be9a4afe080c359b7fe4a1d035945ec46256b1a0f44d1267c71de8ec28
+ replaced_type: Resend
+ failed_reason: Rejected by signer Cobo TSS
+ status: Submitted
+ updated_timestamp: 1640918000000
+ created_timestamp: 1640918000000
+ id: 00000000-0000-0000-0000-000000000000
+ request_id: "1734602498819"
+ url: https://example.com/withdraw_callback
+ status: Approved
+ properties:
+ data:
+ items:
+ $ref: '#/components/schemas/CallbackMessage'
+ type: array
+ pagination:
+ $ref: '#/components/schemas/Pagination'
+ required:
+ - data
+ - pagination
+ type: object
+ retry_callback_message_201_response:
+ example:
+ retried: true
+ properties:
+ retried:
+ description: |
+ Whether the callback message has been successfully resent:
+ - `true`: The callback message has been successfully resent.
+ - `false`: The callback message has not been successfully resent.
+ example: true
+ type: boolean
+ type: object
list_address_books_200_response:
example:
pagination:
@@ -15007,6 +16987,95 @@ components:
pagination:
$ref: '#/components/schemas/Pagination'
type: object
+ list_supported_countries_200_response_inner:
+ example:
+ code2: SG
+ zh_hans: 新加坡
+ en: Singapore
+ properties:
+ en:
+ description: The English name of the country.
+ example: Singapore
+ type: string
+ zh_hans:
+ description: The simplified Chinese name of the country.
+ example: 新加坡
+ type: string
+ code2:
+ description: The 2-letter country code (ISO 3166-1 alpha-2).
+ example: SG
+ type: string
+ required:
+ - code2
+ - en
+ - zh_hans
+ type: object
+ get_transaction_limitation_200_response:
+ example:
+ vasp_list:
+ - vendor_code: NB
+ name: ManyAges
+ vendor_vasp_id: did:ethr:0x34414c8d5c8ed6f242aa6558ecb500283bab10f4
+ - vendor_code: NB
+ name: ManyAges
+ vendor_vasp_id: did:ethr:0x34414c8d5c8ed6f242aa6558ecb500283bab10f4
+ is_threshold_reached: true
+ self_custody_wallet_challenge: |
+ Hi, please sign this message to confirm that you are the owner of this wallet address.
+ The transfer can only proceed after signing.
+ - Address: 0x1234567890abcdef1234567890abcdef12345678
+ - Nonce: b2860f5c9f201a81bc76f33e991c1f24
+ - Timestamp: 1732523887
+ connect_wallet_list:
+ - metamask
+ - metamask
+ properties:
+ vasp_list:
+ description: A list of VASPs (Virtual Asset Service Providers) associated
+ with the token.
+ items:
+ $ref: '#/components/schemas/Vasp'
+ type: array
+ is_threshold_reached:
+ description: |
+ Indicates whether the transaction amount exceeds a predefined threshold.
+ - **If `true`**: Additional information is required when filling Travel Rule details:
+ - For deposits: `date_of_incorporation` and `place_of_incorporation`.
+ - **If `false`**: No extra fields are required.
+ example: true
+ type: boolean
+ self_custody_wallet_challenge:
+ description: "A human-readable, time-sensitive message to be signed by the\
+ \ wallet owner. \nThe message contains key details including the wallet\
+ \ address, a unique nonce, and a timestamp.\nSigning this message confirms\
+ \ ownership of the wallet and allows the operation to proceed.\n"
+ example: |
+ Hi, please sign this message to confirm that you are the owner of this wallet address.
+ The transfer can only proceed after signing.
+ - Address: 0x1234567890abcdef1234567890abcdef12345678
+ - Nonce: b2860f5c9f201a81bc76f33e991c1f24
+ - Timestamp: 1732523887
+ type: string
+ connect_wallet_list:
+ description: A list of wallets connected to the system for transactions.
+ items:
+ description: A supported wallet type or integration.
+ example: metamask
+ type: string
+ type: array
+ type: object
+ submit_deposit_travel_rule_info_201_response:
+ example:
+ submitted: true
+ properties:
+ submitted:
+ description: |
+ Whether the submitted Travel Rule info has been successfully executed.
+ - `true`: The operation has been successfully executed.
+ - `false`: The operation has not been executed.
+ example: true
+ type: boolean
+ type: object
TokenBalance_balance:
description: The balance details.
example:
@@ -15018,13 +17087,13 @@ components:
total:
description: "The current amount of tokens in an address, which is retrieved\
\ directly from the network. To learn more, see [Balances and transaction\
- \ amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for\
- \ more details."
+ \ amounts for MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/balance-amounts)\
+ \ for more details."
example: "100.0"
type: string
available:
description: "The amount of tokens ready to be spent. To learn more, see\
- \ [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts)\
+ \ [Balances and transaction amounts for MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/balance-amounts)\
\ for more details."
example: "80.5"
type: string
@@ -15032,7 +17101,7 @@ components:
default: "0"
description: "The total amount being sent in a transaction, which is calculated\
\ as the withdrawal amount plus the transaction fee. To learn more, see\
- \ [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts)\
+ \ [Balances and transaction amounts for MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/balance-amounts)\
\ for more details."
example: "10.5"
type: string
@@ -15041,7 +17110,8 @@ components:
description: "For UTXO chains, this is the combined value of the selected\
\ UTXOs for the transaction. For other chains, it is equal to the Pending\
\ amount. To learn more, see [Balances and transaction amounts for MPC\
- \ Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details."
+ \ Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/balance-amounts)\
+ \ for more details."
example: "3.0"
type: string
required:
@@ -15263,6 +17333,17 @@ components:
format: int64
type: integer
type: object
+ Activity_extra:
+ discriminator:
+ mapping:
+ Babylon: '#/components/schemas/BabylonStakingActivityDetailExtra'
+ ETHBeacon: '#/components/schemas/EthStakingActivityDetailExtra'
+ CoreBTC: '#/components/schemas/CoreStakingActivityDetailExtra'
+ propertyName: pool_type
+ oneOf:
+ - $ref: '#/components/schemas/BabylonStakingActivityDetailExtra'
+ - $ref: '#/components/schemas/EthStakingActivityDetailExtra'
+ - $ref: '#/components/schemas/CoreStakingActivityDetailExtra'
CreateStakeActivity_extra:
discriminator:
mapping:
@@ -15316,12 +17397,48 @@ components:
- $ref: '#/components/schemas/BabylonStakingExtra'
- $ref: '#/components/schemas/EthStakingExtra'
- $ref: '#/components/schemas/CoreStakingExtra'
+ TravelRuleDepositExchangesOrVASP_entity_info:
+ discriminator:
+ mapping:
+ LEGAL: '#/components/schemas/TravelRuleDepositLegalEntity'
+ NATURAL: '#/components/schemas/TravelRuleDepositNaturalEntity'
+ propertyName: selected_entity_type
+ oneOf:
+ - $ref: '#/components/schemas/TravelRuleDepositLegalEntity'
+ - $ref: '#/components/schemas/TravelRuleDepositNaturalEntity'
+ TravelRuleDepositRequest_travel_rule_info:
+ discriminator:
+ mapping:
+ EXCHANGES_OR_VASP: '#/components/schemas/TravelRuleDepositExchangesOrVASP'
+ SELF_CUSTODY_WALLET: '#/components/schemas/SelfCustodyWallet'
+ propertyName: destination_wallet_type
+ oneOf:
+ - $ref: '#/components/schemas/TravelRuleDepositExchangesOrVASP'
+ - $ref: '#/components/schemas/SelfCustodyWallet'
+ TravelRuleWithdrawExchangesOrVASP_entity_info:
+ discriminator:
+ mapping:
+ LEGAL: '#/components/schemas/TravelRuleWithdrawLegalEntity'
+ NATURAL: '#/components/schemas/TravelRuleWithdrawNaturalEntity'
+ propertyName: selected_entity_type
+ oneOf:
+ - $ref: '#/components/schemas/TravelRuleWithdrawLegalEntity'
+ - $ref: '#/components/schemas/TravelRuleWithdrawNaturalEntity'
+ TravelRuleWithdrawRequest_travel_rule_info:
+ discriminator:
+ mapping:
+ EXCHANGES_OR_VASP: '#/components/schemas/TravelRuleWithdrawExchangesOrVASP'
+ SELF_CUSTODY_WALLET: '#/components/schemas/SelfCustodyWallet'
+ propertyName: destination_wallet_type
+ oneOf:
+ - $ref: '#/components/schemas/SelfCustodyWallet'
+ - $ref: '#/components/schemas/TravelRuleWithdrawExchangesOrVASP'
securitySchemes:
CoboAuth:
description: |
- The API key. For more details, refer to [API key](/v2/guides/overview/cobo-auth#api-key).
+ The API key. For more details, refer to [API key](https://www.cobo.com/developers/v2/guides/overview/cobo-auth#api-key).
- In the API playground, enter your [API secret](/v2/guides/overview/cobo-auth#api-secret), and your API key will be accordingly calculated.
+ In the API playground, enter your [API secret](https://www.cobo.com/developers/v2/guides/overview/cobo-auth#api-secret), and your API key will be accordingly calculated.
in: header
name: BIZ-API-KEY
type: apiKey
diff --git a/cobo_waas2/api_address_books.go b/cobo_waas2/api_address_books.go
index 68d6971..fc11cc1 100644
--- a/cobo_waas2/api_address_books.go
+++ b/cobo_waas2/api_address_books.go
@@ -31,7 +31,7 @@ type ApiListAddressBooksRequest struct {
after *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).
+// 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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
func (r ApiListAddressBooksRequest) ChainId(chainId string) ApiListAddressBooksRequest {
r.chainId = &chainId
return r
@@ -55,13 +55,13 @@ func (r ApiListAddressBooksRequest) Limit(limit int32) ApiListAddressBooksReques
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListAddressBooksRequest) Before(before string) ApiListAddressBooksRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListAddressBooksRequest) After(after string) ApiListAddressBooksRequest {
r.after = &after
return r
diff --git a/cobo_waas2/api_developers.go b/cobo_waas2/api_developers.go
index e8d30aa..7c354dd 100644
--- a/cobo_waas2/api_developers.go
+++ b/cobo_waas2/api_developers.go
@@ -14,6 +14,7 @@ import (
"io"
"net/http"
"net/url"
+ "strings"
)
@@ -139,3 +140,336 @@ func (a *DevelopersAPIService) GetApiKeyInfoExecute(r ApiGetApiKeyInfoRequest) (
return localVarReturnValue, localVarHTTPResponse, nil
}
+
+type ApiListCallbackMessagesRequest struct {
+ ctx context.Context
+ ApiService *DevelopersAPIService
+ callbackMessageIds *string
+ requestIds *string
+ transactionIds *string
+ walletIds *string
+ status *string
+ limit *int32
+ before *string
+ after *string
+}
+
+// A list of callback message IDs, separated by commas.
+func (r ApiListCallbackMessagesRequest) CallbackMessageIds(callbackMessageIds string) ApiListCallbackMessagesRequest {
+ r.callbackMessageIds = &callbackMessageIds
+ return r
+}
+
+// A list of request IDs, separated by commas. The request ID is provided by you and must be unique within your organization.
+func (r ApiListCallbackMessagesRequest) RequestIds(requestIds string) ApiListCallbackMessagesRequest {
+ r.requestIds = &requestIds
+ return r
+}
+
+// A list of transaction IDs, separated by commas.
+func (r ApiListCallbackMessagesRequest) TransactionIds(transactionIds string) ApiListCallbackMessagesRequest {
+ r.transactionIds = &transactionIds
+ return r
+}
+
+// A list of wallet IDs, separated by commas.
+func (r ApiListCallbackMessagesRequest) WalletIds(walletIds string) ApiListCallbackMessagesRequest {
+ r.walletIds = &walletIds
+ return r
+}
+
+// The callback message status. Possible values include `Approved`, `Denied`, and `Failed`.
+func (r ApiListCallbackMessagesRequest) Status(status string) ApiListCallbackMessagesRequest {
+ r.status = &status
+ return r
+}
+
+// The maximum number of objects to return. For most operations, the value range is [1, 50].
+func (r ApiListCallbackMessagesRequest) Limit(limit int32) ApiListCallbackMessagesRequest {
+ r.limit = &limit
+ return r
+}
+
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
+func (r ApiListCallbackMessagesRequest) Before(before string) ApiListCallbackMessagesRequest {
+ r.before = &before
+ return r
+}
+
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+func (r ApiListCallbackMessagesRequest) After(after string) ApiListCallbackMessagesRequest {
+ r.after = &after
+ return r
+}
+
+func (r ApiListCallbackMessagesRequest) Execute() (*ListCallbackMessages200Response, *http.Response, error) {
+ return r.ApiService.ListCallbackMessagesExecute(r)
+}
+
+/*
+ListCallbackMessages List all callback messages
+
+This operation retrieves all the callback messages in your organization.
+
+For more details about how to respond to callback messages, refer to [Callback messages](/v2/guides/webhooks-callbacks/set-up-endpoint#callback-messages).
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiListCallbackMessagesRequest
+*/
+func (a *DevelopersAPIService) ListCallbackMessages(ctx context.Context) ApiListCallbackMessagesRequest {
+ return ApiListCallbackMessagesRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+// @return ListCallbackMessages200Response
+func (a *DevelopersAPIService) ListCallbackMessagesExecute(r ApiListCallbackMessagesRequest) (*ListCallbackMessages200Response, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *ListCallbackMessages200Response
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DevelopersAPIService.ListCallbackMessages")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/developers/callback_messages"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if r.callbackMessageIds != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "callback_message_ids", r.callbackMessageIds, "")
+ }
+ if r.requestIds != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "request_ids", r.requestIds, "")
+ }
+ if r.transactionIds != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "transaction_ids", r.transactionIds, "")
+ }
+ if r.walletIds != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "wallet_ids", r.walletIds, "")
+ }
+ if r.status != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "")
+ }
+ if r.limit != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
+ } else {
+ var defaultValue int32 = 10
+ r.limit = &defaultValue
+ }
+ if r.before != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "before", r.before, "")
+ }
+ if r.after != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "after", r.after, "")
+ }
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ if localVarHTTPResponse.StatusCode >= 400 && localVarHTTPResponse.StatusCode < 500 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode >= 500 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiRetryCallbackMessageRequest struct {
+ ctx context.Context
+ ApiService *DevelopersAPIService
+ messageId string
+}
+
+func (r ApiRetryCallbackMessageRequest) Execute() (*RetryCallbackMessage201Response, *http.Response, error) {
+ return r.ApiService.RetryCallbackMessageExecute(r)
+}
+
+/*
+RetryCallbackMessage Retry callback message
+
+This operation resends a callback message that failed previously.
+
+If your callback endpoint doesn't respond as expected, the WaaS service will retry sending the callback message up to 30 times. After that, the callback message status will be `Failed`. Use this operation to resend the message. For more details, refer to [Webhooks and Callbacks](/v2/guides/webhooks-callbacks/set-up-endpoint#callback-messages).
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param messageId The callback message ID.
+ @return ApiRetryCallbackMessageRequest
+*/
+func (a *DevelopersAPIService) RetryCallbackMessage(ctx context.Context, messageId string) ApiRetryCallbackMessageRequest {
+ return ApiRetryCallbackMessageRequest{
+ ApiService: a,
+ ctx: ctx,
+ messageId: messageId,
+ }
+}
+
+// Execute executes the request
+// @return RetryCallbackMessage201Response
+func (a *DevelopersAPIService) RetryCallbackMessageExecute(r ApiRetryCallbackMessageRequest) (*RetryCallbackMessage201Response, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *RetryCallbackMessage201Response
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DevelopersAPIService.RetryCallbackMessage")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/developers/callback_messages/{message_id}/retry"
+ localVarPath = strings.Replace(localVarPath, "{"+"message_id"+"}", url.PathEscape(parameterValueToString(r.messageId, "messageId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ if localVarHTTPResponse.StatusCode >= 400 && localVarHTTPResponse.StatusCode < 500 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode >= 500 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
diff --git a/cobo_waas2/api_developers_webhooks.go b/cobo_waas2/api_developers_webhooks.go
index 7695880..19fdf36 100644
--- a/cobo_waas2/api_developers_webhooks.go
+++ b/cobo_waas2/api_developers_webhooks.go
@@ -166,7 +166,7 @@ GetWebhookEndpointById Get webhook endpoint information
This operation retrieves the information of a specified webhook endpoint.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param endpointId The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints).
+ @param endpointId The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints).
@return ApiGetWebhookEndpointByIdRequest
*/
func (a *DevelopersWebhooksAPIService) GetWebhookEndpointById(ctx context.Context, endpointId string) ApiGetWebhookEndpointByIdRequest {
@@ -292,8 +292,8 @@ This operation retrieves the information of a webhook event by the event ID.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param eventId The event ID. You can obtain a list of event IDs by calling [List all events](/v2/api-references/developers--webhooks/list-all-events).
- @param endpointId The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints).
+ @param eventId The event ID. You can obtain a list of event IDs by calling [List all events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-events).
+ @param endpointId The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints).
@return ApiGetWebhookEventByIdRequest
*/
func (a *DevelopersWebhooksAPIService) GetWebhookEventById(ctx context.Context, eventId string, endpointId string) ApiGetWebhookEventByIdRequest {
@@ -429,13 +429,13 @@ func (r ApiListWebhookEndpointsRequest) Limit(limit int32) ApiListWebhookEndpoin
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListWebhookEndpointsRequest) Before(before string) ApiListWebhookEndpointsRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListWebhookEndpointsRequest) After(after string) ApiListWebhookEndpointsRequest {
r.after = &after
return r
@@ -710,13 +710,13 @@ func (r ApiListWebhookEventLogsRequest) Limit(limit int32) ApiListWebhookEventLo
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListWebhookEventLogsRequest) Before(before string) ApiListWebhookEventLogsRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListWebhookEventLogsRequest) After(after string) ApiListWebhookEventLogsRequest {
r.after = &after
return r
@@ -733,8 +733,8 @@ This operation retrieves a list of webhook event logs by event ID. Each retry wi
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param eventId The event ID. You can obtain a list of event IDs by calling [List all events](/v2/api-references/developers--webhooks/list-all-events).
- @param endpointId The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints).
+ @param eventId The event ID. You can obtain a list of event IDs by calling [List all events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-events).
+ @param endpointId The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints).
@return ApiListWebhookEventLogsRequest
*/
func (a *DevelopersWebhooksAPIService) ListWebhookEventLogs(ctx context.Context, eventId string, endpointId string) ApiListWebhookEventLogsRequest {
@@ -883,13 +883,13 @@ func (r ApiListWebhookEventsRequest) Limit(limit int32) ApiListWebhookEventsRequ
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListWebhookEventsRequest) Before(before string) ApiListWebhookEventsRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListWebhookEventsRequest) After(after string) ApiListWebhookEventsRequest {
r.after = &after
return r
@@ -908,7 +908,7 @@ This operation retrieves a list of webhook events that have occurred within the
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param endpointId The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints).
+ @param endpointId The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints).
@return ApiListWebhookEventsRequest
*/
func (a *DevelopersWebhooksAPIService) ListWebhookEvents(ctx context.Context, endpointId string) ApiListWebhookEventsRequest {
@@ -1052,8 +1052,8 @@ This operation retries delivering a webhook event with the specified event ID. Y
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param eventId The event ID. You can obtain a list of event IDs by calling [List all events](/v2/api-references/developers--webhooks/list-all-events).
- @param endpointId The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints).
+ @param eventId The event ID. You can obtain a list of event IDs by calling [List all events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-events).
+ @param endpointId The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints).
@return ApiRetryWebhookEventByIdRequest
*/
func (a *DevelopersWebhooksAPIService) RetryWebhookEventById(ctx context.Context, eventId string, endpointId string) ApiRetryWebhookEventByIdRequest {
@@ -1318,7 +1318,7 @@ UpdateWebhookEndpointById Update webhook endpoint
This operation updates the information of a specified webhook endpoint.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param endpointId The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints).
+ @param endpointId The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints).
@return ApiUpdateWebhookEndpointByIdRequest
*/
func (a *DevelopersWebhooksAPIService) UpdateWebhookEndpointById(ctx context.Context, endpointId string) ApiUpdateWebhookEndpointByIdRequest {
diff --git a/cobo_waas2/api_o_auth.go b/cobo_waas2/api_o_auth.go
index e10ed8a..90026d6 100644
--- a/cobo_waas2/api_o_auth.go
+++ b/cobo_waas2/api_o_auth.go
@@ -58,7 +58,7 @@ This operation allows Cobo Portal Apps to get an Org Access Token and a Refresh
Access tokens allow the app to signal to the WaaS service that it has received permission to access specific resources of the app user's [organization](https://manuals.cobo.com/en/portal/organization/introduction). Once the app has been granted permission by the organization's admin, it can use this operation to obtain both an Org Access Token and a Refresh Token.
-For security purposes, Org Access Tokens expire after a certain period. Once they expire, the app needs to call [Refresh token](/v2/api-references/oauth/refresh-org-access-token) to get a new Org Access Token and a new Refresh Token.
+For security purposes, Org Access Tokens expire after a certain period. Once they expire, the app needs to call [Refresh token](https://www.cobo.com/developers/v2/api-references/oauth/refresh-org-access-token) to get a new Org Access Token and a new Refresh Token.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
diff --git a/cobo_waas2/api_stakings.go b/cobo_waas2/api_stakings.go
index 64579dc..a36118f 100644
--- a/cobo_waas2/api_stakings.go
+++ b/cobo_waas2/api_stakings.go
@@ -765,7 +765,7 @@ This operation retrieves the detailed information about a specified staking posi
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param stakingId The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions).
+ @param stakingId The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions).
@return ApiGetStakingByIdRequest
*/
func (a *StakingsAPIService) GetStakingById(ctx context.Context, stakingId string) ApiGetStakingByIdRequest {
@@ -914,7 +914,7 @@ func (r ApiGetStakingEstimationFeeRequest) Execute() (*GetStakingEstimationFee20
/*
GetStakingEstimationFee Estimate staking fees
-This operation is deprecated. Please use the [updated version](/v2/api-references/stakings/estimate-staking-fees-1) instead.
+This operation is deprecated. Please use the [updated version](https://www.cobo.com/developers/v2/api-references/stakings/estimate-staking-fees-v2) instead.
This operation calculates the fee required for a staking activity based on factors such as network congestion and transaction complexity.
For some protocols, you can use the `fee.fee_rate` property in the request body to specify the fee rate you are willing to pay.
@@ -1038,7 +1038,7 @@ func (r ApiGetStakingEstimationFeeV2Request) Execute() (*EthStakeEstimatedFee, *
}
/*
-GetStakingEstimationFeeV2 Estimate staking fees
+GetStakingEstimationFeeV2 Estimate staking fees v2
This operation calculates the fee required for a staking activity based on factors such as network congestion and transaction complexity.
@@ -1159,7 +1159,7 @@ This operation retrieves the detailed information about a specified staking pool
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param poolId The ID of the staking pool. A staking pool is a pairing of a staking protocol and a specific type of token. You can call [List staking pools](/v2/api-references/stakings/list-staking-pools) to retrieve a list of staking pools.
+ @param poolId The ID of the staking pool. A staking pool is a pairing of a staking protocol and a specific type of token. You can call [List staking pools](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-pools) to retrieve a list of staking pools.
@return ApiGetStakingPoolByIdRequest
*/
func (a *StakingsAPIService) GetStakingPoolById(ctx context.Context, poolId string) ApiGetStakingPoolByIdRequest {
@@ -1299,12 +1299,13 @@ type ApiListStakingActivitiesRequest struct {
minModifiedTimestamp *int64
maxModifiedTimestamp *int64
initiator *string
+ requestId *string
limit *int32
before *string
after *string
}
-// The ID of the staking pool. A staking pool is a pairing of a staking protocol and a specific type of token. You can call [List staking pools](/v2/api-references/stakings/list-staking-pools) to retrieve a list of staking pools.
+// The ID of the staking pool. A staking pool is a pairing of a staking protocol and a specific type of token. You can call [List staking pools](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-pools) to retrieve a list of staking pools.
func (r ApiListStakingActivitiesRequest) PoolId(poolId string) ApiListStakingActivitiesRequest {
r.poolId = &poolId
return r
@@ -1344,19 +1345,25 @@ func (r ApiListStakingActivitiesRequest) Initiator(initiator string) ApiListStak
return r
}
+// 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.
+func (r ApiListStakingActivitiesRequest) RequestId(requestId string) ApiListStakingActivitiesRequest {
+ r.requestId = &requestId
+ return r
+}
+
// The maximum number of objects to return. For most operations, the value range is [1, 50].
func (r ApiListStakingActivitiesRequest) Limit(limit int32) ApiListStakingActivitiesRequest {
r.limit = &limit
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListStakingActivitiesRequest) Before(before string) ApiListStakingActivitiesRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListStakingActivitiesRequest) After(after string) ApiListStakingActivitiesRequest {
r.after = &after
return r
@@ -1424,6 +1431,9 @@ func (a *StakingsAPIService) ListStakingActivitiesExecute(r ApiListStakingActivi
if r.initiator != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "initiator", r.initiator, "")
}
+ if r.requestId != nil {
+ parameterAddToHeaderOrQuery(localVarQueryParams, "request_id", r.requestId, "")
+ }
if r.limit != nil {
parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "")
} else {
@@ -1532,13 +1542,13 @@ type ApiListStakingPoolsRequest struct {
after *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).
+// 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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
func (r ApiListStakingPoolsRequest) ChainId(chainId string) ApiListStakingPoolsRequest {
r.chainId = &chainId
return r
}
-// 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).
+// The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
func (r ApiListStakingPoolsRequest) TokenId(tokenId string) ApiListStakingPoolsRequest {
r.tokenId = &tokenId
return r
@@ -1550,13 +1560,13 @@ func (r ApiListStakingPoolsRequest) Limit(limit int32) ApiListStakingPoolsReques
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListStakingPoolsRequest) Before(before string) ApiListStakingPoolsRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListStakingPoolsRequest) After(after string) ApiListStakingPoolsRequest {
r.after = &after
return r
@@ -1719,7 +1729,7 @@ type ApiListStakingsRequest struct {
after *string
}
-// The ID of the staking pool. A staking pool is a pairing of a staking protocol and a specific type of token. You can call [List staking pools](/v2/api-references/stakings/list-staking-pools) to retrieve a list of staking pools.
+// The ID of the staking pool. A staking pool is a pairing of a staking protocol and a specific type of token. You can call [List staking pools](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-pools) to retrieve a list of staking pools.
func (r ApiListStakingsRequest) PoolId(poolId string) ApiListStakingsRequest {
r.poolId = &poolId
return r
@@ -1737,7 +1747,7 @@ func (r ApiListStakingsRequest) WalletId(walletId string) ApiListStakingsRequest
return r
}
-// 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).
+// The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
func (r ApiListStakingsRequest) TokenId(tokenId string) ApiListStakingsRequest {
r.tokenId = &tokenId
return r
@@ -1749,13 +1759,13 @@ func (r ApiListStakingsRequest) Limit(limit int32) ApiListStakingsRequest {
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListStakingsRequest) Before(before string) ApiListStakingsRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListStakingsRequest) After(after string) ApiListStakingsRequest {
r.after = &after
return r
diff --git a/cobo_waas2/api_transactions.go b/cobo_waas2/api_transactions.go
index 6e627a7..18f2092 100644
--- a/cobo_waas2/api_transactions.go
+++ b/cobo_waas2/api_transactions.go
@@ -43,7 +43,7 @@ BroadcastSignedTransactions Broadcast signed transactions
This operation is only applicable to the staking scenarios.
This operation broadcasts a list of signed transactions.
-If you set `auto_broadcast` to `false` when [creating a staking activity](/v2/api-references/staking/create-stake-activity), the transaction will not be submitted to the blockchain automatically after being signed. In such cases, you can call this operation to broadcast the transaction to the blockchain.
+If you set `auto_broadcast` to `false` when [creating a staking activity](https://www.cobo.com/developers/v2/api-references/staking/create-stake-activity), the transaction will not be submitted to the blockchain automatically after being signed. In such cases, you can call this operation to broadcast the transaction to the blockchain.
A transaction can only be broadcast if its status is `Broadcasting`.
@@ -169,15 +169,16 @@ func (r ApiCancelTransactionByIdRequest) Execute() (*CreateTransferTransaction20
/*
CancelTransactionById Cancel transaction
-This operation cancels a specified transaction. A transaction can be cancelled if its status is either of the following:
+This operation cancels a specified transaction. Canceling a transaction stops it while it is still pending. For more information, see [Cancel a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#cancel-a-transaction).
+
+This operation only applies to transactions from MPC Wallets and Smart Contract Wallets.
+
+A transaction can be cancelled if its status is either of the following:
- `Submitted`
- `PendingScreening`
- `PendingAuthorization`
- `PendingSignature`
-A transaction request for tracking is returned upon successful operation.
-This operation only applies to transactions from MPC Wallets and Smart Contract Wallets.
-
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param transactionId The transaction ID.
@@ -296,7 +297,7 @@ type ApiCheckLoopTransfersRequest struct {
destinationAddresses *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).
+// The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
func (r ApiCheckLoopTransfersRequest) TokenId(tokenId string) ApiCheckLoopTransfersRequest {
r.tokenId = &tokenId
return r
@@ -603,7 +604,7 @@ This operation creates a transaction to sign the provided message using cryptogr
In some scenarios, you want to sign a message for identity authentication or transaction approval. You need to provide details such as the source address, destination address, and the message to be signed. A transaction request for tracking is returned upon successful operation.
-You can get the signature result by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information).
+You can get the signature result by calling [Get transaction information](https://www.cobo.com/developers/v2/api-references/transactions/get-transaction-information).
This operation only applies to transactions from MPC Wallets.
@@ -874,24 +875,13 @@ func (r ApiDropTransactionByIdRequest) Execute() (*CreateTransferTransaction201R
/*
DropTransactionById Drop transaction
-This operation drops a specified transaction.
-
-Dropping a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It must have a higher transaction fee to incentivize miners to prioritize its confirmation over the original one. A transaction can be dropped if its status is `Broadcasting`.
-
-
-- For EVM chains, this RBF transaction has a transfer amount of `0` and the sending address is the same as the receiving address.
-- For UTXO chains, this RBF transaction has a transfer amount of `0` and the destination address is the same as the change address in the original transaction.
-
-
-You can use the `address` or `included_utxos` properties in the request body to specify the address or UTXOs that will cover the transaction fee. Generally, the transaction fee is paid by the original transaction's source. If that source's balance is insufficient, the specified address or UTXOs can be used to cover the fee.
-
-A transaction request for tracking is returned upon successful operation.
+This operation drops a specified transaction. Dropping a transaction leverages RBF to replace the original transaction with a version that effectively cancels it. For more details about dropping a transaction, refer to [Drop a transaction](https://www.cobo.com/developers/v2/guides/transactions/manage-transactions#drop-a-transaction).
-When a transaction is being dropped, any subsequent drop or speed up operations will still apply to the original transaction. For example, if a user creates Transaction A and later performs a drop operation on Transaction A using Transaction B, followed by a speed up operation on Transaction B using Transaction C, the speed up operation will still apply to Transaction A, not Transaction B.
+A transaction can be sped up only if its status is `Broadcasting`.
This operation only applies to transactions from MPC Wallets and Smart Contract Wallets. It does not apply to transactions on the following chains: VET, TRON, TVET, SOL, and TON.
-If you drop a transaction from a Smart Contract Wallet, two RBF transactions will be triggered, one for the transaction from the Smart Contract Wallet, and the other for the transaction from the Delegate.
+You can use the `address` or `included_utxos` properties in the request body to specify the address or UTXOs that will cover the transaction fee. Generally, the transaction fee is paid by the original transaction's source. If that source's balance is insufficient, the specified address or UTXOs can be used to cover the fee.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@@ -1028,7 +1018,7 @@ This operation estimates the transaction fee of a token transfer or a contract c
You need to specify the transaction information, including the request ID, request type, source address, destination address, token ID (only applicable to token transfers), and chain ID (only applicable to contract calls).
-The response can contain different properties based on the transaction fee model used by the chain. For the legacy, EIP-1559, and UTXO fee models, Cobo also supports three different transaction speed levels: slow, recommended, and fast. For more information about estimating transaction fees, refer to [Estimate transaction fee](/v2/guides/transactions/estimate-fees).
+The response can contain different properties based on the transaction fee model used by the chain. For the legacy, EIP-1559, and UTXO fee models, Cobo also supports three different transaction speed levels: slow, recommended, and fast. For more information about estimating transaction fees, refer to [Estimate transaction fee](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@@ -1139,6 +1129,131 @@ func (a *TransactionsAPIService) EstimateFeeExecute(r ApiEstimateFeeRequest) (*E
return localVarReturnValue, localVarHTTPResponse, nil
}
+type ApiGetTransactionApprovalDetailRequest struct {
+ ctx context.Context
+ ApiService *TransactionsAPIService
+ transactionId string
+}
+
+func (r ApiGetTransactionApprovalDetailRequest) Execute() (*TransactionApprovalDetail, *http.Response, error) {
+ return r.ApiService.GetTransactionApprovalDetailExecute(r)
+}
+
+/*
+GetTransactionApprovalDetail Get transaction approval information
+
+This operation retrieves approval detailed information about a specified transaction.
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @param transactionId The transaction ID.
+ @return ApiGetTransactionApprovalDetailRequest
+*/
+func (a *TransactionsAPIService) GetTransactionApprovalDetail(ctx context.Context, transactionId string) ApiGetTransactionApprovalDetailRequest {
+ return ApiGetTransactionApprovalDetailRequest{
+ ApiService: a,
+ ctx: ctx,
+ transactionId: transactionId,
+ }
+}
+
+// Execute executes the request
+// @return TransactionApprovalDetail
+func (a *TransactionsAPIService) GetTransactionApprovalDetailExecute(r ApiGetTransactionApprovalDetailRequest) (*TransactionApprovalDetail, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *TransactionApprovalDetail
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransactionsAPIService.GetTransactionApprovalDetail")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/transactions/{transaction_id}/approval_detail"
+ localVarPath = strings.Replace(localVarPath, "{"+"transaction_id"+"}", url.PathEscape(parameterValueToString(r.transactionId, "transactionId")), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ if localVarHTTPResponse.StatusCode >= 400 && localVarHTTPResponse.StatusCode < 500 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode >= 500 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
type ApiGetTransactionByIdRequest struct {
ctx context.Context
ApiService *TransactionsAPIService
@@ -1328,13 +1443,13 @@ func (r ApiListTransactionsRequest) WalletIds(walletIds string) ApiListTransacti
return r
}
-// A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
+// A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
func (r ApiListTransactionsRequest) ChainIds(chainIds string) ApiListTransactionsRequest {
r.chainIds = &chainIds
return r
}
-// A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens).
+// A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
func (r ApiListTransactionsRequest) TokenIds(tokenIds string) ApiListTransactionsRequest {
r.tokenIds = &tokenIds
return r
@@ -1346,13 +1461,13 @@ func (r ApiListTransactionsRequest) AssetIds(assetIds string) ApiListTransaction
return r
}
-// The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults).
+// The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
func (r ApiListTransactionsRequest) VaultId(vaultId string) ApiListTransactionsRequest {
r.vaultId = &vaultId
return r
}
-// The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
+// The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
func (r ApiListTransactionsRequest) ProjectId(projectId string) ApiListTransactionsRequest {
r.projectId = &projectId
return r
@@ -1376,13 +1491,13 @@ func (r ApiListTransactionsRequest) Limit(limit int32) ApiListTransactionsReques
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListTransactionsRequest) Before(before string) ApiListTransactionsRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListTransactionsRequest) After(after string) ApiListTransactionsRequest {
r.after = &after
return r
@@ -1580,9 +1695,10 @@ func (r ApiResendTransactionByIdRequest) Execute() (*CreateTransferTransaction20
/*
ResendTransactionById Resend transaction
-This operation resends a specified transaction. Resending a transaction initiates a new attempt to process the transaction that failed previously. A transaction can be resent if its status is `failed`.
+This operation resends a specified transaction. Resending a transaction means retrying a previously failed transaction. For more details about resending a transaction, see [Resend a transaction](/v2/guides/transactions/manage-transactions#resend-a-transaction).
+
+A transaction can be resent if its status is `failed`.
-A transaction request for tracking is returned upon successful operation.
This operation only applies to transactions from MPC Wallets in the SOL token.
@@ -1717,13 +1833,11 @@ func (r ApiSpeedupTransactionByIdRequest) Execute() (*CreateTransferTransaction2
/*
SpeedupTransactionById Speed up transaction
-This operation accelerates a specified transaction.
-
-Speeding up a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. It shares the same inputs but must have a higher transaction fee to incentivize miners to prioritize its confirmation over the previous one. A transaction can be accelerated if its status is `Broadcasting`.
+This operation accelerates a specified transaction. Speeding up a transaction will trigger a Replace-By-Fee (RBF) transaction which is a new version of the original transaction. For more details about speeding up a transaction, refer to [Speed up a transaction](/v2/guides/transactions/manage-transactions#speed-up-a-transaction).
You can use the `address` or `included_utxos` properties in the request body to specify the address or UTXOs that will cover the transaction fee. Generally, the transaction fee is paid by the original transaction's source. If that source's balance is insufficient, the specified address or UTXOs can be used to cover the fee.
-A transaction request for tracking is returned upon successful operation.
+A transaction can be sped up only if its status is `Broadcasting`.
This operation only applies to transactions from MPC Wallets and Smart Contract Wallets. It does not apply to transactions on the following chains: VET, TRON, TVET, SOL, and TON.
diff --git a/cobo_waas2/api_travel_rule.go b/cobo_waas2/api_travel_rule.go
new file mode 100644
index 0000000..ec83709
--- /dev/null
+++ b/cobo_waas2/api_travel_rule.go
@@ -0,0 +1,569 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "bytes"
+ "context"
+ "io"
+ "net/http"
+ "net/url"
+)
+
+
+// TravelRuleAPIService TravelRuleAPI service
+type TravelRuleAPIService service
+
+type ApiGetTransactionLimitationRequest struct {
+ ctx context.Context
+ ApiService *TravelRuleAPIService
+ transactionType *string
+ transactionId *string
+}
+
+// The transaction type. Possible values include: - `DEPOSIT`: A deposit transaction. - `WITHDRAW`: A withdrawal transaction.
+func (r ApiGetTransactionLimitationRequest) TransactionType(transactionType string) ApiGetTransactionLimitationRequest {
+ r.transactionType = &transactionType
+ return r
+}
+
+// The transaction ID
+func (r ApiGetTransactionLimitationRequest) TransactionId(transactionId string) ApiGetTransactionLimitationRequest {
+ r.transactionId = &transactionId
+ return r
+}
+
+func (r ApiGetTransactionLimitationRequest) Execute() (*GetTransactionLimitation200Response, *http.Response, error) {
+ return r.ApiService.GetTransactionLimitationExecute(r)
+}
+
+/*
+GetTransactionLimitation Retrieve transaction limitations
+
+This endpoint retrieves transaction-related limitations based on the provided `transaction_type` and `transaction_id`.
+
+The response includes the following information:
+- **`vasp_list`**: A list of Virtual Asset Service Providers (VASPs) associated with the transaction token.
+- **`is_threshold_reached`**: Indicates whether the transaction amount has exceeded the predefined threshold.
+ - If `true`: Additional Travel Rule information may be required for processing.
+- **`self_custody_wallet_challenge`**: A challenge string for verifying ownership of self-custody wallets.
+- **`connect_wallet_list`**: A list of supported wallet integrations for the transaction, such as MetaMask or WalletConnect.
+
+Use this endpoint to ensure compliance with Travel Rule requirements and to retrieve supported options for completing the transaction.
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiGetTransactionLimitationRequest
+*/
+func (a *TravelRuleAPIService) GetTransactionLimitation(ctx context.Context) ApiGetTransactionLimitationRequest {
+ return ApiGetTransactionLimitationRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+// @return GetTransactionLimitation200Response
+func (a *TravelRuleAPIService) GetTransactionLimitationExecute(r ApiGetTransactionLimitationRequest) (*GetTransactionLimitation200Response, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *GetTransactionLimitation200Response
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TravelRuleAPIService.GetTransactionLimitation")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/travel_rule/transaction/limitation"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+ if r.transactionType == nil {
+ return localVarReturnValue, nil, reportError("transactionType is required and must be specified")
+ }
+ if r.transactionId == nil {
+ return localVarReturnValue, nil, reportError("transactionId is required and must be specified")
+ }
+
+ parameterAddToHeaderOrQuery(localVarQueryParams, "transaction_type", r.transactionType, "")
+ parameterAddToHeaderOrQuery(localVarQueryParams, "transaction_id", r.transactionId, "")
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ if localVarHTTPResponse.StatusCode >= 400 && localVarHTTPResponse.StatusCode < 500 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode >= 500 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiListSupportedCountriesRequest struct {
+ ctx context.Context
+ ApiService *TravelRuleAPIService
+}
+
+func (r ApiListSupportedCountriesRequest) Execute() ([]ListSupportedCountries200ResponseInner, *http.Response, error) {
+ return r.ApiService.ListSupportedCountriesExecute(r)
+}
+
+/*
+ListSupportedCountries List supported countries
+
+This operation retrieves all countries supported.
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiListSupportedCountriesRequest
+*/
+func (a *TravelRuleAPIService) ListSupportedCountries(ctx context.Context) ApiListSupportedCountriesRequest {
+ return ApiListSupportedCountriesRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+// @return []ListSupportedCountries200ResponseInner
+func (a *TravelRuleAPIService) ListSupportedCountriesExecute(r ApiListSupportedCountriesRequest) ([]ListSupportedCountries200ResponseInner, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodGet
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue []ListSupportedCountries200ResponseInner
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TravelRuleAPIService.ListSupportedCountries")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/travel_rule/transaction/countries"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ if localVarHTTPResponse.StatusCode >= 400 && localVarHTTPResponse.StatusCode < 500 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode >= 500 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiSubmitDepositTravelRuleInfoRequest struct {
+ ctx context.Context
+ ApiService *TravelRuleAPIService
+ travelRuleDepositRequest *TravelRuleDepositRequest
+}
+
+func (r ApiSubmitDepositTravelRuleInfoRequest) TravelRuleDepositRequest(travelRuleDepositRequest TravelRuleDepositRequest) ApiSubmitDepositTravelRuleInfoRequest {
+ r.travelRuleDepositRequest = &travelRuleDepositRequest
+ return r
+}
+
+func (r ApiSubmitDepositTravelRuleInfoRequest) Execute() (*SubmitDepositTravelRuleInfo201Response, *http.Response, error) {
+ return r.ApiService.SubmitDepositTravelRuleInfoExecute(r)
+}
+
+/*
+SubmitDepositTravelRuleInfo Submit Deposit Transaction Travel Rule information
+
+This operation allows you to submit the required Travel Rule information based on the transaction details. It supports both self-custody wallets and exchanges/VASPs, ensuring compliance with Travel Rule requirements.
+
+
+- **Destination Wallet Type (`destination_wallet_type`)**:
+ - `SELF_CUSTODY_WALLET`: A self-custodial wallet (e.g., plugin wallet). Requires `self_custody_wallet_sign`, `self_custody_wallet_address`, and `self_custody_wallet_challenge`.
+ - `EXCHANGES_OR_VASP`: A wallet associated with an exchange or VASP. Requires `vendor_vasp_id` and information depending on `selected_entity_type`.
+
+- **Entity Types (`selected_entity_type`)**:
+ - `LEGAL`: For legal entities, provide `legal_name`, `date_of_incorporation`, and `place_of_incorporation`.
+ - `NATURAL`: For natural persons, provide `date_of_birth`, `place_of_birth`, `first_name`, and `last_name`.
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiSubmitDepositTravelRuleInfoRequest
+*/
+func (a *TravelRuleAPIService) SubmitDepositTravelRuleInfo(ctx context.Context) ApiSubmitDepositTravelRuleInfoRequest {
+ return ApiSubmitDepositTravelRuleInfoRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+// @return SubmitDepositTravelRuleInfo201Response
+func (a *TravelRuleAPIService) SubmitDepositTravelRuleInfoExecute(r ApiSubmitDepositTravelRuleInfoRequest) (*SubmitDepositTravelRuleInfo201Response, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *SubmitDepositTravelRuleInfo201Response
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TravelRuleAPIService.SubmitDepositTravelRuleInfo")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/travel_rule/transaction/deposit/travel_rule_info"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.travelRuleDepositRequest
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ if localVarHTTPResponse.StatusCode >= 400 && localVarHTTPResponse.StatusCode < 500 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode >= 500 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
+
+type ApiSubmitWithdrawTravelRuleInfoRequest struct {
+ ctx context.Context
+ ApiService *TravelRuleAPIService
+ travelRuleWithdrawRequest *TravelRuleWithdrawRequest
+}
+
+func (r ApiSubmitWithdrawTravelRuleInfoRequest) TravelRuleWithdrawRequest(travelRuleWithdrawRequest TravelRuleWithdrawRequest) ApiSubmitWithdrawTravelRuleInfoRequest {
+ r.travelRuleWithdrawRequest = &travelRuleWithdrawRequest
+ return r
+}
+
+func (r ApiSubmitWithdrawTravelRuleInfoRequest) Execute() (*SubmitDepositTravelRuleInfo201Response, *http.Response, error) {
+ return r.ApiService.SubmitWithdrawTravelRuleInfoExecute(r)
+}
+
+/*
+SubmitWithdrawTravelRuleInfo Submit Withdraw Transaction Travel Rule information
+
+This operation allows you to submit the required Travel Rule information based on the transaction details. It supports both self-custody wallets and exchanges/VASPs, ensuring compliance with Travel Rule requirements.
+
+
+- **Destination Wallet Type (`destination_wallet_type`)**:
+ - `SELF_CUSTODY_WALLET`: A self-custodial wallet (e.g., plugin wallet). Requires `self_custody_wallet_sign`, `self_custody_wallet_address`, and `self_custody_wallet_challenge`.
+ - `EXCHANGES_OR_VASP`: A wallet associated with an exchange or VASP. Requires `vendor_vasp_id` and information depending on `selected_entity_type`.
+
+- **Entity Types (`selected_entity_type`)**:
+ - `LEGAL`: For legal entities, provide `legal_name`.
+ - `NATURAL`: For natural persons, provide `date_of_birth`, `place_of_birth`, `first_name`, and `last_name`.
+
+
+ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ @return ApiSubmitWithdrawTravelRuleInfoRequest
+*/
+func (a *TravelRuleAPIService) SubmitWithdrawTravelRuleInfo(ctx context.Context) ApiSubmitWithdrawTravelRuleInfoRequest {
+ return ApiSubmitWithdrawTravelRuleInfoRequest{
+ ApiService: a,
+ ctx: ctx,
+ }
+}
+
+// Execute executes the request
+// @return SubmitDepositTravelRuleInfo201Response
+func (a *TravelRuleAPIService) SubmitWithdrawTravelRuleInfoExecute(r ApiSubmitWithdrawTravelRuleInfoRequest) (*SubmitDepositTravelRuleInfo201Response, *http.Response, error) {
+ var (
+ localVarHTTPMethod = http.MethodPost
+ localVarPostBody interface{}
+ formFiles []formFile
+ localVarReturnValue *SubmitDepositTravelRuleInfo201Response
+ )
+
+ localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TravelRuleAPIService.SubmitWithdrawTravelRuleInfo")
+ if err != nil {
+ return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()}
+ }
+
+ localVarPath := localBasePath + "/travel_rule/transaction/withdraw/travel_rule_info"
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHTTPContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes)
+ if localVarHTTPContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHTTPContentType
+ }
+
+ // to determine the Accept header
+ localVarHTTPHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts)
+ if localVarHTTPHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept
+ }
+ // body params
+ localVarPostBody = r.travelRuleWithdrawRequest
+ req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHTTPResponse, err := a.client.callAPI(req)
+ if err != nil || localVarHTTPResponse == nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ localVarBody, err := io.ReadAll(localVarHTTPResponse.Body)
+ localVarHTTPResponse.Body.Close()
+ localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody))
+ if err != nil {
+ return localVarReturnValue, localVarHTTPResponse, err
+ }
+
+ if localVarHTTPResponse.StatusCode >= 300 {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: localVarHTTPResponse.Status,
+ }
+ if localVarHTTPResponse.StatusCode >= 400 && localVarHTTPResponse.StatusCode < 500 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ if localVarHTTPResponse.StatusCode >= 500 {
+ var v ErrorResponse
+ err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+ newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v)
+ newErr.model = v
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type"))
+ if err != nil {
+ newErr := &GenericOpenAPIError{
+ body: localVarBody,
+ error: err.Error(),
+ }
+ return localVarReturnValue, localVarHTTPResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHTTPResponse, nil
+}
diff --git a/cobo_waas2/api_wallets.go b/cobo_waas2/api_wallets.go
index cd8771c..67f2cbe 100644
--- a/cobo_waas2/api_wallets.go
+++ b/cobo_waas2/api_wallets.go
@@ -34,7 +34,7 @@ func (r ApiCheckAddressChainsValidityRequest) Address(address string) ApiCheckAd
return r
}
-// A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
+// A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
func (r ApiCheckAddressChainsValidityRequest) ChainIds(chainIds string) ApiCheckAddressChainsValidityRequest {
r.chainIds = &chainIds
return r
@@ -171,7 +171,7 @@ type ApiCheckAddressValidityRequest struct {
address *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).
+// 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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
func (r ApiCheckAddressValidityRequest) ChainId(chainId string) ApiCheckAddressValidityRequest {
r.chainId = &chainId
return r
@@ -314,7 +314,7 @@ type ApiCheckAddressesValidityRequest struct {
addresses *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).
+// 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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
func (r ApiCheckAddressesValidityRequest) ChainId(chainId string) ApiCheckAddressesValidityRequest {
r.chainId = &chainId
return r
@@ -862,7 +862,7 @@ This operation retrieves the detailed information about a specified chain.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param chainId 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).
+ @param chainId 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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
@return ApiGetChainByIdRequest
*/
func (a *WalletsAPIService) GetChainById(ctx context.Context, chainId string) ApiGetChainByIdRequest {
@@ -980,7 +980,7 @@ type ApiGetMaxTransferableValueRequest struct {
fromAddress *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).
+// The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
func (r ApiGetMaxTransferableValueRequest) TokenId(tokenId string) ApiGetMaxTransferableValueRequest {
r.tokenId = &tokenId
return r
@@ -1159,7 +1159,7 @@ This operation retrieves the detailed information about a specified token.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param tokenId 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).
+ @param tokenId The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
@return ApiGetTokenByIdRequest
*/
func (a *WalletsAPIService) GetTokenById(ctx context.Context, tokenId string) ApiGetTokenByIdRequest {
@@ -1403,7 +1403,7 @@ type ApiListAddressesRequest struct {
after *string
}
-// A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
+// A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
func (r ApiListAddressesRequest) ChainIds(chainIds string) ApiListAddressesRequest {
r.chainIds = &chainIds
return r
@@ -1421,13 +1421,13 @@ func (r ApiListAddressesRequest) Limit(limit int32) ApiListAddressesRequest {
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListAddressesRequest) Before(before string) ApiListAddressesRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListAddressesRequest) After(after string) ApiListAddressesRequest {
r.after = &after
return r
@@ -1598,13 +1598,13 @@ func (r ApiListEnabledChainsRequest) Limit(limit int32) ApiListEnabledChainsRequ
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListEnabledChainsRequest) Before(before string) ApiListEnabledChainsRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListEnabledChainsRequest) After(after string) ApiListEnabledChainsRequest {
r.after = &after
return r
@@ -1769,7 +1769,7 @@ func (r ApiListEnabledTokensRequest) WalletSubtype(walletSubtype WalletSubtype)
return r
}
-// A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
+// A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
func (r ApiListEnabledTokensRequest) ChainIds(chainIds string) ApiListEnabledTokensRequest {
r.chainIds = &chainIds
return r
@@ -1781,13 +1781,13 @@ func (r ApiListEnabledTokensRequest) Limit(limit int32) ApiListEnabledTokensRequ
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListEnabledTokensRequest) Before(before string) ApiListEnabledTokensRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListEnabledTokensRequest) After(after string) ApiListEnabledTokensRequest {
r.after = &after
return r
@@ -1955,7 +1955,7 @@ func (r ApiListSupportedChainsRequest) WalletSubtype(walletSubtype WalletSubtype
return r
}
-// A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
+// A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
func (r ApiListSupportedChainsRequest) ChainIds(chainIds string) ApiListSupportedChainsRequest {
r.chainIds = &chainIds
return r
@@ -1967,13 +1967,13 @@ func (r ApiListSupportedChainsRequest) Limit(limit int32) ApiListSupportedChains
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListSupportedChainsRequest) Before(before string) ApiListSupportedChainsRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListSupportedChainsRequest) After(after string) ApiListSupportedChainsRequest {
r.after = &after
return r
@@ -2144,13 +2144,13 @@ func (r ApiListSupportedTokensRequest) WalletSubtype(walletSubtype WalletSubtype
return r
}
-// A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
+// A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
func (r ApiListSupportedTokensRequest) ChainIds(chainIds string) ApiListSupportedTokensRequest {
r.chainIds = &chainIds
return r
}
-// A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens).
+// A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
func (r ApiListSupportedTokensRequest) TokenIds(tokenIds string) ApiListSupportedTokensRequest {
r.tokenIds = &tokenIds
return r
@@ -2162,13 +2162,13 @@ func (r ApiListSupportedTokensRequest) Limit(limit int32) ApiListSupportedTokens
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListSupportedTokensRequest) Before(before string) ApiListSupportedTokensRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListSupportedTokensRequest) After(after string) ApiListSupportedTokensRequest {
r.after = &after
return r
@@ -2329,7 +2329,7 @@ type ApiListTokenBalancesForAddressRequest struct {
after *string
}
-// A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens).
+// A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
func (r ApiListTokenBalancesForAddressRequest) TokenIds(tokenIds string) ApiListTokenBalancesForAddressRequest {
r.tokenIds = &tokenIds
return r
@@ -2341,13 +2341,13 @@ func (r ApiListTokenBalancesForAddressRequest) Limit(limit int32) ApiListTokenBa
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListTokenBalancesForAddressRequest) Before(before string) ApiListTokenBalancesForAddressRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListTokenBalancesForAddressRequest) After(after string) ApiListTokenBalancesForAddressRequest {
r.after = &after
return r
@@ -2502,7 +2502,7 @@ type ApiListTokenBalancesForWalletRequest struct {
after *string
}
-// A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens).
+// A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
func (r ApiListTokenBalancesForWalletRequest) TokenIds(tokenIds string) ApiListTokenBalancesForWalletRequest {
r.tokenIds = &tokenIds
return r
@@ -2514,13 +2514,13 @@ func (r ApiListTokenBalancesForWalletRequest) Limit(limit int32) ApiListTokenBal
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListTokenBalancesForWalletRequest) Before(before string) ApiListTokenBalancesForWalletRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListTokenBalancesForWalletRequest) After(after string) ApiListTokenBalancesForWalletRequest {
r.after = &after
return r
@@ -2673,7 +2673,7 @@ type ApiListUtxosRequest struct {
after *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).
+// The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
func (r ApiListUtxosRequest) TokenId(tokenId string) ApiListUtxosRequest {
r.tokenId = &tokenId
return r
@@ -2691,13 +2691,13 @@ func (r ApiListUtxosRequest) Limit(limit int32) ApiListUtxosRequest {
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListUtxosRequest) Before(before string) ApiListUtxosRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListUtxosRequest) After(after string) ApiListUtxosRequest {
r.after = &after
return r
@@ -2867,13 +2867,13 @@ func (r ApiListWalletsRequest) WalletSubtype(walletSubtype WalletSubtype) ApiLis
return r
}
-// The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
+// The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
func (r ApiListWalletsRequest) ProjectId(projectId string) ApiListWalletsRequest {
r.projectId = &projectId
return r
}
-// The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults).
+// The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults).
func (r ApiListWalletsRequest) VaultId(vaultId string) ApiListWalletsRequest {
r.vaultId = &vaultId
return r
@@ -2885,13 +2885,13 @@ func (r ApiListWalletsRequest) Limit(limit int32) ApiListWalletsRequest {
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListWalletsRequest) Before(before string) ApiListWalletsRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListWalletsRequest) After(after string) ApiListWalletsRequest {
r.after = &after
return r
diff --git a/cobo_waas2/api_wallets_exchange_wallet.go b/cobo_waas2/api_wallets_exchange_wallet.go
index f286fc6..3b1b6dd 100644
--- a/cobo_waas2/api_wallets_exchange_wallet.go
+++ b/cobo_waas2/api_wallets_exchange_wallet.go
@@ -32,7 +32,7 @@ type ApiListAssetBalancesForExchangeWalletRequest struct {
after *string
}
-// A list of trading account types, separated by comma. You can get the the supported trading account types of an exchange by calling [List supported exchanges](/v2/api-references/wallets--exchange-wallet/list-supported-exchanges).
+// A list of trading account types, separated by comma. You can get the the supported trading account types of an exchange by calling [List supported exchanges](https://www.cobo.com/developers/v2/api-references/wallets--exchange-wallet/list-supported-exchanges).
func (r ApiListAssetBalancesForExchangeWalletRequest) TradingAccountTypes(tradingAccountTypes string) ApiListAssetBalancesForExchangeWalletRequest {
r.tradingAccountTypes = &tradingAccountTypes
return r
@@ -50,13 +50,13 @@ func (r ApiListAssetBalancesForExchangeWalletRequest) Limit(limit int32) ApiList
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListAssetBalancesForExchangeWalletRequest) Before(before string) ApiListAssetBalancesForExchangeWalletRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListAssetBalancesForExchangeWalletRequest) After(after string) ApiListAssetBalancesForExchangeWalletRequest {
r.after = &after
return r
@@ -334,13 +334,13 @@ func (r ApiListSupportedAssetsForExchangeRequest) Limit(limit int32) ApiListSupp
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListSupportedAssetsForExchangeRequest) Before(before string) ApiListSupportedAssetsForExchangeRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListSupportedAssetsForExchangeRequest) After(after string) ApiListSupportedAssetsForExchangeRequest {
r.after = &after
return r
@@ -497,7 +497,7 @@ You can use this operation to confirm whether you can transfer an asset from or
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param exchangeId The ID of the exchange. Possible values include: - `binance`: Binance. - `okx`: OKX. - `deribit`: Deribit. - `bybit`: Bybit. - `gate`: Gate.io - `bitget`: Bitget - `bitmart`: BitMart - `bitfinex`: Bitfinex
- @param assetId (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. You can get the ID of the assets supported by an exchanges by calling [List supported assets](/v2/api-references/wallets--exchange-wallet/list-supported-assets).
+ @param assetId (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. You can get the ID of the assets supported by an exchanges by calling [List supported assets](https://www.cobo.com/developers/v2/api-references/wallets--exchange-wallet/list-supported-assets).
@return ApiListSupportedChainsForExchangeRequest
*/
func (a *WalletsExchangeWalletAPIService) ListSupportedChainsForExchange(ctx context.Context, exchangeId ExchangeId, assetId string) ApiListSupportedChainsForExchangeRequest {
diff --git a/cobo_waas2/api_wallets_mpc_wallets.go b/cobo_waas2/api_wallets_mpc_wallets.go
index 6019e0f..893b0f0 100644
--- a/cobo_waas2/api_wallets_mpc_wallets.go
+++ b/cobo_waas2/api_wallets_mpc_wallets.go
@@ -39,8 +39,8 @@ This operation cancels a TSS request.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param vaultId The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
- @param tssRequestId The TSS request ID, which you can retrieve by calling [List TSS requests](/v2/api-references/wallets--mpc-wallets/list-tss-requests).
+ @param vaultId The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
+ @param tssRequestId The TSS request ID, which you can retrieve by calling [List TSS requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests).
@return ApiCancelTssRequestByIdRequest
*/
func (a *WalletsMPCWalletsAPIService) CancelTssRequestById(ctx context.Context, vaultId string, tssRequestId string) ApiCancelTssRequestByIdRequest {
@@ -170,11 +170,11 @@ func (r ApiCreateKeyShareHolderGroupRequest) Execute() (*KeyShareHolderGroup, *h
/*
CreateKeyShareHolderGroup Create key share holder group
-This operation creates a key share holder group for a specified vault. This operation will not return the `tss_key_share_groups` property until key shares have been created using the [Create TSS request](/v2/api-references/wallets--mpc-wallets/create-tss-request) operation. Creating a wallet with the [Create wallet](/v2/api-references/wallets/create-wallet) operation is only possible after you've completed the previous actions.
+This operation creates a key share holder group for a specified vault. This operation will not return the `tss_key_share_groups` property until key shares have been created using the [Create TSS request](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/create-tss-request) operation. Creating a wallet with the [Create wallet](https://www.cobo.com/developers/v2/api-references/wallets/create-wallet) operation is only possible after you've completed the previous actions.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param vaultId The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
+ @param vaultId The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
@return ApiCreateKeyShareHolderGroupRequest
*/
func (a *WalletsMPCWalletsAPIService) CreateKeyShareHolderGroup(ctx context.Context, vaultId string) ApiCreateKeyShareHolderGroupRequest {
@@ -437,7 +437,7 @@ CreateMpcVault Create vault
This operation creates a vault.
-To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
+To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@@ -572,7 +572,7 @@ This operation creates a TSS request under a specified vault. You can use this o
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param vaultId The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
+ @param vaultId The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
@return ApiCreateTssRequestRequest
*/
func (a *WalletsMPCWalletsAPIService) CreateTssRequest(ctx context.Context, vaultId string) ApiCreateTssRequestRequest {
@@ -699,7 +699,7 @@ DeleteKeyShareHolderGroupById Delete key share holder group
This operation deletes a specified key share holder group.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param vaultId The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
+ @param vaultId The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
@param keyShareHolderGroupId The key share holder group ID.
@return ApiDeleteKeyShareHolderGroupByIdRequest
*/
@@ -828,7 +828,7 @@ This operation retrieves detailed information about a specified key share holder
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param vaultId The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
+ @param vaultId The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
@param keyShareHolderGroupId The key share holder group ID.
@return ApiGetKeyShareHolderGroupByIdRequest
*/
@@ -957,7 +957,7 @@ This operation retrieves detailed information about a project.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param projectId The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
+ @param projectId The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
@return ApiGetMpcProjectByIdRequest
*/
func (a *WalletsMPCWalletsAPIService) GetMpcProjectById(ctx context.Context, projectId string) ApiGetMpcProjectByIdRequest {
@@ -1080,11 +1080,11 @@ GetMpcVaultById Get vault information
This operation retrieves detailed information about a vault.
-To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
+To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param vaultId The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
+ @param vaultId The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
@return ApiGetMpcVaultByIdRequest
*/
func (a *WalletsMPCWalletsAPIService) GetMpcVaultById(ctx context.Context, vaultId string) ApiGetMpcVaultByIdRequest {
@@ -1210,8 +1210,8 @@ This operation retrieves detailed information about a TSS request.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param vaultId The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
- @param tssRequestId The TSS request ID, which you can retrieve by calling [List TSS requests](/v2/api-references/wallets--mpc-wallets/list-tss-requests).
+ @param vaultId The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
+ @param tssRequestId The TSS request ID, which you can retrieve by calling [List TSS requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests).
@return ApiGetTssRequestByIdRequest
*/
func (a *WalletsMPCWalletsAPIService) GetTssRequestById(ctx context.Context, vaultId string, tssRequestId string) ApiGetTssRequestByIdRequest {
@@ -1466,13 +1466,13 @@ func (r ApiListKeyShareHolderGroupsRequest) Limit(limit int32) ApiListKeyShareHo
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListKeyShareHolderGroupsRequest) Before(before string) ApiListKeyShareHolderGroupsRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListKeyShareHolderGroupsRequest) After(after string) ApiListKeyShareHolderGroupsRequest {
r.after = &after
return r
@@ -1489,7 +1489,7 @@ This operation retrieves all key share holder groups under a specified vault. Yo
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param vaultId The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
+ @param vaultId The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
@return ApiListKeyShareHolderGroupsRequest
*/
func (a *WalletsMPCWalletsAPIService) ListKeyShareHolderGroups(ctx context.Context, vaultId string) ApiListKeyShareHolderGroupsRequest {
@@ -1626,13 +1626,13 @@ func (r ApiListMpcProjectsRequest) Limit(limit int32) ApiListMpcProjectsRequest
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListMpcProjectsRequest) Before(before string) ApiListMpcProjectsRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListMpcProjectsRequest) After(after string) ApiListMpcProjectsRequest {
r.after = &after
return r
@@ -1784,7 +1784,7 @@ func (r ApiListMpcVaultsRequest) VaultType(vaultType MPCVaultType) ApiListMpcVau
return r
}
-// The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
+// The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
func (r ApiListMpcVaultsRequest) ProjectId(projectId string) ApiListMpcVaultsRequest {
r.projectId = &projectId
return r
@@ -1796,13 +1796,13 @@ func (r ApiListMpcVaultsRequest) Limit(limit int32) ApiListMpcVaultsRequest {
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListMpcVaultsRequest) Before(before string) ApiListMpcVaultsRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListMpcVaultsRequest) After(after string) ApiListMpcVaultsRequest {
r.after = &after
return r
@@ -1821,7 +1821,7 @@ This operation retrieves a list of all vaults. You can filter the result by proj
1. `project_id` is required when `vault_type` is set to `User-Controlled`.
2. `project_id` must be left blank when `vault_type` is set to `Org-Controlled`.
-To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
+To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@@ -1959,7 +1959,7 @@ type ApiListTssRequestsRequest struct {
after *string
}
-// The key share holder group ID of the TSS request, which you can retrieve by calling [List all key share holder groups](/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups).
+// The key share holder group ID of the TSS request, which you can retrieve by calling [List all key share holder groups](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups).
func (r ApiListTssRequestsRequest) KeyShareHolderGroupId(keyShareHolderGroupId string) ApiListTssRequestsRequest {
r.keyShareHolderGroupId = &keyShareHolderGroupId
return r
@@ -1971,13 +1971,13 @@ func (r ApiListTssRequestsRequest) Limit(limit int32) ApiListTssRequestsRequest
return r
}
-// An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned.
func (r ApiListTssRequestsRequest) Before(before string) ApiListTssRequestsRequest {
r.before = &before
return r
}
-// An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
+// This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned.
func (r ApiListTssRequestsRequest) After(after string) ApiListTssRequestsRequest {
r.after = &after
return r
@@ -1994,7 +1994,7 @@ This operation retrieves a list of TSS requests and their details.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param vaultId The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
+ @param vaultId The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
@return ApiListTssRequestsRequest
*/
func (a *WalletsMPCWalletsAPIService) ListTssRequests(ctx context.Context, vaultId string) ApiListTssRequestsRequest {
@@ -2142,7 +2142,7 @@ This operation updates a specified active [Signing Group](https://manuals.cobo.c
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param vaultId The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
+ @param vaultId The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
@param keyShareHolderGroupId The key share holder group ID.
@return ApiUpdateKeyShareHolderGroupByIdRequest
*/
@@ -2281,7 +2281,7 @@ This operation updates a project's name.
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param projectId The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects).
+ @param projectId The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects).
@return ApiUpdateMpcProjectByIdRequest
*/
func (a *WalletsMPCWalletsAPIService) UpdateMpcProjectById(ctx context.Context, projectId string) ApiUpdateMpcProjectByIdRequest {
@@ -2413,11 +2413,11 @@ UpdateMpcVaultById Update vault name
This operation updates a vault's name.
-To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
+To learn what a vault is and how it relates to MPC Wallets, see [Get started with MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/get-started-ocw#technical-architecture).
@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
- @param vaultId The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
+ @param vaultId The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults).
@return ApiUpdateMpcVaultByIdRequest
*/
func (a *WalletsMPCWalletsAPIService) UpdateMpcVaultById(ctx context.Context, vaultId string) ApiUpdateMpcVaultByIdRequest {
diff --git a/cobo_waas2/client.go b/cobo_waas2/client.go
index 734dc6b..26f6b20 100644
--- a/cobo_waas2/client.go
+++ b/cobo_waas2/client.go
@@ -62,6 +62,8 @@ type APIClient struct {
TransactionsAPI *TransactionsAPIService
+ TravelRuleAPI *TravelRuleAPIService
+
WalletsAPI *WalletsAPIService
WalletsExchangeWalletAPI *WalletsExchangeWalletAPIService
@@ -93,6 +95,7 @@ func NewAPIClient(cfg *Configuration) *APIClient {
c.OAuthAPI = (*OAuthAPIService)(&c.common)
c.StakingsAPI = (*StakingsAPIService)(&c.common)
c.TransactionsAPI = (*TransactionsAPIService)(&c.common)
+ c.TravelRuleAPI = (*TravelRuleAPIService)(&c.common)
c.WalletsAPI = (*WalletsAPIService)(&c.common)
c.WalletsExchangeWalletAPI = (*WalletsExchangeWalletAPIService)(&c.common)
c.WalletsMPCWalletsAPI = (*WalletsMPCWalletsAPIService)(&c.common)
diff --git a/cobo_waas2/configuration.go b/cobo_waas2/configuration.go
index 500422f..6acd8d2 100644
--- a/cobo_waas2/configuration.go
+++ b/cobo_waas2/configuration.go
@@ -80,7 +80,7 @@ type Configuration struct {
func NewConfiguration() *Configuration {
cfg := &Configuration{
DefaultHeader: make(map[string]string),
- UserAgent: "cobo-waas2-go-sdk/1.7.0",
+ UserAgent: "cobo-waas2-go-sdk/1.8.0",
Debug: false,
Log: &DefaultLogger{},
Servers: ServerConfigurations{
diff --git a/cobo_waas2/model_activity.go b/cobo_waas2/model_activity.go
index e018325..8005ad1 100644
--- a/cobo_waas2/model_activity.go
+++ b/cobo_waas2/model_activity.go
@@ -34,6 +34,8 @@ type Activity struct {
TokenId string `json:"token_id"`
// The ID of the corresponding staking position.
StakingId *string `json:"staking_id,omitempty"`
+ // The request IDs of the corresponding transactions of the activity.
+ RequestIds []string `json:"request_ids,omitempty"`
// The staking amount.
Amount string `json:"amount"`
// The IDs of the corresponding transactions of the activity.
@@ -42,6 +44,7 @@ type Activity struct {
Timeline []ActivityTimeline `json:"timeline,omitempty"`
Fee *TransactionRequestFee `json:"fee,omitempty"`
Status ActivityStatus `json:"status"`
+ Extra *ActivityExtra `json:"extra,omitempty"`
// The time when the activity was created.
CreatedTimestamp *int64 `json:"created_timestamp,omitempty"`
// The time when the activity was last updated.
@@ -343,6 +346,38 @@ func (o *Activity) SetStakingId(v string) {
o.StakingId = &v
}
+// GetRequestIds returns the RequestIds field value if set, zero value otherwise.
+func (o *Activity) GetRequestIds() []string {
+ if o == nil || IsNil(o.RequestIds) {
+ var ret []string
+ return ret
+ }
+ return o.RequestIds
+}
+
+// GetRequestIdsOk returns a tuple with the RequestIds field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Activity) GetRequestIdsOk() ([]string, bool) {
+ if o == nil || IsNil(o.RequestIds) {
+ return nil, false
+ }
+ return o.RequestIds, true
+}
+
+// HasRequestIds returns a boolean if a field has been set.
+func (o *Activity) HasRequestIds() bool {
+ if o != nil && !IsNil(o.RequestIds) {
+ return true
+ }
+
+ return false
+}
+
+// SetRequestIds gets a reference to the given []string and assigns it to the RequestIds field.
+func (o *Activity) SetRequestIds(v []string) {
+ o.RequestIds = v
+}
+
// GetAmount returns the Amount field value
func (o *Activity) GetAmount() string {
if o == nil {
@@ -487,6 +522,38 @@ func (o *Activity) SetStatus(v ActivityStatus) {
o.Status = v
}
+// GetExtra returns the Extra field value if set, zero value otherwise.
+func (o *Activity) GetExtra() ActivityExtra {
+ if o == nil || IsNil(o.Extra) {
+ var ret ActivityExtra
+ return ret
+ }
+ return *o.Extra
+}
+
+// GetExtraOk returns a tuple with the Extra field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *Activity) GetExtraOk() (*ActivityExtra, bool) {
+ if o == nil || IsNil(o.Extra) {
+ return nil, false
+ }
+ return o.Extra, true
+}
+
+// HasExtra returns a boolean if a field has been set.
+func (o *Activity) HasExtra() bool {
+ if o != nil && !IsNil(o.Extra) {
+ return true
+ }
+
+ return false
+}
+
+// SetExtra gets a reference to the given ActivityExtra and assigns it to the Extra field.
+func (o *Activity) SetExtra(v ActivityExtra) {
+ o.Extra = &v
+}
+
// GetCreatedTimestamp returns the CreatedTimestamp field value if set, zero value otherwise.
func (o *Activity) GetCreatedTimestamp() int64 {
if o == nil || IsNil(o.CreatedTimestamp) {
@@ -584,6 +651,9 @@ func (o Activity) ToMap() (map[string]interface{}, error) {
if !IsNil(o.StakingId) {
toSerialize["staking_id"] = o.StakingId
}
+ if !IsNil(o.RequestIds) {
+ toSerialize["request_ids"] = o.RequestIds
+ }
toSerialize["amount"] = o.Amount
if !IsNil(o.TransactionIds) {
toSerialize["transaction_ids"] = o.TransactionIds
@@ -595,6 +665,9 @@ func (o Activity) ToMap() (map[string]interface{}, error) {
toSerialize["fee"] = o.Fee
}
toSerialize["status"] = o.Status
+ if !IsNil(o.Extra) {
+ toSerialize["extra"] = o.Extra
+ }
if !IsNil(o.CreatedTimestamp) {
toSerialize["created_timestamp"] = o.CreatedTimestamp
}
diff --git a/cobo_waas2/model_activity_action.go b/cobo_waas2/model_activity_action.go
index 37f05f9..7245455 100644
--- a/cobo_waas2/model_activity_action.go
+++ b/cobo_waas2/model_activity_action.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// ActivityAction The specific action taken within an activity. Possible values include: - `Submitted`: Submit the staking, unstaking, or withdrawal request. - `BTCConfirmation`: The Bitcoin chain confirms the request. - `BabylonConfirmation`: The Babylon protocol confirms the request. - `DepositETH`: Deposit ETH to the validator to start staking. - `ClaimRewards`: Claim the rewards from the validator. - `ActivateValidator`: Activate the validator to start staking. - `UnstakeETH`: Unstake ETH from the validator.
+// ActivityAction The specific action taken within an activity. Possible values include: - `Submitted`: Submit the staking, unstaking, or withdrawal request. - `BTCConfirmation`: The Bitcoin chain confirms the request. - `BabylonConfirmation`: The Babylon protocol confirms the request. - `DepositETH`: Deposit ETH to the validator to start staking. - `ClaimRewards`: Claim the rewards from the validator. - `ActivateValidator`: Activate the validator to start staking. - `UnstakeETH`: Unstake ETH from the validator. - `ApproveUSDC`: Approve the USDC token to be used for staking. - `ConvertToUSDS`: Convert the USDC token to the USDS token. - `ApproveUSDS`: Approve the USDS token to be used for staking. - `DepositUSDS`: Deposit the USDS token to the validator. - `WithdrawUSDS`: Withdraw the USDS token from the validator. - `ConvertToUSDC`: Convert the USDS token to the USDC token.
type ActivityAction string
// List of ActivityAction
@@ -25,6 +25,12 @@ const (
ACTIVITYACTION_CLAIM_REWARDS ActivityAction = "ClaimRewards"
ACTIVITYACTION_ACTIVATE_VALIDATOR ActivityAction = "ActivateValidator"
ACTIVITYACTION_UNSTAKE_ETH ActivityAction = "UnstakeETH"
+ ACTIVITYACTION_APPROVE_USDC ActivityAction = "ApproveUSDC"
+ ACTIVITYACTION_CONVERT_TO_USDS ActivityAction = "ConvertToUSDS"
+ ACTIVITYACTION_APPROVE_USDS ActivityAction = "ApproveUSDS"
+ ACTIVITYACTION_DEPOSIT_USDS ActivityAction = "DepositUSDS"
+ ACTIVITYACTION_WITHDRAW_USDS ActivityAction = "WithdrawUSDS"
+ ACTIVITYACTION_CONVERT_TO_USDC ActivityAction = "ConvertToUSDC"
)
// All allowed values of ActivityAction enum
@@ -36,6 +42,12 @@ var AllowedActivityActionEnumValues = []ActivityAction{
"ClaimRewards",
"ActivateValidator",
"UnstakeETH",
+ "ApproveUSDC",
+ "ConvertToUSDS",
+ "ApproveUSDS",
+ "DepositUSDS",
+ "WithdrawUSDS",
+ "ConvertToUSDC",
}
func (v *ActivityAction) UnmarshalJSON(src []byte) error {
diff --git a/cobo_waas2/model_activity_extra.go b/cobo_waas2/model_activity_extra.go
new file mode 100644
index 0000000..5b339db
--- /dev/null
+++ b/cobo_waas2/model_activity_extra.go
@@ -0,0 +1,204 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// ActivityExtra - struct for ActivityExtra
+type ActivityExtra struct {
+ BabylonStakingActivityDetailExtra *BabylonStakingActivityDetailExtra
+ CoreStakingActivityDetailExtra *CoreStakingActivityDetailExtra
+ EthStakingActivityDetailExtra *EthStakingActivityDetailExtra
+}
+
+// BabylonStakingActivityDetailExtraAsActivityExtra is a convenience function that returns BabylonStakingActivityDetailExtra wrapped in ActivityExtra
+func BabylonStakingActivityDetailExtraAsActivityExtra(v *BabylonStakingActivityDetailExtra) ActivityExtra {
+ return ActivityExtra{
+ BabylonStakingActivityDetailExtra: v,
+ }
+}
+
+// CoreStakingActivityDetailExtraAsActivityExtra is a convenience function that returns CoreStakingActivityDetailExtra wrapped in ActivityExtra
+func CoreStakingActivityDetailExtraAsActivityExtra(v *CoreStakingActivityDetailExtra) ActivityExtra {
+ return ActivityExtra{
+ CoreStakingActivityDetailExtra: v,
+ }
+}
+
+// EthStakingActivityDetailExtraAsActivityExtra is a convenience function that returns EthStakingActivityDetailExtra wrapped in ActivityExtra
+func EthStakingActivityDetailExtraAsActivityExtra(v *EthStakingActivityDetailExtra) ActivityExtra {
+ return ActivityExtra{
+ EthStakingActivityDetailExtra: v,
+ }
+}
+
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *ActivityExtra) UnmarshalJSON(data []byte) error {
+ var err error
+ // use discriminator value to speed up the lookup
+ var jsonDict map[string]interface{}
+ err = newStrictDecoder(data).Decode(&jsonDict)
+ if err != nil {
+ return fmt.Errorf("failed to unmarshal JSON into map for the discriminator lookup")
+ }
+
+ // check if the discriminator value is 'Babylon'
+ if jsonDict["pool_type"] == "Babylon" {
+ // try to unmarshal JSON data into BabylonStakingActivityDetailExtra
+ err = json.Unmarshal(data, &dst.BabylonStakingActivityDetailExtra)
+ if err == nil {
+ return nil // data stored in dst.BabylonStakingActivityDetailExtra, return on the first match
+ } else {
+ dst.BabylonStakingActivityDetailExtra = nil
+ return fmt.Errorf("failed to unmarshal ActivityExtra as BabylonStakingActivityDetailExtra: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'CoreBTC'
+ if jsonDict["pool_type"] == "CoreBTC" {
+ // try to unmarshal JSON data into CoreStakingActivityDetailExtra
+ err = json.Unmarshal(data, &dst.CoreStakingActivityDetailExtra)
+ if err == nil {
+ return nil // data stored in dst.CoreStakingActivityDetailExtra, return on the first match
+ } else {
+ dst.CoreStakingActivityDetailExtra = nil
+ return fmt.Errorf("failed to unmarshal ActivityExtra as CoreStakingActivityDetailExtra: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'ETHBeacon'
+ if jsonDict["pool_type"] == "ETHBeacon" {
+ // try to unmarshal JSON data into EthStakingActivityDetailExtra
+ err = json.Unmarshal(data, &dst.EthStakingActivityDetailExtra)
+ if err == nil {
+ return nil // data stored in dst.EthStakingActivityDetailExtra, return on the first match
+ } else {
+ dst.EthStakingActivityDetailExtra = nil
+ return fmt.Errorf("failed to unmarshal ActivityExtra as EthStakingActivityDetailExtra: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'BabylonStakingActivityDetailExtra'
+ if jsonDict["pool_type"] == "BabylonStakingActivityDetailExtra" {
+ // try to unmarshal JSON data into BabylonStakingActivityDetailExtra
+ err = json.Unmarshal(data, &dst.BabylonStakingActivityDetailExtra)
+ if err == nil {
+ return nil // data stored in dst.BabylonStakingActivityDetailExtra, return on the first match
+ } else {
+ dst.BabylonStakingActivityDetailExtra = nil
+ return fmt.Errorf("failed to unmarshal ActivityExtra as BabylonStakingActivityDetailExtra: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'CoreStakingActivityDetailExtra'
+ if jsonDict["pool_type"] == "CoreStakingActivityDetailExtra" {
+ // try to unmarshal JSON data into CoreStakingActivityDetailExtra
+ err = json.Unmarshal(data, &dst.CoreStakingActivityDetailExtra)
+ if err == nil {
+ return nil // data stored in dst.CoreStakingActivityDetailExtra, return on the first match
+ } else {
+ dst.CoreStakingActivityDetailExtra = nil
+ return fmt.Errorf("failed to unmarshal ActivityExtra as CoreStakingActivityDetailExtra: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'EthStakingActivityDetailExtra'
+ if jsonDict["pool_type"] == "EthStakingActivityDetailExtra" {
+ // try to unmarshal JSON data into EthStakingActivityDetailExtra
+ err = json.Unmarshal(data, &dst.EthStakingActivityDetailExtra)
+ if err == nil {
+ return nil // data stored in dst.EthStakingActivityDetailExtra, return on the first match
+ } else {
+ dst.EthStakingActivityDetailExtra = nil
+ return fmt.Errorf("failed to unmarshal ActivityExtra as EthStakingActivityDetailExtra: %s", err.Error())
+ }
+ }
+
+ return nil
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src ActivityExtra) MarshalJSON() ([]byte, error) {
+ if src.BabylonStakingActivityDetailExtra != nil {
+ return json.Marshal(&src.BabylonStakingActivityDetailExtra)
+ }
+
+ if src.CoreStakingActivityDetailExtra != nil {
+ return json.Marshal(&src.CoreStakingActivityDetailExtra)
+ }
+
+ if src.EthStakingActivityDetailExtra != nil {
+ return json.Marshal(&src.EthStakingActivityDetailExtra)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *ActivityExtra) GetActualInstance() (interface{}) {
+ if obj == nil {
+ return nil
+ }
+ if obj.BabylonStakingActivityDetailExtra != nil {
+ return obj.BabylonStakingActivityDetailExtra
+ }
+
+ if obj.CoreStakingActivityDetailExtra != nil {
+ return obj.CoreStakingActivityDetailExtra
+ }
+
+ if obj.EthStakingActivityDetailExtra != nil {
+ return obj.EthStakingActivityDetailExtra
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableActivityExtra struct {
+ value *ActivityExtra
+ isSet bool
+}
+
+func (v NullableActivityExtra) Get() *ActivityExtra {
+ return v.value
+}
+
+func (v *NullableActivityExtra) Set(val *ActivityExtra) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableActivityExtra) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableActivityExtra) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableActivityExtra(val *ActivityExtra) *NullableActivityExtra {
+ return &NullableActivityExtra{value: val, isSet: true}
+}
+
+func (v NullableActivityExtra) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableActivityExtra) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_address_info.go b/cobo_waas2/model_address_info.go
index f1c6dc9..a9c856a 100644
--- a/cobo_waas2/model_address_info.go
+++ b/cobo_waas2/model_address_info.go
@@ -21,7 +21,7 @@ var _ MappedNullable = &AddressInfo{}
type AddressInfo struct {
// The wallet address.
Address string `json:"address"`
- // 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).
+ // 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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
ChainId string `json:"chain_id"`
// The memo code.
Memo *string `json:"memo,omitempty"`
@@ -32,6 +32,8 @@ type AddressInfo struct {
Pubkey *string `json:"pubkey,omitempty"`
// The 32-byte x-only public key in hexadecimal format after tweaking.
XOnlyPubkey *string `json:"x_only_pubkey,omitempty"`
+ // The root public key of the address. This property applies to MPC Wallets only.
+ RootPubkey *string `json:"root_pubkey,omitempty"`
// The information about the new address.
TaprootScriptTreeHash *string `json:"taproot_script_tree_hash,omitempty"`
// The Taproot address before tweaking.
@@ -267,6 +269,38 @@ func (o *AddressInfo) SetXOnlyPubkey(v string) {
o.XOnlyPubkey = &v
}
+// GetRootPubkey returns the RootPubkey field value if set, zero value otherwise.
+func (o *AddressInfo) GetRootPubkey() string {
+ if o == nil || IsNil(o.RootPubkey) {
+ var ret string
+ return ret
+ }
+ return *o.RootPubkey
+}
+
+// GetRootPubkeyOk returns a tuple with the RootPubkey field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *AddressInfo) GetRootPubkeyOk() (*string, bool) {
+ if o == nil || IsNil(o.RootPubkey) {
+ return nil, false
+ }
+ return o.RootPubkey, true
+}
+
+// HasRootPubkey returns a boolean if a field has been set.
+func (o *AddressInfo) HasRootPubkey() bool {
+ if o != nil && !IsNil(o.RootPubkey) {
+ return true
+ }
+
+ return false
+}
+
+// SetRootPubkey gets a reference to the given string and assigns it to the RootPubkey field.
+func (o *AddressInfo) SetRootPubkey(v string) {
+ o.RootPubkey = &v
+}
+
// GetTaprootScriptTreeHash returns the TaprootScriptTreeHash field value if set, zero value otherwise.
func (o *AddressInfo) GetTaprootScriptTreeHash() string {
if o == nil || IsNil(o.TaprootScriptTreeHash) {
@@ -358,6 +392,9 @@ func (o AddressInfo) ToMap() (map[string]interface{}, error) {
if !IsNil(o.XOnlyPubkey) {
toSerialize["x_only_pubkey"] = o.XOnlyPubkey
}
+ if !IsNil(o.RootPubkey) {
+ toSerialize["root_pubkey"] = o.RootPubkey
+ }
if !IsNil(o.TaprootScriptTreeHash) {
toSerialize["taproot_script_tree_hash"] = o.TaprootScriptTreeHash
}
diff --git a/cobo_waas2/model_address_transfer_destination.go b/cobo_waas2/model_address_transfer_destination.go
index 9b2f0ea..c744d27 100644
--- a/cobo_waas2/model_address_transfer_destination.go
+++ b/cobo_waas2/model_address_transfer_destination.go
@@ -17,7 +17,7 @@ import (
// checks if the AddressTransferDestination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AddressTransferDestination{}
-// AddressTransferDestination The information about the transaction destination type `Address`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Specify either the `account_output` property or the `utxo_outputs` property. You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the `utxo_outputs` property to specify the destination addresses. Switch between the tabs to display the properties for different transaction destinations.
+// AddressTransferDestination The information about the transaction destination type `Address`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Specify either the `account_output` property or the `utxo_outputs` property. You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the `utxo_outputs` property to specify the destination addresses. Switch between the tabs to display the properties for different transaction destinations.
type AddressTransferDestination struct {
DestinationType TransferDestinationType `json:"destination_type"`
AccountOutput *AddressTransferDestinationAccountOutput `json:"account_output,omitempty"`
diff --git a/cobo_waas2/model_addresses_event_data.go b/cobo_waas2/model_addresses_event_data.go
new file mode 100644
index 0000000..0a27dd2
--- /dev/null
+++ b/cobo_waas2/model_addresses_event_data.go
@@ -0,0 +1,194 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the AddressesEventData type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &AddressesEventData{}
+
+// AddressesEventData struct for AddressesEventData
+type AddressesEventData struct {
+ // The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
+ DataType string `json:"data_type"`
+ // A list of addresses.
+ Addresses []AddressInfo `json:"addresses,omitempty"`
+}
+
+type _AddressesEventData AddressesEventData
+
+// NewAddressesEventData instantiates a new AddressesEventData object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewAddressesEventData(dataType string) *AddressesEventData {
+ this := AddressesEventData{}
+ this.DataType = dataType
+ return &this
+}
+
+// NewAddressesEventDataWithDefaults instantiates a new AddressesEventData object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewAddressesEventDataWithDefaults() *AddressesEventData {
+ this := AddressesEventData{}
+ return &this
+}
+
+// GetDataType returns the DataType field value
+func (o *AddressesEventData) GetDataType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.DataType
+}
+
+// GetDataTypeOk returns a tuple with the DataType field value
+// and a boolean to check if the value has been set.
+func (o *AddressesEventData) GetDataTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DataType, true
+}
+
+// SetDataType sets field value
+func (o *AddressesEventData) SetDataType(v string) {
+ o.DataType = v
+}
+
+// GetAddresses returns the Addresses field value if set, zero value otherwise.
+func (o *AddressesEventData) GetAddresses() []AddressInfo {
+ if o == nil || IsNil(o.Addresses) {
+ var ret []AddressInfo
+ return ret
+ }
+ return o.Addresses
+}
+
+// GetAddressesOk returns a tuple with the Addresses field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *AddressesEventData) GetAddressesOk() ([]AddressInfo, bool) {
+ if o == nil || IsNil(o.Addresses) {
+ return nil, false
+ }
+ return o.Addresses, true
+}
+
+// HasAddresses returns a boolean if a field has been set.
+func (o *AddressesEventData) HasAddresses() bool {
+ if o != nil && !IsNil(o.Addresses) {
+ return true
+ }
+
+ return false
+}
+
+// SetAddresses gets a reference to the given []AddressInfo and assigns it to the Addresses field.
+func (o *AddressesEventData) SetAddresses(v []AddressInfo) {
+ o.Addresses = v
+}
+
+func (o AddressesEventData) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o AddressesEventData) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["data_type"] = o.DataType
+ if !IsNil(o.Addresses) {
+ toSerialize["addresses"] = o.Addresses
+ }
+ return toSerialize, nil
+}
+
+func (o *AddressesEventData) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "data_type",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varAddressesEventData := _AddressesEventData{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varAddressesEventData)
+
+ if err != nil {
+ return err
+ }
+
+ *o = AddressesEventData(varAddressesEventData)
+
+ return err
+}
+
+type NullableAddressesEventData struct {
+ value *AddressesEventData
+ isSet bool
+}
+
+func (v NullableAddressesEventData) Get() *AddressesEventData {
+ return v.value
+}
+
+func (v *NullableAddressesEventData) Set(val *AddressesEventData) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableAddressesEventData) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableAddressesEventData) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableAddressesEventData(val *AddressesEventData) *NullableAddressesEventData {
+ return &NullableAddressesEventData{value: val, isSet: true}
+}
+
+func (v NullableAddressesEventData) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableAddressesEventData) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_api_log_details.go b/cobo_waas2/model_api_log_details.go
index e50a19a..7234c17 100644
--- a/cobo_waas2/model_api_log_details.go
+++ b/cobo_waas2/model_api_log_details.go
@@ -31,7 +31,7 @@ type ApiLogDetails struct {
IpAddress string `json:"ip_address"`
// The time when the API request was created, in Unix timestamp format, measured in milliseconds.
RequestTimestamp int64 `json:"request_timestamp"`
- // The API key used to call the API. For more details, refer to [API key](/v2/guides/overview/cobo-auth#api-key).
+ // The API key used to call the API. For more details, refer to [API key](https://www.cobo.com/developers/v2/guides/overview/cobo-auth#api-key).
ApiKey string `json:"api_key"`
// The response body of the API request.
ResponseBody string `json:"response_body"`
diff --git a/cobo_waas2/model_babylon_stake_extra.go b/cobo_waas2/model_babylon_stake_extra.go
index 6040a4b..0377502 100644
--- a/cobo_waas2/model_babylon_stake_extra.go
+++ b/cobo_waas2/model_babylon_stake_extra.go
@@ -24,7 +24,7 @@ type BabylonStakeExtra struct {
FinalityProviderPublicKey string `json:"finality_provider_public_key"`
// The number of blocks that need to be processed before the locked tokens are unlocked and become accessible.
StakeBlockTime int64 `json:"stake_block_time"`
- // Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself.
+ // Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](https://www.cobo.com/developers/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](https://www.cobo.com/developers/v2/api-references/transactions/get-transaction-information) and broadcast it yourself.
AutoBroadcast *bool `json:"auto_broadcast,omitempty"`
}
diff --git a/cobo_waas2/model_babylon_staking_activity_detail_extra.go b/cobo_waas2/model_babylon_staking_activity_detail_extra.go
new file mode 100644
index 0000000..99883db
--- /dev/null
+++ b/cobo_waas2/model_babylon_staking_activity_detail_extra.go
@@ -0,0 +1,340 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the BabylonStakingActivityDetailExtra type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &BabylonStakingActivityDetailExtra{}
+
+// BabylonStakingActivityDetailExtra struct for BabylonStakingActivityDetailExtra
+type BabylonStakingActivityDetailExtra struct {
+ PoolType StakingPoolType `json:"pool_type"`
+ // The public key of the finality provider.
+ FinalityProviderPublicKey *string `json:"finality_provider_public_key,omitempty"`
+ // The number of blocks that need to be processed before the locked tokens are unlocked and become accessible.
+ StakeBlockTime *int64 `json:"stake_block_time,omitempty"`
+ // Whether to automatically broadcast the transaction. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself.
+ AutoBroadcast *bool `json:"auto_broadcast,omitempty"`
+ // The version of babylon global parameters.
+ ParamVersion *int64 `json:"param_version,omitempty"`
+ WithdrawFromType *ActivityType `json:"withdraw_from_type,omitempty"`
+}
+
+type _BabylonStakingActivityDetailExtra BabylonStakingActivityDetailExtra
+
+// NewBabylonStakingActivityDetailExtra instantiates a new BabylonStakingActivityDetailExtra object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewBabylonStakingActivityDetailExtra(poolType StakingPoolType) *BabylonStakingActivityDetailExtra {
+ this := BabylonStakingActivityDetailExtra{}
+ this.PoolType = poolType
+ return &this
+}
+
+// NewBabylonStakingActivityDetailExtraWithDefaults instantiates a new BabylonStakingActivityDetailExtra object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewBabylonStakingActivityDetailExtraWithDefaults() *BabylonStakingActivityDetailExtra {
+ this := BabylonStakingActivityDetailExtra{}
+ return &this
+}
+
+// GetPoolType returns the PoolType field value
+func (o *BabylonStakingActivityDetailExtra) GetPoolType() StakingPoolType {
+ if o == nil {
+ var ret StakingPoolType
+ return ret
+ }
+
+ return o.PoolType
+}
+
+// GetPoolTypeOk returns a tuple with the PoolType field value
+// and a boolean to check if the value has been set.
+func (o *BabylonStakingActivityDetailExtra) GetPoolTypeOk() (*StakingPoolType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PoolType, true
+}
+
+// SetPoolType sets field value
+func (o *BabylonStakingActivityDetailExtra) SetPoolType(v StakingPoolType) {
+ o.PoolType = v
+}
+
+// GetFinalityProviderPublicKey returns the FinalityProviderPublicKey field value if set, zero value otherwise.
+func (o *BabylonStakingActivityDetailExtra) GetFinalityProviderPublicKey() string {
+ if o == nil || IsNil(o.FinalityProviderPublicKey) {
+ var ret string
+ return ret
+ }
+ return *o.FinalityProviderPublicKey
+}
+
+// GetFinalityProviderPublicKeyOk returns a tuple with the FinalityProviderPublicKey field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *BabylonStakingActivityDetailExtra) GetFinalityProviderPublicKeyOk() (*string, bool) {
+ if o == nil || IsNil(o.FinalityProviderPublicKey) {
+ return nil, false
+ }
+ return o.FinalityProviderPublicKey, true
+}
+
+// HasFinalityProviderPublicKey returns a boolean if a field has been set.
+func (o *BabylonStakingActivityDetailExtra) HasFinalityProviderPublicKey() bool {
+ if o != nil && !IsNil(o.FinalityProviderPublicKey) {
+ return true
+ }
+
+ return false
+}
+
+// SetFinalityProviderPublicKey gets a reference to the given string and assigns it to the FinalityProviderPublicKey field.
+func (o *BabylonStakingActivityDetailExtra) SetFinalityProviderPublicKey(v string) {
+ o.FinalityProviderPublicKey = &v
+}
+
+// GetStakeBlockTime returns the StakeBlockTime field value if set, zero value otherwise.
+func (o *BabylonStakingActivityDetailExtra) GetStakeBlockTime() int64 {
+ if o == nil || IsNil(o.StakeBlockTime) {
+ var ret int64
+ return ret
+ }
+ return *o.StakeBlockTime
+}
+
+// GetStakeBlockTimeOk returns a tuple with the StakeBlockTime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *BabylonStakingActivityDetailExtra) GetStakeBlockTimeOk() (*int64, bool) {
+ if o == nil || IsNil(o.StakeBlockTime) {
+ return nil, false
+ }
+ return o.StakeBlockTime, true
+}
+
+// HasStakeBlockTime returns a boolean if a field has been set.
+func (o *BabylonStakingActivityDetailExtra) HasStakeBlockTime() bool {
+ if o != nil && !IsNil(o.StakeBlockTime) {
+ return true
+ }
+
+ return false
+}
+
+// SetStakeBlockTime gets a reference to the given int64 and assigns it to the StakeBlockTime field.
+func (o *BabylonStakingActivityDetailExtra) SetStakeBlockTime(v int64) {
+ o.StakeBlockTime = &v
+}
+
+// GetAutoBroadcast returns the AutoBroadcast field value if set, zero value otherwise.
+func (o *BabylonStakingActivityDetailExtra) GetAutoBroadcast() bool {
+ if o == nil || IsNil(o.AutoBroadcast) {
+ var ret bool
+ return ret
+ }
+ return *o.AutoBroadcast
+}
+
+// GetAutoBroadcastOk returns a tuple with the AutoBroadcast field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *BabylonStakingActivityDetailExtra) GetAutoBroadcastOk() (*bool, bool) {
+ if o == nil || IsNil(o.AutoBroadcast) {
+ return nil, false
+ }
+ return o.AutoBroadcast, true
+}
+
+// HasAutoBroadcast returns a boolean if a field has been set.
+func (o *BabylonStakingActivityDetailExtra) HasAutoBroadcast() bool {
+ if o != nil && !IsNil(o.AutoBroadcast) {
+ return true
+ }
+
+ return false
+}
+
+// SetAutoBroadcast gets a reference to the given bool and assigns it to the AutoBroadcast field.
+func (o *BabylonStakingActivityDetailExtra) SetAutoBroadcast(v bool) {
+ o.AutoBroadcast = &v
+}
+
+// GetParamVersion returns the ParamVersion field value if set, zero value otherwise.
+func (o *BabylonStakingActivityDetailExtra) GetParamVersion() int64 {
+ if o == nil || IsNil(o.ParamVersion) {
+ var ret int64
+ return ret
+ }
+ return *o.ParamVersion
+}
+
+// GetParamVersionOk returns a tuple with the ParamVersion field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *BabylonStakingActivityDetailExtra) GetParamVersionOk() (*int64, bool) {
+ if o == nil || IsNil(o.ParamVersion) {
+ return nil, false
+ }
+ return o.ParamVersion, true
+}
+
+// HasParamVersion returns a boolean if a field has been set.
+func (o *BabylonStakingActivityDetailExtra) HasParamVersion() bool {
+ if o != nil && !IsNil(o.ParamVersion) {
+ return true
+ }
+
+ return false
+}
+
+// SetParamVersion gets a reference to the given int64 and assigns it to the ParamVersion field.
+func (o *BabylonStakingActivityDetailExtra) SetParamVersion(v int64) {
+ o.ParamVersion = &v
+}
+
+// GetWithdrawFromType returns the WithdrawFromType field value if set, zero value otherwise.
+func (o *BabylonStakingActivityDetailExtra) GetWithdrawFromType() ActivityType {
+ if o == nil || IsNil(o.WithdrawFromType) {
+ var ret ActivityType
+ return ret
+ }
+ return *o.WithdrawFromType
+}
+
+// GetWithdrawFromTypeOk returns a tuple with the WithdrawFromType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *BabylonStakingActivityDetailExtra) GetWithdrawFromTypeOk() (*ActivityType, bool) {
+ if o == nil || IsNil(o.WithdrawFromType) {
+ return nil, false
+ }
+ return o.WithdrawFromType, true
+}
+
+// HasWithdrawFromType returns a boolean if a field has been set.
+func (o *BabylonStakingActivityDetailExtra) HasWithdrawFromType() bool {
+ if o != nil && !IsNil(o.WithdrawFromType) {
+ return true
+ }
+
+ return false
+}
+
+// SetWithdrawFromType gets a reference to the given ActivityType and assigns it to the WithdrawFromType field.
+func (o *BabylonStakingActivityDetailExtra) SetWithdrawFromType(v ActivityType) {
+ o.WithdrawFromType = &v
+}
+
+func (o BabylonStakingActivityDetailExtra) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o BabylonStakingActivityDetailExtra) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["pool_type"] = o.PoolType
+ if !IsNil(o.FinalityProviderPublicKey) {
+ toSerialize["finality_provider_public_key"] = o.FinalityProviderPublicKey
+ }
+ if !IsNil(o.StakeBlockTime) {
+ toSerialize["stake_block_time"] = o.StakeBlockTime
+ }
+ if !IsNil(o.AutoBroadcast) {
+ toSerialize["auto_broadcast"] = o.AutoBroadcast
+ }
+ if !IsNil(o.ParamVersion) {
+ toSerialize["param_version"] = o.ParamVersion
+ }
+ if !IsNil(o.WithdrawFromType) {
+ toSerialize["withdraw_from_type"] = o.WithdrawFromType
+ }
+ return toSerialize, nil
+}
+
+func (o *BabylonStakingActivityDetailExtra) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "pool_type",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varBabylonStakingActivityDetailExtra := _BabylonStakingActivityDetailExtra{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varBabylonStakingActivityDetailExtra)
+
+ if err != nil {
+ return err
+ }
+
+ *o = BabylonStakingActivityDetailExtra(varBabylonStakingActivityDetailExtra)
+
+ return err
+}
+
+type NullableBabylonStakingActivityDetailExtra struct {
+ value *BabylonStakingActivityDetailExtra
+ isSet bool
+}
+
+func (v NullableBabylonStakingActivityDetailExtra) Get() *BabylonStakingActivityDetailExtra {
+ return v.value
+}
+
+func (v *NullableBabylonStakingActivityDetailExtra) Set(val *BabylonStakingActivityDetailExtra) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableBabylonStakingActivityDetailExtra) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableBabylonStakingActivityDetailExtra) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableBabylonStakingActivityDetailExtra(val *BabylonStakingActivityDetailExtra) *NullableBabylonStakingActivityDetailExtra {
+ return &NullableBabylonStakingActivityDetailExtra{value: val, isSet: true}
+}
+
+func (v NullableBabylonStakingActivityDetailExtra) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableBabylonStakingActivityDetailExtra) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_base_contract_call_source.go b/cobo_waas2/model_base_contract_call_source.go
index d42713f..5fe1a6d 100644
--- a/cobo_waas2/model_base_contract_call_source.go
+++ b/cobo_waas2/model_base_contract_call_source.go
@@ -17,7 +17,7 @@ import (
// checks if the BaseContractCallSource type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &BaseContractCallSource{}
-// BaseContractCallSource The information about the transaction source type `Org-Controlled` and `User-Controlled`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
+// BaseContractCallSource The information about the transaction source type `Org-Controlled` and `User-Controlled`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
type BaseContractCallSource struct {
SourceType ContractCallSourceType `json:"source_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_broadcast_signed_transactions_request.go b/cobo_waas2/model_broadcast_signed_transactions_request.go
index eab7caf..96e7b35 100644
--- a/cobo_waas2/model_broadcast_signed_transactions_request.go
+++ b/cobo_waas2/model_broadcast_signed_transactions_request.go
@@ -17,7 +17,7 @@ var _ MappedNullable = &BroadcastSignedTransactionsRequest{}
// BroadcastSignedTransactionsRequest struct for BroadcastSignedTransactionsRequest
type BroadcastSignedTransactionsRequest struct {
- // The transaction IDs of the signed transactions to be broadcast. You can retrieve the transactions corresponding to a staking activity by calling [Get staking activity details](/v2/api-references/stakings/get-staking-activity-details).
+ // The transaction IDs of the signed transactions to be broadcast. You can retrieve the transactions corresponding to a staking activity by calling [Get staking activity details](https://www.cobo.com/developers/v2/api-references/stakings/get-staking-activity-details).
TransactionIds []string `json:"transaction_ids,omitempty"`
}
diff --git a/cobo_waas2/model_callback_message.go b/cobo_waas2/model_callback_message.go
new file mode 100644
index 0000000..5d1bbd9
--- /dev/null
+++ b/cobo_waas2/model_callback_message.go
@@ -0,0 +1,433 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the CallbackMessage type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &CallbackMessage{}
+
+// CallbackMessage The information about a callback message.
+type CallbackMessage struct {
+ // The callback message ID.
+ Id string `json:"id"`
+ // The time when the callback message was created, in Unix timestamp format, measured in milliseconds.
+ CreatedTimestamp int64 `json:"created_timestamp"`
+ // The time when the callback message was updated, in Unix timestamp format, measured in milliseconds.
+ UpdatedTimestamp int64 `json:"updated_timestamp"`
+ // The request ID of the transaction.
+ RequestId string `json:"request_id"`
+ // The transaction ID.
+ TransactionId string `json:"transaction_id"`
+ // The wallet ID.
+ WalletId *string `json:"wallet_id,omitempty"`
+ // The callback endpoint URL.
+ Url string `json:"url"`
+ Data Transaction `json:"data"`
+ // The callback message status. Possible values include `Denied`, `Approved`, and `Failed`.
+ Status string `json:"status"`
+ // The callback message result. Possible values include `ok` and `deny`.
+ Result *string `json:"result,omitempty"`
+}
+
+type _CallbackMessage CallbackMessage
+
+// NewCallbackMessage instantiates a new CallbackMessage object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewCallbackMessage(id string, createdTimestamp int64, updatedTimestamp int64, requestId string, transactionId string, url string, data Transaction, status string) *CallbackMessage {
+ this := CallbackMessage{}
+ this.Id = id
+ this.CreatedTimestamp = createdTimestamp
+ this.UpdatedTimestamp = updatedTimestamp
+ this.RequestId = requestId
+ this.TransactionId = transactionId
+ this.Url = url
+ this.Data = data
+ this.Status = status
+ return &this
+}
+
+// NewCallbackMessageWithDefaults instantiates a new CallbackMessage object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewCallbackMessageWithDefaults() *CallbackMessage {
+ this := CallbackMessage{}
+ return &this
+}
+
+// GetId returns the Id field value
+func (o *CallbackMessage) GetId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Id
+}
+
+// GetIdOk returns a tuple with the Id field value
+// and a boolean to check if the value has been set.
+func (o *CallbackMessage) GetIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Id, true
+}
+
+// SetId sets field value
+func (o *CallbackMessage) SetId(v string) {
+ o.Id = v
+}
+
+// GetCreatedTimestamp returns the CreatedTimestamp field value
+func (o *CallbackMessage) GetCreatedTimestamp() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.CreatedTimestamp
+}
+
+// GetCreatedTimestampOk returns a tuple with the CreatedTimestamp field value
+// and a boolean to check if the value has been set.
+func (o *CallbackMessage) GetCreatedTimestampOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.CreatedTimestamp, true
+}
+
+// SetCreatedTimestamp sets field value
+func (o *CallbackMessage) SetCreatedTimestamp(v int64) {
+ o.CreatedTimestamp = v
+}
+
+// GetUpdatedTimestamp returns the UpdatedTimestamp field value
+func (o *CallbackMessage) GetUpdatedTimestamp() int64 {
+ if o == nil {
+ var ret int64
+ return ret
+ }
+
+ return o.UpdatedTimestamp
+}
+
+// GetUpdatedTimestampOk returns a tuple with the UpdatedTimestamp field value
+// and a boolean to check if the value has been set.
+func (o *CallbackMessage) GetUpdatedTimestampOk() (*int64, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.UpdatedTimestamp, true
+}
+
+// SetUpdatedTimestamp sets field value
+func (o *CallbackMessage) SetUpdatedTimestamp(v int64) {
+ o.UpdatedTimestamp = v
+}
+
+// GetRequestId returns the RequestId field value
+func (o *CallbackMessage) GetRequestId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.RequestId
+}
+
+// GetRequestIdOk returns a tuple with the RequestId field value
+// and a boolean to check if the value has been set.
+func (o *CallbackMessage) GetRequestIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.RequestId, true
+}
+
+// SetRequestId sets field value
+func (o *CallbackMessage) SetRequestId(v string) {
+ o.RequestId = v
+}
+
+// GetTransactionId returns the TransactionId field value
+func (o *CallbackMessage) GetTransactionId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.TransactionId
+}
+
+// GetTransactionIdOk returns a tuple with the TransactionId field value
+// and a boolean to check if the value has been set.
+func (o *CallbackMessage) GetTransactionIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TransactionId, true
+}
+
+// SetTransactionId sets field value
+func (o *CallbackMessage) SetTransactionId(v string) {
+ o.TransactionId = v
+}
+
+// GetWalletId returns the WalletId field value if set, zero value otherwise.
+func (o *CallbackMessage) GetWalletId() string {
+ if o == nil || IsNil(o.WalletId) {
+ var ret string
+ return ret
+ }
+ return *o.WalletId
+}
+
+// GetWalletIdOk returns a tuple with the WalletId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CallbackMessage) GetWalletIdOk() (*string, bool) {
+ if o == nil || IsNil(o.WalletId) {
+ return nil, false
+ }
+ return o.WalletId, true
+}
+
+// HasWalletId returns a boolean if a field has been set.
+func (o *CallbackMessage) HasWalletId() bool {
+ if o != nil && !IsNil(o.WalletId) {
+ return true
+ }
+
+ return false
+}
+
+// SetWalletId gets a reference to the given string and assigns it to the WalletId field.
+func (o *CallbackMessage) SetWalletId(v string) {
+ o.WalletId = &v
+}
+
+// GetUrl returns the Url field value
+func (o *CallbackMessage) GetUrl() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Url
+}
+
+// GetUrlOk returns a tuple with the Url field value
+// and a boolean to check if the value has been set.
+func (o *CallbackMessage) GetUrlOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Url, true
+}
+
+// SetUrl sets field value
+func (o *CallbackMessage) SetUrl(v string) {
+ o.Url = v
+}
+
+// GetData returns the Data field value
+func (o *CallbackMessage) GetData() Transaction {
+ if o == nil {
+ var ret Transaction
+ return ret
+ }
+
+ return o.Data
+}
+
+// GetDataOk returns a tuple with the Data field value
+// and a boolean to check if the value has been set.
+func (o *CallbackMessage) GetDataOk() (*Transaction, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Data, true
+}
+
+// SetData sets field value
+func (o *CallbackMessage) SetData(v Transaction) {
+ o.Data = v
+}
+
+// GetStatus returns the Status field value
+func (o *CallbackMessage) GetStatus() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value
+// and a boolean to check if the value has been set.
+func (o *CallbackMessage) GetStatusOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Status, true
+}
+
+// SetStatus sets field value
+func (o *CallbackMessage) SetStatus(v string) {
+ o.Status = v
+}
+
+// GetResult returns the Result field value if set, zero value otherwise.
+func (o *CallbackMessage) GetResult() string {
+ if o == nil || IsNil(o.Result) {
+ var ret string
+ return ret
+ }
+ return *o.Result
+}
+
+// GetResultOk returns a tuple with the Result field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CallbackMessage) GetResultOk() (*string, bool) {
+ if o == nil || IsNil(o.Result) {
+ return nil, false
+ }
+ return o.Result, true
+}
+
+// HasResult returns a boolean if a field has been set.
+func (o *CallbackMessage) HasResult() bool {
+ if o != nil && !IsNil(o.Result) {
+ return true
+ }
+
+ return false
+}
+
+// SetResult gets a reference to the given string and assigns it to the Result field.
+func (o *CallbackMessage) SetResult(v string) {
+ o.Result = &v
+}
+
+func (o CallbackMessage) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o CallbackMessage) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["id"] = o.Id
+ toSerialize["created_timestamp"] = o.CreatedTimestamp
+ toSerialize["updated_timestamp"] = o.UpdatedTimestamp
+ toSerialize["request_id"] = o.RequestId
+ toSerialize["transaction_id"] = o.TransactionId
+ if !IsNil(o.WalletId) {
+ toSerialize["wallet_id"] = o.WalletId
+ }
+ toSerialize["url"] = o.Url
+ toSerialize["data"] = o.Data
+ toSerialize["status"] = o.Status
+ if !IsNil(o.Result) {
+ toSerialize["result"] = o.Result
+ }
+ return toSerialize, nil
+}
+
+func (o *CallbackMessage) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "id",
+ "created_timestamp",
+ "updated_timestamp",
+ "request_id",
+ "transaction_id",
+ "url",
+ "data",
+ "status",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCallbackMessage := _CallbackMessage{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCallbackMessage)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CallbackMessage(varCallbackMessage)
+
+ return err
+}
+
+type NullableCallbackMessage struct {
+ value *CallbackMessage
+ isSet bool
+}
+
+func (v NullableCallbackMessage) Get() *CallbackMessage {
+ return v.value
+}
+
+func (v *NullableCallbackMessage) Set(val *CallbackMessage) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCallbackMessage) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCallbackMessage) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCallbackMessage(val *CallbackMessage) *NullableCallbackMessage {
+ return &NullableCallbackMessage{value: val, isSet: true}
+}
+
+func (v NullableCallbackMessage) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCallbackMessage) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_chain_info.go b/cobo_waas2/model_chain_info.go
index a5503d1..02af66f 100644
--- a/cobo_waas2/model_chain_info.go
+++ b/cobo_waas2/model_chain_info.go
@@ -19,7 +19,7 @@ var _ MappedNullable = &ChainInfo{}
// ChainInfo The chain information.
type ChainInfo struct {
- // 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).
+ // 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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
ChainId string `json:"chain_id"`
// The chain symbol, which is the abbreviated name of a chain.
Symbol *string `json:"symbol,omitempty"`
diff --git a/cobo_waas2/model_contract_call_destination_type.go b/cobo_waas2/model_contract_call_destination_type.go
index 86164ab..bff7e05 100644
--- a/cobo_waas2/model_contract_call_destination_type.go
+++ b/cobo_waas2/model_contract_call_destination_type.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// ContractCallDestinationType The type of the contract format. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+// ContractCallDestinationType The type of the contract format. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
type ContractCallDestinationType string
// List of ContractCallDestinationType
diff --git a/cobo_waas2/model_contract_call_params.go b/cobo_waas2/model_contract_call_params.go
index dec85bf..1c7fa52 100644
--- a/cobo_waas2/model_contract_call_params.go
+++ b/cobo_waas2/model_contract_call_params.go
@@ -21,7 +21,7 @@ var _ MappedNullable = &ContractCallParams{}
type ContractCallParams struct {
// 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.
RequestId string `json:"request_id"`
- // The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
+ // 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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
ChainId string `json:"chain_id"`
Source ContractCallSource `json:"source"`
Destination ContractCallDestination `json:"destination"`
diff --git a/cobo_waas2/model_contract_call_source_type.go b/cobo_waas2/model_contract_call_source_type.go
index 53eadc6..aa70912 100644
--- a/cobo_waas2/model_contract_call_source_type.go
+++ b/cobo_waas2/model_contract_call_source_type.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// ContractCallSourceType The type of the source. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Each source type requires a different set of properties. Switch between the above tabs for details.
+// ContractCallSourceType The type of the source. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Each source type requires a different set of properties. Switch between the above tabs for details.
type ContractCallSourceType string
// List of ContractCallSourceType
diff --git a/cobo_waas2/model_core_staking_activity_detail_extra.go b/cobo_waas2/model_core_staking_activity_detail_extra.go
new file mode 100644
index 0000000..7cbfb3f
--- /dev/null
+++ b/cobo_waas2/model_core_staking_activity_detail_extra.go
@@ -0,0 +1,304 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the CoreStakingActivityDetailExtra type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &CoreStakingActivityDetailExtra{}
+
+// CoreStakingActivityDetailExtra struct for CoreStakingActivityDetailExtra
+type CoreStakingActivityDetailExtra struct {
+ PoolType StakingPoolType `json:"pool_type"`
+ // The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal.
+ Timelock *int32 `json:"timelock,omitempty"`
+ // The change bitcoin address. If not provided, the source wallet's address will be used as the change address.
+ ChangeAddress *string `json:"change_address,omitempty"`
+ // The validator evm address.
+ ValidatorAddress *string `json:"validator_address,omitempty"`
+ // The reward evm address.
+ RewardAddress *string `json:"reward_address,omitempty"`
+}
+
+type _CoreStakingActivityDetailExtra CoreStakingActivityDetailExtra
+
+// NewCoreStakingActivityDetailExtra instantiates a new CoreStakingActivityDetailExtra object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewCoreStakingActivityDetailExtra(poolType StakingPoolType) *CoreStakingActivityDetailExtra {
+ this := CoreStakingActivityDetailExtra{}
+ this.PoolType = poolType
+ return &this
+}
+
+// NewCoreStakingActivityDetailExtraWithDefaults instantiates a new CoreStakingActivityDetailExtra object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewCoreStakingActivityDetailExtraWithDefaults() *CoreStakingActivityDetailExtra {
+ this := CoreStakingActivityDetailExtra{}
+ return &this
+}
+
+// GetPoolType returns the PoolType field value
+func (o *CoreStakingActivityDetailExtra) GetPoolType() StakingPoolType {
+ if o == nil {
+ var ret StakingPoolType
+ return ret
+ }
+
+ return o.PoolType
+}
+
+// GetPoolTypeOk returns a tuple with the PoolType field value
+// and a boolean to check if the value has been set.
+func (o *CoreStakingActivityDetailExtra) GetPoolTypeOk() (*StakingPoolType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PoolType, true
+}
+
+// SetPoolType sets field value
+func (o *CoreStakingActivityDetailExtra) SetPoolType(v StakingPoolType) {
+ o.PoolType = v
+}
+
+// GetTimelock returns the Timelock field value if set, zero value otherwise.
+func (o *CoreStakingActivityDetailExtra) GetTimelock() int32 {
+ if o == nil || IsNil(o.Timelock) {
+ var ret int32
+ return ret
+ }
+ return *o.Timelock
+}
+
+// GetTimelockOk returns a tuple with the Timelock field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CoreStakingActivityDetailExtra) GetTimelockOk() (*int32, bool) {
+ if o == nil || IsNil(o.Timelock) {
+ return nil, false
+ }
+ return o.Timelock, true
+}
+
+// HasTimelock returns a boolean if a field has been set.
+func (o *CoreStakingActivityDetailExtra) HasTimelock() bool {
+ if o != nil && !IsNil(o.Timelock) {
+ return true
+ }
+
+ return false
+}
+
+// SetTimelock gets a reference to the given int32 and assigns it to the Timelock field.
+func (o *CoreStakingActivityDetailExtra) SetTimelock(v int32) {
+ o.Timelock = &v
+}
+
+// GetChangeAddress returns the ChangeAddress field value if set, zero value otherwise.
+func (o *CoreStakingActivityDetailExtra) GetChangeAddress() string {
+ if o == nil || IsNil(o.ChangeAddress) {
+ var ret string
+ return ret
+ }
+ return *o.ChangeAddress
+}
+
+// GetChangeAddressOk returns a tuple with the ChangeAddress field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CoreStakingActivityDetailExtra) GetChangeAddressOk() (*string, bool) {
+ if o == nil || IsNil(o.ChangeAddress) {
+ return nil, false
+ }
+ return o.ChangeAddress, true
+}
+
+// HasChangeAddress returns a boolean if a field has been set.
+func (o *CoreStakingActivityDetailExtra) HasChangeAddress() bool {
+ if o != nil && !IsNil(o.ChangeAddress) {
+ return true
+ }
+
+ return false
+}
+
+// SetChangeAddress gets a reference to the given string and assigns it to the ChangeAddress field.
+func (o *CoreStakingActivityDetailExtra) SetChangeAddress(v string) {
+ o.ChangeAddress = &v
+}
+
+// GetValidatorAddress returns the ValidatorAddress field value if set, zero value otherwise.
+func (o *CoreStakingActivityDetailExtra) GetValidatorAddress() string {
+ if o == nil || IsNil(o.ValidatorAddress) {
+ var ret string
+ return ret
+ }
+ return *o.ValidatorAddress
+}
+
+// GetValidatorAddressOk returns a tuple with the ValidatorAddress field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CoreStakingActivityDetailExtra) GetValidatorAddressOk() (*string, bool) {
+ if o == nil || IsNil(o.ValidatorAddress) {
+ return nil, false
+ }
+ return o.ValidatorAddress, true
+}
+
+// HasValidatorAddress returns a boolean if a field has been set.
+func (o *CoreStakingActivityDetailExtra) HasValidatorAddress() bool {
+ if o != nil && !IsNil(o.ValidatorAddress) {
+ return true
+ }
+
+ return false
+}
+
+// SetValidatorAddress gets a reference to the given string and assigns it to the ValidatorAddress field.
+func (o *CoreStakingActivityDetailExtra) SetValidatorAddress(v string) {
+ o.ValidatorAddress = &v
+}
+
+// GetRewardAddress returns the RewardAddress field value if set, zero value otherwise.
+func (o *CoreStakingActivityDetailExtra) GetRewardAddress() string {
+ if o == nil || IsNil(o.RewardAddress) {
+ var ret string
+ return ret
+ }
+ return *o.RewardAddress
+}
+
+// GetRewardAddressOk returns a tuple with the RewardAddress field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *CoreStakingActivityDetailExtra) GetRewardAddressOk() (*string, bool) {
+ if o == nil || IsNil(o.RewardAddress) {
+ return nil, false
+ }
+ return o.RewardAddress, true
+}
+
+// HasRewardAddress returns a boolean if a field has been set.
+func (o *CoreStakingActivityDetailExtra) HasRewardAddress() bool {
+ if o != nil && !IsNil(o.RewardAddress) {
+ return true
+ }
+
+ return false
+}
+
+// SetRewardAddress gets a reference to the given string and assigns it to the RewardAddress field.
+func (o *CoreStakingActivityDetailExtra) SetRewardAddress(v string) {
+ o.RewardAddress = &v
+}
+
+func (o CoreStakingActivityDetailExtra) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o CoreStakingActivityDetailExtra) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["pool_type"] = o.PoolType
+ if !IsNil(o.Timelock) {
+ toSerialize["timelock"] = o.Timelock
+ }
+ if !IsNil(o.ChangeAddress) {
+ toSerialize["change_address"] = o.ChangeAddress
+ }
+ if !IsNil(o.ValidatorAddress) {
+ toSerialize["validator_address"] = o.ValidatorAddress
+ }
+ if !IsNil(o.RewardAddress) {
+ toSerialize["reward_address"] = o.RewardAddress
+ }
+ return toSerialize, nil
+}
+
+func (o *CoreStakingActivityDetailExtra) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "pool_type",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varCoreStakingActivityDetailExtra := _CoreStakingActivityDetailExtra{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varCoreStakingActivityDetailExtra)
+
+ if err != nil {
+ return err
+ }
+
+ *o = CoreStakingActivityDetailExtra(varCoreStakingActivityDetailExtra)
+
+ return err
+}
+
+type NullableCoreStakingActivityDetailExtra struct {
+ value *CoreStakingActivityDetailExtra
+ isSet bool
+}
+
+func (v NullableCoreStakingActivityDetailExtra) Get() *CoreStakingActivityDetailExtra {
+ return v.value
+}
+
+func (v *NullableCoreStakingActivityDetailExtra) Set(val *CoreStakingActivityDetailExtra) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableCoreStakingActivityDetailExtra) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableCoreStakingActivityDetailExtra) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableCoreStakingActivityDetailExtra(val *CoreStakingActivityDetailExtra) *NullableCoreStakingActivityDetailExtra {
+ return &NullableCoreStakingActivityDetailExtra{value: val, isSet: true}
+}
+
+func (v NullableCoreStakingActivityDetailExtra) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableCoreStakingActivityDetailExtra) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_create_address_request.go b/cobo_waas2/model_create_address_request.go
index 0ca0b41..94ce713 100644
--- a/cobo_waas2/model_create_address_request.go
+++ b/cobo_waas2/model_create_address_request.go
@@ -19,7 +19,7 @@ var _ MappedNullable = &CreateAddressRequest{}
// CreateAddressRequest struct for CreateAddressRequest
type CreateAddressRequest struct {
- // 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).
+ // 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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
ChainId string `json:"chain_id"`
// The number of addresses to create.
Count int32 `json:"count"`
diff --git a/cobo_waas2/model_create_claim_activity.go b/cobo_waas2/model_create_claim_activity.go
index 6bf2ded..6afd876 100644
--- a/cobo_waas2/model_create_claim_activity.go
+++ b/cobo_waas2/model_create_claim_activity.go
@@ -21,7 +21,7 @@ var _ MappedNullable = &CreateClaimActivity{}
type CreateClaimActivity struct {
// The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization.
RequestId *string `json:"request_id,omitempty"`
- // The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions).
+ // The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions).
StakingId string `json:"staking_id"`
Fee *TransactionRequestFee `json:"fee,omitempty"`
}
diff --git a/cobo_waas2/model_create_claim_activity_request.go b/cobo_waas2/model_create_claim_activity_request.go
index c56a702..b3a7b62 100644
--- a/cobo_waas2/model_create_claim_activity_request.go
+++ b/cobo_waas2/model_create_claim_activity_request.go
@@ -21,7 +21,7 @@ var _ MappedNullable = &CreateClaimActivityRequest{}
type CreateClaimActivityRequest struct {
// The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization.
RequestId *string `json:"request_id,omitempty"`
- // The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions).
+ // The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions).
StakingId string `json:"staking_id"`
Fee *TransactionRequestFee `json:"fee,omitempty"`
// The initiator of the staking activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator.
diff --git a/cobo_waas2/model_create_key_share_holder.go b/cobo_waas2/model_create_key_share_holder.go
index 72597c3..fe8b5a3 100644
--- a/cobo_waas2/model_create_key_share_holder.go
+++ b/cobo_waas2/model_create_key_share_holder.go
@@ -20,7 +20,7 @@ type CreateKeyShareHolder struct {
// Key share holder's name.
Name *string `json:"name,omitempty"`
Type *KeyShareHolderType `json:"type,omitempty"`
- // Key share holder's TSS Node ID. You can obtain the TSS Node ID using either mobile co-signer or API co-signer. See the \"Primary Purposes\" row on the table in [Create a Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group).
+ // Key share holder's TSS Node ID. You can obtain the TSS Node ID using either mobile co-signer or server co-signer. See the \"Primary Purposes\" row on the table in [Create a Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group).
TssNodeId *string `json:"tss_node_id,omitempty"`
// Whether the key share holder has been selected as the designated transaction signer. For example, in a 2-3 [Threshold Signature Scheme (TSS)](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#threshold-signature-scheme-tss), Cobo will serve as one signer, and you can choose one of the other two key share holders to act as the second transaction signer. - `true`: The key share holder is a designated transaction signer. - `false`: The key share holder is not a designated transaction signer.
Signer *bool `json:"signer,omitempty"`
diff --git a/cobo_waas2/model_create_mpc_vault_request.go b/cobo_waas2/model_create_mpc_vault_request.go
index 41a1630..a6fcade 100644
--- a/cobo_waas2/model_create_mpc_vault_request.go
+++ b/cobo_waas2/model_create_mpc_vault_request.go
@@ -19,7 +19,7 @@ var _ MappedNullable = &CreateMpcVaultRequest{}
// CreateMpcVaultRequest struct for CreateMpcVaultRequest
type CreateMpcVaultRequest struct {
- // The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects). **Notes:** 1. If you set `vault_type` to `OrgControlled`, the value of `project_id` will be ignored. 2. If you set `vault_type` to `UserControlled`, then `project_id` is required.
+ // The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects). **Notes:** 1. If you set `vault_type` to `OrgControlled`, the value of `project_id` will be ignored. 2. If you set `vault_type` to `UserControlled`, then `project_id` is required.
ProjectId *string `json:"project_id,omitempty"`
// The vault name.
Name string `json:"name"`
diff --git a/cobo_waas2/model_create_mpc_wallet_params.go b/cobo_waas2/model_create_mpc_wallet_params.go
index 37718bb..32e2e84 100644
--- a/cobo_waas2/model_create_mpc_wallet_params.go
+++ b/cobo_waas2/model_create_mpc_wallet_params.go
@@ -23,7 +23,7 @@ type CreateMpcWalletParams struct {
Name string `json:"name"`
WalletType WalletType `json:"wallet_type"`
WalletSubtype WalletSubtype `json:"wallet_subtype"`
- // The ID of the owning vault. You can call [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults) to retrieve all vault IDs under your organization.
+ // The ID of the owning vault. You can call [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults) to retrieve all vault IDs under your organization.
VaultId string `json:"vault_id"`
}
diff --git a/cobo_waas2/model_create_stake_activity.go b/cobo_waas2/model_create_stake_activity.go
index a2666ba..58a148f 100644
--- a/cobo_waas2/model_create_stake_activity.go
+++ b/cobo_waas2/model_create_stake_activity.go
@@ -26,7 +26,7 @@ type CreateStakeActivity struct {
// The amount to stake.
Amount string `json:"amount"`
Fee TransactionRequestFee `json:"fee"`
- Extra CreateStakeActivityExtra `json:"extra"`
+ Extra *CreateStakeActivityExtra `json:"extra,omitempty"`
}
type _CreateStakeActivity CreateStakeActivity
@@ -35,12 +35,11 @@ type _CreateStakeActivity CreateStakeActivity
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewCreateStakeActivity(poolId StakingPoolId, amount string, fee TransactionRequestFee, extra CreateStakeActivityExtra) *CreateStakeActivity {
+func NewCreateStakeActivity(poolId StakingPoolId, amount string, fee TransactionRequestFee) *CreateStakeActivity {
this := CreateStakeActivity{}
this.PoolId = poolId
this.Amount = amount
this.Fee = fee
- this.Extra = extra
return &this
}
@@ -188,28 +187,36 @@ func (o *CreateStakeActivity) SetFee(v TransactionRequestFee) {
o.Fee = v
}
-// GetExtra returns the Extra field value
+// GetExtra returns the Extra field value if set, zero value otherwise.
func (o *CreateStakeActivity) GetExtra() CreateStakeActivityExtra {
- if o == nil {
+ if o == nil || IsNil(o.Extra) {
var ret CreateStakeActivityExtra
return ret
}
-
- return o.Extra
+ return *o.Extra
}
-// GetExtraOk returns a tuple with the Extra field value
+// GetExtraOk returns a tuple with the Extra field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStakeActivity) GetExtraOk() (*CreateStakeActivityExtra, bool) {
- if o == nil {
+ if o == nil || IsNil(o.Extra) {
return nil, false
}
- return &o.Extra, true
+ return o.Extra, true
+}
+
+// HasExtra returns a boolean if a field has been set.
+func (o *CreateStakeActivity) HasExtra() bool {
+ if o != nil && !IsNil(o.Extra) {
+ return true
+ }
+
+ return false
}
-// SetExtra sets field value
+// SetExtra gets a reference to the given CreateStakeActivityExtra and assigns it to the Extra field.
func (o *CreateStakeActivity) SetExtra(v CreateStakeActivityExtra) {
- o.Extra = v
+ o.Extra = &v
}
func (o CreateStakeActivity) MarshalJSON() ([]byte, error) {
@@ -231,7 +238,9 @@ func (o CreateStakeActivity) ToMap() (map[string]interface{}, error) {
toSerialize["pool_id"] = o.PoolId
toSerialize["amount"] = o.Amount
toSerialize["fee"] = o.Fee
- toSerialize["extra"] = o.Extra
+ if !IsNil(o.Extra) {
+ toSerialize["extra"] = o.Extra
+ }
return toSerialize, nil
}
@@ -243,7 +252,6 @@ func (o *CreateStakeActivity) UnmarshalJSON(data []byte) (err error) {
"pool_id",
"amount",
"fee",
- "extra",
}
allProperties := make(map[string]interface{})
diff --git a/cobo_waas2/model_create_stake_activity_request.go b/cobo_waas2/model_create_stake_activity_request.go
index a45a078..c5da444 100644
--- a/cobo_waas2/model_create_stake_activity_request.go
+++ b/cobo_waas2/model_create_stake_activity_request.go
@@ -26,7 +26,7 @@ type CreateStakeActivityRequest struct {
// The amount to stake.
Amount string `json:"amount"`
Fee TransactionRequestFee `json:"fee"`
- Extra CreateStakeActivityExtra `json:"extra"`
+ Extra *CreateStakeActivityExtra `json:"extra,omitempty"`
// The initiator of the staking activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator.
AppInitiator *string `json:"app_initiator,omitempty"`
}
@@ -37,12 +37,11 @@ type _CreateStakeActivityRequest CreateStakeActivityRequest
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewCreateStakeActivityRequest(poolId StakingPoolId, amount string, fee TransactionRequestFee, extra CreateStakeActivityExtra) *CreateStakeActivityRequest {
+func NewCreateStakeActivityRequest(poolId StakingPoolId, amount string, fee TransactionRequestFee) *CreateStakeActivityRequest {
this := CreateStakeActivityRequest{}
this.PoolId = poolId
this.Amount = amount
this.Fee = fee
- this.Extra = extra
return &this
}
@@ -190,28 +189,36 @@ func (o *CreateStakeActivityRequest) SetFee(v TransactionRequestFee) {
o.Fee = v
}
-// GetExtra returns the Extra field value
+// GetExtra returns the Extra field value if set, zero value otherwise.
func (o *CreateStakeActivityRequest) GetExtra() CreateStakeActivityExtra {
- if o == nil {
+ if o == nil || IsNil(o.Extra) {
var ret CreateStakeActivityExtra
return ret
}
-
- return o.Extra
+ return *o.Extra
}
-// GetExtraOk returns a tuple with the Extra field value
+// GetExtraOk returns a tuple with the Extra field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateStakeActivityRequest) GetExtraOk() (*CreateStakeActivityExtra, bool) {
- if o == nil {
+ if o == nil || IsNil(o.Extra) {
return nil, false
}
- return &o.Extra, true
+ return o.Extra, true
+}
+
+// HasExtra returns a boolean if a field has been set.
+func (o *CreateStakeActivityRequest) HasExtra() bool {
+ if o != nil && !IsNil(o.Extra) {
+ return true
+ }
+
+ return false
}
-// SetExtra sets field value
+// SetExtra gets a reference to the given CreateStakeActivityExtra and assigns it to the Extra field.
func (o *CreateStakeActivityRequest) SetExtra(v CreateStakeActivityExtra) {
- o.Extra = v
+ o.Extra = &v
}
// GetAppInitiator returns the AppInitiator field value if set, zero value otherwise.
@@ -265,7 +272,9 @@ func (o CreateStakeActivityRequest) ToMap() (map[string]interface{}, error) {
toSerialize["pool_id"] = o.PoolId
toSerialize["amount"] = o.Amount
toSerialize["fee"] = o.Fee
- toSerialize["extra"] = o.Extra
+ if !IsNil(o.Extra) {
+ toSerialize["extra"] = o.Extra
+ }
if !IsNil(o.AppInitiator) {
toSerialize["app_initiator"] = o.AppInitiator
}
@@ -280,7 +289,6 @@ func (o *CreateStakeActivityRequest) UnmarshalJSON(data []byte) (err error) {
"pool_id",
"amount",
"fee",
- "extra",
}
allProperties := make(map[string]interface{})
diff --git a/cobo_waas2/model_create_webhook_endpoint_request.go b/cobo_waas2/model_create_webhook_endpoint_request.go
index 88e9c71..641f5e1 100644
--- a/cobo_waas2/model_create_webhook_endpoint_request.go
+++ b/cobo_waas2/model_create_webhook_endpoint_request.go
@@ -21,7 +21,7 @@ var _ MappedNullable = &CreateWebhookEndpointRequest{}
type CreateWebhookEndpointRequest struct {
// The webhook endpoint URL.
Url string `json:"url"`
- // The event types you want to subscribe to for this webhook endpoint. You can call [Get webhook event types](/v2/api-references/developers--webhooks/get-webhook-event-types) to retrieve all available event types.
+ // The event types you want to subscribe to for this webhook endpoint. You can call [Get webhook event types](https://www.cobo.com/developers/v2/api-references/developers--webhooks/get-webhook-event-types) to retrieve all available event types.
SubscribedEvents []WebhookEventType `json:"subscribed_events"`
// The description of the webhook endpoint.
Description *string `json:"description,omitempty"`
diff --git a/cobo_waas2/model_custodial_transfer_source.go b/cobo_waas2/model_custodial_transfer_source.go
index 0dcba5b..12dc978 100644
--- a/cobo_waas2/model_custodial_transfer_source.go
+++ b/cobo_waas2/model_custodial_transfer_source.go
@@ -17,7 +17,7 @@ import (
// checks if the CustodialTransferSource type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CustodialTransferSource{}
-// CustodialTransferSource The information about the transaction source types `Asset` and `Web3`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
+// CustodialTransferSource The information about the transaction source types `Asset` and `Web3`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
type CustodialTransferSource struct {
SourceType WalletSubtype `json:"source_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_destination_wallet_type.go b/cobo_waas2/model_destination_wallet_type.go
new file mode 100644
index 0000000..fe1dd50
--- /dev/null
+++ b/cobo_waas2/model_destination_wallet_type.go
@@ -0,0 +1,109 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// DestinationWalletType The type of the destination wallet.
+type DestinationWalletType string
+
+// List of DestinationWalletType
+const (
+ DESTINATIONWALLETTYPE_EXCHANGES_OR_VASP DestinationWalletType = "EXCHANGES_OR_VASP"
+ DESTINATIONWALLETTYPE_SELF_CUSTODY_WALLET DestinationWalletType = "SELF_CUSTODY_WALLET"
+)
+
+// All allowed values of DestinationWalletType enum
+var AllowedDestinationWalletTypeEnumValues = []DestinationWalletType{
+ "EXCHANGES_OR_VASP",
+ "SELF_CUSTODY_WALLET",
+}
+
+func (v *DestinationWalletType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := DestinationWalletType(value)
+ for _, existing := range AllowedDestinationWalletTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+ *v = DestinationWalletType("unknown")
+ return nil
+}
+
+// NewDestinationWalletTypeFromValue returns a pointer to a valid DestinationWalletType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewDestinationWalletTypeFromValue(v string) (*DestinationWalletType, error) {
+ ev := DestinationWalletType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for DestinationWalletType: valid values are %v", v, AllowedDestinationWalletTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v DestinationWalletType) IsValid() bool {
+ for _, existing := range AllowedDestinationWalletTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to DestinationWalletType value
+func (v DestinationWalletType) Ptr() *DestinationWalletType {
+ return &v
+}
+
+type NullableDestinationWalletType struct {
+ value *DestinationWalletType
+ isSet bool
+}
+
+func (v NullableDestinationWalletType) Get() *DestinationWalletType {
+ return v.value
+}
+
+func (v *NullableDestinationWalletType) Set(val *DestinationWalletType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableDestinationWalletType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableDestinationWalletType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableDestinationWalletType(val *DestinationWalletType) *NullableDestinationWalletType {
+ return &NullableDestinationWalletType{value: val, isSet: true}
+}
+
+func (v NullableDestinationWalletType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableDestinationWalletType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
diff --git a/cobo_waas2/model_error_response.go b/cobo_waas2/model_error_response.go
index 20a5ab4..b0d737d 100644
--- a/cobo_waas2/model_error_response.go
+++ b/cobo_waas2/model_error_response.go
@@ -19,7 +19,7 @@ var _ MappedNullable = &ErrorResponse{}
// ErrorResponse The response of a failed request.
type ErrorResponse struct {
- // The error code. Refer to [Error codes and status codes](/v2/api-references/error-codes) for more details.
+ // The error code. Refer to [Error codes and status codes](https://www.cobo.com/developers/v2/api-references/error-codes) for more details.
ErrorCode int32 `json:"error_code"`
// The error description.
ErrorMessage string `json:"error_message"`
diff --git a/cobo_waas2/model_estimate_claim_fee.go b/cobo_waas2/model_estimate_claim_fee.go
index 2c642d1..83dd65a 100644
--- a/cobo_waas2/model_estimate_claim_fee.go
+++ b/cobo_waas2/model_estimate_claim_fee.go
@@ -20,7 +20,7 @@ var _ MappedNullable = &EstimateClaimFee{}
// EstimateClaimFee struct for EstimateClaimFee
type EstimateClaimFee struct {
ActivityType ActivityType `json:"activity_type"`
- // The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions).
+ // The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions).
StakingId *string `json:"staking_id,omitempty"`
Fee *TransactionRequestFee `json:"fee,omitempty"`
}
diff --git a/cobo_waas2/model_estimate_contract_call_fee_params.go b/cobo_waas2/model_estimate_contract_call_fee_params.go
index bb51dc3..bc32d81 100644
--- a/cobo_waas2/model_estimate_contract_call_fee_params.go
+++ b/cobo_waas2/model_estimate_contract_call_fee_params.go
@@ -22,7 +22,7 @@ type EstimateContractCallFeeParams struct {
// 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. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee.
RequestId *string `json:"request_id,omitempty"`
RequestType EstimateFeeRequestType `json:"request_type"`
- // The chain ID of the chain on which the smart contract is deployed. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
+ // The chain ID of the chain on which the smart contract is deployed. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
ChainId string `json:"chain_id"`
Source ContractCallSource `json:"source"`
Destination ContractCallDestination `json:"destination"`
diff --git a/cobo_waas2/model_estimate_stake_fee.go b/cobo_waas2/model_estimate_stake_fee.go
index 86fe19c..02e7176 100644
--- a/cobo_waas2/model_estimate_stake_fee.go
+++ b/cobo_waas2/model_estimate_stake_fee.go
@@ -27,7 +27,7 @@ type EstimateStakeFee struct {
// The amount to stake.
Amount string `json:"amount"`
Fee TransactionRequestFee `json:"fee"`
- Extra CreateStakeActivityExtra `json:"extra"`
+ Extra *CreateStakeActivityExtra `json:"extra,omitempty"`
}
type _EstimateStakeFee EstimateStakeFee
@@ -36,13 +36,12 @@ type _EstimateStakeFee EstimateStakeFee
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
-func NewEstimateStakeFee(activityType ActivityType, poolId StakingPoolId, amount string, fee TransactionRequestFee, extra CreateStakeActivityExtra) *EstimateStakeFee {
+func NewEstimateStakeFee(activityType ActivityType, poolId StakingPoolId, amount string, fee TransactionRequestFee) *EstimateStakeFee {
this := EstimateStakeFee{}
this.ActivityType = activityType
this.PoolId = poolId
this.Amount = amount
this.Fee = fee
- this.Extra = extra
return &this
}
@@ -214,28 +213,36 @@ func (o *EstimateStakeFee) SetFee(v TransactionRequestFee) {
o.Fee = v
}
-// GetExtra returns the Extra field value
+// GetExtra returns the Extra field value if set, zero value otherwise.
func (o *EstimateStakeFee) GetExtra() CreateStakeActivityExtra {
- if o == nil {
+ if o == nil || IsNil(o.Extra) {
var ret CreateStakeActivityExtra
return ret
}
-
- return o.Extra
+ return *o.Extra
}
-// GetExtraOk returns a tuple with the Extra field value
+// GetExtraOk returns a tuple with the Extra field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *EstimateStakeFee) GetExtraOk() (*CreateStakeActivityExtra, bool) {
- if o == nil {
+ if o == nil || IsNil(o.Extra) {
return nil, false
}
- return &o.Extra, true
+ return o.Extra, true
+}
+
+// HasExtra returns a boolean if a field has been set.
+func (o *EstimateStakeFee) HasExtra() bool {
+ if o != nil && !IsNil(o.Extra) {
+ return true
+ }
+
+ return false
}
-// SetExtra sets field value
+// SetExtra gets a reference to the given CreateStakeActivityExtra and assigns it to the Extra field.
func (o *EstimateStakeFee) SetExtra(v CreateStakeActivityExtra) {
- o.Extra = v
+ o.Extra = &v
}
func (o EstimateStakeFee) MarshalJSON() ([]byte, error) {
@@ -258,7 +265,9 @@ func (o EstimateStakeFee) ToMap() (map[string]interface{}, error) {
toSerialize["pool_id"] = o.PoolId
toSerialize["amount"] = o.Amount
toSerialize["fee"] = o.Fee
- toSerialize["extra"] = o.Extra
+ if !IsNil(o.Extra) {
+ toSerialize["extra"] = o.Extra
+ }
return toSerialize, nil
}
@@ -271,7 +280,6 @@ func (o *EstimateStakeFee) UnmarshalJSON(data []byte) (err error) {
"pool_id",
"amount",
"fee",
- "extra",
}
allProperties := make(map[string]interface{})
diff --git a/cobo_waas2/model_estimate_transfer_fee_params.go b/cobo_waas2/model_estimate_transfer_fee_params.go
index d85d751..d270390 100644
--- a/cobo_waas2/model_estimate_transfer_fee_params.go
+++ b/cobo_waas2/model_estimate_transfer_fee_params.go
@@ -23,7 +23,7 @@ type EstimateTransferFeeParams struct {
RequestId *string `json:"request_id,omitempty"`
RequestType EstimateFeeRequestType `json:"request_type"`
Source TransferSource `json:"source"`
- // The token ID of the transferred 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).
+ // The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
TokenId string `json:"token_id"`
Destination *TransferDestination `json:"destination,omitempty"`
FeeType *FeeType `json:"fee_type,omitempty"`
diff --git a/cobo_waas2/model_eth_stake_estimated_fee.go b/cobo_waas2/model_eth_stake_estimated_fee.go
index e6cc301..9f22c7d 100644
--- a/cobo_waas2/model_eth_stake_estimated_fee.go
+++ b/cobo_waas2/model_eth_stake_estimated_fee.go
@@ -21,6 +21,8 @@ type EthStakeEstimatedFee struct {
Fee *EstimatedFee `json:"fee,omitempty"`
// A list of public keys associated with the Ethereum validators for this staking operation.
ValidatorPubkeys []string `json:"validator_pubkeys,omitempty"`
+ // P2WSH address generated for this staking operation(If the estimated fee is for core BTC staking).
+ CoreBtcStakingAddress *string `json:"core_btc_staking_address,omitempty"`
}
// NewEthStakeEstimatedFee instantiates a new EthStakeEstimatedFee object
@@ -136,6 +138,38 @@ func (o *EthStakeEstimatedFee) SetValidatorPubkeys(v []string) {
o.ValidatorPubkeys = v
}
+// GetCoreBtcStakingAddress returns the CoreBtcStakingAddress field value if set, zero value otherwise.
+func (o *EthStakeEstimatedFee) GetCoreBtcStakingAddress() string {
+ if o == nil || IsNil(o.CoreBtcStakingAddress) {
+ var ret string
+ return ret
+ }
+ return *o.CoreBtcStakingAddress
+}
+
+// GetCoreBtcStakingAddressOk returns a tuple with the CoreBtcStakingAddress field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *EthStakeEstimatedFee) GetCoreBtcStakingAddressOk() (*string, bool) {
+ if o == nil || IsNil(o.CoreBtcStakingAddress) {
+ return nil, false
+ }
+ return o.CoreBtcStakingAddress, true
+}
+
+// HasCoreBtcStakingAddress returns a boolean if a field has been set.
+func (o *EthStakeEstimatedFee) HasCoreBtcStakingAddress() bool {
+ if o != nil && !IsNil(o.CoreBtcStakingAddress) {
+ return true
+ }
+
+ return false
+}
+
+// SetCoreBtcStakingAddress gets a reference to the given string and assigns it to the CoreBtcStakingAddress field.
+func (o *EthStakeEstimatedFee) SetCoreBtcStakingAddress(v string) {
+ o.CoreBtcStakingAddress = &v
+}
+
func (o EthStakeEstimatedFee) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
@@ -155,6 +189,9 @@ func (o EthStakeEstimatedFee) ToMap() (map[string]interface{}, error) {
if !IsNil(o.ValidatorPubkeys) {
toSerialize["validator_pubkeys"] = o.ValidatorPubkeys
}
+ if !IsNil(o.CoreBtcStakingAddress) {
+ toSerialize["core_btc_staking_address"] = o.CoreBtcStakingAddress
+ }
return toSerialize, nil
}
diff --git a/cobo_waas2/model_eth_staking_activity_detail_extra.go b/cobo_waas2/model_eth_staking_activity_detail_extra.go
new file mode 100644
index 0000000..b60b156
--- /dev/null
+++ b/cobo_waas2/model_eth_staking_activity_detail_extra.go
@@ -0,0 +1,230 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the EthStakingActivityDetailExtra type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &EthStakingActivityDetailExtra{}
+
+// EthStakingActivityDetailExtra struct for EthStakingActivityDetailExtra
+type EthStakingActivityDetailExtra struct {
+ PoolType StakingPoolType `json:"pool_type"`
+ // The name of the provider.
+ ProviderName *string `json:"provider_name,omitempty"`
+ // A list of public keys identifying the validators to unstake from the Ethereum Beacon Chain.
+ ValidatorPubkeys []string `json:"validator_pubkeys,omitempty"`
+}
+
+type _EthStakingActivityDetailExtra EthStakingActivityDetailExtra
+
+// NewEthStakingActivityDetailExtra instantiates a new EthStakingActivityDetailExtra object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewEthStakingActivityDetailExtra(poolType StakingPoolType) *EthStakingActivityDetailExtra {
+ this := EthStakingActivityDetailExtra{}
+ this.PoolType = poolType
+ return &this
+}
+
+// NewEthStakingActivityDetailExtraWithDefaults instantiates a new EthStakingActivityDetailExtra object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewEthStakingActivityDetailExtraWithDefaults() *EthStakingActivityDetailExtra {
+ this := EthStakingActivityDetailExtra{}
+ return &this
+}
+
+// GetPoolType returns the PoolType field value
+func (o *EthStakingActivityDetailExtra) GetPoolType() StakingPoolType {
+ if o == nil {
+ var ret StakingPoolType
+ return ret
+ }
+
+ return o.PoolType
+}
+
+// GetPoolTypeOk returns a tuple with the PoolType field value
+// and a boolean to check if the value has been set.
+func (o *EthStakingActivityDetailExtra) GetPoolTypeOk() (*StakingPoolType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.PoolType, true
+}
+
+// SetPoolType sets field value
+func (o *EthStakingActivityDetailExtra) SetPoolType(v StakingPoolType) {
+ o.PoolType = v
+}
+
+// GetProviderName returns the ProviderName field value if set, zero value otherwise.
+func (o *EthStakingActivityDetailExtra) GetProviderName() string {
+ if o == nil || IsNil(o.ProviderName) {
+ var ret string
+ return ret
+ }
+ return *o.ProviderName
+}
+
+// GetProviderNameOk returns a tuple with the ProviderName field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *EthStakingActivityDetailExtra) GetProviderNameOk() (*string, bool) {
+ if o == nil || IsNil(o.ProviderName) {
+ return nil, false
+ }
+ return o.ProviderName, true
+}
+
+// HasProviderName returns a boolean if a field has been set.
+func (o *EthStakingActivityDetailExtra) HasProviderName() bool {
+ if o != nil && !IsNil(o.ProviderName) {
+ return true
+ }
+
+ return false
+}
+
+// SetProviderName gets a reference to the given string and assigns it to the ProviderName field.
+func (o *EthStakingActivityDetailExtra) SetProviderName(v string) {
+ o.ProviderName = &v
+}
+
+// GetValidatorPubkeys returns the ValidatorPubkeys field value if set, zero value otherwise.
+func (o *EthStakingActivityDetailExtra) GetValidatorPubkeys() []string {
+ if o == nil || IsNil(o.ValidatorPubkeys) {
+ var ret []string
+ return ret
+ }
+ return o.ValidatorPubkeys
+}
+
+// GetValidatorPubkeysOk returns a tuple with the ValidatorPubkeys field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *EthStakingActivityDetailExtra) GetValidatorPubkeysOk() ([]string, bool) {
+ if o == nil || IsNil(o.ValidatorPubkeys) {
+ return nil, false
+ }
+ return o.ValidatorPubkeys, true
+}
+
+// HasValidatorPubkeys returns a boolean if a field has been set.
+func (o *EthStakingActivityDetailExtra) HasValidatorPubkeys() bool {
+ if o != nil && !IsNil(o.ValidatorPubkeys) {
+ return true
+ }
+
+ return false
+}
+
+// SetValidatorPubkeys gets a reference to the given []string and assigns it to the ValidatorPubkeys field.
+func (o *EthStakingActivityDetailExtra) SetValidatorPubkeys(v []string) {
+ o.ValidatorPubkeys = v
+}
+
+func (o EthStakingActivityDetailExtra) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o EthStakingActivityDetailExtra) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["pool_type"] = o.PoolType
+ if !IsNil(o.ProviderName) {
+ toSerialize["provider_name"] = o.ProviderName
+ }
+ if !IsNil(o.ValidatorPubkeys) {
+ toSerialize["validator_pubkeys"] = o.ValidatorPubkeys
+ }
+ return toSerialize, nil
+}
+
+func (o *EthStakingActivityDetailExtra) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "pool_type",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varEthStakingActivityDetailExtra := _EthStakingActivityDetailExtra{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varEthStakingActivityDetailExtra)
+
+ if err != nil {
+ return err
+ }
+
+ *o = EthStakingActivityDetailExtra(varEthStakingActivityDetailExtra)
+
+ return err
+}
+
+type NullableEthStakingActivityDetailExtra struct {
+ value *EthStakingActivityDetailExtra
+ isSet bool
+}
+
+func (v NullableEthStakingActivityDetailExtra) Get() *EthStakingActivityDetailExtra {
+ return v.value
+}
+
+func (v *NullableEthStakingActivityDetailExtra) Set(val *EthStakingActivityDetailExtra) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableEthStakingActivityDetailExtra) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableEthStakingActivityDetailExtra) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableEthStakingActivityDetailExtra(val *EthStakingActivityDetailExtra) *NullableEthStakingActivityDetailExtra {
+ return &NullableEthStakingActivityDetailExtra{value: val, isSet: true}
+}
+
+func (v NullableEthStakingActivityDetailExtra) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableEthStakingActivityDetailExtra) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_evm_contract_call_destination.go b/cobo_waas2/model_evm_contract_call_destination.go
index 8230f87..3d9a33d 100644
--- a/cobo_waas2/model_evm_contract_call_destination.go
+++ b/cobo_waas2/model_evm_contract_call_destination.go
@@ -17,7 +17,7 @@ import (
// checks if the EvmContractCallDestination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &EvmContractCallDestination{}
-// EvmContractCallDestination The information about the transaction destination. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+// EvmContractCallDestination The information about the transaction destination. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
type EvmContractCallDestination struct {
DestinationType ContractCallDestinationType `json:"destination_type"`
// The destination address.
diff --git a/cobo_waas2/model_evm_eip191_message_sign_destination.go b/cobo_waas2/model_evm_eip191_message_sign_destination.go
index 7a9a1e5..14127fc 100644
--- a/cobo_waas2/model_evm_eip191_message_sign_destination.go
+++ b/cobo_waas2/model_evm_eip191_message_sign_destination.go
@@ -17,7 +17,7 @@ import (
// checks if the EvmEIP191MessageSignDestination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &EvmEIP191MessageSignDestination{}
-// EvmEIP191MessageSignDestination The information about the destination `EVM_EIP_191_Signature`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+// EvmEIP191MessageSignDestination The information about the destination `EVM_EIP_191_Signature`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
type EvmEIP191MessageSignDestination struct {
DestinationType MessageSignDestinationType `json:"destination_type"`
// The raw data of the message to be signed, encoded in Base64 format.
diff --git a/cobo_waas2/model_evm_eip712_message_sign_destination.go b/cobo_waas2/model_evm_eip712_message_sign_destination.go
index e27b88f..16aae67 100644
--- a/cobo_waas2/model_evm_eip712_message_sign_destination.go
+++ b/cobo_waas2/model_evm_eip712_message_sign_destination.go
@@ -17,7 +17,7 @@ import (
// checks if the EvmEIP712MessageSignDestination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &EvmEIP712MessageSignDestination{}
-// EvmEIP712MessageSignDestination The information about the destination `EVM_EIP_712_Signature`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+// EvmEIP712MessageSignDestination The information about the destination `EVM_EIP_712_Signature`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
type EvmEIP712MessageSignDestination struct {
DestinationType MessageSignDestinationType `json:"destination_type"`
// The structured data to be signed, formatted as a JSON object according to the EIP-712 standard.
diff --git a/cobo_waas2/model_exchange_transfer_destination.go b/cobo_waas2/model_exchange_transfer_destination.go
index d70c5a2..bbfb0ae 100644
--- a/cobo_waas2/model_exchange_transfer_destination.go
+++ b/cobo_waas2/model_exchange_transfer_destination.go
@@ -17,7 +17,7 @@ import (
// checks if the ExchangeTransferDestination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ExchangeTransferDestination{}
-// ExchangeTransferDestination The information about the transaction destination type `ExchangeWallet`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. An Exchange Wallet (Sub Account) can only receive asset transfers from another Exchange Wallet. Switch between the tabs to display the properties for different transaction destinations.
+// ExchangeTransferDestination The information about the transaction destination type `ExchangeWallet`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. An Exchange Wallet (Sub Account) can only receive asset transfers from another Exchange Wallet. Switch between the tabs to display the properties for different transaction destinations.
type ExchangeTransferDestination struct {
DestinationType TransferDestinationType `json:"destination_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_exchange_transfer_source.go b/cobo_waas2/model_exchange_transfer_source.go
index 861f9a4..9786a62 100644
--- a/cobo_waas2/model_exchange_transfer_source.go
+++ b/cobo_waas2/model_exchange_transfer_source.go
@@ -17,7 +17,7 @@ import (
// checks if the ExchangeTransferSource type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ExchangeTransferSource{}
-// ExchangeTransferSource The information about the transaction source types `Main` and `Sub`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Assets in an Exchange Wallet (Sub Account) can only be transferred to another Exchange Wallet. Switch between the tabs to display the properties for different transaction sources.
+// ExchangeTransferSource The information about the transaction source types `Main` and `Sub`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Assets in an Exchange Wallet (Sub Account) can only be transferred to another Exchange Wallet. Switch between the tabs to display the properties for different transaction sources.
type ExchangeTransferSource struct {
SourceType WalletSubtype `json:"source_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_extended_token_info.go b/cobo_waas2/model_extended_token_info.go
index 4bff585..e154529 100644
--- a/cobo_waas2/model_extended_token_info.go
+++ b/cobo_waas2/model_extended_token_info.go
@@ -19,7 +19,7 @@ var _ MappedNullable = &ExtendedTokenInfo{}
// ExtendedTokenInfo The token information, including whether the token can be deposited or withdrawn.
type ExtendedTokenInfo struct {
- // 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).
+ // The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
TokenId string `json:"token_id"`
// The ID of the chain on which the token operates.
ChainId string `json:"chain_id"`
diff --git a/cobo_waas2/model_fee_type.go b/cobo_waas2/model_fee_type.go
index 7f714e0..cb6ce79 100644
--- a/cobo_waas2/model_fee_type.go
+++ b/cobo_waas2/model_fee_type.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// FeeType The fee model. Possible values include: - `Fixed`: The fixed fee model. - `EVM_EIP_1559`: The EIP-1559 fee model. - `EVM_Legacy`: The legacy fee model. - `UTXO`: The fee model used in UTXO-based blockchains, such as Bitcoin. Each fee model requires a different set of properties. Switch between the above tabs for details. To learn more about the fee models, refer to [Fee models](/v2/guides/transactions/estimate-fees#fee-models).
+// FeeType The fee model. Possible values include: - `Fixed`: The fixed fee model. - `EVM_EIP_1559`: The EIP-1559 fee model. - `EVM_Legacy`: The legacy fee model. - `UTXO`: The fee model used in UTXO-based blockchains, such as Bitcoin. Each fee model requires a different set of properties. Switch between the above tabs for details. To learn more about the fee models, refer to [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models).
type FeeType string
// List of FeeType
diff --git a/cobo_waas2/model_get_transaction_limitation_200_response.go b/cobo_waas2/model_get_transaction_limitation_200_response.go
new file mode 100644
index 0000000..b4fbd91
--- /dev/null
+++ b/cobo_waas2/model_get_transaction_limitation_200_response.go
@@ -0,0 +1,236 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+)
+
+// checks if the GetTransactionLimitation200Response type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &GetTransactionLimitation200Response{}
+
+// GetTransactionLimitation200Response struct for GetTransactionLimitation200Response
+type GetTransactionLimitation200Response struct {
+ // A list of VASPs (Virtual Asset Service Providers) associated with the token.
+ VaspList []Vasp `json:"vasp_list,omitempty"`
+ // Indicates whether the transaction amount exceeds a predefined threshold. - **If `true`**: Additional information is required when filling Travel Rule details: - For deposits: `date_of_incorporation` and `place_of_incorporation`. - **If `false`**: No extra fields are required.
+ IsThresholdReached *bool `json:"is_threshold_reached,omitempty"`
+ // A human-readable, time-sensitive message to be signed by the wallet owner. The message contains key details including the wallet address, a unique nonce, and a timestamp. Signing this message confirms ownership of the wallet and allows the operation to proceed.
+ SelfCustodyWalletChallenge *string `json:"self_custody_wallet_challenge,omitempty"`
+ // A list of wallets connected to the system for transactions.
+ ConnectWalletList []string `json:"connect_wallet_list,omitempty"`
+}
+
+// NewGetTransactionLimitation200Response instantiates a new GetTransactionLimitation200Response object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewGetTransactionLimitation200Response() *GetTransactionLimitation200Response {
+ this := GetTransactionLimitation200Response{}
+ return &this
+}
+
+// NewGetTransactionLimitation200ResponseWithDefaults instantiates a new GetTransactionLimitation200Response object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewGetTransactionLimitation200ResponseWithDefaults() *GetTransactionLimitation200Response {
+ this := GetTransactionLimitation200Response{}
+ return &this
+}
+
+// GetVaspList returns the VaspList field value if set, zero value otherwise.
+func (o *GetTransactionLimitation200Response) GetVaspList() []Vasp {
+ if o == nil || IsNil(o.VaspList) {
+ var ret []Vasp
+ return ret
+ }
+ return o.VaspList
+}
+
+// GetVaspListOk returns a tuple with the VaspList field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GetTransactionLimitation200Response) GetVaspListOk() ([]Vasp, bool) {
+ if o == nil || IsNil(o.VaspList) {
+ return nil, false
+ }
+ return o.VaspList, true
+}
+
+// HasVaspList returns a boolean if a field has been set.
+func (o *GetTransactionLimitation200Response) HasVaspList() bool {
+ if o != nil && !IsNil(o.VaspList) {
+ return true
+ }
+
+ return false
+}
+
+// SetVaspList gets a reference to the given []Vasp and assigns it to the VaspList field.
+func (o *GetTransactionLimitation200Response) SetVaspList(v []Vasp) {
+ o.VaspList = v
+}
+
+// GetIsThresholdReached returns the IsThresholdReached field value if set, zero value otherwise.
+func (o *GetTransactionLimitation200Response) GetIsThresholdReached() bool {
+ if o == nil || IsNil(o.IsThresholdReached) {
+ var ret bool
+ return ret
+ }
+ return *o.IsThresholdReached
+}
+
+// GetIsThresholdReachedOk returns a tuple with the IsThresholdReached field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GetTransactionLimitation200Response) GetIsThresholdReachedOk() (*bool, bool) {
+ if o == nil || IsNil(o.IsThresholdReached) {
+ return nil, false
+ }
+ return o.IsThresholdReached, true
+}
+
+// HasIsThresholdReached returns a boolean if a field has been set.
+func (o *GetTransactionLimitation200Response) HasIsThresholdReached() bool {
+ if o != nil && !IsNil(o.IsThresholdReached) {
+ return true
+ }
+
+ return false
+}
+
+// SetIsThresholdReached gets a reference to the given bool and assigns it to the IsThresholdReached field.
+func (o *GetTransactionLimitation200Response) SetIsThresholdReached(v bool) {
+ o.IsThresholdReached = &v
+}
+
+// GetSelfCustodyWalletChallenge returns the SelfCustodyWalletChallenge field value if set, zero value otherwise.
+func (o *GetTransactionLimitation200Response) GetSelfCustodyWalletChallenge() string {
+ if o == nil || IsNil(o.SelfCustodyWalletChallenge) {
+ var ret string
+ return ret
+ }
+ return *o.SelfCustodyWalletChallenge
+}
+
+// GetSelfCustodyWalletChallengeOk returns a tuple with the SelfCustodyWalletChallenge field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GetTransactionLimitation200Response) GetSelfCustodyWalletChallengeOk() (*string, bool) {
+ if o == nil || IsNil(o.SelfCustodyWalletChallenge) {
+ return nil, false
+ }
+ return o.SelfCustodyWalletChallenge, true
+}
+
+// HasSelfCustodyWalletChallenge returns a boolean if a field has been set.
+func (o *GetTransactionLimitation200Response) HasSelfCustodyWalletChallenge() bool {
+ if o != nil && !IsNil(o.SelfCustodyWalletChallenge) {
+ return true
+ }
+
+ return false
+}
+
+// SetSelfCustodyWalletChallenge gets a reference to the given string and assigns it to the SelfCustodyWalletChallenge field.
+func (o *GetTransactionLimitation200Response) SetSelfCustodyWalletChallenge(v string) {
+ o.SelfCustodyWalletChallenge = &v
+}
+
+// GetConnectWalletList returns the ConnectWalletList field value if set, zero value otherwise.
+func (o *GetTransactionLimitation200Response) GetConnectWalletList() []string {
+ if o == nil || IsNil(o.ConnectWalletList) {
+ var ret []string
+ return ret
+ }
+ return o.ConnectWalletList
+}
+
+// GetConnectWalletListOk returns a tuple with the ConnectWalletList field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *GetTransactionLimitation200Response) GetConnectWalletListOk() ([]string, bool) {
+ if o == nil || IsNil(o.ConnectWalletList) {
+ return nil, false
+ }
+ return o.ConnectWalletList, true
+}
+
+// HasConnectWalletList returns a boolean if a field has been set.
+func (o *GetTransactionLimitation200Response) HasConnectWalletList() bool {
+ if o != nil && !IsNil(o.ConnectWalletList) {
+ return true
+ }
+
+ return false
+}
+
+// SetConnectWalletList gets a reference to the given []string and assigns it to the ConnectWalletList field.
+func (o *GetTransactionLimitation200Response) SetConnectWalletList(v []string) {
+ o.ConnectWalletList = v
+}
+
+func (o GetTransactionLimitation200Response) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o GetTransactionLimitation200Response) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.VaspList) {
+ toSerialize["vasp_list"] = o.VaspList
+ }
+ if !IsNil(o.IsThresholdReached) {
+ toSerialize["is_threshold_reached"] = o.IsThresholdReached
+ }
+ if !IsNil(o.SelfCustodyWalletChallenge) {
+ toSerialize["self_custody_wallet_challenge"] = o.SelfCustodyWalletChallenge
+ }
+ if !IsNil(o.ConnectWalletList) {
+ toSerialize["connect_wallet_list"] = o.ConnectWalletList
+ }
+ return toSerialize, nil
+}
+
+type NullableGetTransactionLimitation200Response struct {
+ value *GetTransactionLimitation200Response
+ isSet bool
+}
+
+func (v NullableGetTransactionLimitation200Response) Get() *GetTransactionLimitation200Response {
+ return v.value
+}
+
+func (v *NullableGetTransactionLimitation200Response) Set(val *GetTransactionLimitation200Response) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableGetTransactionLimitation200Response) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableGetTransactionLimitation200Response) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableGetTransactionLimitation200Response(val *GetTransactionLimitation200Response) *NullableGetTransactionLimitation200Response {
+ return &NullableGetTransactionLimitation200Response{value: val, isSet: true}
+}
+
+func (v NullableGetTransactionLimitation200Response) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableGetTransactionLimitation200Response) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_key_share_holder_group_status.go b/cobo_waas2/model_key_share_holder_group_status.go
index 3ba6ba2..db08cfd 100644
--- a/cobo_waas2/model_key_share_holder_group_status.go
+++ b/cobo_waas2/model_key_share_holder_group_status.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// KeyShareHolderGroupStatus The status of the key share holder group. Possible values include: - `New`: The key share holder group has been newly created. The status will become `Valid` after you call [Create TSS request](/v2/api-references/wallets--mpc-wallet/create-a-tss-request-to-generate-key-secrets-for-a-tss-group) and specifying this key share holder group as the target key share holder group. - `Valid`: The key share holder group is valid. - `Unavailable`: The key share holder group is currently unavailable. This status appears when a key share holder uses [mobile co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/back-up-key-share-groups#mobile-co-signer) to change node. For example, when a key share holder changes to a new phone or loses their phone, and is in the process of setting up [Cobo Guard](https://manuals.cobo.com/en/guard/introduction) on their new phone.
+// KeyShareHolderGroupStatus The status of the key share holder group. Possible values include: - `New`: The key share holder group has been newly created. The status will become `Valid` after you call [Create TSS request](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/create-a-tss-request-to-generate-key-secrets-for-a-tss-group) and specifying this key share holder group as the target key share holder group. - `Valid`: The key share holder group is valid. - `Unavailable`: The key share holder group is currently unavailable. This status appears when a key share holder uses [mobile co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/back-up-key-share-groups#mobile-co-signer) to change node. For example, when a key share holder changes to a new phone or loses their phone, and is in the process of setting up [Cobo Guard](https://manuals.cobo.com/en/guard/introduction) on their new phone.
type KeyShareHolderGroupStatus string
// List of KeyShareHolderGroupStatus
diff --git a/cobo_waas2/model_key_share_holder_status.go b/cobo_waas2/model_key_share_holder_status.go
index 25b8b7f..3453637 100644
--- a/cobo_waas2/model_key_share_holder_status.go
+++ b/cobo_waas2/model_key_share_holder_status.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// KeyShareHolderStatus The status of key share holder's TSS Node. Possible values include: - `Valid`: The TSS Node is configured and activated. - `NotConfigured`: The TSS Node has not been configured. This status is only applicable to [mobile co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/back-up-key-share-groups#mobile-co-signer) using the [Cobo Guard](https://manuals.cobo.com/en/guard/introduction). - `NotActivated`: The TSS Node has not been activated. This status is only applicable to [mobile co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/back-up-key-share-groups#mobile-co-signer) using the [Cobo Guard](https://manuals.cobo.com/en/guard/introduction). - `Changed`: The TSS Node has been changed. This happens when the key share holder sets up their [Cobo Guard](https://manuals.cobo.com/en/guard/introduction) on a new phone. This `Changed` status serves as a reminder for you to call [Create TSS request](/v2/api-references/wallets--mpc-wallet/create-a-tss-request-to-generate-key-secrets-for-a-tss-group) with the `KeyGenFromKeyGroup` and `Recovery` action `type` to finalize the setup of the key share holder's new phone. Once all set, the old TSS Node with the `Changed` status will be deleted.
+// KeyShareHolderStatus The status of key share holder's TSS Node. Possible values include: - `Valid`: The TSS Node is configured and activated. - `NotConfigured`: The TSS Node has not been configured. This status is only applicable to [mobile co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/back-up-key-share-groups#mobile-co-signer) using the [Cobo Guard](https://manuals.cobo.com/en/guard/introduction). - `NotActivated`: The TSS Node has not been activated. This status is only applicable to [mobile co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/back-up-key-share-groups#mobile-co-signer) using the [Cobo Guard](https://manuals.cobo.com/en/guard/introduction). - `Changed`: The TSS Node has been changed. This happens when the key share holder sets up their [Cobo Guard](https://manuals.cobo.com/en/guard/introduction) on a new phone. This `Changed` status serves as a reminder for you to call [Create TSS request](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/create-a-tss-request-to-generate-key-secrets-for-a-tss-group) with the `KeyGenFromKeyGroup` and `Recovery` action `type` to finalize the setup of the key share holder's new phone. Once all set, the old TSS Node with the `Changed` status will be deleted.
type KeyShareHolderStatus string
// List of KeyShareHolderStatus
diff --git a/cobo_waas2/model_key_share_holder_type.go b/cobo_waas2/model_key_share_holder_type.go
index a2fce1a..12464f6 100644
--- a/cobo_waas2/model_key_share_holder_type.go
+++ b/cobo_waas2/model_key_share_holder_type.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// KeyShareHolderType The key share holder's TSS Node type. Possible values include: - `Cobo`: The TSS Node is generated and held by Cobo. - `Mobile`: The TSS Node is generated and held by a [mobile co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group) using [Cobo Guard](https://manuals.cobo.com/en/guard/introduction). - `API`: The TSS Node is generated and held by an [API co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group) using the [TSS Node software package](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/tss-node-deployment).
+// KeyShareHolderType The key share holder's TSS Node type. Possible values include: - `Cobo`: The TSS Node is generated and held by Cobo. - `Mobile`: The TSS Node is generated and held by a [mobile co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group) using [Cobo Guard](https://manuals.cobo.com/en/guard/introduction). - `API`: The TSS Node is generated and held by a [server co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group) using the [TSS Node software package](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/tss-node-deployment).
type KeyShareHolderType string
// List of KeyShareHolderType
diff --git a/cobo_waas2/model_list_callback_messages_200_response.go b/cobo_waas2/model_list_callback_messages_200_response.go
new file mode 100644
index 0000000..cee3033
--- /dev/null
+++ b/cobo_waas2/model_list_callback_messages_200_response.go
@@ -0,0 +1,184 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the ListCallbackMessages200Response type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ListCallbackMessages200Response{}
+
+// ListCallbackMessages200Response struct for ListCallbackMessages200Response
+type ListCallbackMessages200Response struct {
+ Data []CallbackMessage `json:"data"`
+ Pagination Pagination `json:"pagination"`
+}
+
+type _ListCallbackMessages200Response ListCallbackMessages200Response
+
+// NewListCallbackMessages200Response instantiates a new ListCallbackMessages200Response object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewListCallbackMessages200Response(data []CallbackMessage, pagination Pagination) *ListCallbackMessages200Response {
+ this := ListCallbackMessages200Response{}
+ this.Data = data
+ this.Pagination = pagination
+ return &this
+}
+
+// NewListCallbackMessages200ResponseWithDefaults instantiates a new ListCallbackMessages200Response object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewListCallbackMessages200ResponseWithDefaults() *ListCallbackMessages200Response {
+ this := ListCallbackMessages200Response{}
+ return &this
+}
+
+// GetData returns the Data field value
+func (o *ListCallbackMessages200Response) GetData() []CallbackMessage {
+ if o == nil {
+ var ret []CallbackMessage
+ return ret
+ }
+
+ return o.Data
+}
+
+// GetDataOk returns a tuple with the Data field value
+// and a boolean to check if the value has been set.
+func (o *ListCallbackMessages200Response) GetDataOk() ([]CallbackMessage, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Data, true
+}
+
+// SetData sets field value
+func (o *ListCallbackMessages200Response) SetData(v []CallbackMessage) {
+ o.Data = v
+}
+
+// GetPagination returns the Pagination field value
+func (o *ListCallbackMessages200Response) GetPagination() Pagination {
+ if o == nil {
+ var ret Pagination
+ return ret
+ }
+
+ return o.Pagination
+}
+
+// GetPaginationOk returns a tuple with the Pagination field value
+// and a boolean to check if the value has been set.
+func (o *ListCallbackMessages200Response) GetPaginationOk() (*Pagination, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Pagination, true
+}
+
+// SetPagination sets field value
+func (o *ListCallbackMessages200Response) SetPagination(v Pagination) {
+ o.Pagination = v
+}
+
+func (o ListCallbackMessages200Response) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ListCallbackMessages200Response) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["data"] = o.Data
+ toSerialize["pagination"] = o.Pagination
+ return toSerialize, nil
+}
+
+func (o *ListCallbackMessages200Response) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "data",
+ "pagination",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varListCallbackMessages200Response := _ListCallbackMessages200Response{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varListCallbackMessages200Response)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ListCallbackMessages200Response(varListCallbackMessages200Response)
+
+ return err
+}
+
+type NullableListCallbackMessages200Response struct {
+ value *ListCallbackMessages200Response
+ isSet bool
+}
+
+func (v NullableListCallbackMessages200Response) Get() *ListCallbackMessages200Response {
+ return v.value
+}
+
+func (v *NullableListCallbackMessages200Response) Set(val *ListCallbackMessages200Response) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableListCallbackMessages200Response) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableListCallbackMessages200Response) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableListCallbackMessages200Response(val *ListCallbackMessages200Response) *NullableListCallbackMessages200Response {
+ return &NullableListCallbackMessages200Response{value: val, isSet: true}
+}
+
+func (v NullableListCallbackMessages200Response) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableListCallbackMessages200Response) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_list_supported_countries_200_response_inner.go b/cobo_waas2/model_list_supported_countries_200_response_inner.go
new file mode 100644
index 0000000..01c4b92
--- /dev/null
+++ b/cobo_waas2/model_list_supported_countries_200_response_inner.go
@@ -0,0 +1,215 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the ListSupportedCountries200ResponseInner type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &ListSupportedCountries200ResponseInner{}
+
+// ListSupportedCountries200ResponseInner struct for ListSupportedCountries200ResponseInner
+type ListSupportedCountries200ResponseInner struct {
+ // The English name of the country.
+ En string `json:"en"`
+ // The simplified Chinese name of the country.
+ ZhHans string `json:"zh_hans"`
+ // The 2-letter country code (ISO 3166-1 alpha-2).
+ Code2 string `json:"code2"`
+}
+
+type _ListSupportedCountries200ResponseInner ListSupportedCountries200ResponseInner
+
+// NewListSupportedCountries200ResponseInner instantiates a new ListSupportedCountries200ResponseInner object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewListSupportedCountries200ResponseInner(en string, zhHans string, code2 string) *ListSupportedCountries200ResponseInner {
+ this := ListSupportedCountries200ResponseInner{}
+ this.En = en
+ this.ZhHans = zhHans
+ this.Code2 = code2
+ return &this
+}
+
+// NewListSupportedCountries200ResponseInnerWithDefaults instantiates a new ListSupportedCountries200ResponseInner object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewListSupportedCountries200ResponseInnerWithDefaults() *ListSupportedCountries200ResponseInner {
+ this := ListSupportedCountries200ResponseInner{}
+ return &this
+}
+
+// GetEn returns the En field value
+func (o *ListSupportedCountries200ResponseInner) GetEn() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.En
+}
+
+// GetEnOk returns a tuple with the En field value
+// and a boolean to check if the value has been set.
+func (o *ListSupportedCountries200ResponseInner) GetEnOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.En, true
+}
+
+// SetEn sets field value
+func (o *ListSupportedCountries200ResponseInner) SetEn(v string) {
+ o.En = v
+}
+
+// GetZhHans returns the ZhHans field value
+func (o *ListSupportedCountries200ResponseInner) GetZhHans() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.ZhHans
+}
+
+// GetZhHansOk returns a tuple with the ZhHans field value
+// and a boolean to check if the value has been set.
+func (o *ListSupportedCountries200ResponseInner) GetZhHansOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ZhHans, true
+}
+
+// SetZhHans sets field value
+func (o *ListSupportedCountries200ResponseInner) SetZhHans(v string) {
+ o.ZhHans = v
+}
+
+// GetCode2 returns the Code2 field value
+func (o *ListSupportedCountries200ResponseInner) GetCode2() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Code2
+}
+
+// GetCode2Ok returns a tuple with the Code2 field value
+// and a boolean to check if the value has been set.
+func (o *ListSupportedCountries200ResponseInner) GetCode2Ok() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Code2, true
+}
+
+// SetCode2 sets field value
+func (o *ListSupportedCountries200ResponseInner) SetCode2(v string) {
+ o.Code2 = v
+}
+
+func (o ListSupportedCountries200ResponseInner) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o ListSupportedCountries200ResponseInner) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["en"] = o.En
+ toSerialize["zh_hans"] = o.ZhHans
+ toSerialize["code2"] = o.Code2
+ return toSerialize, nil
+}
+
+func (o *ListSupportedCountries200ResponseInner) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "en",
+ "zh_hans",
+ "code2",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varListSupportedCountries200ResponseInner := _ListSupportedCountries200ResponseInner{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varListSupportedCountries200ResponseInner)
+
+ if err != nil {
+ return err
+ }
+
+ *o = ListSupportedCountries200ResponseInner(varListSupportedCountries200ResponseInner)
+
+ return err
+}
+
+type NullableListSupportedCountries200ResponseInner struct {
+ value *ListSupportedCountries200ResponseInner
+ isSet bool
+}
+
+func (v NullableListSupportedCountries200ResponseInner) Get() *ListSupportedCountries200ResponseInner {
+ return v.value
+}
+
+func (v *NullableListSupportedCountries200ResponseInner) Set(val *ListSupportedCountries200ResponseInner) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableListSupportedCountries200ResponseInner) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableListSupportedCountries200ResponseInner) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableListSupportedCountries200ResponseInner(val *ListSupportedCountries200ResponseInner) *NullableListSupportedCountries200ResponseInner {
+ return &NullableListSupportedCountries200ResponseInner{value: val, isSet: true}
+}
+
+func (v NullableListSupportedCountries200ResponseInner) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableListSupportedCountries200ResponseInner) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_lock_utxos_request_utxos_inner.go b/cobo_waas2/model_lock_utxos_request_utxos_inner.go
index acfc011..f55cda1 100644
--- a/cobo_waas2/model_lock_utxos_request_utxos_inner.go
+++ b/cobo_waas2/model_lock_utxos_request_utxos_inner.go
@@ -19,7 +19,7 @@ var _ MappedNullable = &LockUtxosRequestUtxosInner{}
// LockUtxosRequestUtxosInner struct for LockUtxosRequestUtxosInner
type LockUtxosRequestUtxosInner struct {
- // 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).
+ // The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
TokenId string `json:"token_id"`
// The transaction hash.
TxHash string `json:"tx_hash"`
diff --git a/cobo_waas2/model_max_transferable_value.go b/cobo_waas2/model_max_transferable_value.go
index 0982848..fd4b242 100644
--- a/cobo_waas2/model_max_transferable_value.go
+++ b/cobo_waas2/model_max_transferable_value.go
@@ -17,7 +17,7 @@ var _ MappedNullable = &MaxTransferableValue{}
// MaxTransferableValue The maximum amount you can transfer from the wallet or the specified wallet address, along with the corresponding transaction fee.
type MaxTransferableValue struct {
- // 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).
+ // The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
TokenId *string `json:"token_id,omitempty"`
// The maximum amount you can transfer from the wallet or the specified wallet address.
MaxTransferableValue *string `json:"max_transferable_value,omitempty"`
diff --git a/cobo_waas2/model_message_sign_destination_type.go b/cobo_waas2/model_message_sign_destination_type.go
index 2677ec2..7071d90 100644
--- a/cobo_waas2/model_message_sign_destination_type.go
+++ b/cobo_waas2/model_message_sign_destination_type.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// MessageSignDestinationType The type of the signature format. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Each signature format type requires a different set of properties. Switch between the above tabs for details.
+// MessageSignDestinationType The type of the signature format. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Each signature format type requires a different set of properties. Switch between the above tabs for details.
type MessageSignDestinationType string
// List of MessageSignDestinationType
diff --git a/cobo_waas2/model_message_sign_params.go b/cobo_waas2/model_message_sign_params.go
index 06cf199..fc3e8cd 100644
--- a/cobo_waas2/model_message_sign_params.go
+++ b/cobo_waas2/model_message_sign_params.go
@@ -21,7 +21,7 @@ var _ MappedNullable = &MessageSignParams{}
type MessageSignParams struct {
// 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.
RequestId string `json:"request_id"`
- // The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains).
+ // 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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
ChainId string `json:"chain_id"`
Source MessageSignSource `json:"source"`
Destination MessageSignDestination `json:"destination"`
diff --git a/cobo_waas2/model_message_sign_source_type.go b/cobo_waas2/model_message_sign_source_type.go
index 1743559..0e8d0dc 100644
--- a/cobo_waas2/model_message_sign_source_type.go
+++ b/cobo_waas2/model_message_sign_source_type.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// MessageSignSourceType The wallet subtype of the transaction source. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+// MessageSignSourceType The wallet subtype of the transaction source. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
type MessageSignSourceType string
// List of MessageSignSourceType
diff --git a/cobo_waas2/model_mpc_delegate.go b/cobo_waas2/model_mpc_delegate.go
index 0c50063..fa7ab24 100644
--- a/cobo_waas2/model_mpc_delegate.go
+++ b/cobo_waas2/model_mpc_delegate.go
@@ -17,7 +17,7 @@ import (
// checks if the MPCDelegate type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MPCDelegate{}
-// MPCDelegate The information about the MPC Wallet as the Delegate. You can call the [List Delegates](/v2/api-references/wallets--smart-contract-wallets/list-delegates) operation to retrieve the applicable Delegates.
+// MPCDelegate The information about the MPC Wallet as the Delegate. You can call the [List Delegates](https://www.cobo.com/developers/v2/api-references/wallets--smart-contract-wallets/list-delegates) operation to retrieve the applicable Delegates.
type MPCDelegate struct {
DelegateType CoboSafeDelegateType `json:"delegate_type"`
// The wallet ID of the Delegate. This is required when initiating a transfer or contract call from Smart Contract Wallets (Safe{Wallet}).
diff --git a/cobo_waas2/model_mpc_transfer_source.go b/cobo_waas2/model_mpc_transfer_source.go
index 3d62cd0..b1feed1 100644
--- a/cobo_waas2/model_mpc_transfer_source.go
+++ b/cobo_waas2/model_mpc_transfer_source.go
@@ -17,7 +17,7 @@ import (
// checks if the MpcTransferSource type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MpcTransferSource{}
-// MpcTransferSource The information about the transaction source types `Org-Controlled` and `User-Controlled`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail. Switch between the tabs to display the properties for different transaction sources.
+// MpcTransferSource The information about the transaction source types `Org-Controlled` and `User-Controlled`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail. Switch between the tabs to display the properties for different transaction sources.
type MpcTransferSource struct {
SourceType WalletSubtype `json:"source_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_mpc_vault_event_data.go b/cobo_waas2/model_mpc_vault_event_data.go
new file mode 100644
index 0000000..760e14d
--- /dev/null
+++ b/cobo_waas2/model_mpc_vault_event_data.go
@@ -0,0 +1,377 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the MPCVaultEventData type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &MPCVaultEventData{}
+
+// MPCVaultEventData struct for MPCVaultEventData
+type MPCVaultEventData struct {
+ // The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
+ DataType string `json:"data_type"`
+ // The vault ID.
+ VaultId *string `json:"vault_id,omitempty"`
+ // The project ID.
+ ProjectId *string `json:"project_id,omitempty"`
+ // The vault name.
+ Name *string `json:"name,omitempty"`
+ Type *MPCVaultType `json:"type,omitempty"`
+ RootPubkeys []RootPubkey `json:"root_pubkeys,omitempty"`
+ // The vault's creation time in Unix timestamp format, measured in milliseconds.
+ CreatedTimestamp *int64 `json:"created_timestamp,omitempty"`
+}
+
+type _MPCVaultEventData MPCVaultEventData
+
+// NewMPCVaultEventData instantiates a new MPCVaultEventData object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewMPCVaultEventData(dataType string) *MPCVaultEventData {
+ this := MPCVaultEventData{}
+ this.DataType = dataType
+ return &this
+}
+
+// NewMPCVaultEventDataWithDefaults instantiates a new MPCVaultEventData object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewMPCVaultEventDataWithDefaults() *MPCVaultEventData {
+ this := MPCVaultEventData{}
+ return &this
+}
+
+// GetDataType returns the DataType field value
+func (o *MPCVaultEventData) GetDataType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.DataType
+}
+
+// GetDataTypeOk returns a tuple with the DataType field value
+// and a boolean to check if the value has been set.
+func (o *MPCVaultEventData) GetDataTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DataType, true
+}
+
+// SetDataType sets field value
+func (o *MPCVaultEventData) SetDataType(v string) {
+ o.DataType = v
+}
+
+// GetVaultId returns the VaultId field value if set, zero value otherwise.
+func (o *MPCVaultEventData) GetVaultId() string {
+ if o == nil || IsNil(o.VaultId) {
+ var ret string
+ return ret
+ }
+ return *o.VaultId
+}
+
+// GetVaultIdOk returns a tuple with the VaultId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *MPCVaultEventData) GetVaultIdOk() (*string, bool) {
+ if o == nil || IsNil(o.VaultId) {
+ return nil, false
+ }
+ return o.VaultId, true
+}
+
+// HasVaultId returns a boolean if a field has been set.
+func (o *MPCVaultEventData) HasVaultId() bool {
+ if o != nil && !IsNil(o.VaultId) {
+ return true
+ }
+
+ return false
+}
+
+// SetVaultId gets a reference to the given string and assigns it to the VaultId field.
+func (o *MPCVaultEventData) SetVaultId(v string) {
+ o.VaultId = &v
+}
+
+// GetProjectId returns the ProjectId field value if set, zero value otherwise.
+func (o *MPCVaultEventData) GetProjectId() string {
+ if o == nil || IsNil(o.ProjectId) {
+ var ret string
+ return ret
+ }
+ return *o.ProjectId
+}
+
+// GetProjectIdOk returns a tuple with the ProjectId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *MPCVaultEventData) GetProjectIdOk() (*string, bool) {
+ if o == nil || IsNil(o.ProjectId) {
+ return nil, false
+ }
+ return o.ProjectId, true
+}
+
+// HasProjectId returns a boolean if a field has been set.
+func (o *MPCVaultEventData) HasProjectId() bool {
+ if o != nil && !IsNil(o.ProjectId) {
+ return true
+ }
+
+ return false
+}
+
+// SetProjectId gets a reference to the given string and assigns it to the ProjectId field.
+func (o *MPCVaultEventData) SetProjectId(v string) {
+ o.ProjectId = &v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *MPCVaultEventData) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *MPCVaultEventData) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *MPCVaultEventData) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *MPCVaultEventData) SetName(v string) {
+ o.Name = &v
+}
+
+// GetType returns the Type field value if set, zero value otherwise.
+func (o *MPCVaultEventData) GetType() MPCVaultType {
+ if o == nil || IsNil(o.Type) {
+ var ret MPCVaultType
+ return ret
+ }
+ return *o.Type
+}
+
+// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *MPCVaultEventData) GetTypeOk() (*MPCVaultType, bool) {
+ if o == nil || IsNil(o.Type) {
+ return nil, false
+ }
+ return o.Type, true
+}
+
+// HasType returns a boolean if a field has been set.
+func (o *MPCVaultEventData) HasType() bool {
+ if o != nil && !IsNil(o.Type) {
+ return true
+ }
+
+ return false
+}
+
+// SetType gets a reference to the given MPCVaultType and assigns it to the Type field.
+func (o *MPCVaultEventData) SetType(v MPCVaultType) {
+ o.Type = &v
+}
+
+// GetRootPubkeys returns the RootPubkeys field value if set, zero value otherwise.
+func (o *MPCVaultEventData) GetRootPubkeys() []RootPubkey {
+ if o == nil || IsNil(o.RootPubkeys) {
+ var ret []RootPubkey
+ return ret
+ }
+ return o.RootPubkeys
+}
+
+// GetRootPubkeysOk returns a tuple with the RootPubkeys field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *MPCVaultEventData) GetRootPubkeysOk() ([]RootPubkey, bool) {
+ if o == nil || IsNil(o.RootPubkeys) {
+ return nil, false
+ }
+ return o.RootPubkeys, true
+}
+
+// HasRootPubkeys returns a boolean if a field has been set.
+func (o *MPCVaultEventData) HasRootPubkeys() bool {
+ if o != nil && !IsNil(o.RootPubkeys) {
+ return true
+ }
+
+ return false
+}
+
+// SetRootPubkeys gets a reference to the given []RootPubkey and assigns it to the RootPubkeys field.
+func (o *MPCVaultEventData) SetRootPubkeys(v []RootPubkey) {
+ o.RootPubkeys = v
+}
+
+// GetCreatedTimestamp returns the CreatedTimestamp field value if set, zero value otherwise.
+func (o *MPCVaultEventData) GetCreatedTimestamp() int64 {
+ if o == nil || IsNil(o.CreatedTimestamp) {
+ var ret int64
+ return ret
+ }
+ return *o.CreatedTimestamp
+}
+
+// GetCreatedTimestampOk returns a tuple with the CreatedTimestamp field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *MPCVaultEventData) GetCreatedTimestampOk() (*int64, bool) {
+ if o == nil || IsNil(o.CreatedTimestamp) {
+ return nil, false
+ }
+ return o.CreatedTimestamp, true
+}
+
+// HasCreatedTimestamp returns a boolean if a field has been set.
+func (o *MPCVaultEventData) HasCreatedTimestamp() bool {
+ if o != nil && !IsNil(o.CreatedTimestamp) {
+ return true
+ }
+
+ return false
+}
+
+// SetCreatedTimestamp gets a reference to the given int64 and assigns it to the CreatedTimestamp field.
+func (o *MPCVaultEventData) SetCreatedTimestamp(v int64) {
+ o.CreatedTimestamp = &v
+}
+
+func (o MPCVaultEventData) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o MPCVaultEventData) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["data_type"] = o.DataType
+ if !IsNil(o.VaultId) {
+ toSerialize["vault_id"] = o.VaultId
+ }
+ if !IsNil(o.ProjectId) {
+ toSerialize["project_id"] = o.ProjectId
+ }
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.Type) {
+ toSerialize["type"] = o.Type
+ }
+ if !IsNil(o.RootPubkeys) {
+ toSerialize["root_pubkeys"] = o.RootPubkeys
+ }
+ if !IsNil(o.CreatedTimestamp) {
+ toSerialize["created_timestamp"] = o.CreatedTimestamp
+ }
+ return toSerialize, nil
+}
+
+func (o *MPCVaultEventData) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "data_type",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varMPCVaultEventData := _MPCVaultEventData{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varMPCVaultEventData)
+
+ if err != nil {
+ return err
+ }
+
+ *o = MPCVaultEventData(varMPCVaultEventData)
+
+ return err
+}
+
+type NullableMPCVaultEventData struct {
+ value *MPCVaultEventData
+ isSet bool
+}
+
+func (v NullableMPCVaultEventData) Get() *MPCVaultEventData {
+ return v.value
+}
+
+func (v *NullableMPCVaultEventData) Set(val *MPCVaultEventData) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableMPCVaultEventData) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableMPCVaultEventData) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableMPCVaultEventData(val *MPCVaultEventData) *NullableMPCVaultEventData {
+ return &NullableMPCVaultEventData{value: val, isSet: true}
+}
+
+func (v NullableMPCVaultEventData) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableMPCVaultEventData) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_org_info.go b/cobo_waas2/model_org_info.go
new file mode 100644
index 0000000..8dd84dc
--- /dev/null
+++ b/cobo_waas2/model_org_info.go
@@ -0,0 +1,231 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the OrgInfo type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &OrgInfo{}
+
+// OrgInfo [organization](https://manuals.cobo.com/en/portal/organization/introduction).
+type OrgInfo struct {
+ // The ID of the owning organization.
+ OrgId string `json:"org_id"`
+ // The organization name.
+ Name *string `json:"name,omitempty"`
+ // The organization's creation time in Unix timestamp format, measured in milliseconds.
+ CreatedTimestamp *int64 `json:"created_timestamp,omitempty"`
+}
+
+type _OrgInfo OrgInfo
+
+// NewOrgInfo instantiates a new OrgInfo object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewOrgInfo(orgId string) *OrgInfo {
+ this := OrgInfo{}
+ this.OrgId = orgId
+ return &this
+}
+
+// NewOrgInfoWithDefaults instantiates a new OrgInfo object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewOrgInfoWithDefaults() *OrgInfo {
+ this := OrgInfo{}
+ return &this
+}
+
+// GetOrgId returns the OrgId field value
+func (o *OrgInfo) GetOrgId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.OrgId
+}
+
+// GetOrgIdOk returns a tuple with the OrgId field value
+// and a boolean to check if the value has been set.
+func (o *OrgInfo) GetOrgIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.OrgId, true
+}
+
+// SetOrgId sets field value
+func (o *OrgInfo) SetOrgId(v string) {
+ o.OrgId = v
+}
+
+// GetName returns the Name field value if set, zero value otherwise.
+func (o *OrgInfo) GetName() string {
+ if o == nil || IsNil(o.Name) {
+ var ret string
+ return ret
+ }
+ return *o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgInfo) GetNameOk() (*string, bool) {
+ if o == nil || IsNil(o.Name) {
+ return nil, false
+ }
+ return o.Name, true
+}
+
+// HasName returns a boolean if a field has been set.
+func (o *OrgInfo) HasName() bool {
+ if o != nil && !IsNil(o.Name) {
+ return true
+ }
+
+ return false
+}
+
+// SetName gets a reference to the given string and assigns it to the Name field.
+func (o *OrgInfo) SetName(v string) {
+ o.Name = &v
+}
+
+// GetCreatedTimestamp returns the CreatedTimestamp field value if set, zero value otherwise.
+func (o *OrgInfo) GetCreatedTimestamp() int64 {
+ if o == nil || IsNil(o.CreatedTimestamp) {
+ var ret int64
+ return ret
+ }
+ return *o.CreatedTimestamp
+}
+
+// GetCreatedTimestampOk returns a tuple with the CreatedTimestamp field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *OrgInfo) GetCreatedTimestampOk() (*int64, bool) {
+ if o == nil || IsNil(o.CreatedTimestamp) {
+ return nil, false
+ }
+ return o.CreatedTimestamp, true
+}
+
+// HasCreatedTimestamp returns a boolean if a field has been set.
+func (o *OrgInfo) HasCreatedTimestamp() bool {
+ if o != nil && !IsNil(o.CreatedTimestamp) {
+ return true
+ }
+
+ return false
+}
+
+// SetCreatedTimestamp gets a reference to the given int64 and assigns it to the CreatedTimestamp field.
+func (o *OrgInfo) SetCreatedTimestamp(v int64) {
+ o.CreatedTimestamp = &v
+}
+
+func (o OrgInfo) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o OrgInfo) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["org_id"] = o.OrgId
+ if !IsNil(o.Name) {
+ toSerialize["name"] = o.Name
+ }
+ if !IsNil(o.CreatedTimestamp) {
+ toSerialize["created_timestamp"] = o.CreatedTimestamp
+ }
+ return toSerialize, nil
+}
+
+func (o *OrgInfo) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "org_id",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varOrgInfo := _OrgInfo{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varOrgInfo)
+
+ if err != nil {
+ return err
+ }
+
+ *o = OrgInfo(varOrgInfo)
+
+ return err
+}
+
+type NullableOrgInfo struct {
+ value *OrgInfo
+ isSet bool
+}
+
+func (v NullableOrgInfo) Get() *OrgInfo {
+ return v.value
+}
+
+func (v *NullableOrgInfo) Set(val *OrgInfo) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableOrgInfo) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableOrgInfo) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableOrgInfo(val *OrgInfo) *NullableOrgInfo {
+ return &NullableOrgInfo{value: val, isSet: true}
+}
+
+func (v NullableOrgInfo) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableOrgInfo) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_pagination.go b/cobo_waas2/model_pagination.go
index 0df323c..fa0d398 100644
--- a/cobo_waas2/model_pagination.go
+++ b/cobo_waas2/model_pagination.go
@@ -19,9 +19,9 @@ var _ MappedNullable = &Pagination{}
// Pagination The pagination information of the returned data.
type Pagination struct {
- // 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.
+ // An object ID used to retrieve records before the specified object, indicating earlier or smaller records relative to the current dataset. You can use it to paginate backwards. If empty, it means you have reached the start of the data. Most API endpoints sort by object ID, but some use other fields depending on the endpoint.
Before string `json:"before"`
- // 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.
+ // An object ID used to retrieve records after the specified object, indicating newer or larger records relative to the current dataset. You can use it to paginate forwards. If empty, it means you have reached the end of the data. Most API endpoints sort by object ID, but some use other fields depending on the endpoint.
After string `json:"after"`
// The total number of records that match the query criteria, unaffected by the pagination parameters (`before` , `after`, and `limit`).
TotalCount int32 `json:"total_count"`
diff --git a/cobo_waas2/model_raw_message_sign_destination.go b/cobo_waas2/model_raw_message_sign_destination.go
index b018678..1161d01 100644
--- a/cobo_waas2/model_raw_message_sign_destination.go
+++ b/cobo_waas2/model_raw_message_sign_destination.go
@@ -17,7 +17,7 @@ import (
// checks if the RawMessageSignDestination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &RawMessageSignDestination{}
-// RawMessageSignDestination The information about the destination `Raw_Message_Signature`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+// RawMessageSignDestination The information about the destination `Raw_Message_Signature`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
type RawMessageSignDestination struct {
DestinationType MessageSignDestinationType `json:"destination_type"`
// Message hash to be signed, in hexadecimal format.
diff --git a/cobo_waas2/model_retry_callback_message_201_response.go b/cobo_waas2/model_retry_callback_message_201_response.go
new file mode 100644
index 0000000..dbf7324
--- /dev/null
+++ b/cobo_waas2/model_retry_callback_message_201_response.go
@@ -0,0 +1,125 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+)
+
+// checks if the RetryCallbackMessage201Response type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &RetryCallbackMessage201Response{}
+
+// RetryCallbackMessage201Response struct for RetryCallbackMessage201Response
+type RetryCallbackMessage201Response struct {
+ // Whether the callback message has been successfully resent: - `true`: The callback message has been successfully resent. - `false`: The callback message has not been successfully resent.
+ Retried *bool `json:"retried,omitempty"`
+}
+
+// NewRetryCallbackMessage201Response instantiates a new RetryCallbackMessage201Response object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewRetryCallbackMessage201Response() *RetryCallbackMessage201Response {
+ this := RetryCallbackMessage201Response{}
+ return &this
+}
+
+// NewRetryCallbackMessage201ResponseWithDefaults instantiates a new RetryCallbackMessage201Response object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewRetryCallbackMessage201ResponseWithDefaults() *RetryCallbackMessage201Response {
+ this := RetryCallbackMessage201Response{}
+ return &this
+}
+
+// GetRetried returns the Retried field value if set, zero value otherwise.
+func (o *RetryCallbackMessage201Response) GetRetried() bool {
+ if o == nil || IsNil(o.Retried) {
+ var ret bool
+ return ret
+ }
+ return *o.Retried
+}
+
+// GetRetriedOk returns a tuple with the Retried field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *RetryCallbackMessage201Response) GetRetriedOk() (*bool, bool) {
+ if o == nil || IsNil(o.Retried) {
+ return nil, false
+ }
+ return o.Retried, true
+}
+
+// HasRetried returns a boolean if a field has been set.
+func (o *RetryCallbackMessage201Response) HasRetried() bool {
+ if o != nil && !IsNil(o.Retried) {
+ return true
+ }
+
+ return false
+}
+
+// SetRetried gets a reference to the given bool and assigns it to the Retried field.
+func (o *RetryCallbackMessage201Response) SetRetried(v bool) {
+ o.Retried = &v
+}
+
+func (o RetryCallbackMessage201Response) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o RetryCallbackMessage201Response) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Retried) {
+ toSerialize["retried"] = o.Retried
+ }
+ return toSerialize, nil
+}
+
+type NullableRetryCallbackMessage201Response struct {
+ value *RetryCallbackMessage201Response
+ isSet bool
+}
+
+func (v NullableRetryCallbackMessage201Response) Get() *RetryCallbackMessage201Response {
+ return v.value
+}
+
+func (v *NullableRetryCallbackMessage201Response) Set(val *RetryCallbackMessage201Response) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableRetryCallbackMessage201Response) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableRetryCallbackMessage201Response) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableRetryCallbackMessage201Response(val *RetryCallbackMessage201Response) *NullableRetryCallbackMessage201Response {
+ return &NullableRetryCallbackMessage201Response{value: val, isSet: true}
+}
+
+func (v NullableRetryCallbackMessage201Response) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableRetryCallbackMessage201Response) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_safe_contract_call_source.go b/cobo_waas2/model_safe_contract_call_source.go
index fd29b5a..4088f54 100644
--- a/cobo_waas2/model_safe_contract_call_source.go
+++ b/cobo_waas2/model_safe_contract_call_source.go
@@ -17,7 +17,7 @@ import (
// checks if the SafeContractCallSource type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SafeContractCallSource{}
-// SafeContractCallSource The information about the transaction source type `Safe{Wallet}`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
+// SafeContractCallSource The information about the transaction source type `Safe{Wallet}`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
type SafeContractCallSource struct {
SourceType ContractCallSourceType `json:"source_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_safe_transfer_source.go b/cobo_waas2/model_safe_transfer_source.go
index 5b1a3e1..459508b 100644
--- a/cobo_waas2/model_safe_transfer_source.go
+++ b/cobo_waas2/model_safe_transfer_source.go
@@ -17,7 +17,7 @@ import (
// checks if the SafeTransferSource type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SafeTransferSource{}
-// SafeTransferSource The information about the transaction source type `Safe{Wallet}`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
+// SafeTransferSource The information about the transaction source type `Safe{Wallet}`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
type SafeTransferSource struct {
SourceType WalletSubtype `json:"source_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_selected_entity_type.go b/cobo_waas2/model_selected_entity_type.go
new file mode 100644
index 0000000..a53082a
--- /dev/null
+++ b/cobo_waas2/model_selected_entity_type.go
@@ -0,0 +1,109 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// SelectedEntityType Specifies the type of entity. This must be `LEGAL`.
+type SelectedEntityType string
+
+// List of SelectedEntityType
+const (
+ SELECTEDENTITYTYPE_LEGAL SelectedEntityType = "LEGAL"
+ SELECTEDENTITYTYPE_NATURAL SelectedEntityType = "NATURAL"
+)
+
+// All allowed values of SelectedEntityType enum
+var AllowedSelectedEntityTypeEnumValues = []SelectedEntityType{
+ "LEGAL",
+ "NATURAL",
+}
+
+func (v *SelectedEntityType) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := SelectedEntityType(value)
+ for _, existing := range AllowedSelectedEntityTypeEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+ *v = SelectedEntityType("unknown")
+ return nil
+}
+
+// NewSelectedEntityTypeFromValue returns a pointer to a valid SelectedEntityType
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewSelectedEntityTypeFromValue(v string) (*SelectedEntityType, error) {
+ ev := SelectedEntityType(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for SelectedEntityType: valid values are %v", v, AllowedSelectedEntityTypeEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v SelectedEntityType) IsValid() bool {
+ for _, existing := range AllowedSelectedEntityTypeEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to SelectedEntityType value
+func (v SelectedEntityType) Ptr() *SelectedEntityType {
+ return &v
+}
+
+type NullableSelectedEntityType struct {
+ value *SelectedEntityType
+ isSet bool
+}
+
+func (v NullableSelectedEntityType) Get() *SelectedEntityType {
+ return v.value
+}
+
+func (v *NullableSelectedEntityType) Set(val *SelectedEntityType) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSelectedEntityType) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSelectedEntityType) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSelectedEntityType(val *SelectedEntityType) *NullableSelectedEntityType {
+ return &NullableSelectedEntityType{value: val, isSet: true}
+}
+
+func (v NullableSelectedEntityType) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSelectedEntityType) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
diff --git a/cobo_waas2/model_self_custody_wallet.go b/cobo_waas2/model_self_custody_wallet.go
new file mode 100644
index 0000000..0165c1a
--- /dev/null
+++ b/cobo_waas2/model_self_custody_wallet.go
@@ -0,0 +1,243 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the SelfCustodyWallet type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SelfCustodyWallet{}
+
+// SelfCustodyWallet Required fields for `SELF_CUSTODY_WALLET`.
+type SelfCustodyWallet struct {
+ DestinationWalletType DestinationWalletType `json:"destination_wallet_type"`
+ // The challenge obtained from a previous operation.
+ SelfCustodyWalletChallenge string `json:"self_custody_wallet_challenge"`
+ // The address of the self-custodial wallet.
+ SelfCustodyWalletAddress string `json:"self_custody_wallet_address"`
+ // The signed message from the self-custodial wallet.
+ SelfCustodyWalletSign string `json:"self_custody_wallet_sign"`
+}
+
+type _SelfCustodyWallet SelfCustodyWallet
+
+// NewSelfCustodyWallet instantiates a new SelfCustodyWallet object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSelfCustodyWallet(destinationWalletType DestinationWalletType, selfCustodyWalletChallenge string, selfCustodyWalletAddress string, selfCustodyWalletSign string) *SelfCustodyWallet {
+ this := SelfCustodyWallet{}
+ this.DestinationWalletType = destinationWalletType
+ this.SelfCustodyWalletChallenge = selfCustodyWalletChallenge
+ this.SelfCustodyWalletAddress = selfCustodyWalletAddress
+ this.SelfCustodyWalletSign = selfCustodyWalletSign
+ return &this
+}
+
+// NewSelfCustodyWalletWithDefaults instantiates a new SelfCustodyWallet object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSelfCustodyWalletWithDefaults() *SelfCustodyWallet {
+ this := SelfCustodyWallet{}
+ return &this
+}
+
+// GetDestinationWalletType returns the DestinationWalletType field value
+func (o *SelfCustodyWallet) GetDestinationWalletType() DestinationWalletType {
+ if o == nil {
+ var ret DestinationWalletType
+ return ret
+ }
+
+ return o.DestinationWalletType
+}
+
+// GetDestinationWalletTypeOk returns a tuple with the DestinationWalletType field value
+// and a boolean to check if the value has been set.
+func (o *SelfCustodyWallet) GetDestinationWalletTypeOk() (*DestinationWalletType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DestinationWalletType, true
+}
+
+// SetDestinationWalletType sets field value
+func (o *SelfCustodyWallet) SetDestinationWalletType(v DestinationWalletType) {
+ o.DestinationWalletType = v
+}
+
+// GetSelfCustodyWalletChallenge returns the SelfCustodyWalletChallenge field value
+func (o *SelfCustodyWallet) GetSelfCustodyWalletChallenge() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.SelfCustodyWalletChallenge
+}
+
+// GetSelfCustodyWalletChallengeOk returns a tuple with the SelfCustodyWalletChallenge field value
+// and a boolean to check if the value has been set.
+func (o *SelfCustodyWallet) GetSelfCustodyWalletChallengeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.SelfCustodyWalletChallenge, true
+}
+
+// SetSelfCustodyWalletChallenge sets field value
+func (o *SelfCustodyWallet) SetSelfCustodyWalletChallenge(v string) {
+ o.SelfCustodyWalletChallenge = v
+}
+
+// GetSelfCustodyWalletAddress returns the SelfCustodyWalletAddress field value
+func (o *SelfCustodyWallet) GetSelfCustodyWalletAddress() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.SelfCustodyWalletAddress
+}
+
+// GetSelfCustodyWalletAddressOk returns a tuple with the SelfCustodyWalletAddress field value
+// and a boolean to check if the value has been set.
+func (o *SelfCustodyWallet) GetSelfCustodyWalletAddressOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.SelfCustodyWalletAddress, true
+}
+
+// SetSelfCustodyWalletAddress sets field value
+func (o *SelfCustodyWallet) SetSelfCustodyWalletAddress(v string) {
+ o.SelfCustodyWalletAddress = v
+}
+
+// GetSelfCustodyWalletSign returns the SelfCustodyWalletSign field value
+func (o *SelfCustodyWallet) GetSelfCustodyWalletSign() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.SelfCustodyWalletSign
+}
+
+// GetSelfCustodyWalletSignOk returns a tuple with the SelfCustodyWalletSign field value
+// and a boolean to check if the value has been set.
+func (o *SelfCustodyWallet) GetSelfCustodyWalletSignOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.SelfCustodyWalletSign, true
+}
+
+// SetSelfCustodyWalletSign sets field value
+func (o *SelfCustodyWallet) SetSelfCustodyWalletSign(v string) {
+ o.SelfCustodyWalletSign = v
+}
+
+func (o SelfCustodyWallet) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SelfCustodyWallet) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["destination_wallet_type"] = o.DestinationWalletType
+ toSerialize["self_custody_wallet_challenge"] = o.SelfCustodyWalletChallenge
+ toSerialize["self_custody_wallet_address"] = o.SelfCustodyWalletAddress
+ toSerialize["self_custody_wallet_sign"] = o.SelfCustodyWalletSign
+ return toSerialize, nil
+}
+
+func (o *SelfCustodyWallet) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "destination_wallet_type",
+ "self_custody_wallet_challenge",
+ "self_custody_wallet_address",
+ "self_custody_wallet_sign",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSelfCustodyWallet := _SelfCustodyWallet{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varSelfCustodyWallet)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SelfCustodyWallet(varSelfCustodyWallet)
+
+ return err
+}
+
+type NullableSelfCustodyWallet struct {
+ value *SelfCustodyWallet
+ isSet bool
+}
+
+func (v NullableSelfCustodyWallet) Get() *SelfCustodyWallet {
+ return v.value
+}
+
+func (v *NullableSelfCustodyWallet) Set(val *SelfCustodyWallet) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSelfCustodyWallet) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSelfCustodyWallet) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSelfCustodyWallet(val *SelfCustodyWallet) *NullableSelfCustodyWallet {
+ return &NullableSelfCustodyWallet{value: val, isSet: true}
+}
+
+func (v NullableSelfCustodyWallet) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSelfCustodyWallet) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_source_group.go b/cobo_waas2/model_source_group.go
index 3824c2e..fd6caa1 100644
--- a/cobo_waas2/model_source_group.go
+++ b/cobo_waas2/model_source_group.go
@@ -21,7 +21,7 @@ var _ MappedNullable = &SourceGroup{}
type SourceGroup struct {
// The source key share holder group ID.
KeyShareHolderGroupId string `json:"key_share_holder_group_id"`
- // 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).
+ // 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](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-cobo-key-share-holders).
TssNodeIds []string `json:"tss_node_ids,omitempty"`
}
diff --git a/cobo_waas2/model_staking_pool_id.go b/cobo_waas2/model_staking_pool_id.go
index 0545a35..2a8ba46 100644
--- a/cobo_waas2/model_staking_pool_id.go
+++ b/cobo_waas2/model_staking_pool_id.go
@@ -24,6 +24,7 @@ const (
STAKINGPOOLID_BEACON_ETH_HOLESKY StakingPoolId = "beacon_eth_holesky"
STAKINGPOOLID_CORE_BTC StakingPoolId = "core_btc"
STAKINGPOOLID_CORE_XTN StakingPoolId = "core_xtn"
+ STAKINGPOOLID_SKY_FARM_ETH_USDC StakingPoolId = "sky_farm_eth_usdc"
)
// All allowed values of StakingPoolId enum
@@ -34,6 +35,7 @@ var AllowedStakingPoolIdEnumValues = []StakingPoolId{
"beacon_eth_holesky",
"core_btc",
"core_xtn",
+ "sky_farm_eth_usdc",
}
func (v *StakingPoolId) UnmarshalJSON(src []byte) error {
diff --git a/cobo_waas2/model_staking_pool_type.go b/cobo_waas2/model_staking_pool_type.go
index 3a53850..19320dc 100644
--- a/cobo_waas2/model_staking_pool_type.go
+++ b/cobo_waas2/model_staking_pool_type.go
@@ -21,6 +21,7 @@ const (
STAKINGPOOLTYPE_BABYLON StakingPoolType = "Babylon"
STAKINGPOOLTYPE_ETH_BEACON StakingPoolType = "ETHBeacon"
STAKINGPOOLTYPE_CORE_BTC StakingPoolType = "CoreBTC"
+ STAKINGPOOLTYPE_SKY_FARM StakingPoolType = "SkyFarm"
)
// All allowed values of StakingPoolType enum
@@ -28,6 +29,7 @@ var AllowedStakingPoolTypeEnumValues = []StakingPoolType{
"Babylon",
"ETHBeacon",
"CoreBTC",
+ "SkyFarm",
}
func (v *StakingPoolType) UnmarshalJSON(src []byte) error {
diff --git a/cobo_waas2/model_submit_deposit_travel_rule_info_201_response.go b/cobo_waas2/model_submit_deposit_travel_rule_info_201_response.go
new file mode 100644
index 0000000..47354b7
--- /dev/null
+++ b/cobo_waas2/model_submit_deposit_travel_rule_info_201_response.go
@@ -0,0 +1,125 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+)
+
+// checks if the SubmitDepositTravelRuleInfo201Response type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SubmitDepositTravelRuleInfo201Response{}
+
+// SubmitDepositTravelRuleInfo201Response struct for SubmitDepositTravelRuleInfo201Response
+type SubmitDepositTravelRuleInfo201Response struct {
+ // Whether the submitted Travel Rule info has been successfully executed. - `true`: The operation has been successfully executed. - `false`: The operation has not been executed.
+ Submitted *bool `json:"submitted,omitempty"`
+}
+
+// NewSubmitDepositTravelRuleInfo201Response instantiates a new SubmitDepositTravelRuleInfo201Response object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSubmitDepositTravelRuleInfo201Response() *SubmitDepositTravelRuleInfo201Response {
+ this := SubmitDepositTravelRuleInfo201Response{}
+ return &this
+}
+
+// NewSubmitDepositTravelRuleInfo201ResponseWithDefaults instantiates a new SubmitDepositTravelRuleInfo201Response object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSubmitDepositTravelRuleInfo201ResponseWithDefaults() *SubmitDepositTravelRuleInfo201Response {
+ this := SubmitDepositTravelRuleInfo201Response{}
+ return &this
+}
+
+// GetSubmitted returns the Submitted field value if set, zero value otherwise.
+func (o *SubmitDepositTravelRuleInfo201Response) GetSubmitted() bool {
+ if o == nil || IsNil(o.Submitted) {
+ var ret bool
+ return ret
+ }
+ return *o.Submitted
+}
+
+// GetSubmittedOk returns a tuple with the Submitted field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SubmitDepositTravelRuleInfo201Response) GetSubmittedOk() (*bool, bool) {
+ if o == nil || IsNil(o.Submitted) {
+ return nil, false
+ }
+ return o.Submitted, true
+}
+
+// HasSubmitted returns a boolean if a field has been set.
+func (o *SubmitDepositTravelRuleInfo201Response) HasSubmitted() bool {
+ if o != nil && !IsNil(o.Submitted) {
+ return true
+ }
+
+ return false
+}
+
+// SetSubmitted gets a reference to the given bool and assigns it to the Submitted field.
+func (o *SubmitDepositTravelRuleInfo201Response) SetSubmitted(v bool) {
+ o.Submitted = &v
+}
+
+func (o SubmitDepositTravelRuleInfo201Response) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SubmitDepositTravelRuleInfo201Response) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Submitted) {
+ toSerialize["submitted"] = o.Submitted
+ }
+ return toSerialize, nil
+}
+
+type NullableSubmitDepositTravelRuleInfo201Response struct {
+ value *SubmitDepositTravelRuleInfo201Response
+ isSet bool
+}
+
+func (v NullableSubmitDepositTravelRuleInfo201Response) Get() *SubmitDepositTravelRuleInfo201Response {
+ return v.value
+}
+
+func (v *NullableSubmitDepositTravelRuleInfo201Response) Set(val *SubmitDepositTravelRuleInfo201Response) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSubmitDepositTravelRuleInfo201Response) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSubmitDepositTravelRuleInfo201Response) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSubmitDepositTravelRuleInfo201Response(val *SubmitDepositTravelRuleInfo201Response) *NullableSubmitDepositTravelRuleInfo201Response {
+ return &NullableSubmitDepositTravelRuleInfo201Response{value: val, isSet: true}
+}
+
+func (v NullableSubmitDepositTravelRuleInfo201Response) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSubmitDepositTravelRuleInfo201Response) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_swap_activity.go b/cobo_waas2/model_swap_activity.go
new file mode 100644
index 0000000..1bfd998
--- /dev/null
+++ b/cobo_waas2/model_swap_activity.go
@@ -0,0 +1,541 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+)
+
+// checks if the SwapActivity type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SwapActivity{}
+
+// SwapActivity struct for SwapActivity
+type SwapActivity struct {
+ // The unique identifier of the swap activity.
+ ActivityId *string `json:"activity_id,omitempty"`
+ // The status of the swap activity.
+ Status *string `json:"status,omitempty"`
+ // The unique identifier of the wallet.
+ WalletId *string `json:"wallet_id,omitempty"`
+ // The token symbol to swap from.
+ PayTokenId *string `json:"pay_token_id,omitempty"`
+ // The token symbol to swap to.
+ ReceiveTokenId *string `json:"receive_token_id,omitempty"`
+ // The amount of tokens to bridge.
+ PayAmount *string `json:"pay_amount,omitempty"`
+ // The amount of tokens to receive.
+ ReceiveAmount *string `json:"receive_amount,omitempty"`
+ // The amount of fee.
+ FeeAmount *string `json:"fee_amount,omitempty"`
+ // The initiator of the swap activity.
+ Initiator NullableString `json:"initiator,omitempty"`
+ InitiatorType *TransactionInitiatorType `json:"initiator_type,omitempty"`
+ // The time when the swap activity was created, in Unix timestamp format, measured in milliseconds.
+ CreatedTimestamp *int32 `json:"created_timestamp,omitempty"`
+ // The time when the swap activity was last updated, in Unix timestamp format, measured in milliseconds.
+ UpdatedTimestamp *int32 `json:"updated_timestamp,omitempty"`
+}
+
+// NewSwapActivity instantiates a new SwapActivity object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSwapActivity() *SwapActivity {
+ this := SwapActivity{}
+ return &this
+}
+
+// NewSwapActivityWithDefaults instantiates a new SwapActivity object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSwapActivityWithDefaults() *SwapActivity {
+ this := SwapActivity{}
+ return &this
+}
+
+// GetActivityId returns the ActivityId field value if set, zero value otherwise.
+func (o *SwapActivity) GetActivityId() string {
+ if o == nil || IsNil(o.ActivityId) {
+ var ret string
+ return ret
+ }
+ return *o.ActivityId
+}
+
+// GetActivityIdOk returns a tuple with the ActivityId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SwapActivity) GetActivityIdOk() (*string, bool) {
+ if o == nil || IsNil(o.ActivityId) {
+ return nil, false
+ }
+ return o.ActivityId, true
+}
+
+// HasActivityId returns a boolean if a field has been set.
+func (o *SwapActivity) HasActivityId() bool {
+ if o != nil && !IsNil(o.ActivityId) {
+ return true
+ }
+
+ return false
+}
+
+// SetActivityId gets a reference to the given string and assigns it to the ActivityId field.
+func (o *SwapActivity) SetActivityId(v string) {
+ o.ActivityId = &v
+}
+
+// GetStatus returns the Status field value if set, zero value otherwise.
+func (o *SwapActivity) GetStatus() string {
+ if o == nil || IsNil(o.Status) {
+ var ret string
+ return ret
+ }
+ return *o.Status
+}
+
+// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SwapActivity) GetStatusOk() (*string, bool) {
+ if o == nil || IsNil(o.Status) {
+ return nil, false
+ }
+ return o.Status, true
+}
+
+// HasStatus returns a boolean if a field has been set.
+func (o *SwapActivity) HasStatus() bool {
+ if o != nil && !IsNil(o.Status) {
+ return true
+ }
+
+ return false
+}
+
+// SetStatus gets a reference to the given string and assigns it to the Status field.
+func (o *SwapActivity) SetStatus(v string) {
+ o.Status = &v
+}
+
+// GetWalletId returns the WalletId field value if set, zero value otherwise.
+func (o *SwapActivity) GetWalletId() string {
+ if o == nil || IsNil(o.WalletId) {
+ var ret string
+ return ret
+ }
+ return *o.WalletId
+}
+
+// GetWalletIdOk returns a tuple with the WalletId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SwapActivity) GetWalletIdOk() (*string, bool) {
+ if o == nil || IsNil(o.WalletId) {
+ return nil, false
+ }
+ return o.WalletId, true
+}
+
+// HasWalletId returns a boolean if a field has been set.
+func (o *SwapActivity) HasWalletId() bool {
+ if o != nil && !IsNil(o.WalletId) {
+ return true
+ }
+
+ return false
+}
+
+// SetWalletId gets a reference to the given string and assigns it to the WalletId field.
+func (o *SwapActivity) SetWalletId(v string) {
+ o.WalletId = &v
+}
+
+// GetPayTokenId returns the PayTokenId field value if set, zero value otherwise.
+func (o *SwapActivity) GetPayTokenId() string {
+ if o == nil || IsNil(o.PayTokenId) {
+ var ret string
+ return ret
+ }
+ return *o.PayTokenId
+}
+
+// GetPayTokenIdOk returns a tuple with the PayTokenId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SwapActivity) GetPayTokenIdOk() (*string, bool) {
+ if o == nil || IsNil(o.PayTokenId) {
+ return nil, false
+ }
+ return o.PayTokenId, true
+}
+
+// HasPayTokenId returns a boolean if a field has been set.
+func (o *SwapActivity) HasPayTokenId() bool {
+ if o != nil && !IsNil(o.PayTokenId) {
+ return true
+ }
+
+ return false
+}
+
+// SetPayTokenId gets a reference to the given string and assigns it to the PayTokenId field.
+func (o *SwapActivity) SetPayTokenId(v string) {
+ o.PayTokenId = &v
+}
+
+// GetReceiveTokenId returns the ReceiveTokenId field value if set, zero value otherwise.
+func (o *SwapActivity) GetReceiveTokenId() string {
+ if o == nil || IsNil(o.ReceiveTokenId) {
+ var ret string
+ return ret
+ }
+ return *o.ReceiveTokenId
+}
+
+// GetReceiveTokenIdOk returns a tuple with the ReceiveTokenId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SwapActivity) GetReceiveTokenIdOk() (*string, bool) {
+ if o == nil || IsNil(o.ReceiveTokenId) {
+ return nil, false
+ }
+ return o.ReceiveTokenId, true
+}
+
+// HasReceiveTokenId returns a boolean if a field has been set.
+func (o *SwapActivity) HasReceiveTokenId() bool {
+ if o != nil && !IsNil(o.ReceiveTokenId) {
+ return true
+ }
+
+ return false
+}
+
+// SetReceiveTokenId gets a reference to the given string and assigns it to the ReceiveTokenId field.
+func (o *SwapActivity) SetReceiveTokenId(v string) {
+ o.ReceiveTokenId = &v
+}
+
+// GetPayAmount returns the PayAmount field value if set, zero value otherwise.
+func (o *SwapActivity) GetPayAmount() string {
+ if o == nil || IsNil(o.PayAmount) {
+ var ret string
+ return ret
+ }
+ return *o.PayAmount
+}
+
+// GetPayAmountOk returns a tuple with the PayAmount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SwapActivity) GetPayAmountOk() (*string, bool) {
+ if o == nil || IsNil(o.PayAmount) {
+ return nil, false
+ }
+ return o.PayAmount, true
+}
+
+// HasPayAmount returns a boolean if a field has been set.
+func (o *SwapActivity) HasPayAmount() bool {
+ if o != nil && !IsNil(o.PayAmount) {
+ return true
+ }
+
+ return false
+}
+
+// SetPayAmount gets a reference to the given string and assigns it to the PayAmount field.
+func (o *SwapActivity) SetPayAmount(v string) {
+ o.PayAmount = &v
+}
+
+// GetReceiveAmount returns the ReceiveAmount field value if set, zero value otherwise.
+func (o *SwapActivity) GetReceiveAmount() string {
+ if o == nil || IsNil(o.ReceiveAmount) {
+ var ret string
+ return ret
+ }
+ return *o.ReceiveAmount
+}
+
+// GetReceiveAmountOk returns a tuple with the ReceiveAmount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SwapActivity) GetReceiveAmountOk() (*string, bool) {
+ if o == nil || IsNil(o.ReceiveAmount) {
+ return nil, false
+ }
+ return o.ReceiveAmount, true
+}
+
+// HasReceiveAmount returns a boolean if a field has been set.
+func (o *SwapActivity) HasReceiveAmount() bool {
+ if o != nil && !IsNil(o.ReceiveAmount) {
+ return true
+ }
+
+ return false
+}
+
+// SetReceiveAmount gets a reference to the given string and assigns it to the ReceiveAmount field.
+func (o *SwapActivity) SetReceiveAmount(v string) {
+ o.ReceiveAmount = &v
+}
+
+// GetFeeAmount returns the FeeAmount field value if set, zero value otherwise.
+func (o *SwapActivity) GetFeeAmount() string {
+ if o == nil || IsNil(o.FeeAmount) {
+ var ret string
+ return ret
+ }
+ return *o.FeeAmount
+}
+
+// GetFeeAmountOk returns a tuple with the FeeAmount field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SwapActivity) GetFeeAmountOk() (*string, bool) {
+ if o == nil || IsNil(o.FeeAmount) {
+ return nil, false
+ }
+ return o.FeeAmount, true
+}
+
+// HasFeeAmount returns a boolean if a field has been set.
+func (o *SwapActivity) HasFeeAmount() bool {
+ if o != nil && !IsNil(o.FeeAmount) {
+ return true
+ }
+
+ return false
+}
+
+// SetFeeAmount gets a reference to the given string and assigns it to the FeeAmount field.
+func (o *SwapActivity) SetFeeAmount(v string) {
+ o.FeeAmount = &v
+}
+
+// GetInitiator returns the Initiator field value if set, zero value otherwise (both if not set or set to explicit null).
+func (o *SwapActivity) GetInitiator() string {
+ if o == nil || IsNil(o.Initiator.Get()) {
+ var ret string
+ return ret
+ }
+ return *o.Initiator.Get()
+}
+
+// GetInitiatorOk returns a tuple with the Initiator field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+// NOTE: If the value is an explicit nil, `nil, true` will be returned
+func (o *SwapActivity) GetInitiatorOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return o.Initiator.Get(), o.Initiator.IsSet()
+}
+
+// HasInitiator returns a boolean if a field has been set.
+func (o *SwapActivity) HasInitiator() bool {
+ if o != nil && o.Initiator.IsSet() {
+ return true
+ }
+
+ return false
+}
+
+// SetInitiator gets a reference to the given NullableString and assigns it to the Initiator field.
+func (o *SwapActivity) SetInitiator(v string) {
+ o.Initiator.Set(&v)
+}
+// SetInitiatorNil sets the value for Initiator to be an explicit nil
+func (o *SwapActivity) SetInitiatorNil() {
+ o.Initiator.Set(nil)
+}
+
+// UnsetInitiator ensures that no value is present for Initiator, not even an explicit nil
+func (o *SwapActivity) UnsetInitiator() {
+ o.Initiator.Unset()
+}
+
+// GetInitiatorType returns the InitiatorType field value if set, zero value otherwise.
+func (o *SwapActivity) GetInitiatorType() TransactionInitiatorType {
+ if o == nil || IsNil(o.InitiatorType) {
+ var ret TransactionInitiatorType
+ return ret
+ }
+ return *o.InitiatorType
+}
+
+// GetInitiatorTypeOk returns a tuple with the InitiatorType field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SwapActivity) GetInitiatorTypeOk() (*TransactionInitiatorType, bool) {
+ if o == nil || IsNil(o.InitiatorType) {
+ return nil, false
+ }
+ return o.InitiatorType, true
+}
+
+// HasInitiatorType returns a boolean if a field has been set.
+func (o *SwapActivity) HasInitiatorType() bool {
+ if o != nil && !IsNil(o.InitiatorType) {
+ return true
+ }
+
+ return false
+}
+
+// SetInitiatorType gets a reference to the given TransactionInitiatorType and assigns it to the InitiatorType field.
+func (o *SwapActivity) SetInitiatorType(v TransactionInitiatorType) {
+ o.InitiatorType = &v
+}
+
+// GetCreatedTimestamp returns the CreatedTimestamp field value if set, zero value otherwise.
+func (o *SwapActivity) GetCreatedTimestamp() int32 {
+ if o == nil || IsNil(o.CreatedTimestamp) {
+ var ret int32
+ return ret
+ }
+ return *o.CreatedTimestamp
+}
+
+// GetCreatedTimestampOk returns a tuple with the CreatedTimestamp field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SwapActivity) GetCreatedTimestampOk() (*int32, bool) {
+ if o == nil || IsNil(o.CreatedTimestamp) {
+ return nil, false
+ }
+ return o.CreatedTimestamp, true
+}
+
+// HasCreatedTimestamp returns a boolean if a field has been set.
+func (o *SwapActivity) HasCreatedTimestamp() bool {
+ if o != nil && !IsNil(o.CreatedTimestamp) {
+ return true
+ }
+
+ return false
+}
+
+// SetCreatedTimestamp gets a reference to the given int32 and assigns it to the CreatedTimestamp field.
+func (o *SwapActivity) SetCreatedTimestamp(v int32) {
+ o.CreatedTimestamp = &v
+}
+
+// GetUpdatedTimestamp returns the UpdatedTimestamp field value if set, zero value otherwise.
+func (o *SwapActivity) GetUpdatedTimestamp() int32 {
+ if o == nil || IsNil(o.UpdatedTimestamp) {
+ var ret int32
+ return ret
+ }
+ return *o.UpdatedTimestamp
+}
+
+// GetUpdatedTimestampOk returns a tuple with the UpdatedTimestamp field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SwapActivity) GetUpdatedTimestampOk() (*int32, bool) {
+ if o == nil || IsNil(o.UpdatedTimestamp) {
+ return nil, false
+ }
+ return o.UpdatedTimestamp, true
+}
+
+// HasUpdatedTimestamp returns a boolean if a field has been set.
+func (o *SwapActivity) HasUpdatedTimestamp() bool {
+ if o != nil && !IsNil(o.UpdatedTimestamp) {
+ return true
+ }
+
+ return false
+}
+
+// SetUpdatedTimestamp gets a reference to the given int32 and assigns it to the UpdatedTimestamp field.
+func (o *SwapActivity) SetUpdatedTimestamp(v int32) {
+ o.UpdatedTimestamp = &v
+}
+
+func (o SwapActivity) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SwapActivity) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.ActivityId) {
+ toSerialize["activity_id"] = o.ActivityId
+ }
+ if !IsNil(o.Status) {
+ toSerialize["status"] = o.Status
+ }
+ if !IsNil(o.WalletId) {
+ toSerialize["wallet_id"] = o.WalletId
+ }
+ if !IsNil(o.PayTokenId) {
+ toSerialize["pay_token_id"] = o.PayTokenId
+ }
+ if !IsNil(o.ReceiveTokenId) {
+ toSerialize["receive_token_id"] = o.ReceiveTokenId
+ }
+ if !IsNil(o.PayAmount) {
+ toSerialize["pay_amount"] = o.PayAmount
+ }
+ if !IsNil(o.ReceiveAmount) {
+ toSerialize["receive_amount"] = o.ReceiveAmount
+ }
+ if !IsNil(o.FeeAmount) {
+ toSerialize["fee_amount"] = o.FeeAmount
+ }
+ if o.Initiator.IsSet() {
+ toSerialize["initiator"] = o.Initiator.Get()
+ }
+ if !IsNil(o.InitiatorType) {
+ toSerialize["initiator_type"] = o.InitiatorType
+ }
+ if !IsNil(o.CreatedTimestamp) {
+ toSerialize["created_timestamp"] = o.CreatedTimestamp
+ }
+ if !IsNil(o.UpdatedTimestamp) {
+ toSerialize["updated_timestamp"] = o.UpdatedTimestamp
+ }
+ return toSerialize, nil
+}
+
+type NullableSwapActivity struct {
+ value *SwapActivity
+ isSet bool
+}
+
+func (v NullableSwapActivity) Get() *SwapActivity {
+ return v.value
+}
+
+func (v *NullableSwapActivity) Set(val *SwapActivity) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSwapActivity) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSwapActivity) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSwapActivity(val *SwapActivity) *NullableSwapActivity {
+ return &NullableSwapActivity{value: val, isSet: true}
+}
+
+func (v NullableSwapActivity) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSwapActivity) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_swap_summary.go b/cobo_waas2/model_swap_summary.go
new file mode 100644
index 0000000..1ecf729
--- /dev/null
+++ b/cobo_waas2/model_swap_summary.go
@@ -0,0 +1,186 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the SwapSummary type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SwapSummary{}
+
+// SwapSummary struct for SwapSummary
+type SwapSummary struct {
+ // The total USD value of the swap activities, represented as a string.
+ TotalUsdValue string `json:"total_usd_value"`
+ // The total number of swap activities.
+ ActivityCount int32 `json:"activity_count"`
+}
+
+type _SwapSummary SwapSummary
+
+// NewSwapSummary instantiates a new SwapSummary object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSwapSummary(totalUsdValue string, activityCount int32) *SwapSummary {
+ this := SwapSummary{}
+ this.TotalUsdValue = totalUsdValue
+ this.ActivityCount = activityCount
+ return &this
+}
+
+// NewSwapSummaryWithDefaults instantiates a new SwapSummary object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSwapSummaryWithDefaults() *SwapSummary {
+ this := SwapSummary{}
+ return &this
+}
+
+// GetTotalUsdValue returns the TotalUsdValue field value
+func (o *SwapSummary) GetTotalUsdValue() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.TotalUsdValue
+}
+
+// GetTotalUsdValueOk returns a tuple with the TotalUsdValue field value
+// and a boolean to check if the value has been set.
+func (o *SwapSummary) GetTotalUsdValueOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TotalUsdValue, true
+}
+
+// SetTotalUsdValue sets field value
+func (o *SwapSummary) SetTotalUsdValue(v string) {
+ o.TotalUsdValue = v
+}
+
+// GetActivityCount returns the ActivityCount field value
+func (o *SwapSummary) GetActivityCount() int32 {
+ if o == nil {
+ var ret int32
+ return ret
+ }
+
+ return o.ActivityCount
+}
+
+// GetActivityCountOk returns a tuple with the ActivityCount field value
+// and a boolean to check if the value has been set.
+func (o *SwapSummary) GetActivityCountOk() (*int32, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.ActivityCount, true
+}
+
+// SetActivityCount sets field value
+func (o *SwapSummary) SetActivityCount(v int32) {
+ o.ActivityCount = v
+}
+
+func (o SwapSummary) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SwapSummary) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["total_usd_value"] = o.TotalUsdValue
+ toSerialize["activity_count"] = o.ActivityCount
+ return toSerialize, nil
+}
+
+func (o *SwapSummary) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "total_usd_value",
+ "activity_count",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varSwapSummary := _SwapSummary{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varSwapSummary)
+
+ if err != nil {
+ return err
+ }
+
+ *o = SwapSummary(varSwapSummary)
+
+ return err
+}
+
+type NullableSwapSummary struct {
+ value *SwapSummary
+ isSet bool
+}
+
+func (v NullableSwapSummary) Get() *SwapSummary {
+ return v.value
+}
+
+func (v *NullableSwapSummary) Set(val *SwapSummary) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSwapSummary) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSwapSummary) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSwapSummary(val *SwapSummary) *NullableSwapSummary {
+ return &NullableSwapSummary{value: val, isSet: true}
+}
+
+func (v NullableSwapSummary) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSwapSummary) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_swap_token_pair.go b/cobo_waas2/model_swap_token_pair.go
new file mode 100644
index 0000000..1652ef4
--- /dev/null
+++ b/cobo_waas2/model_swap_token_pair.go
@@ -0,0 +1,162 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+)
+
+// checks if the SwapTokenPair type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &SwapTokenPair{}
+
+// SwapTokenPair struct for SwapTokenPair
+type SwapTokenPair struct {
+ // The source token symbol.
+ PayTokenId *string `json:"pay_token_id,omitempty"`
+ // The target token symbol.
+ ReceiveTokenId *string `json:"receive_token_id,omitempty"`
+}
+
+// NewSwapTokenPair instantiates a new SwapTokenPair object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewSwapTokenPair() *SwapTokenPair {
+ this := SwapTokenPair{}
+ return &this
+}
+
+// NewSwapTokenPairWithDefaults instantiates a new SwapTokenPair object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewSwapTokenPairWithDefaults() *SwapTokenPair {
+ this := SwapTokenPair{}
+ return &this
+}
+
+// GetPayTokenId returns the PayTokenId field value if set, zero value otherwise.
+func (o *SwapTokenPair) GetPayTokenId() string {
+ if o == nil || IsNil(o.PayTokenId) {
+ var ret string
+ return ret
+ }
+ return *o.PayTokenId
+}
+
+// GetPayTokenIdOk returns a tuple with the PayTokenId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SwapTokenPair) GetPayTokenIdOk() (*string, bool) {
+ if o == nil || IsNil(o.PayTokenId) {
+ return nil, false
+ }
+ return o.PayTokenId, true
+}
+
+// HasPayTokenId returns a boolean if a field has been set.
+func (o *SwapTokenPair) HasPayTokenId() bool {
+ if o != nil && !IsNil(o.PayTokenId) {
+ return true
+ }
+
+ return false
+}
+
+// SetPayTokenId gets a reference to the given string and assigns it to the PayTokenId field.
+func (o *SwapTokenPair) SetPayTokenId(v string) {
+ o.PayTokenId = &v
+}
+
+// GetReceiveTokenId returns the ReceiveTokenId field value if set, zero value otherwise.
+func (o *SwapTokenPair) GetReceiveTokenId() string {
+ if o == nil || IsNil(o.ReceiveTokenId) {
+ var ret string
+ return ret
+ }
+ return *o.ReceiveTokenId
+}
+
+// GetReceiveTokenIdOk returns a tuple with the ReceiveTokenId field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *SwapTokenPair) GetReceiveTokenIdOk() (*string, bool) {
+ if o == nil || IsNil(o.ReceiveTokenId) {
+ return nil, false
+ }
+ return o.ReceiveTokenId, true
+}
+
+// HasReceiveTokenId returns a boolean if a field has been set.
+func (o *SwapTokenPair) HasReceiveTokenId() bool {
+ if o != nil && !IsNil(o.ReceiveTokenId) {
+ return true
+ }
+
+ return false
+}
+
+// SetReceiveTokenId gets a reference to the given string and assigns it to the ReceiveTokenId field.
+func (o *SwapTokenPair) SetReceiveTokenId(v string) {
+ o.ReceiveTokenId = &v
+}
+
+func (o SwapTokenPair) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o SwapTokenPair) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.PayTokenId) {
+ toSerialize["pay_token_id"] = o.PayTokenId
+ }
+ if !IsNil(o.ReceiveTokenId) {
+ toSerialize["receive_token_id"] = o.ReceiveTokenId
+ }
+ return toSerialize, nil
+}
+
+type NullableSwapTokenPair struct {
+ value *SwapTokenPair
+ isSet bool
+}
+
+func (v NullableSwapTokenPair) Get() *SwapTokenPair {
+ return v.value
+}
+
+func (v *NullableSwapTokenPair) Set(val *SwapTokenPair) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableSwapTokenPair) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableSwapTokenPair) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableSwapTokenPair(val *SwapTokenPair) *NullableSwapTokenPair {
+ return &NullableSwapTokenPair{value: val, isSet: true}
+}
+
+func (v NullableSwapTokenPair) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableSwapTokenPair) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_token_balance.go b/cobo_waas2/model_token_balance.go
index 8801dde..39fe13a 100644
--- a/cobo_waas2/model_token_balance.go
+++ b/cobo_waas2/model_token_balance.go
@@ -19,7 +19,7 @@ var _ MappedNullable = &TokenBalance{}
// TokenBalance The balance information.
type TokenBalance struct {
- // 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).
+ // The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
TokenId string `json:"token_id"`
Balance TokenBalanceBalance `json:"balance"`
}
diff --git a/cobo_waas2/model_token_balance_balance.go b/cobo_waas2/model_token_balance_balance.go
index abb821a..3f18807 100644
--- a/cobo_waas2/model_token_balance_balance.go
+++ b/cobo_waas2/model_token_balance_balance.go
@@ -19,13 +19,13 @@ var _ MappedNullable = &TokenBalanceBalance{}
// TokenBalanceBalance The balance details.
type TokenBalanceBalance struct {
- // The current amount of tokens in an address, which is retrieved directly from the network. To learn more, see [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details.
+ // The current amount of tokens in an address, which is retrieved directly from the network. To learn more, see [Balances and transaction amounts for MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/balance-amounts) for more details.
Total string `json:"total"`
- // The amount of tokens ready to be spent. To learn more, see [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details.
+ // The amount of tokens ready to be spent. To learn more, see [Balances and transaction amounts for MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/balance-amounts) for more details.
Available string `json:"available"`
- // The total amount being sent in a transaction, which is calculated as the withdrawal amount plus the transaction fee. To learn more, see [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details.
+ // The total amount being sent in a transaction, which is calculated as the withdrawal amount plus the transaction fee. To learn more, see [Balances and transaction amounts for MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/balance-amounts) for more details.
Pending *string `json:"pending,omitempty"`
- // For UTXO chains, this is the combined value of the selected UTXOs for the transaction. For other chains, it is equal to the Pending amount. To learn more, see [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details.
+ // For UTXO chains, this is the combined value of the selected UTXOs for the transaction. For other chains, it is equal to the Pending amount. To learn more, see [Balances and transaction amounts for MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/balance-amounts) for more details.
Locked *string `json:"locked,omitempty"`
}
diff --git a/cobo_waas2/model_token_info.go b/cobo_waas2/model_token_info.go
index 9013904..48fcc1e 100644
--- a/cobo_waas2/model_token_info.go
+++ b/cobo_waas2/model_token_info.go
@@ -19,7 +19,7 @@ var _ MappedNullable = &TokenInfo{}
// TokenInfo The token information.
type TokenInfo struct {
- // 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).
+ // The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
TokenId string `json:"token_id"`
// The ID of the chain on which the token operates.
ChainId string `json:"chain_id"`
diff --git a/cobo_waas2/model_transaction.go b/cobo_waas2/model_transaction.go
index 74f23ac..f339b88 100644
--- a/cobo_waas2/model_transaction.go
+++ b/cobo_waas2/model_transaction.go
@@ -32,9 +32,9 @@ type Transaction struct {
SubStatus *TransactionSubStatus `json:"sub_status,omitempty"`
// (This property is applicable to approval failures and signature failures only) The reason why the transaction failed.
FailedReason *string `json:"failed_reason,omitempty"`
- // 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).
+ // 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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
ChainId *string `json:"chain_id,omitempty"`
- // 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).
+ // The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
TokenId *string `json:"token_id,omitempty"`
// (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account.
AssetId *string `json:"asset_id,omitempty"`
diff --git a/cobo_waas2/model_transaction_approval_detail.go b/cobo_waas2/model_transaction_approval_detail.go
new file mode 100644
index 0000000..659c12e
--- /dev/null
+++ b/cobo_waas2/model_transaction_approval_detail.go
@@ -0,0 +1,196 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+)
+
+// checks if the TransactionApprovalDetail type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TransactionApprovalDetail{}
+
+// TransactionApprovalDetail The approval detail data for transaction.
+type TransactionApprovalDetail struct {
+ Spender *TransactionRoleApprovalDetail `json:"spender,omitempty"`
+ Approver *TransactionRoleApprovalDetail `json:"approver,omitempty"`
+ AddressOwner *TransactionRoleApprovalDetail `json:"address_owner,omitempty"`
+}
+
+// NewTransactionApprovalDetail instantiates a new TransactionApprovalDetail object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTransactionApprovalDetail() *TransactionApprovalDetail {
+ this := TransactionApprovalDetail{}
+ return &this
+}
+
+// NewTransactionApprovalDetailWithDefaults instantiates a new TransactionApprovalDetail object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTransactionApprovalDetailWithDefaults() *TransactionApprovalDetail {
+ this := TransactionApprovalDetail{}
+ return &this
+}
+
+// GetSpender returns the Spender field value if set, zero value otherwise.
+func (o *TransactionApprovalDetail) GetSpender() TransactionRoleApprovalDetail {
+ if o == nil || IsNil(o.Spender) {
+ var ret TransactionRoleApprovalDetail
+ return ret
+ }
+ return *o.Spender
+}
+
+// GetSpenderOk returns a tuple with the Spender field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionApprovalDetail) GetSpenderOk() (*TransactionRoleApprovalDetail, bool) {
+ if o == nil || IsNil(o.Spender) {
+ return nil, false
+ }
+ return o.Spender, true
+}
+
+// HasSpender returns a boolean if a field has been set.
+func (o *TransactionApprovalDetail) HasSpender() bool {
+ if o != nil && !IsNil(o.Spender) {
+ return true
+ }
+
+ return false
+}
+
+// SetSpender gets a reference to the given TransactionRoleApprovalDetail and assigns it to the Spender field.
+func (o *TransactionApprovalDetail) SetSpender(v TransactionRoleApprovalDetail) {
+ o.Spender = &v
+}
+
+// GetApprover returns the Approver field value if set, zero value otherwise.
+func (o *TransactionApprovalDetail) GetApprover() TransactionRoleApprovalDetail {
+ if o == nil || IsNil(o.Approver) {
+ var ret TransactionRoleApprovalDetail
+ return ret
+ }
+ return *o.Approver
+}
+
+// GetApproverOk returns a tuple with the Approver field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionApprovalDetail) GetApproverOk() (*TransactionRoleApprovalDetail, bool) {
+ if o == nil || IsNil(o.Approver) {
+ return nil, false
+ }
+ return o.Approver, true
+}
+
+// HasApprover returns a boolean if a field has been set.
+func (o *TransactionApprovalDetail) HasApprover() bool {
+ if o != nil && !IsNil(o.Approver) {
+ return true
+ }
+
+ return false
+}
+
+// SetApprover gets a reference to the given TransactionRoleApprovalDetail and assigns it to the Approver field.
+func (o *TransactionApprovalDetail) SetApprover(v TransactionRoleApprovalDetail) {
+ o.Approver = &v
+}
+
+// GetAddressOwner returns the AddressOwner field value if set, zero value otherwise.
+func (o *TransactionApprovalDetail) GetAddressOwner() TransactionRoleApprovalDetail {
+ if o == nil || IsNil(o.AddressOwner) {
+ var ret TransactionRoleApprovalDetail
+ return ret
+ }
+ return *o.AddressOwner
+}
+
+// GetAddressOwnerOk returns a tuple with the AddressOwner field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionApprovalDetail) GetAddressOwnerOk() (*TransactionRoleApprovalDetail, bool) {
+ if o == nil || IsNil(o.AddressOwner) {
+ return nil, false
+ }
+ return o.AddressOwner, true
+}
+
+// HasAddressOwner returns a boolean if a field has been set.
+func (o *TransactionApprovalDetail) HasAddressOwner() bool {
+ if o != nil && !IsNil(o.AddressOwner) {
+ return true
+ }
+
+ return false
+}
+
+// SetAddressOwner gets a reference to the given TransactionRoleApprovalDetail and assigns it to the AddressOwner field.
+func (o *TransactionApprovalDetail) SetAddressOwner(v TransactionRoleApprovalDetail) {
+ o.AddressOwner = &v
+}
+
+func (o TransactionApprovalDetail) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TransactionApprovalDetail) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Spender) {
+ toSerialize["spender"] = o.Spender
+ }
+ if !IsNil(o.Approver) {
+ toSerialize["approver"] = o.Approver
+ }
+ if !IsNil(o.AddressOwner) {
+ toSerialize["address_owner"] = o.AddressOwner
+ }
+ return toSerialize, nil
+}
+
+type NullableTransactionApprovalDetail struct {
+ value *TransactionApprovalDetail
+ isSet bool
+}
+
+func (v NullableTransactionApprovalDetail) Get() *TransactionApprovalDetail {
+ return v.value
+}
+
+func (v *NullableTransactionApprovalDetail) Set(val *TransactionApprovalDetail) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTransactionApprovalDetail) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTransactionApprovalDetail) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTransactionApprovalDetail(val *TransactionApprovalDetail) *NullableTransactionApprovalDetail {
+ return &NullableTransactionApprovalDetail{value: val, isSet: true}
+}
+
+func (v NullableTransactionApprovalDetail) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTransactionApprovalDetail) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_transaction_approval_result.go b/cobo_waas2/model_transaction_approval_result.go
new file mode 100644
index 0000000..e66a997
--- /dev/null
+++ b/cobo_waas2/model_transaction_approval_result.go
@@ -0,0 +1,111 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// TransactionApprovalResult The transaction approval result. Possible values include: - `Approved`: The transaction is approved. - `Rejected`: The transaction is rejected. - `Pending`: The transaction is pending approvals.
+type TransactionApprovalResult string
+
+// List of TransactionApprovalResult
+const (
+ TRANSACTIONAPPROVALRESULT_APPROVED TransactionApprovalResult = "Approved"
+ TRANSACTIONAPPROVALRESULT_REJECTED TransactionApprovalResult = "Rejected"
+ TRANSACTIONAPPROVALRESULT_PENDING TransactionApprovalResult = "Pending"
+)
+
+// All allowed values of TransactionApprovalResult enum
+var AllowedTransactionApprovalResultEnumValues = []TransactionApprovalResult{
+ "Approved",
+ "Rejected",
+ "Pending",
+}
+
+func (v *TransactionApprovalResult) UnmarshalJSON(src []byte) error {
+ var value string
+ err := json.Unmarshal(src, &value)
+ if err != nil {
+ return err
+ }
+ enumTypeValue := TransactionApprovalResult(value)
+ for _, existing := range AllowedTransactionApprovalResultEnumValues {
+ if existing == enumTypeValue {
+ *v = enumTypeValue
+ return nil
+ }
+ }
+ *v = TransactionApprovalResult("unknown")
+ return nil
+}
+
+// NewTransactionApprovalResultFromValue returns a pointer to a valid TransactionApprovalResult
+// for the value passed as argument, or an error if the value passed is not allowed by the enum
+func NewTransactionApprovalResultFromValue(v string) (*TransactionApprovalResult, error) {
+ ev := TransactionApprovalResult(v)
+ if ev.IsValid() {
+ return &ev, nil
+ } else {
+ return nil, fmt.Errorf("invalid value '%v' for TransactionApprovalResult: valid values are %v", v, AllowedTransactionApprovalResultEnumValues)
+ }
+}
+
+// IsValid return true if the value is valid for the enum, false otherwise
+func (v TransactionApprovalResult) IsValid() bool {
+ for _, existing := range AllowedTransactionApprovalResultEnumValues {
+ if existing == v {
+ return true
+ }
+ }
+ return false
+}
+
+// Ptr returns reference to TransactionApprovalResult value
+func (v TransactionApprovalResult) Ptr() *TransactionApprovalResult {
+ return &v
+}
+
+type NullableTransactionApprovalResult struct {
+ value *TransactionApprovalResult
+ isSet bool
+}
+
+func (v NullableTransactionApprovalResult) Get() *TransactionApprovalResult {
+ return v.value
+}
+
+func (v *NullableTransactionApprovalResult) Set(val *TransactionApprovalResult) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTransactionApprovalResult) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTransactionApprovalResult) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTransactionApprovalResult(val *TransactionApprovalResult) *NullableTransactionApprovalResult {
+ return &NullableTransactionApprovalResult{value: val, isSet: true}
+}
+
+func (v NullableTransactionApprovalResult) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTransactionApprovalResult) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
diff --git a/cobo_waas2/model_transaction_custodial_asset_wallet_source.go b/cobo_waas2/model_transaction_custodial_asset_wallet_source.go
index fc8c152..0c1ce65 100644
--- a/cobo_waas2/model_transaction_custodial_asset_wallet_source.go
+++ b/cobo_waas2/model_transaction_custodial_asset_wallet_source.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionCustodialAssetWalletSource type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionCustodialAssetWalletSource{}
-// TransactionCustodialAssetWalletSource Information about the transaction source type `Asset`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
+// TransactionCustodialAssetWalletSource Information about the transaction source type `Asset`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
type TransactionCustodialAssetWalletSource struct {
SourceType TransactionSourceType `json:"source_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_transaction_deposit_from_address_source.go b/cobo_waas2/model_transaction_deposit_from_address_source.go
index 7f509c3..8615758 100644
--- a/cobo_waas2/model_transaction_deposit_from_address_source.go
+++ b/cobo_waas2/model_transaction_deposit_from_address_source.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionDepositFromAddressSource type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionDepositFromAddressSource{}
-// TransactionDepositFromAddressSource Information about the transaction source type `DepositFromAddress`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
+// TransactionDepositFromAddressSource Information about the transaction source type `DepositFromAddress`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
type TransactionDepositFromAddressSource struct {
SourceType TransactionSourceType `json:"source_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_transaction_deposit_from_loop_source.go b/cobo_waas2/model_transaction_deposit_from_loop_source.go
index 7375cc5..9c6f848 100644
--- a/cobo_waas2/model_transaction_deposit_from_loop_source.go
+++ b/cobo_waas2/model_transaction_deposit_from_loop_source.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionDepositFromLoopSource type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionDepositFromLoopSource{}
-// TransactionDepositFromLoopSource Information about the transaction source type `DepositFromLoop`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
+// TransactionDepositFromLoopSource Information about the transaction source type `DepositFromLoop`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
type TransactionDepositFromLoopSource struct {
SourceType TransactionSourceType `json:"source_type"`
}
diff --git a/cobo_waas2/model_transaction_deposit_from_wallet_source.go b/cobo_waas2/model_transaction_deposit_from_wallet_source.go
index f13d5d3..52ef0bb 100644
--- a/cobo_waas2/model_transaction_deposit_from_wallet_source.go
+++ b/cobo_waas2/model_transaction_deposit_from_wallet_source.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionDepositFromWalletSource type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionDepositFromWalletSource{}
-// TransactionDepositFromWalletSource Information about the transaction source type `DepositFromWallet`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
+// TransactionDepositFromWalletSource Information about the transaction source type `DepositFromWallet`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
type TransactionDepositFromWalletSource struct {
SourceType TransactionSourceType `json:"source_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_transaction_deposit_to_address_destination.go b/cobo_waas2/model_transaction_deposit_to_address_destination.go
index 246f96b..4411fa6 100644
--- a/cobo_waas2/model_transaction_deposit_to_address_destination.go
+++ b/cobo_waas2/model_transaction_deposit_to_address_destination.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionDepositToAddressDestination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionDepositToAddressDestination{}
-// TransactionDepositToAddressDestination Information about the transaction destination type `DepositToAddress`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
+// TransactionDepositToAddressDestination Information about the transaction destination type `DepositToAddress`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
type TransactionDepositToAddressDestination struct {
DestinationType TransactionDestinationType `json:"destination_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_transaction_deposit_to_wallet_destination.go b/cobo_waas2/model_transaction_deposit_to_wallet_destination.go
index 208c4cc..d91f032 100644
--- a/cobo_waas2/model_transaction_deposit_to_wallet_destination.go
+++ b/cobo_waas2/model_transaction_deposit_to_wallet_destination.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionDepositToWalletDestination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionDepositToWalletDestination{}
-// TransactionDepositToWalletDestination Information about the transaction destination type `DepositToWallet`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
+// TransactionDepositToWalletDestination Information about the transaction destination type `DepositToWallet`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
type TransactionDepositToWalletDestination struct {
DestinationType TransactionDestinationType `json:"destination_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_transaction_destination_type.go b/cobo_waas2/model_transaction_destination_type.go
index c4fa857..6a5c133 100644
--- a/cobo_waas2/model_transaction_destination_type.go
+++ b/cobo_waas2/model_transaction_destination_type.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// TransactionDestinationType The transaction destination type. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+// TransactionDestinationType The transaction destination type. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
type TransactionDestinationType string
// List of TransactionDestinationType
diff --git a/cobo_waas2/model_transaction_detail.go b/cobo_waas2/model_transaction_detail.go
index f62ec4f..0e52c0c 100644
--- a/cobo_waas2/model_transaction_detail.go
+++ b/cobo_waas2/model_transaction_detail.go
@@ -32,9 +32,9 @@ type TransactionDetail struct {
SubStatus *TransactionSubStatus `json:"sub_status,omitempty"`
// (This property is applicable to approval failures and signature failures only) The reason why the transaction failed.
FailedReason *string `json:"failed_reason,omitempty"`
- // 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).
+ // 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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
ChainId *string `json:"chain_id,omitempty"`
- // 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).
+ // The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
TokenId *string `json:"token_id,omitempty"`
// (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account.
AssetId *string `json:"asset_id,omitempty"`
diff --git a/cobo_waas2/model_transaction_details.go b/cobo_waas2/model_transaction_details.go
index 9c83647..1f2c3c2 100644
--- a/cobo_waas2/model_transaction_details.go
+++ b/cobo_waas2/model_transaction_details.go
@@ -32,9 +32,9 @@ type TransactionDetails struct {
SubStatus *TransactionSubStatus `json:"sub_status,omitempty"`
// (This property is applicable to approval failures and signature failures only) The reason why the transaction failed.
FailedReason *string `json:"failed_reason,omitempty"`
- // 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).
+ // 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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
ChainId *string `json:"chain_id,omitempty"`
- // 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).
+ // The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
TokenId *string `json:"token_id,omitempty"`
// (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account.
AssetId *string `json:"asset_id,omitempty"`
diff --git a/cobo_waas2/model_transaction_evm_contract_destination.go b/cobo_waas2/model_transaction_evm_contract_destination.go
index be4dd84..c093b16 100644
--- a/cobo_waas2/model_transaction_evm_contract_destination.go
+++ b/cobo_waas2/model_transaction_evm_contract_destination.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionEvmContractDestination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionEvmContractDestination{}
-// TransactionEvmContractDestination Information about the transaction destination type `EVM_Contract`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
+// TransactionEvmContractDestination Information about the transaction destination type `EVM_Contract`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
type TransactionEvmContractDestination struct {
DestinationType TransactionDestinationType `json:"destination_type"`
// The destination address.
diff --git a/cobo_waas2/model_transaction_exchange_wallet_source.go b/cobo_waas2/model_transaction_exchange_wallet_source.go
index 4167084..b87e5c8 100644
--- a/cobo_waas2/model_transaction_exchange_wallet_source.go
+++ b/cobo_waas2/model_transaction_exchange_wallet_source.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionExchangeWalletSource type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionExchangeWalletSource{}
-// TransactionExchangeWalletSource Information about the transaction source types `Main` and `Sub`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
+// TransactionExchangeWalletSource Information about the transaction source types `Main` and `Sub`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
type TransactionExchangeWalletSource struct {
SourceType TransactionSourceType `json:"source_type"`
ExchangeId ExchangeId `json:"exchange_id"`
diff --git a/cobo_waas2/model_transaction_message_sign_eip191_destination.go b/cobo_waas2/model_transaction_message_sign_eip191_destination.go
index 31b0454..de65f89 100644
--- a/cobo_waas2/model_transaction_message_sign_eip191_destination.go
+++ b/cobo_waas2/model_transaction_message_sign_eip191_destination.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionMessageSignEIP191Destination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionMessageSignEIP191Destination{}
-// TransactionMessageSignEIP191Destination Information about the transaction destination type `EVM_EIP_191_Signature`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
+// TransactionMessageSignEIP191Destination Information about the transaction destination type `EVM_EIP_191_Signature`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
type TransactionMessageSignEIP191Destination struct {
DestinationType TransactionDestinationType `json:"destination_type"`
// The raw data of the message to be signed, encoded in Base64 format.
diff --git a/cobo_waas2/model_transaction_message_sign_eip712_destination.go b/cobo_waas2/model_transaction_message_sign_eip712_destination.go
index b5acdf0..2467c43 100644
--- a/cobo_waas2/model_transaction_message_sign_eip712_destination.go
+++ b/cobo_waas2/model_transaction_message_sign_eip712_destination.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionMessageSignEIP712Destination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionMessageSignEIP712Destination{}
-// TransactionMessageSignEIP712Destination Information about the transaction destination type `EVM_EIP_712_Signature`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
+// TransactionMessageSignEIP712Destination Information about the transaction destination type `EVM_EIP_712_Signature`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
type TransactionMessageSignEIP712Destination struct {
DestinationType TransactionDestinationType `json:"destination_type"`
// The structured data to be signed, formatted as a JSON object according to the EIP-712 standard.
diff --git a/cobo_waas2/model_transaction_mpc_wallet_source.go b/cobo_waas2/model_transaction_mpc_wallet_source.go
index be45285..d9a1682 100644
--- a/cobo_waas2/model_transaction_mpc_wallet_source.go
+++ b/cobo_waas2/model_transaction_mpc_wallet_source.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionMPCWalletSource type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionMPCWalletSource{}
-// TransactionMPCWalletSource Information about the transaction source type `Org-Controlled` and `User-Controlled`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
+// TransactionMPCWalletSource Information about the transaction source type `Org-Controlled` and `User-Controlled`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
type TransactionMPCWalletSource struct {
SourceType TransactionSourceType `json:"source_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_transaction_raw_message_sign_destination.go b/cobo_waas2/model_transaction_raw_message_sign_destination.go
index 625d870..4eb6fd3 100644
--- a/cobo_waas2/model_transaction_raw_message_sign_destination.go
+++ b/cobo_waas2/model_transaction_raw_message_sign_destination.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionRawMessageSignDestination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionRawMessageSignDestination{}
-// TransactionRawMessageSignDestination The information about the destination `Raw_Message_Signature`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
+// TransactionRawMessageSignDestination The information about the destination `Raw_Message_Signature`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
type TransactionRawMessageSignDestination struct {
DestinationType TransactionDestinationType `json:"destination_type"`
// Message hash to be signed, in hexadecimal format.
diff --git a/cobo_waas2/model_transaction_raw_tx_info.go b/cobo_waas2/model_transaction_raw_tx_info.go
index e7f23b1..46f7b9e 100644
--- a/cobo_waas2/model_transaction_raw_tx_info.go
+++ b/cobo_waas2/model_transaction_raw_tx_info.go
@@ -20,7 +20,7 @@ type TransactionRawTxInfo struct {
// The transaction nonce.
UsedNonce *int32 `json:"used_nonce,omitempty"`
// The selected UTXOs to be consumed in the transaction.
- SelectedUtxos []TransactionUtxo `json:"selected_utxos,omitempty"`
+ SelectedUtxos []TransactionSelectedUtxo `json:"selected_utxos,omitempty"`
// The raw transaction data.
RawTx *string `json:"raw_tx,omitempty"`
}
@@ -75,9 +75,9 @@ func (o *TransactionRawTxInfo) SetUsedNonce(v int32) {
}
// GetSelectedUtxos returns the SelectedUtxos field value if set, zero value otherwise.
-func (o *TransactionRawTxInfo) GetSelectedUtxos() []TransactionUtxo {
+func (o *TransactionRawTxInfo) GetSelectedUtxos() []TransactionSelectedUtxo {
if o == nil || IsNil(o.SelectedUtxos) {
- var ret []TransactionUtxo
+ var ret []TransactionSelectedUtxo
return ret
}
return o.SelectedUtxos
@@ -85,7 +85,7 @@ func (o *TransactionRawTxInfo) GetSelectedUtxos() []TransactionUtxo {
// GetSelectedUtxosOk returns a tuple with the SelectedUtxos field value if set, nil otherwise
// and a boolean to check if the value has been set.
-func (o *TransactionRawTxInfo) GetSelectedUtxosOk() ([]TransactionUtxo, bool) {
+func (o *TransactionRawTxInfo) GetSelectedUtxosOk() ([]TransactionSelectedUtxo, bool) {
if o == nil || IsNil(o.SelectedUtxos) {
return nil, false
}
@@ -101,8 +101,8 @@ func (o *TransactionRawTxInfo) HasSelectedUtxos() bool {
return false
}
-// SetSelectedUtxos gets a reference to the given []TransactionUtxo and assigns it to the SelectedUtxos field.
-func (o *TransactionRawTxInfo) SetSelectedUtxos(v []TransactionUtxo) {
+// SetSelectedUtxos gets a reference to the given []TransactionSelectedUtxo and assigns it to the SelectedUtxos field.
+func (o *TransactionRawTxInfo) SetSelectedUtxos(v []TransactionSelectedUtxo) {
o.SelectedUtxos = v
}
diff --git a/cobo_waas2/model_transaction_request_evm_eip1559_fee.go b/cobo_waas2/model_transaction_request_evm_eip1559_fee.go
index 70878bc..c7f1e1f 100644
--- a/cobo_waas2/model_transaction_request_evm_eip1559_fee.go
+++ b/cobo_waas2/model_transaction_request_evm_eip1559_fee.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionRequestEvmEip1559Fee type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionRequestEvmEip1559Fee{}
-// TransactionRequestEvmEip1559Fee The preset properties to limit transaction fee. In the EIP-1559 fee model, the transaction fee is calculated by multiplying the gas price and the gas units used by the transaction. This can be expressed as: Transaction fee = gas price * gas units used. For more information about the EIP-1559 fee model, refer to [Fee models](/v2/guides/transactions/estimate-fees#fee-models). You can specify the maximum gas fee per gas unit, maximum priority fee per gas unit, and the gas limit to limit the gas price, priority fee per gas unit, gas units used in the transaction. Switch between the tabs to display the properties for different transaction fee models.
+// TransactionRequestEvmEip1559Fee The preset properties to limit transaction fee. In the EIP-1559 fee model, the transaction fee is calculated by multiplying the gas price and the gas units used by the transaction. This can be expressed as: Transaction fee = gas price * gas units used. For more information about the EIP-1559 fee model, refer to [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models). You can specify the maximum gas fee per gas unit, maximum priority fee per gas unit, and the gas limit to limit the gas price, priority fee per gas unit, gas units used in the transaction. Switch between the tabs to display the properties for different transaction fee models.
type TransactionRequestEvmEip1559Fee struct {
// The maximum gas fee per gas unit used on the chain, in wei.
MaxFeePerGas string `json:"max_fee_per_gas"`
diff --git a/cobo_waas2/model_transaction_request_evm_legacy_fee.go b/cobo_waas2/model_transaction_request_evm_legacy_fee.go
index b68dc20..e9164c2 100644
--- a/cobo_waas2/model_transaction_request_evm_legacy_fee.go
+++ b/cobo_waas2/model_transaction_request_evm_legacy_fee.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionRequestEvmLegacyFee type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionRequestEvmLegacyFee{}
-// TransactionRequestEvmLegacyFee The preset properties to limit transaction fee. In the legacy fee model, the transaction fee is calculated by multiplying the gas price by the gas units used by the transaction. This can be expressed as: Transaction fee = (gas price * gas units used). For more information about the legacy fee model, refer to [Fee models](/v2/guides/transactions/estimate-fees#fee-models). You can specify the gas limit to limit the gas units used in the transaction. Switch between the tabs to display the properties for different transaction fee models.
+// TransactionRequestEvmLegacyFee The preset properties to limit transaction fee. In the legacy fee model, the transaction fee is calculated by multiplying the gas price by the gas units used by the transaction. This can be expressed as: Transaction fee = (gas price * gas units used). For more information about the legacy fee model, refer to [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models). You can specify the gas limit to limit the gas units used in the transaction. Switch between the tabs to display the properties for different transaction fee models.
type TransactionRequestEvmLegacyFee struct {
// The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used.
GasPrice string `json:"gas_price"`
diff --git a/cobo_waas2/model_transaction_request_fixed_fee.go b/cobo_waas2/model_transaction_request_fixed_fee.go
index 9f87688..313b9e4 100644
--- a/cobo_waas2/model_transaction_request_fixed_fee.go
+++ b/cobo_waas2/model_transaction_request_fixed_fee.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionRequestFixedFee type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionRequestFixedFee{}
-// TransactionRequestFixedFee The preset properties to limit transaction fee. In the fixed fee model, the transaction fee is a fixed amount within a certain amount of period regardless of the transaction size or network congestion, which can vary between different chains. For more information about the fixed fee model, refer to [Fee models](/v2/guides/transactions/estimate-fees#fee-models). You can specify the maximum fee amount to limit the transaction fee. The transaction will fail if the transaction fee exceeds the specified maximum fee amount. Switch between the tabs to display the properties for different transaction fee models.
+// TransactionRequestFixedFee The preset properties to limit transaction fee. In the fixed fee model, the transaction fee is a fixed amount within a certain amount of period regardless of the transaction size or network congestion, which can vary between different chains. For more information about the fixed fee model, refer to [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models). You can specify the maximum fee amount to limit the transaction fee. The transaction will fail if the transaction fee exceeds the specified maximum fee amount. Switch between the tabs to display the properties for different transaction fee models.
type TransactionRequestFixedFee struct {
// The maximum fee that you are willing to pay for the transaction. The transaction will fail if the transaction fee exceeds the maximum fee.
MaxFeeAmount *string `json:"max_fee_amount,omitempty"`
diff --git a/cobo_waas2/model_transaction_request_utxo_fee.go b/cobo_waas2/model_transaction_request_utxo_fee.go
index d56fb7c..98a54ac 100644
--- a/cobo_waas2/model_transaction_request_utxo_fee.go
+++ b/cobo_waas2/model_transaction_request_utxo_fee.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionRequestUtxoFee type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionRequestUtxoFee{}
-// TransactionRequestUtxoFee The preset properties to limit transaction fee. In the UTXO fee model, the transaction fee is calculated by multiplying the fee rate by the transaction size. This can be expressed as: Transaction fee = fee rate * transaction size. For more information about the UTXO fee model, see [Fee models](/v2/guides/transactions/estimate-fees#fee-models). You can specify the maximum fee amount to limit the transaction fee. The transaction will fail if the transaction fee exceeds the specified maximum fee amount. Switch between the tabs to display the properties for different transaction fee models.
+// TransactionRequestUtxoFee The preset properties to limit transaction fee. In the UTXO fee model, the transaction fee is calculated by multiplying the fee rate by the transaction size. This can be expressed as: Transaction fee = fee rate * transaction size. For more information about the UTXO fee model, see [Fee models](https://www.cobo.com/developers/v2/guides/transactions/estimate-fees#fee-models). You can specify the maximum fee amount to limit the transaction fee. The transaction will fail if the transaction fee exceeds the specified maximum fee amount. Switch between the tabs to display the properties for different transaction fee models.
type TransactionRequestUtxoFee struct {
// The fee rate in sat/vByte. The fee rate represents the satoshis you are willing to pay for each byte of data that your transaction will consume on the blockchain.
FeeRate string `json:"fee_rate"`
diff --git a/cobo_waas2/model_transaction_role_approval_detail.go b/cobo_waas2/model_transaction_role_approval_detail.go
new file mode 100644
index 0000000..ad1c8ac
--- /dev/null
+++ b/cobo_waas2/model_transaction_role_approval_detail.go
@@ -0,0 +1,271 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+)
+
+// checks if the TransactionRoleApprovalDetail type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TransactionRoleApprovalDetail{}
+
+// TransactionRoleApprovalDetail The role approval data for transaction.
+type TransactionRoleApprovalDetail struct {
+ Result *TransactionApprovalResult `json:"result,omitempty"`
+ // The threshold for passing the review of this role.
+ ReviewThreshold *int32 `json:"review_threshold,omitempty"`
+ // The initiator of the transaction.
+ Initiator *string `json:"initiator,omitempty"`
+ // Time to complete the review.
+ CompleteTime *string `json:"complete_time,omitempty"`
+ UserDetails []TransactionUserApprovalDetail `json:"user_details,omitempty"`
+}
+
+// NewTransactionRoleApprovalDetail instantiates a new TransactionRoleApprovalDetail object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTransactionRoleApprovalDetail() *TransactionRoleApprovalDetail {
+ this := TransactionRoleApprovalDetail{}
+ return &this
+}
+
+// NewTransactionRoleApprovalDetailWithDefaults instantiates a new TransactionRoleApprovalDetail object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTransactionRoleApprovalDetailWithDefaults() *TransactionRoleApprovalDetail {
+ this := TransactionRoleApprovalDetail{}
+ return &this
+}
+
+// GetResult returns the Result field value if set, zero value otherwise.
+func (o *TransactionRoleApprovalDetail) GetResult() TransactionApprovalResult {
+ if o == nil || IsNil(o.Result) {
+ var ret TransactionApprovalResult
+ return ret
+ }
+ return *o.Result
+}
+
+// GetResultOk returns a tuple with the Result field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionRoleApprovalDetail) GetResultOk() (*TransactionApprovalResult, bool) {
+ if o == nil || IsNil(o.Result) {
+ return nil, false
+ }
+ return o.Result, true
+}
+
+// HasResult returns a boolean if a field has been set.
+func (o *TransactionRoleApprovalDetail) HasResult() bool {
+ if o != nil && !IsNil(o.Result) {
+ return true
+ }
+
+ return false
+}
+
+// SetResult gets a reference to the given TransactionApprovalResult and assigns it to the Result field.
+func (o *TransactionRoleApprovalDetail) SetResult(v TransactionApprovalResult) {
+ o.Result = &v
+}
+
+// GetReviewThreshold returns the ReviewThreshold field value if set, zero value otherwise.
+func (o *TransactionRoleApprovalDetail) GetReviewThreshold() int32 {
+ if o == nil || IsNil(o.ReviewThreshold) {
+ var ret int32
+ return ret
+ }
+ return *o.ReviewThreshold
+}
+
+// GetReviewThresholdOk returns a tuple with the ReviewThreshold field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionRoleApprovalDetail) GetReviewThresholdOk() (*int32, bool) {
+ if o == nil || IsNil(o.ReviewThreshold) {
+ return nil, false
+ }
+ return o.ReviewThreshold, true
+}
+
+// HasReviewThreshold returns a boolean if a field has been set.
+func (o *TransactionRoleApprovalDetail) HasReviewThreshold() bool {
+ if o != nil && !IsNil(o.ReviewThreshold) {
+ return true
+ }
+
+ return false
+}
+
+// SetReviewThreshold gets a reference to the given int32 and assigns it to the ReviewThreshold field.
+func (o *TransactionRoleApprovalDetail) SetReviewThreshold(v int32) {
+ o.ReviewThreshold = &v
+}
+
+// GetInitiator returns the Initiator field value if set, zero value otherwise.
+func (o *TransactionRoleApprovalDetail) GetInitiator() string {
+ if o == nil || IsNil(o.Initiator) {
+ var ret string
+ return ret
+ }
+ return *o.Initiator
+}
+
+// GetInitiatorOk returns a tuple with the Initiator field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionRoleApprovalDetail) GetInitiatorOk() (*string, bool) {
+ if o == nil || IsNil(o.Initiator) {
+ return nil, false
+ }
+ return o.Initiator, true
+}
+
+// HasInitiator returns a boolean if a field has been set.
+func (o *TransactionRoleApprovalDetail) HasInitiator() bool {
+ if o != nil && !IsNil(o.Initiator) {
+ return true
+ }
+
+ return false
+}
+
+// SetInitiator gets a reference to the given string and assigns it to the Initiator field.
+func (o *TransactionRoleApprovalDetail) SetInitiator(v string) {
+ o.Initiator = &v
+}
+
+// GetCompleteTime returns the CompleteTime field value if set, zero value otherwise.
+func (o *TransactionRoleApprovalDetail) GetCompleteTime() string {
+ if o == nil || IsNil(o.CompleteTime) {
+ var ret string
+ return ret
+ }
+ return *o.CompleteTime
+}
+
+// GetCompleteTimeOk returns a tuple with the CompleteTime field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionRoleApprovalDetail) GetCompleteTimeOk() (*string, bool) {
+ if o == nil || IsNil(o.CompleteTime) {
+ return nil, false
+ }
+ return o.CompleteTime, true
+}
+
+// HasCompleteTime returns a boolean if a field has been set.
+func (o *TransactionRoleApprovalDetail) HasCompleteTime() bool {
+ if o != nil && !IsNil(o.CompleteTime) {
+ return true
+ }
+
+ return false
+}
+
+// SetCompleteTime gets a reference to the given string and assigns it to the CompleteTime field.
+func (o *TransactionRoleApprovalDetail) SetCompleteTime(v string) {
+ o.CompleteTime = &v
+}
+
+// GetUserDetails returns the UserDetails field value if set, zero value otherwise.
+func (o *TransactionRoleApprovalDetail) GetUserDetails() []TransactionUserApprovalDetail {
+ if o == nil || IsNil(o.UserDetails) {
+ var ret []TransactionUserApprovalDetail
+ return ret
+ }
+ return o.UserDetails
+}
+
+// GetUserDetailsOk returns a tuple with the UserDetails field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionRoleApprovalDetail) GetUserDetailsOk() ([]TransactionUserApprovalDetail, bool) {
+ if o == nil || IsNil(o.UserDetails) {
+ return nil, false
+ }
+ return o.UserDetails, true
+}
+
+// HasUserDetails returns a boolean if a field has been set.
+func (o *TransactionRoleApprovalDetail) HasUserDetails() bool {
+ if o != nil && !IsNil(o.UserDetails) {
+ return true
+ }
+
+ return false
+}
+
+// SetUserDetails gets a reference to the given []TransactionUserApprovalDetail and assigns it to the UserDetails field.
+func (o *TransactionRoleApprovalDetail) SetUserDetails(v []TransactionUserApprovalDetail) {
+ o.UserDetails = v
+}
+
+func (o TransactionRoleApprovalDetail) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TransactionRoleApprovalDetail) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Result) {
+ toSerialize["result"] = o.Result
+ }
+ if !IsNil(o.ReviewThreshold) {
+ toSerialize["review_threshold"] = o.ReviewThreshold
+ }
+ if !IsNil(o.Initiator) {
+ toSerialize["initiator"] = o.Initiator
+ }
+ if !IsNil(o.CompleteTime) {
+ toSerialize["complete_time"] = o.CompleteTime
+ }
+ if !IsNil(o.UserDetails) {
+ toSerialize["user_details"] = o.UserDetails
+ }
+ return toSerialize, nil
+}
+
+type NullableTransactionRoleApprovalDetail struct {
+ value *TransactionRoleApprovalDetail
+ isSet bool
+}
+
+func (v NullableTransactionRoleApprovalDetail) Get() *TransactionRoleApprovalDetail {
+ return v.value
+}
+
+func (v *NullableTransactionRoleApprovalDetail) Set(val *TransactionRoleApprovalDetail) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTransactionRoleApprovalDetail) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTransactionRoleApprovalDetail) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTransactionRoleApprovalDetail(val *TransactionRoleApprovalDetail) *NullableTransactionRoleApprovalDetail {
+ return &NullableTransactionRoleApprovalDetail{value: val, isSet: true}
+}
+
+func (v NullableTransactionRoleApprovalDetail) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTransactionRoleApprovalDetail) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_transaction_selected_utxo.go b/cobo_waas2/model_transaction_selected_utxo.go
new file mode 100644
index 0000000..e00ca0f
--- /dev/null
+++ b/cobo_waas2/model_transaction_selected_utxo.go
@@ -0,0 +1,236 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+)
+
+// checks if the TransactionSelectedUtxo type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TransactionSelectedUtxo{}
+
+// TransactionSelectedUtxo The selected UTXO information.
+type TransactionSelectedUtxo struct {
+ // The transaction hash of the UTXO.
+ TxHash *string `json:"tx_hash,omitempty"`
+ // The output index of the UTXO.
+ VoutN *int32 `json:"vout_n,omitempty"`
+ // The address of the UTXO.
+ Address *string `json:"address,omitempty"`
+ // The value of the UTXO.
+ Value *string `json:"value,omitempty"`
+}
+
+// NewTransactionSelectedUtxo instantiates a new TransactionSelectedUtxo object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTransactionSelectedUtxo() *TransactionSelectedUtxo {
+ this := TransactionSelectedUtxo{}
+ return &this
+}
+
+// NewTransactionSelectedUtxoWithDefaults instantiates a new TransactionSelectedUtxo object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTransactionSelectedUtxoWithDefaults() *TransactionSelectedUtxo {
+ this := TransactionSelectedUtxo{}
+ return &this
+}
+
+// GetTxHash returns the TxHash field value if set, zero value otherwise.
+func (o *TransactionSelectedUtxo) GetTxHash() string {
+ if o == nil || IsNil(o.TxHash) {
+ var ret string
+ return ret
+ }
+ return *o.TxHash
+}
+
+// GetTxHashOk returns a tuple with the TxHash field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionSelectedUtxo) GetTxHashOk() (*string, bool) {
+ if o == nil || IsNil(o.TxHash) {
+ return nil, false
+ }
+ return o.TxHash, true
+}
+
+// HasTxHash returns a boolean if a field has been set.
+func (o *TransactionSelectedUtxo) HasTxHash() bool {
+ if o != nil && !IsNil(o.TxHash) {
+ return true
+ }
+
+ return false
+}
+
+// SetTxHash gets a reference to the given string and assigns it to the TxHash field.
+func (o *TransactionSelectedUtxo) SetTxHash(v string) {
+ o.TxHash = &v
+}
+
+// GetVoutN returns the VoutN field value if set, zero value otherwise.
+func (o *TransactionSelectedUtxo) GetVoutN() int32 {
+ if o == nil || IsNil(o.VoutN) {
+ var ret int32
+ return ret
+ }
+ return *o.VoutN
+}
+
+// GetVoutNOk returns a tuple with the VoutN field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionSelectedUtxo) GetVoutNOk() (*int32, bool) {
+ if o == nil || IsNil(o.VoutN) {
+ return nil, false
+ }
+ return o.VoutN, true
+}
+
+// HasVoutN returns a boolean if a field has been set.
+func (o *TransactionSelectedUtxo) HasVoutN() bool {
+ if o != nil && !IsNil(o.VoutN) {
+ return true
+ }
+
+ return false
+}
+
+// SetVoutN gets a reference to the given int32 and assigns it to the VoutN field.
+func (o *TransactionSelectedUtxo) SetVoutN(v int32) {
+ o.VoutN = &v
+}
+
+// GetAddress returns the Address field value if set, zero value otherwise.
+func (o *TransactionSelectedUtxo) GetAddress() string {
+ if o == nil || IsNil(o.Address) {
+ var ret string
+ return ret
+ }
+ return *o.Address
+}
+
+// GetAddressOk returns a tuple with the Address field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionSelectedUtxo) GetAddressOk() (*string, bool) {
+ if o == nil || IsNil(o.Address) {
+ return nil, false
+ }
+ return o.Address, true
+}
+
+// HasAddress returns a boolean if a field has been set.
+func (o *TransactionSelectedUtxo) HasAddress() bool {
+ if o != nil && !IsNil(o.Address) {
+ return true
+ }
+
+ return false
+}
+
+// SetAddress gets a reference to the given string and assigns it to the Address field.
+func (o *TransactionSelectedUtxo) SetAddress(v string) {
+ o.Address = &v
+}
+
+// GetValue returns the Value field value if set, zero value otherwise.
+func (o *TransactionSelectedUtxo) GetValue() string {
+ if o == nil || IsNil(o.Value) {
+ var ret string
+ return ret
+ }
+ return *o.Value
+}
+
+// GetValueOk returns a tuple with the Value field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionSelectedUtxo) GetValueOk() (*string, bool) {
+ if o == nil || IsNil(o.Value) {
+ return nil, false
+ }
+ return o.Value, true
+}
+
+// HasValue returns a boolean if a field has been set.
+func (o *TransactionSelectedUtxo) HasValue() bool {
+ if o != nil && !IsNil(o.Value) {
+ return true
+ }
+
+ return false
+}
+
+// SetValue gets a reference to the given string and assigns it to the Value field.
+func (o *TransactionSelectedUtxo) SetValue(v string) {
+ o.Value = &v
+}
+
+func (o TransactionSelectedUtxo) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TransactionSelectedUtxo) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.TxHash) {
+ toSerialize["tx_hash"] = o.TxHash
+ }
+ if !IsNil(o.VoutN) {
+ toSerialize["vout_n"] = o.VoutN
+ }
+ if !IsNil(o.Address) {
+ toSerialize["address"] = o.Address
+ }
+ if !IsNil(o.Value) {
+ toSerialize["value"] = o.Value
+ }
+ return toSerialize, nil
+}
+
+type NullableTransactionSelectedUtxo struct {
+ value *TransactionSelectedUtxo
+ isSet bool
+}
+
+func (v NullableTransactionSelectedUtxo) Get() *TransactionSelectedUtxo {
+ return v.value
+}
+
+func (v *NullableTransactionSelectedUtxo) Set(val *TransactionSelectedUtxo) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTransactionSelectedUtxo) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTransactionSelectedUtxo) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTransactionSelectedUtxo(val *TransactionSelectedUtxo) *NullableTransactionSelectedUtxo {
+ return &NullableTransactionSelectedUtxo{value: val, isSet: true}
+}
+
+func (v NullableTransactionSelectedUtxo) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTransactionSelectedUtxo) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_transaction_smart_contract_safe_wallet_source.go b/cobo_waas2/model_transaction_smart_contract_safe_wallet_source.go
index 9dc6fc8..5173163 100644
--- a/cobo_waas2/model_transaction_smart_contract_safe_wallet_source.go
+++ b/cobo_waas2/model_transaction_smart_contract_safe_wallet_source.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionSmartContractSafeWalletSource type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionSmartContractSafeWalletSource{}
-// TransactionSmartContractSafeWalletSource Information about the transaction source type `Safe{Wallet}`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
+// TransactionSmartContractSafeWalletSource Information about the transaction source type `Safe{Wallet}`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction sources.
type TransactionSmartContractSafeWalletSource struct {
SourceType TransactionSourceType `json:"source_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_transaction_source_type.go b/cobo_waas2/model_transaction_source_type.go
index 50354f9..de04ddb 100644
--- a/cobo_waas2/model_transaction_source_type.go
+++ b/cobo_waas2/model_transaction_source_type.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// TransactionSourceType The transaction source. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
+// TransactionSourceType The transaction source. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type.
type TransactionSourceType string
// List of TransactionSourceType
diff --git a/cobo_waas2/model_transaction_sub_status.go b/cobo_waas2/model_transaction_sub_status.go
index ec27062..bb3f76d 100644
--- a/cobo_waas2/model_transaction_sub_status.go
+++ b/cobo_waas2/model_transaction_sub_status.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// TransactionSubStatus The transaction sub-status. Possible values include: - `PendingDoubleCheck`: The transaction is pending a double check. - `RejectedDoubleCheck`: The transaction is rejected because it failed a double check. - `PendingSpenderCheck`: The transaction is pending a spender check. - `RejectedSpenderAuth`: The transaction is rejected by the spender. - `PendingTravelRuleCheck`: The transaction is undergoing a Travel Rule check. - `PendingTravelRuleInfo`: The transaction is awaiting users to provide information related to the Travel Rule. - `RejectedTravelRule`: The transaction is rejected because it failed to comply with the Travel Rule. - `RejectedTravelRuleDueToCompliance`: The transaction is rejected because it failed the cross-check of the Travel Rule. - `RejectedTravelRuleDueToUnsupportedToken`: The transaction is rejected because the token is not supported by the Travel Rule. - `PendingRiskControlCheck`: The transaction is pending for a Risk Control check. - `PendingApproverCheck`: The transaction is pending approval from the approver. - `RejectedApproverAuth`: The transaction is rejected by the approver. - `RejectedbyMobileCosigner`: The transaction is rejected by a mobile cosigner. - `RejectedCoboCheck`: The transaction is rejected because it failed the internal check by Cobo. - `RejectedWhiteList`: The transaction is rejected because the sender or receiver is not included in a whitelist. - `PendingWaitSigner`: The transaction is pending signature. - `PendingApprovalStart`: The transaction approval is waiting to be started. - For [MPC Wallets (User-Controlled Wallets)](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/introduction), you need to use the Client App and call the UCW SDK to start the transaction approval process. - For [MPC Wallets (Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/introduction)): - If you are using the [API co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups), this status indicates that the TSS Node will soon request the callback server to start the [risk controls](https://manuals.cobo.com/en/portal/risk-controls/introduction) check. No further action is required from you at this stage. - If you are using the [mobile co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups), key share holders need to use their [Cobo Guard](https://manuals.cobo.com/en/guard/introduction) to approve the transaction and participate in the signing process. - `FailedBySigner`: The transaction failed during the signing process. - `SignatureVerificationSuccess`: The transaction's signature has been successfully verified. - `SignatureVerificationFailed`: The transaction's signature failed verification. - `FailedBroadcasting`: The transaction failed to be broadcast to the blockchain network. - `CanceledBySpender`: The transaction is canceled by a Spender. - `CanceledByAPI`: The transaction is canceled by a [Cancel transaction](/v2/api-references/transactions/cancel-transaction) operation. - `Queue`: The transaction is queued to be processed by Cobo Portal. - `Reverting`: The transaction is being reverted due to failure on the blockchain. - `OnchainRejection`: The transaction is rejected from being added to the blockchain. - `FailedOnChain`: The transaction failed on the blockchain. - `PendingBlockConfirmations`: The transaction is awaiting the required number of confirmations. - `ReplacedByNewTransaction`: The transaction has been replaced by a new transaction.
+// TransactionSubStatus The transaction sub-status. Possible values include: - `PendingDoubleCheck`: The transaction is pending a double check. - `RejectedDoubleCheck`: The transaction is rejected because it failed a double check. - `PendingSpenderCheck`: The transaction is pending a spender check. - `RejectedSpenderAuth`: The transaction is rejected by the spender. - `PendingTravelRuleCheck`: The transaction is undergoing a Travel Rule check. - `PendingTravelRuleInfo`: The transaction is awaiting users to provide information related to the Travel Rule. - `RejectedTravelRule`: The transaction is rejected because it failed to comply with the Travel Rule. - `RejectedTravelRuleDueToCompliance`: The transaction is rejected because it failed the cross-check of the Travel Rule. - `RejectedTravelRuleDueToUnsupportedToken`: The transaction is rejected because the token is not supported by the Travel Rule. - `PendingRiskControlCheck`: The transaction is pending for a Risk Control check. - `PendingApproverCheck`: The transaction is pending approval from the approver. - `RejectedApproverAuth`: The transaction is rejected by the approver. - `RejectedbyMobileCosigner`: The transaction is rejected by a mobile cosigner. - `RejectedCoboCheck`: The transaction is rejected because it failed the internal check by Cobo. - `RejectedWhiteList`: The transaction is rejected because the sender or receiver is not included in a whitelist. - `PendingWaitSigner`: The transaction is pending signature. - `PendingApprovalStart`: The transaction approval is waiting to be started. - For [MPC Wallets (User-Controlled Wallets)](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/introduction), you need to use the Client App and call the UCW SDK to start the transaction approval process. - For [MPC Wallets (Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/introduction)): - If you are using the [server co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups), this status indicates that the TSS Node will soon request the callback server to start the [risk controls](https://manuals.cobo.com/en/portal/risk-controls/introduction) check. No further action is required from you at this stage. - If you are using the [mobile co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups), key share holders need to use their [Cobo Guard](https://manuals.cobo.com/en/guard/introduction) to approve the transaction and participate in the signing process. - `FailedBySigner`: The transaction failed during the signing process. - `SignatureVerificationSuccess`: The transaction's signature has been successfully verified. - `SignatureVerificationFailed`: The transaction's signature failed verification. - `FailedBroadcasting`: The transaction failed to be broadcast to the blockchain network. - `CanceledBySpender`: The transaction is canceled by a Spender. - `CanceledByAPI`: The transaction is canceled by a [Cancel transaction](https://www.cobo.com/developers/v2/api-references/transactions/cancel-transaction) operation. - `Queue`: The transaction is queued to be processed by Cobo Portal. - `Reverting`: The transaction is being reverted due to failure on the blockchain. - `OnchainRejection`: The transaction is rejected from being added to the blockchain. - `FailedOnChain`: The transaction failed on the blockchain. - `PendingBlockConfirmations`: The transaction is awaiting the required number of confirmations. - `ReplacedByNewTransaction`: The transaction has been replaced by a new transaction.
type TransactionSubStatus string
// List of TransactionSubStatus
diff --git a/cobo_waas2/model_transaction_toke_approval.go b/cobo_waas2/model_transaction_toke_approval.go
index abc5cc4..3f75b76 100644
--- a/cobo_waas2/model_transaction_toke_approval.go
+++ b/cobo_waas2/model_transaction_toke_approval.go
@@ -19,7 +19,7 @@ var _ MappedNullable = &TransactionTokeApproval{}
// TransactionTokeApproval struct for TransactionTokeApproval
type TransactionTokeApproval struct {
- // 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).
+ // The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
TokenId string `json:"token_id"`
// The ID of the chain on which the token operates.
ChainId string `json:"chain_id"`
diff --git a/cobo_waas2/model_transaction_token_amount.go b/cobo_waas2/model_transaction_token_amount.go
index 0c5ce65..89f715d 100644
--- a/cobo_waas2/model_transaction_token_amount.go
+++ b/cobo_waas2/model_transaction_token_amount.go
@@ -19,7 +19,7 @@ var _ MappedNullable = &TransactionTokenAmount{}
// TransactionTokenAmount The data for transaction asset information.
type TransactionTokenAmount struct {
- // 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).
+ // The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
TokenId *string `json:"token_id,omitempty"`
// (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account.
AssetId string `json:"asset_id"`
diff --git a/cobo_waas2/model_transaction_transfer_to_address_destination.go b/cobo_waas2/model_transaction_transfer_to_address_destination.go
index 95f6ed9..d84bdc9 100644
--- a/cobo_waas2/model_transaction_transfer_to_address_destination.go
+++ b/cobo_waas2/model_transaction_transfer_to_address_destination.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionTransferToAddressDestination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionTransferToAddressDestination{}
-// TransactionTransferToAddressDestination Information about the transaction destination type `Address`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
+// TransactionTransferToAddressDestination Information about the transaction destination type `Address`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
type TransactionTransferToAddressDestination struct {
DestinationType TransactionDestinationType `json:"destination_type"`
AccountOutput *TransactionTransferToAddressDestinationAccountOutput `json:"account_output,omitempty"`
diff --git a/cobo_waas2/model_transaction_transfer_to_wallet_destination.go b/cobo_waas2/model_transaction_transfer_to_wallet_destination.go
index d759f40..061ebf0 100644
--- a/cobo_waas2/model_transaction_transfer_to_wallet_destination.go
+++ b/cobo_waas2/model_transaction_transfer_to_wallet_destination.go
@@ -17,7 +17,7 @@ import (
// checks if the TransactionTransferToWalletDestination type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &TransactionTransferToWalletDestination{}
-// TransactionTransferToWalletDestination Information about the transaction destination type `ExchangeWallet`. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
+// TransactionTransferToWalletDestination Information about the transaction destination type `ExchangeWallet`. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Switch between the tabs to display the properties for different transaction destinations.
type TransactionTransferToWalletDestination struct {
DestinationType TransactionDestinationType `json:"destination_type"`
// The wallet ID.
diff --git a/cobo_waas2/model_transaction_user_approval_detail.go b/cobo_waas2/model_transaction_user_approval_detail.go
new file mode 100644
index 0000000..a341442
--- /dev/null
+++ b/cobo_waas2/model_transaction_user_approval_detail.go
@@ -0,0 +1,346 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+)
+
+// checks if the TransactionUserApprovalDetail type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TransactionUserApprovalDetail{}
+
+// TransactionUserApprovalDetail The user approval data for transaction.
+type TransactionUserApprovalDetail struct {
+ // The gaurd pubkey of the user who audited the message.
+ Pubkey *string `json:"pubkey,omitempty"`
+ Result *TransactionApprovalResult `json:"result,omitempty"`
+ // Signature of the audited message.
+ Signature *string `json:"signature,omitempty"`
+ // The language of the audited message.
+ Language *string `json:"language,omitempty"`
+ // Version of the audited message.
+ MessageVersion *string `json:"message_version,omitempty"`
+ // The audited message.
+ Message *string `json:"message,omitempty"`
+ // The extra audited message.
+ ExtraMessage *string `json:"extra_message,omitempty"`
+}
+
+// NewTransactionUserApprovalDetail instantiates a new TransactionUserApprovalDetail object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTransactionUserApprovalDetail() *TransactionUserApprovalDetail {
+ this := TransactionUserApprovalDetail{}
+ return &this
+}
+
+// NewTransactionUserApprovalDetailWithDefaults instantiates a new TransactionUserApprovalDetail object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTransactionUserApprovalDetailWithDefaults() *TransactionUserApprovalDetail {
+ this := TransactionUserApprovalDetail{}
+ return &this
+}
+
+// GetPubkey returns the Pubkey field value if set, zero value otherwise.
+func (o *TransactionUserApprovalDetail) GetPubkey() string {
+ if o == nil || IsNil(o.Pubkey) {
+ var ret string
+ return ret
+ }
+ return *o.Pubkey
+}
+
+// GetPubkeyOk returns a tuple with the Pubkey field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionUserApprovalDetail) GetPubkeyOk() (*string, bool) {
+ if o == nil || IsNil(o.Pubkey) {
+ return nil, false
+ }
+ return o.Pubkey, true
+}
+
+// HasPubkey returns a boolean if a field has been set.
+func (o *TransactionUserApprovalDetail) HasPubkey() bool {
+ if o != nil && !IsNil(o.Pubkey) {
+ return true
+ }
+
+ return false
+}
+
+// SetPubkey gets a reference to the given string and assigns it to the Pubkey field.
+func (o *TransactionUserApprovalDetail) SetPubkey(v string) {
+ o.Pubkey = &v
+}
+
+// GetResult returns the Result field value if set, zero value otherwise.
+func (o *TransactionUserApprovalDetail) GetResult() TransactionApprovalResult {
+ if o == nil || IsNil(o.Result) {
+ var ret TransactionApprovalResult
+ return ret
+ }
+ return *o.Result
+}
+
+// GetResultOk returns a tuple with the Result field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionUserApprovalDetail) GetResultOk() (*TransactionApprovalResult, bool) {
+ if o == nil || IsNil(o.Result) {
+ return nil, false
+ }
+ return o.Result, true
+}
+
+// HasResult returns a boolean if a field has been set.
+func (o *TransactionUserApprovalDetail) HasResult() bool {
+ if o != nil && !IsNil(o.Result) {
+ return true
+ }
+
+ return false
+}
+
+// SetResult gets a reference to the given TransactionApprovalResult and assigns it to the Result field.
+func (o *TransactionUserApprovalDetail) SetResult(v TransactionApprovalResult) {
+ o.Result = &v
+}
+
+// GetSignature returns the Signature field value if set, zero value otherwise.
+func (o *TransactionUserApprovalDetail) GetSignature() string {
+ if o == nil || IsNil(o.Signature) {
+ var ret string
+ return ret
+ }
+ return *o.Signature
+}
+
+// GetSignatureOk returns a tuple with the Signature field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionUserApprovalDetail) GetSignatureOk() (*string, bool) {
+ if o == nil || IsNil(o.Signature) {
+ return nil, false
+ }
+ return o.Signature, true
+}
+
+// HasSignature returns a boolean if a field has been set.
+func (o *TransactionUserApprovalDetail) HasSignature() bool {
+ if o != nil && !IsNil(o.Signature) {
+ return true
+ }
+
+ return false
+}
+
+// SetSignature gets a reference to the given string and assigns it to the Signature field.
+func (o *TransactionUserApprovalDetail) SetSignature(v string) {
+ o.Signature = &v
+}
+
+// GetLanguage returns the Language field value if set, zero value otherwise.
+func (o *TransactionUserApprovalDetail) GetLanguage() string {
+ if o == nil || IsNil(o.Language) {
+ var ret string
+ return ret
+ }
+ return *o.Language
+}
+
+// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionUserApprovalDetail) GetLanguageOk() (*string, bool) {
+ if o == nil || IsNil(o.Language) {
+ return nil, false
+ }
+ return o.Language, true
+}
+
+// HasLanguage returns a boolean if a field has been set.
+func (o *TransactionUserApprovalDetail) HasLanguage() bool {
+ if o != nil && !IsNil(o.Language) {
+ return true
+ }
+
+ return false
+}
+
+// SetLanguage gets a reference to the given string and assigns it to the Language field.
+func (o *TransactionUserApprovalDetail) SetLanguage(v string) {
+ o.Language = &v
+}
+
+// GetMessageVersion returns the MessageVersion field value if set, zero value otherwise.
+func (o *TransactionUserApprovalDetail) GetMessageVersion() string {
+ if o == nil || IsNil(o.MessageVersion) {
+ var ret string
+ return ret
+ }
+ return *o.MessageVersion
+}
+
+// GetMessageVersionOk returns a tuple with the MessageVersion field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionUserApprovalDetail) GetMessageVersionOk() (*string, bool) {
+ if o == nil || IsNil(o.MessageVersion) {
+ return nil, false
+ }
+ return o.MessageVersion, true
+}
+
+// HasMessageVersion returns a boolean if a field has been set.
+func (o *TransactionUserApprovalDetail) HasMessageVersion() bool {
+ if o != nil && !IsNil(o.MessageVersion) {
+ return true
+ }
+
+ return false
+}
+
+// SetMessageVersion gets a reference to the given string and assigns it to the MessageVersion field.
+func (o *TransactionUserApprovalDetail) SetMessageVersion(v string) {
+ o.MessageVersion = &v
+}
+
+// GetMessage returns the Message field value if set, zero value otherwise.
+func (o *TransactionUserApprovalDetail) GetMessage() string {
+ if o == nil || IsNil(o.Message) {
+ var ret string
+ return ret
+ }
+ return *o.Message
+}
+
+// GetMessageOk returns a tuple with the Message field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionUserApprovalDetail) GetMessageOk() (*string, bool) {
+ if o == nil || IsNil(o.Message) {
+ return nil, false
+ }
+ return o.Message, true
+}
+
+// HasMessage returns a boolean if a field has been set.
+func (o *TransactionUserApprovalDetail) HasMessage() bool {
+ if o != nil && !IsNil(o.Message) {
+ return true
+ }
+
+ return false
+}
+
+// SetMessage gets a reference to the given string and assigns it to the Message field.
+func (o *TransactionUserApprovalDetail) SetMessage(v string) {
+ o.Message = &v
+}
+
+// GetExtraMessage returns the ExtraMessage field value if set, zero value otherwise.
+func (o *TransactionUserApprovalDetail) GetExtraMessage() string {
+ if o == nil || IsNil(o.ExtraMessage) {
+ var ret string
+ return ret
+ }
+ return *o.ExtraMessage
+}
+
+// GetExtraMessageOk returns a tuple with the ExtraMessage field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TransactionUserApprovalDetail) GetExtraMessageOk() (*string, bool) {
+ if o == nil || IsNil(o.ExtraMessage) {
+ return nil, false
+ }
+ return o.ExtraMessage, true
+}
+
+// HasExtraMessage returns a boolean if a field has been set.
+func (o *TransactionUserApprovalDetail) HasExtraMessage() bool {
+ if o != nil && !IsNil(o.ExtraMessage) {
+ return true
+ }
+
+ return false
+}
+
+// SetExtraMessage gets a reference to the given string and assigns it to the ExtraMessage field.
+func (o *TransactionUserApprovalDetail) SetExtraMessage(v string) {
+ o.ExtraMessage = &v
+}
+
+func (o TransactionUserApprovalDetail) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TransactionUserApprovalDetail) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ if !IsNil(o.Pubkey) {
+ toSerialize["pubkey"] = o.Pubkey
+ }
+ if !IsNil(o.Result) {
+ toSerialize["result"] = o.Result
+ }
+ if !IsNil(o.Signature) {
+ toSerialize["signature"] = o.Signature
+ }
+ if !IsNil(o.Language) {
+ toSerialize["language"] = o.Language
+ }
+ if !IsNil(o.MessageVersion) {
+ toSerialize["message_version"] = o.MessageVersion
+ }
+ if !IsNil(o.Message) {
+ toSerialize["message"] = o.Message
+ }
+ if !IsNil(o.ExtraMessage) {
+ toSerialize["extra_message"] = o.ExtraMessage
+ }
+ return toSerialize, nil
+}
+
+type NullableTransactionUserApprovalDetail struct {
+ value *TransactionUserApprovalDetail
+ isSet bool
+}
+
+func (v NullableTransactionUserApprovalDetail) Get() *TransactionUserApprovalDetail {
+ return v.value
+}
+
+func (v *NullableTransactionUserApprovalDetail) Set(val *TransactionUserApprovalDetail) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTransactionUserApprovalDetail) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTransactionUserApprovalDetail) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTransactionUserApprovalDetail(val *TransactionUserApprovalDetail) *NullableTransactionUserApprovalDetail {
+ return &NullableTransactionUserApprovalDetail{value: val, isSet: true}
+}
+
+func (v NullableTransactionUserApprovalDetail) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTransactionUserApprovalDetail) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_transaction_webhook_event_data.go b/cobo_waas2/model_transaction_webhook_event_data.go
index 8e74bc2..555297d 100644
--- a/cobo_waas2/model_transaction_webhook_event_data.go
+++ b/cobo_waas2/model_transaction_webhook_event_data.go
@@ -19,7 +19,7 @@ var _ MappedNullable = &TransactionWebhookEventData{}
// TransactionWebhookEventData struct for TransactionWebhookEventData
type TransactionWebhookEventData struct {
- // The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data.
+ // The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
DataType string `json:"data_type"`
// The transaction ID.
TransactionId string `json:"transaction_id"`
@@ -34,9 +34,9 @@ type TransactionWebhookEventData struct {
SubStatus *TransactionSubStatus `json:"sub_status,omitempty"`
// (This property is applicable to approval failures and signature failures only) The reason why the transaction failed.
FailedReason *string `json:"failed_reason,omitempty"`
- // 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).
+ // 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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains).
ChainId *string `json:"chain_id,omitempty"`
- // 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).
+ // The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens).
TokenId *string `json:"token_id,omitempty"`
// (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account.
AssetId *string `json:"asset_id,omitempty"`
diff --git a/cobo_waas2/model_transfer_destination_type.go b/cobo_waas2/model_transfer_destination_type.go
index b956096..143875a 100644
--- a/cobo_waas2/model_transfer_destination_type.go
+++ b/cobo_waas2/model_transfer_destination_type.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// TransferDestinationType The transaction destination type. Refer to [Transaction sources and destinations](/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Each destination type requires a different set of properties. Switch between the above tabs for details.
+// TransferDestinationType The transaction destination type. Refer to [Transaction sources and destinations](https://www.cobo.com/developers/v2/guides/transactions/sources-and-destinations) for a detailed introduction about the supported sources and destinations for each transaction type. Each destination type requires a different set of properties. Switch between the above tabs for details.
type TransferDestinationType string
// List of TransferDestinationType
diff --git a/cobo_waas2/model_transfer_params.go b/cobo_waas2/model_transfer_params.go
index 87cc2ac..94fe723 100644
--- a/cobo_waas2/model_transfer_params.go
+++ b/cobo_waas2/model_transfer_params.go
@@ -22,7 +22,7 @@ type TransferParams struct {
// 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.
RequestId string `json:"request_id"`
Source TransferSource `json:"source"`
- // The token ID of the transferred 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). For transfers from Exchange Wallets, this property value represents the asset ID.
+ // The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). For transfers from Exchange Wallets, this property value represents the asset ID.
TokenId string `json:"token_id"`
Destination TransferDestination `json:"destination"`
// The custom category for you to identify your transactions.
diff --git a/cobo_waas2/model_travel_rule_deposit_exchanges_or_vasp.go b/cobo_waas2/model_travel_rule_deposit_exchanges_or_vasp.go
new file mode 100644
index 0000000..fe0b189
--- /dev/null
+++ b/cobo_waas2/model_travel_rule_deposit_exchanges_or_vasp.go
@@ -0,0 +1,279 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the TravelRuleDepositExchangesOrVASP type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TravelRuleDepositExchangesOrVASP{}
+
+// TravelRuleDepositExchangesOrVASP Required fields for `EXCHANGES_OR_VASP`.
+type TravelRuleDepositExchangesOrVASP struct {
+ DestinationWalletType DestinationWalletType `json:"destination_wallet_type"`
+ // The vendor code for exchanges or VASPs.
+ VendorCode string `json:"vendor_code"`
+ // The unique identifier of the VASP.
+ VendorVaspId string `json:"vendor_vasp_id"`
+ // The vendor name to be provided when selecting \"Others\" as the VASP case. This field allows customers to specify the name of a vendor not listed.
+ VendorVaspName *string `json:"vendor_vasp_name,omitempty"`
+ EntityInfo TravelRuleDepositExchangesOrVASPEntityInfo `json:"entity_info"`
+}
+
+type _TravelRuleDepositExchangesOrVASP TravelRuleDepositExchangesOrVASP
+
+// NewTravelRuleDepositExchangesOrVASP instantiates a new TravelRuleDepositExchangesOrVASP object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTravelRuleDepositExchangesOrVASP(destinationWalletType DestinationWalletType, vendorCode string, vendorVaspId string, entityInfo TravelRuleDepositExchangesOrVASPEntityInfo) *TravelRuleDepositExchangesOrVASP {
+ this := TravelRuleDepositExchangesOrVASP{}
+ this.DestinationWalletType = destinationWalletType
+ this.VendorCode = vendorCode
+ this.VendorVaspId = vendorVaspId
+ this.EntityInfo = entityInfo
+ return &this
+}
+
+// NewTravelRuleDepositExchangesOrVASPWithDefaults instantiates a new TravelRuleDepositExchangesOrVASP object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTravelRuleDepositExchangesOrVASPWithDefaults() *TravelRuleDepositExchangesOrVASP {
+ this := TravelRuleDepositExchangesOrVASP{}
+ return &this
+}
+
+// GetDestinationWalletType returns the DestinationWalletType field value
+func (o *TravelRuleDepositExchangesOrVASP) GetDestinationWalletType() DestinationWalletType {
+ if o == nil {
+ var ret DestinationWalletType
+ return ret
+ }
+
+ return o.DestinationWalletType
+}
+
+// GetDestinationWalletTypeOk returns a tuple with the DestinationWalletType field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositExchangesOrVASP) GetDestinationWalletTypeOk() (*DestinationWalletType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DestinationWalletType, true
+}
+
+// SetDestinationWalletType sets field value
+func (o *TravelRuleDepositExchangesOrVASP) SetDestinationWalletType(v DestinationWalletType) {
+ o.DestinationWalletType = v
+}
+
+// GetVendorCode returns the VendorCode field value
+func (o *TravelRuleDepositExchangesOrVASP) GetVendorCode() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.VendorCode
+}
+
+// GetVendorCodeOk returns a tuple with the VendorCode field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositExchangesOrVASP) GetVendorCodeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.VendorCode, true
+}
+
+// SetVendorCode sets field value
+func (o *TravelRuleDepositExchangesOrVASP) SetVendorCode(v string) {
+ o.VendorCode = v
+}
+
+// GetVendorVaspId returns the VendorVaspId field value
+func (o *TravelRuleDepositExchangesOrVASP) GetVendorVaspId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.VendorVaspId
+}
+
+// GetVendorVaspIdOk returns a tuple with the VendorVaspId field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositExchangesOrVASP) GetVendorVaspIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.VendorVaspId, true
+}
+
+// SetVendorVaspId sets field value
+func (o *TravelRuleDepositExchangesOrVASP) SetVendorVaspId(v string) {
+ o.VendorVaspId = v
+}
+
+// GetVendorVaspName returns the VendorVaspName field value if set, zero value otherwise.
+func (o *TravelRuleDepositExchangesOrVASP) GetVendorVaspName() string {
+ if o == nil || IsNil(o.VendorVaspName) {
+ var ret string
+ return ret
+ }
+ return *o.VendorVaspName
+}
+
+// GetVendorVaspNameOk returns a tuple with the VendorVaspName field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositExchangesOrVASP) GetVendorVaspNameOk() (*string, bool) {
+ if o == nil || IsNil(o.VendorVaspName) {
+ return nil, false
+ }
+ return o.VendorVaspName, true
+}
+
+// HasVendorVaspName returns a boolean if a field has been set.
+func (o *TravelRuleDepositExchangesOrVASP) HasVendorVaspName() bool {
+ if o != nil && !IsNil(o.VendorVaspName) {
+ return true
+ }
+
+ return false
+}
+
+// SetVendorVaspName gets a reference to the given string and assigns it to the VendorVaspName field.
+func (o *TravelRuleDepositExchangesOrVASP) SetVendorVaspName(v string) {
+ o.VendorVaspName = &v
+}
+
+// GetEntityInfo returns the EntityInfo field value
+func (o *TravelRuleDepositExchangesOrVASP) GetEntityInfo() TravelRuleDepositExchangesOrVASPEntityInfo {
+ if o == nil {
+ var ret TravelRuleDepositExchangesOrVASPEntityInfo
+ return ret
+ }
+
+ return o.EntityInfo
+}
+
+// GetEntityInfoOk returns a tuple with the EntityInfo field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositExchangesOrVASP) GetEntityInfoOk() (*TravelRuleDepositExchangesOrVASPEntityInfo, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.EntityInfo, true
+}
+
+// SetEntityInfo sets field value
+func (o *TravelRuleDepositExchangesOrVASP) SetEntityInfo(v TravelRuleDepositExchangesOrVASPEntityInfo) {
+ o.EntityInfo = v
+}
+
+func (o TravelRuleDepositExchangesOrVASP) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TravelRuleDepositExchangesOrVASP) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["destination_wallet_type"] = o.DestinationWalletType
+ toSerialize["vendor_code"] = o.VendorCode
+ toSerialize["vendor_vasp_id"] = o.VendorVaspId
+ if !IsNil(o.VendorVaspName) {
+ toSerialize["vendor_vasp_name"] = o.VendorVaspName
+ }
+ toSerialize["entity_info"] = o.EntityInfo
+ return toSerialize, nil
+}
+
+func (o *TravelRuleDepositExchangesOrVASP) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "destination_wallet_type",
+ "vendor_code",
+ "vendor_vasp_id",
+ "entity_info",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varTravelRuleDepositExchangesOrVASP := _TravelRuleDepositExchangesOrVASP{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varTravelRuleDepositExchangesOrVASP)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TravelRuleDepositExchangesOrVASP(varTravelRuleDepositExchangesOrVASP)
+
+ return err
+}
+
+type NullableTravelRuleDepositExchangesOrVASP struct {
+ value *TravelRuleDepositExchangesOrVASP
+ isSet bool
+}
+
+func (v NullableTravelRuleDepositExchangesOrVASP) Get() *TravelRuleDepositExchangesOrVASP {
+ return v.value
+}
+
+func (v *NullableTravelRuleDepositExchangesOrVASP) Set(val *TravelRuleDepositExchangesOrVASP) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTravelRuleDepositExchangesOrVASP) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTravelRuleDepositExchangesOrVASP) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTravelRuleDepositExchangesOrVASP(val *TravelRuleDepositExchangesOrVASP) *NullableTravelRuleDepositExchangesOrVASP {
+ return &NullableTravelRuleDepositExchangesOrVASP{value: val, isSet: true}
+}
+
+func (v NullableTravelRuleDepositExchangesOrVASP) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTravelRuleDepositExchangesOrVASP) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_travel_rule_deposit_exchanges_or_vasp_entity_info.go b/cobo_waas2/model_travel_rule_deposit_exchanges_or_vasp_entity_info.go
new file mode 100644
index 0000000..19594df
--- /dev/null
+++ b/cobo_waas2/model_travel_rule_deposit_exchanges_or_vasp_entity_info.go
@@ -0,0 +1,164 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// TravelRuleDepositExchangesOrVASPEntityInfo - struct for TravelRuleDepositExchangesOrVASPEntityInfo
+type TravelRuleDepositExchangesOrVASPEntityInfo struct {
+ TravelRuleDepositLegalEntity *TravelRuleDepositLegalEntity
+ TravelRuleDepositNaturalEntity *TravelRuleDepositNaturalEntity
+}
+
+// TravelRuleDepositLegalEntityAsTravelRuleDepositExchangesOrVASPEntityInfo is a convenience function that returns TravelRuleDepositLegalEntity wrapped in TravelRuleDepositExchangesOrVASPEntityInfo
+func TravelRuleDepositLegalEntityAsTravelRuleDepositExchangesOrVASPEntityInfo(v *TravelRuleDepositLegalEntity) TravelRuleDepositExchangesOrVASPEntityInfo {
+ return TravelRuleDepositExchangesOrVASPEntityInfo{
+ TravelRuleDepositLegalEntity: v,
+ }
+}
+
+// TravelRuleDepositNaturalEntityAsTravelRuleDepositExchangesOrVASPEntityInfo is a convenience function that returns TravelRuleDepositNaturalEntity wrapped in TravelRuleDepositExchangesOrVASPEntityInfo
+func TravelRuleDepositNaturalEntityAsTravelRuleDepositExchangesOrVASPEntityInfo(v *TravelRuleDepositNaturalEntity) TravelRuleDepositExchangesOrVASPEntityInfo {
+ return TravelRuleDepositExchangesOrVASPEntityInfo{
+ TravelRuleDepositNaturalEntity: v,
+ }
+}
+
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *TravelRuleDepositExchangesOrVASPEntityInfo) UnmarshalJSON(data []byte) error {
+ var err error
+ // use discriminator value to speed up the lookup
+ var jsonDict map[string]interface{}
+ err = newStrictDecoder(data).Decode(&jsonDict)
+ if err != nil {
+ return fmt.Errorf("failed to unmarshal JSON into map for the discriminator lookup")
+ }
+
+ // check if the discriminator value is 'LEGAL'
+ if jsonDict["selected_entity_type"] == "LEGAL" {
+ // try to unmarshal JSON data into TravelRuleDepositLegalEntity
+ err = json.Unmarshal(data, &dst.TravelRuleDepositLegalEntity)
+ if err == nil {
+ return nil // data stored in dst.TravelRuleDepositLegalEntity, return on the first match
+ } else {
+ dst.TravelRuleDepositLegalEntity = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleDepositExchangesOrVASPEntityInfo as TravelRuleDepositLegalEntity: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'NATURAL'
+ if jsonDict["selected_entity_type"] == "NATURAL" {
+ // try to unmarshal JSON data into TravelRuleDepositNaturalEntity
+ err = json.Unmarshal(data, &dst.TravelRuleDepositNaturalEntity)
+ if err == nil {
+ return nil // data stored in dst.TravelRuleDepositNaturalEntity, return on the first match
+ } else {
+ dst.TravelRuleDepositNaturalEntity = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleDepositExchangesOrVASPEntityInfo as TravelRuleDepositNaturalEntity: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'TravelRuleDepositLegalEntity'
+ if jsonDict["selected_entity_type"] == "TravelRuleDepositLegalEntity" {
+ // try to unmarshal JSON data into TravelRuleDepositLegalEntity
+ err = json.Unmarshal(data, &dst.TravelRuleDepositLegalEntity)
+ if err == nil {
+ return nil // data stored in dst.TravelRuleDepositLegalEntity, return on the first match
+ } else {
+ dst.TravelRuleDepositLegalEntity = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleDepositExchangesOrVASPEntityInfo as TravelRuleDepositLegalEntity: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'TravelRuleDepositNaturalEntity'
+ if jsonDict["selected_entity_type"] == "TravelRuleDepositNaturalEntity" {
+ // try to unmarshal JSON data into TravelRuleDepositNaturalEntity
+ err = json.Unmarshal(data, &dst.TravelRuleDepositNaturalEntity)
+ if err == nil {
+ return nil // data stored in dst.TravelRuleDepositNaturalEntity, return on the first match
+ } else {
+ dst.TravelRuleDepositNaturalEntity = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleDepositExchangesOrVASPEntityInfo as TravelRuleDepositNaturalEntity: %s", err.Error())
+ }
+ }
+
+ return nil
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src TravelRuleDepositExchangesOrVASPEntityInfo) MarshalJSON() ([]byte, error) {
+ if src.TravelRuleDepositLegalEntity != nil {
+ return json.Marshal(&src.TravelRuleDepositLegalEntity)
+ }
+
+ if src.TravelRuleDepositNaturalEntity != nil {
+ return json.Marshal(&src.TravelRuleDepositNaturalEntity)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *TravelRuleDepositExchangesOrVASPEntityInfo) GetActualInstance() (interface{}) {
+ if obj == nil {
+ return nil
+ }
+ if obj.TravelRuleDepositLegalEntity != nil {
+ return obj.TravelRuleDepositLegalEntity
+ }
+
+ if obj.TravelRuleDepositNaturalEntity != nil {
+ return obj.TravelRuleDepositNaturalEntity
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableTravelRuleDepositExchangesOrVASPEntityInfo struct {
+ value *TravelRuleDepositExchangesOrVASPEntityInfo
+ isSet bool
+}
+
+func (v NullableTravelRuleDepositExchangesOrVASPEntityInfo) Get() *TravelRuleDepositExchangesOrVASPEntityInfo {
+ return v.value
+}
+
+func (v *NullableTravelRuleDepositExchangesOrVASPEntityInfo) Set(val *TravelRuleDepositExchangesOrVASPEntityInfo) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTravelRuleDepositExchangesOrVASPEntityInfo) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTravelRuleDepositExchangesOrVASPEntityInfo) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTravelRuleDepositExchangesOrVASPEntityInfo(val *TravelRuleDepositExchangesOrVASPEntityInfo) *NullableTravelRuleDepositExchangesOrVASPEntityInfo {
+ return &NullableTravelRuleDepositExchangesOrVASPEntityInfo{value: val, isSet: true}
+}
+
+func (v NullableTravelRuleDepositExchangesOrVASPEntityInfo) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTravelRuleDepositExchangesOrVASPEntityInfo) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_travel_rule_deposit_legal_entity.go b/cobo_waas2/model_travel_rule_deposit_legal_entity.go
new file mode 100644
index 0000000..a206e10
--- /dev/null
+++ b/cobo_waas2/model_travel_rule_deposit_legal_entity.go
@@ -0,0 +1,260 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the TravelRuleDepositLegalEntity type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TravelRuleDepositLegalEntity{}
+
+// TravelRuleDepositLegalEntity Required fields for LEGAL entities.
+type TravelRuleDepositLegalEntity struct {
+ // Specifies the type of entity associated with the transaction.
+ SelectedEntityType string `json:"selected_entity_type"`
+ // The legal name of the entity.
+ LegalName string `json:"legal_name"`
+ // The incorporation date of the entity. This field is required when: - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`. - **Entity Type**: LEGAL. Otherwise, this field can be omitted.
+ DateOfIncorporation *string `json:"date_of_incorporation,omitempty"`
+ // The place of incorporation of the entity. This field is required when: - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`. - **Entity Type**: LEGAL. Otherwise, this field can be omitted.
+ PlaceOfIncorporation *string `json:"place_of_incorporation,omitempty"`
+}
+
+type _TravelRuleDepositLegalEntity TravelRuleDepositLegalEntity
+
+// NewTravelRuleDepositLegalEntity instantiates a new TravelRuleDepositLegalEntity object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTravelRuleDepositLegalEntity(selectedEntityType string, legalName string) *TravelRuleDepositLegalEntity {
+ this := TravelRuleDepositLegalEntity{}
+ this.SelectedEntityType = selectedEntityType
+ this.LegalName = legalName
+ return &this
+}
+
+// NewTravelRuleDepositLegalEntityWithDefaults instantiates a new TravelRuleDepositLegalEntity object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTravelRuleDepositLegalEntityWithDefaults() *TravelRuleDepositLegalEntity {
+ this := TravelRuleDepositLegalEntity{}
+ return &this
+}
+
+// GetSelectedEntityType returns the SelectedEntityType field value
+func (o *TravelRuleDepositLegalEntity) GetSelectedEntityType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.SelectedEntityType
+}
+
+// GetSelectedEntityTypeOk returns a tuple with the SelectedEntityType field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositLegalEntity) GetSelectedEntityTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.SelectedEntityType, true
+}
+
+// SetSelectedEntityType sets field value
+func (o *TravelRuleDepositLegalEntity) SetSelectedEntityType(v string) {
+ o.SelectedEntityType = v
+}
+
+// GetLegalName returns the LegalName field value
+func (o *TravelRuleDepositLegalEntity) GetLegalName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.LegalName
+}
+
+// GetLegalNameOk returns a tuple with the LegalName field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositLegalEntity) GetLegalNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.LegalName, true
+}
+
+// SetLegalName sets field value
+func (o *TravelRuleDepositLegalEntity) SetLegalName(v string) {
+ o.LegalName = v
+}
+
+// GetDateOfIncorporation returns the DateOfIncorporation field value if set, zero value otherwise.
+func (o *TravelRuleDepositLegalEntity) GetDateOfIncorporation() string {
+ if o == nil || IsNil(o.DateOfIncorporation) {
+ var ret string
+ return ret
+ }
+ return *o.DateOfIncorporation
+}
+
+// GetDateOfIncorporationOk returns a tuple with the DateOfIncorporation field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositLegalEntity) GetDateOfIncorporationOk() (*string, bool) {
+ if o == nil || IsNil(o.DateOfIncorporation) {
+ return nil, false
+ }
+ return o.DateOfIncorporation, true
+}
+
+// HasDateOfIncorporation returns a boolean if a field has been set.
+func (o *TravelRuleDepositLegalEntity) HasDateOfIncorporation() bool {
+ if o != nil && !IsNil(o.DateOfIncorporation) {
+ return true
+ }
+
+ return false
+}
+
+// SetDateOfIncorporation gets a reference to the given string and assigns it to the DateOfIncorporation field.
+func (o *TravelRuleDepositLegalEntity) SetDateOfIncorporation(v string) {
+ o.DateOfIncorporation = &v
+}
+
+// GetPlaceOfIncorporation returns the PlaceOfIncorporation field value if set, zero value otherwise.
+func (o *TravelRuleDepositLegalEntity) GetPlaceOfIncorporation() string {
+ if o == nil || IsNil(o.PlaceOfIncorporation) {
+ var ret string
+ return ret
+ }
+ return *o.PlaceOfIncorporation
+}
+
+// GetPlaceOfIncorporationOk returns a tuple with the PlaceOfIncorporation field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositLegalEntity) GetPlaceOfIncorporationOk() (*string, bool) {
+ if o == nil || IsNil(o.PlaceOfIncorporation) {
+ return nil, false
+ }
+ return o.PlaceOfIncorporation, true
+}
+
+// HasPlaceOfIncorporation returns a boolean if a field has been set.
+func (o *TravelRuleDepositLegalEntity) HasPlaceOfIncorporation() bool {
+ if o != nil && !IsNil(o.PlaceOfIncorporation) {
+ return true
+ }
+
+ return false
+}
+
+// SetPlaceOfIncorporation gets a reference to the given string and assigns it to the PlaceOfIncorporation field.
+func (o *TravelRuleDepositLegalEntity) SetPlaceOfIncorporation(v string) {
+ o.PlaceOfIncorporation = &v
+}
+
+func (o TravelRuleDepositLegalEntity) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TravelRuleDepositLegalEntity) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["selected_entity_type"] = o.SelectedEntityType
+ toSerialize["legal_name"] = o.LegalName
+ if !IsNil(o.DateOfIncorporation) {
+ toSerialize["date_of_incorporation"] = o.DateOfIncorporation
+ }
+ if !IsNil(o.PlaceOfIncorporation) {
+ toSerialize["place_of_incorporation"] = o.PlaceOfIncorporation
+ }
+ return toSerialize, nil
+}
+
+func (o *TravelRuleDepositLegalEntity) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "selected_entity_type",
+ "legal_name",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varTravelRuleDepositLegalEntity := _TravelRuleDepositLegalEntity{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varTravelRuleDepositLegalEntity)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TravelRuleDepositLegalEntity(varTravelRuleDepositLegalEntity)
+
+ return err
+}
+
+type NullableTravelRuleDepositLegalEntity struct {
+ value *TravelRuleDepositLegalEntity
+ isSet bool
+}
+
+func (v NullableTravelRuleDepositLegalEntity) Get() *TravelRuleDepositLegalEntity {
+ return v.value
+}
+
+func (v *NullableTravelRuleDepositLegalEntity) Set(val *TravelRuleDepositLegalEntity) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTravelRuleDepositLegalEntity) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTravelRuleDepositLegalEntity) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTravelRuleDepositLegalEntity(val *TravelRuleDepositLegalEntity) *NullableTravelRuleDepositLegalEntity {
+ return &NullableTravelRuleDepositLegalEntity{value: val, isSet: true}
+}
+
+func (v NullableTravelRuleDepositLegalEntity) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTravelRuleDepositLegalEntity) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_travel_rule_deposit_natural_entity.go b/cobo_waas2/model_travel_rule_deposit_natural_entity.go
new file mode 100644
index 0000000..56a0cec
--- /dev/null
+++ b/cobo_waas2/model_travel_rule_deposit_natural_entity.go
@@ -0,0 +1,289 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the TravelRuleDepositNaturalEntity type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TravelRuleDepositNaturalEntity{}
+
+// TravelRuleDepositNaturalEntity Required fields for NATURAL entities.
+type TravelRuleDepositNaturalEntity struct {
+ // Specifies the type of entity associated with the transaction.
+ SelectedEntityType string `json:"selected_entity_type"`
+ // The first name of the user.
+ FirstName string `json:"first_name"`
+ // The last name of the user.
+ LastName string `json:"last_name"`
+ // The date of birth of the user. This field is required when: - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`. - **Entity Type**: NATURAL. Otherwise, this field can be omitted.
+ DateOfBirth *string `json:"date_of_birth,omitempty"`
+ // The place of birth of the user. This field is required when: - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`. - **Entity Type**: NATURAL. Otherwise, this field can be omitted.
+ PlaceOfBirth *string `json:"place_of_birth,omitempty"`
+}
+
+type _TravelRuleDepositNaturalEntity TravelRuleDepositNaturalEntity
+
+// NewTravelRuleDepositNaturalEntity instantiates a new TravelRuleDepositNaturalEntity object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTravelRuleDepositNaturalEntity(selectedEntityType string, firstName string, lastName string) *TravelRuleDepositNaturalEntity {
+ this := TravelRuleDepositNaturalEntity{}
+ this.SelectedEntityType = selectedEntityType
+ this.FirstName = firstName
+ this.LastName = lastName
+ return &this
+}
+
+// NewTravelRuleDepositNaturalEntityWithDefaults instantiates a new TravelRuleDepositNaturalEntity object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTravelRuleDepositNaturalEntityWithDefaults() *TravelRuleDepositNaturalEntity {
+ this := TravelRuleDepositNaturalEntity{}
+ return &this
+}
+
+// GetSelectedEntityType returns the SelectedEntityType field value
+func (o *TravelRuleDepositNaturalEntity) GetSelectedEntityType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.SelectedEntityType
+}
+
+// GetSelectedEntityTypeOk returns a tuple with the SelectedEntityType field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositNaturalEntity) GetSelectedEntityTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.SelectedEntityType, true
+}
+
+// SetSelectedEntityType sets field value
+func (o *TravelRuleDepositNaturalEntity) SetSelectedEntityType(v string) {
+ o.SelectedEntityType = v
+}
+
+// GetFirstName returns the FirstName field value
+func (o *TravelRuleDepositNaturalEntity) GetFirstName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.FirstName
+}
+
+// GetFirstNameOk returns a tuple with the FirstName field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositNaturalEntity) GetFirstNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.FirstName, true
+}
+
+// SetFirstName sets field value
+func (o *TravelRuleDepositNaturalEntity) SetFirstName(v string) {
+ o.FirstName = v
+}
+
+// GetLastName returns the LastName field value
+func (o *TravelRuleDepositNaturalEntity) GetLastName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.LastName
+}
+
+// GetLastNameOk returns a tuple with the LastName field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositNaturalEntity) GetLastNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.LastName, true
+}
+
+// SetLastName sets field value
+func (o *TravelRuleDepositNaturalEntity) SetLastName(v string) {
+ o.LastName = v
+}
+
+// GetDateOfBirth returns the DateOfBirth field value if set, zero value otherwise.
+func (o *TravelRuleDepositNaturalEntity) GetDateOfBirth() string {
+ if o == nil || IsNil(o.DateOfBirth) {
+ var ret string
+ return ret
+ }
+ return *o.DateOfBirth
+}
+
+// GetDateOfBirthOk returns a tuple with the DateOfBirth field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositNaturalEntity) GetDateOfBirthOk() (*string, bool) {
+ if o == nil || IsNil(o.DateOfBirth) {
+ return nil, false
+ }
+ return o.DateOfBirth, true
+}
+
+// HasDateOfBirth returns a boolean if a field has been set.
+func (o *TravelRuleDepositNaturalEntity) HasDateOfBirth() bool {
+ if o != nil && !IsNil(o.DateOfBirth) {
+ return true
+ }
+
+ return false
+}
+
+// SetDateOfBirth gets a reference to the given string and assigns it to the DateOfBirth field.
+func (o *TravelRuleDepositNaturalEntity) SetDateOfBirth(v string) {
+ o.DateOfBirth = &v
+}
+
+// GetPlaceOfBirth returns the PlaceOfBirth field value if set, zero value otherwise.
+func (o *TravelRuleDepositNaturalEntity) GetPlaceOfBirth() string {
+ if o == nil || IsNil(o.PlaceOfBirth) {
+ var ret string
+ return ret
+ }
+ return *o.PlaceOfBirth
+}
+
+// GetPlaceOfBirthOk returns a tuple with the PlaceOfBirth field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositNaturalEntity) GetPlaceOfBirthOk() (*string, bool) {
+ if o == nil || IsNil(o.PlaceOfBirth) {
+ return nil, false
+ }
+ return o.PlaceOfBirth, true
+}
+
+// HasPlaceOfBirth returns a boolean if a field has been set.
+func (o *TravelRuleDepositNaturalEntity) HasPlaceOfBirth() bool {
+ if o != nil && !IsNil(o.PlaceOfBirth) {
+ return true
+ }
+
+ return false
+}
+
+// SetPlaceOfBirth gets a reference to the given string and assigns it to the PlaceOfBirth field.
+func (o *TravelRuleDepositNaturalEntity) SetPlaceOfBirth(v string) {
+ o.PlaceOfBirth = &v
+}
+
+func (o TravelRuleDepositNaturalEntity) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TravelRuleDepositNaturalEntity) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["selected_entity_type"] = o.SelectedEntityType
+ toSerialize["first_name"] = o.FirstName
+ toSerialize["last_name"] = o.LastName
+ if !IsNil(o.DateOfBirth) {
+ toSerialize["date_of_birth"] = o.DateOfBirth
+ }
+ if !IsNil(o.PlaceOfBirth) {
+ toSerialize["place_of_birth"] = o.PlaceOfBirth
+ }
+ return toSerialize, nil
+}
+
+func (o *TravelRuleDepositNaturalEntity) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "selected_entity_type",
+ "first_name",
+ "last_name",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varTravelRuleDepositNaturalEntity := _TravelRuleDepositNaturalEntity{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varTravelRuleDepositNaturalEntity)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TravelRuleDepositNaturalEntity(varTravelRuleDepositNaturalEntity)
+
+ return err
+}
+
+type NullableTravelRuleDepositNaturalEntity struct {
+ value *TravelRuleDepositNaturalEntity
+ isSet bool
+}
+
+func (v NullableTravelRuleDepositNaturalEntity) Get() *TravelRuleDepositNaturalEntity {
+ return v.value
+}
+
+func (v *NullableTravelRuleDepositNaturalEntity) Set(val *TravelRuleDepositNaturalEntity) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTravelRuleDepositNaturalEntity) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTravelRuleDepositNaturalEntity) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTravelRuleDepositNaturalEntity(val *TravelRuleDepositNaturalEntity) *NullableTravelRuleDepositNaturalEntity {
+ return &NullableTravelRuleDepositNaturalEntity{value: val, isSet: true}
+}
+
+func (v NullableTravelRuleDepositNaturalEntity) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTravelRuleDepositNaturalEntity) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_travel_rule_deposit_request.go b/cobo_waas2/model_travel_rule_deposit_request.go
new file mode 100644
index 0000000..3209b13
--- /dev/null
+++ b/cobo_waas2/model_travel_rule_deposit_request.go
@@ -0,0 +1,185 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the TravelRuleDepositRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TravelRuleDepositRequest{}
+
+// TravelRuleDepositRequest struct for TravelRuleDepositRequest
+type TravelRuleDepositRequest struct {
+ // The transaction ID.
+ TransactionId string `json:"transaction_id"`
+ TravelRuleInfo TravelRuleDepositRequestTravelRuleInfo `json:"travel_rule_info"`
+}
+
+type _TravelRuleDepositRequest TravelRuleDepositRequest
+
+// NewTravelRuleDepositRequest instantiates a new TravelRuleDepositRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTravelRuleDepositRequest(transactionId string, travelRuleInfo TravelRuleDepositRequestTravelRuleInfo) *TravelRuleDepositRequest {
+ this := TravelRuleDepositRequest{}
+ this.TransactionId = transactionId
+ this.TravelRuleInfo = travelRuleInfo
+ return &this
+}
+
+// NewTravelRuleDepositRequestWithDefaults instantiates a new TravelRuleDepositRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTravelRuleDepositRequestWithDefaults() *TravelRuleDepositRequest {
+ this := TravelRuleDepositRequest{}
+ return &this
+}
+
+// GetTransactionId returns the TransactionId field value
+func (o *TravelRuleDepositRequest) GetTransactionId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.TransactionId
+}
+
+// GetTransactionIdOk returns a tuple with the TransactionId field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositRequest) GetTransactionIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TransactionId, true
+}
+
+// SetTransactionId sets field value
+func (o *TravelRuleDepositRequest) SetTransactionId(v string) {
+ o.TransactionId = v
+}
+
+// GetTravelRuleInfo returns the TravelRuleInfo field value
+func (o *TravelRuleDepositRequest) GetTravelRuleInfo() TravelRuleDepositRequestTravelRuleInfo {
+ if o == nil {
+ var ret TravelRuleDepositRequestTravelRuleInfo
+ return ret
+ }
+
+ return o.TravelRuleInfo
+}
+
+// GetTravelRuleInfoOk returns a tuple with the TravelRuleInfo field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleDepositRequest) GetTravelRuleInfoOk() (*TravelRuleDepositRequestTravelRuleInfo, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TravelRuleInfo, true
+}
+
+// SetTravelRuleInfo sets field value
+func (o *TravelRuleDepositRequest) SetTravelRuleInfo(v TravelRuleDepositRequestTravelRuleInfo) {
+ o.TravelRuleInfo = v
+}
+
+func (o TravelRuleDepositRequest) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TravelRuleDepositRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["transaction_id"] = o.TransactionId
+ toSerialize["travel_rule_info"] = o.TravelRuleInfo
+ return toSerialize, nil
+}
+
+func (o *TravelRuleDepositRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "transaction_id",
+ "travel_rule_info",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varTravelRuleDepositRequest := _TravelRuleDepositRequest{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varTravelRuleDepositRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TravelRuleDepositRequest(varTravelRuleDepositRequest)
+
+ return err
+}
+
+type NullableTravelRuleDepositRequest struct {
+ value *TravelRuleDepositRequest
+ isSet bool
+}
+
+func (v NullableTravelRuleDepositRequest) Get() *TravelRuleDepositRequest {
+ return v.value
+}
+
+func (v *NullableTravelRuleDepositRequest) Set(val *TravelRuleDepositRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTravelRuleDepositRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTravelRuleDepositRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTravelRuleDepositRequest(val *TravelRuleDepositRequest) *NullableTravelRuleDepositRequest {
+ return &NullableTravelRuleDepositRequest{value: val, isSet: true}
+}
+
+func (v NullableTravelRuleDepositRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTravelRuleDepositRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_travel_rule_deposit_request_travel_rule_info.go b/cobo_waas2/model_travel_rule_deposit_request_travel_rule_info.go
new file mode 100644
index 0000000..c375070
--- /dev/null
+++ b/cobo_waas2/model_travel_rule_deposit_request_travel_rule_info.go
@@ -0,0 +1,164 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// TravelRuleDepositRequestTravelRuleInfo - struct for TravelRuleDepositRequestTravelRuleInfo
+type TravelRuleDepositRequestTravelRuleInfo struct {
+ SelfCustodyWallet *SelfCustodyWallet
+ TravelRuleDepositExchangesOrVASP *TravelRuleDepositExchangesOrVASP
+}
+
+// SelfCustodyWalletAsTravelRuleDepositRequestTravelRuleInfo is a convenience function that returns SelfCustodyWallet wrapped in TravelRuleDepositRequestTravelRuleInfo
+func SelfCustodyWalletAsTravelRuleDepositRequestTravelRuleInfo(v *SelfCustodyWallet) TravelRuleDepositRequestTravelRuleInfo {
+ return TravelRuleDepositRequestTravelRuleInfo{
+ SelfCustodyWallet: v,
+ }
+}
+
+// TravelRuleDepositExchangesOrVASPAsTravelRuleDepositRequestTravelRuleInfo is a convenience function that returns TravelRuleDepositExchangesOrVASP wrapped in TravelRuleDepositRequestTravelRuleInfo
+func TravelRuleDepositExchangesOrVASPAsTravelRuleDepositRequestTravelRuleInfo(v *TravelRuleDepositExchangesOrVASP) TravelRuleDepositRequestTravelRuleInfo {
+ return TravelRuleDepositRequestTravelRuleInfo{
+ TravelRuleDepositExchangesOrVASP: v,
+ }
+}
+
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *TravelRuleDepositRequestTravelRuleInfo) UnmarshalJSON(data []byte) error {
+ var err error
+ // use discriminator value to speed up the lookup
+ var jsonDict map[string]interface{}
+ err = newStrictDecoder(data).Decode(&jsonDict)
+ if err != nil {
+ return fmt.Errorf("failed to unmarshal JSON into map for the discriminator lookup")
+ }
+
+ // check if the discriminator value is 'EXCHANGES_OR_VASP'
+ if jsonDict["destination_wallet_type"] == "EXCHANGES_OR_VASP" {
+ // try to unmarshal JSON data into TravelRuleDepositExchangesOrVASP
+ err = json.Unmarshal(data, &dst.TravelRuleDepositExchangesOrVASP)
+ if err == nil {
+ return nil // data stored in dst.TravelRuleDepositExchangesOrVASP, return on the first match
+ } else {
+ dst.TravelRuleDepositExchangesOrVASP = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleDepositRequestTravelRuleInfo as TravelRuleDepositExchangesOrVASP: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'SELF_CUSTODY_WALLET'
+ if jsonDict["destination_wallet_type"] == "SELF_CUSTODY_WALLET" {
+ // try to unmarshal JSON data into SelfCustodyWallet
+ err = json.Unmarshal(data, &dst.SelfCustodyWallet)
+ if err == nil {
+ return nil // data stored in dst.SelfCustodyWallet, return on the first match
+ } else {
+ dst.SelfCustodyWallet = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleDepositRequestTravelRuleInfo as SelfCustodyWallet: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'SelfCustodyWallet'
+ if jsonDict["destination_wallet_type"] == "SelfCustodyWallet" {
+ // try to unmarshal JSON data into SelfCustodyWallet
+ err = json.Unmarshal(data, &dst.SelfCustodyWallet)
+ if err == nil {
+ return nil // data stored in dst.SelfCustodyWallet, return on the first match
+ } else {
+ dst.SelfCustodyWallet = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleDepositRequestTravelRuleInfo as SelfCustodyWallet: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'TravelRuleDepositExchangesOrVASP'
+ if jsonDict["destination_wallet_type"] == "TravelRuleDepositExchangesOrVASP" {
+ // try to unmarshal JSON data into TravelRuleDepositExchangesOrVASP
+ err = json.Unmarshal(data, &dst.TravelRuleDepositExchangesOrVASP)
+ if err == nil {
+ return nil // data stored in dst.TravelRuleDepositExchangesOrVASP, return on the first match
+ } else {
+ dst.TravelRuleDepositExchangesOrVASP = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleDepositRequestTravelRuleInfo as TravelRuleDepositExchangesOrVASP: %s", err.Error())
+ }
+ }
+
+ return nil
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src TravelRuleDepositRequestTravelRuleInfo) MarshalJSON() ([]byte, error) {
+ if src.SelfCustodyWallet != nil {
+ return json.Marshal(&src.SelfCustodyWallet)
+ }
+
+ if src.TravelRuleDepositExchangesOrVASP != nil {
+ return json.Marshal(&src.TravelRuleDepositExchangesOrVASP)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *TravelRuleDepositRequestTravelRuleInfo) GetActualInstance() (interface{}) {
+ if obj == nil {
+ return nil
+ }
+ if obj.SelfCustodyWallet != nil {
+ return obj.SelfCustodyWallet
+ }
+
+ if obj.TravelRuleDepositExchangesOrVASP != nil {
+ return obj.TravelRuleDepositExchangesOrVASP
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableTravelRuleDepositRequestTravelRuleInfo struct {
+ value *TravelRuleDepositRequestTravelRuleInfo
+ isSet bool
+}
+
+func (v NullableTravelRuleDepositRequestTravelRuleInfo) Get() *TravelRuleDepositRequestTravelRuleInfo {
+ return v.value
+}
+
+func (v *NullableTravelRuleDepositRequestTravelRuleInfo) Set(val *TravelRuleDepositRequestTravelRuleInfo) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTravelRuleDepositRequestTravelRuleInfo) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTravelRuleDepositRequestTravelRuleInfo) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTravelRuleDepositRequestTravelRuleInfo(val *TravelRuleDepositRequestTravelRuleInfo) *NullableTravelRuleDepositRequestTravelRuleInfo {
+ return &NullableTravelRuleDepositRequestTravelRuleInfo{value: val, isSet: true}
+}
+
+func (v NullableTravelRuleDepositRequestTravelRuleInfo) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTravelRuleDepositRequestTravelRuleInfo) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_travel_rule_withdraw_exchanges_or_vasp.go b/cobo_waas2/model_travel_rule_withdraw_exchanges_or_vasp.go
new file mode 100644
index 0000000..de4f213
--- /dev/null
+++ b/cobo_waas2/model_travel_rule_withdraw_exchanges_or_vasp.go
@@ -0,0 +1,242 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the TravelRuleWithdrawExchangesOrVASP type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TravelRuleWithdrawExchangesOrVASP{}
+
+// TravelRuleWithdrawExchangesOrVASP Required fields for `EXCHANGES_OR_VASP`.
+type TravelRuleWithdrawExchangesOrVASP struct {
+ DestinationWalletType DestinationWalletType `json:"destination_wallet_type"`
+ // The vendor code for exchanges or VASPs.
+ VendorCode string `json:"vendor_code"`
+ // The unique identifier of the VASP.
+ VendorVaspId string `json:"vendor_vasp_id"`
+ EntityInfo TravelRuleWithdrawExchangesOrVASPEntityInfo `json:"entity_info"`
+}
+
+type _TravelRuleWithdrawExchangesOrVASP TravelRuleWithdrawExchangesOrVASP
+
+// NewTravelRuleWithdrawExchangesOrVASP instantiates a new TravelRuleWithdrawExchangesOrVASP object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTravelRuleWithdrawExchangesOrVASP(destinationWalletType DestinationWalletType, vendorCode string, vendorVaspId string, entityInfo TravelRuleWithdrawExchangesOrVASPEntityInfo) *TravelRuleWithdrawExchangesOrVASP {
+ this := TravelRuleWithdrawExchangesOrVASP{}
+ this.DestinationWalletType = destinationWalletType
+ this.VendorCode = vendorCode
+ this.VendorVaspId = vendorVaspId
+ this.EntityInfo = entityInfo
+ return &this
+}
+
+// NewTravelRuleWithdrawExchangesOrVASPWithDefaults instantiates a new TravelRuleWithdrawExchangesOrVASP object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTravelRuleWithdrawExchangesOrVASPWithDefaults() *TravelRuleWithdrawExchangesOrVASP {
+ this := TravelRuleWithdrawExchangesOrVASP{}
+ return &this
+}
+
+// GetDestinationWalletType returns the DestinationWalletType field value
+func (o *TravelRuleWithdrawExchangesOrVASP) GetDestinationWalletType() DestinationWalletType {
+ if o == nil {
+ var ret DestinationWalletType
+ return ret
+ }
+
+ return o.DestinationWalletType
+}
+
+// GetDestinationWalletTypeOk returns a tuple with the DestinationWalletType field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawExchangesOrVASP) GetDestinationWalletTypeOk() (*DestinationWalletType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DestinationWalletType, true
+}
+
+// SetDestinationWalletType sets field value
+func (o *TravelRuleWithdrawExchangesOrVASP) SetDestinationWalletType(v DestinationWalletType) {
+ o.DestinationWalletType = v
+}
+
+// GetVendorCode returns the VendorCode field value
+func (o *TravelRuleWithdrawExchangesOrVASP) GetVendorCode() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.VendorCode
+}
+
+// GetVendorCodeOk returns a tuple with the VendorCode field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawExchangesOrVASP) GetVendorCodeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.VendorCode, true
+}
+
+// SetVendorCode sets field value
+func (o *TravelRuleWithdrawExchangesOrVASP) SetVendorCode(v string) {
+ o.VendorCode = v
+}
+
+// GetVendorVaspId returns the VendorVaspId field value
+func (o *TravelRuleWithdrawExchangesOrVASP) GetVendorVaspId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.VendorVaspId
+}
+
+// GetVendorVaspIdOk returns a tuple with the VendorVaspId field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawExchangesOrVASP) GetVendorVaspIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.VendorVaspId, true
+}
+
+// SetVendorVaspId sets field value
+func (o *TravelRuleWithdrawExchangesOrVASP) SetVendorVaspId(v string) {
+ o.VendorVaspId = v
+}
+
+// GetEntityInfo returns the EntityInfo field value
+func (o *TravelRuleWithdrawExchangesOrVASP) GetEntityInfo() TravelRuleWithdrawExchangesOrVASPEntityInfo {
+ if o == nil {
+ var ret TravelRuleWithdrawExchangesOrVASPEntityInfo
+ return ret
+ }
+
+ return o.EntityInfo
+}
+
+// GetEntityInfoOk returns a tuple with the EntityInfo field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawExchangesOrVASP) GetEntityInfoOk() (*TravelRuleWithdrawExchangesOrVASPEntityInfo, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.EntityInfo, true
+}
+
+// SetEntityInfo sets field value
+func (o *TravelRuleWithdrawExchangesOrVASP) SetEntityInfo(v TravelRuleWithdrawExchangesOrVASPEntityInfo) {
+ o.EntityInfo = v
+}
+
+func (o TravelRuleWithdrawExchangesOrVASP) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TravelRuleWithdrawExchangesOrVASP) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["destination_wallet_type"] = o.DestinationWalletType
+ toSerialize["vendor_code"] = o.VendorCode
+ toSerialize["vendor_vasp_id"] = o.VendorVaspId
+ toSerialize["entity_info"] = o.EntityInfo
+ return toSerialize, nil
+}
+
+func (o *TravelRuleWithdrawExchangesOrVASP) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "destination_wallet_type",
+ "vendor_code",
+ "vendor_vasp_id",
+ "entity_info",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varTravelRuleWithdrawExchangesOrVASP := _TravelRuleWithdrawExchangesOrVASP{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varTravelRuleWithdrawExchangesOrVASP)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TravelRuleWithdrawExchangesOrVASP(varTravelRuleWithdrawExchangesOrVASP)
+
+ return err
+}
+
+type NullableTravelRuleWithdrawExchangesOrVASP struct {
+ value *TravelRuleWithdrawExchangesOrVASP
+ isSet bool
+}
+
+func (v NullableTravelRuleWithdrawExchangesOrVASP) Get() *TravelRuleWithdrawExchangesOrVASP {
+ return v.value
+}
+
+func (v *NullableTravelRuleWithdrawExchangesOrVASP) Set(val *TravelRuleWithdrawExchangesOrVASP) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTravelRuleWithdrawExchangesOrVASP) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTravelRuleWithdrawExchangesOrVASP) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTravelRuleWithdrawExchangesOrVASP(val *TravelRuleWithdrawExchangesOrVASP) *NullableTravelRuleWithdrawExchangesOrVASP {
+ return &NullableTravelRuleWithdrawExchangesOrVASP{value: val, isSet: true}
+}
+
+func (v NullableTravelRuleWithdrawExchangesOrVASP) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTravelRuleWithdrawExchangesOrVASP) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_travel_rule_withdraw_exchanges_or_vasp_entity_info.go b/cobo_waas2/model_travel_rule_withdraw_exchanges_or_vasp_entity_info.go
new file mode 100644
index 0000000..910a531
--- /dev/null
+++ b/cobo_waas2/model_travel_rule_withdraw_exchanges_or_vasp_entity_info.go
@@ -0,0 +1,164 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// TravelRuleWithdrawExchangesOrVASPEntityInfo - struct for TravelRuleWithdrawExchangesOrVASPEntityInfo
+type TravelRuleWithdrawExchangesOrVASPEntityInfo struct {
+ TravelRuleWithdrawLegalEntity *TravelRuleWithdrawLegalEntity
+ TravelRuleWithdrawNaturalEntity *TravelRuleWithdrawNaturalEntity
+}
+
+// TravelRuleWithdrawLegalEntityAsTravelRuleWithdrawExchangesOrVASPEntityInfo is a convenience function that returns TravelRuleWithdrawLegalEntity wrapped in TravelRuleWithdrawExchangesOrVASPEntityInfo
+func TravelRuleWithdrawLegalEntityAsTravelRuleWithdrawExchangesOrVASPEntityInfo(v *TravelRuleWithdrawLegalEntity) TravelRuleWithdrawExchangesOrVASPEntityInfo {
+ return TravelRuleWithdrawExchangesOrVASPEntityInfo{
+ TravelRuleWithdrawLegalEntity: v,
+ }
+}
+
+// TravelRuleWithdrawNaturalEntityAsTravelRuleWithdrawExchangesOrVASPEntityInfo is a convenience function that returns TravelRuleWithdrawNaturalEntity wrapped in TravelRuleWithdrawExchangesOrVASPEntityInfo
+func TravelRuleWithdrawNaturalEntityAsTravelRuleWithdrawExchangesOrVASPEntityInfo(v *TravelRuleWithdrawNaturalEntity) TravelRuleWithdrawExchangesOrVASPEntityInfo {
+ return TravelRuleWithdrawExchangesOrVASPEntityInfo{
+ TravelRuleWithdrawNaturalEntity: v,
+ }
+}
+
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *TravelRuleWithdrawExchangesOrVASPEntityInfo) UnmarshalJSON(data []byte) error {
+ var err error
+ // use discriminator value to speed up the lookup
+ var jsonDict map[string]interface{}
+ err = newStrictDecoder(data).Decode(&jsonDict)
+ if err != nil {
+ return fmt.Errorf("failed to unmarshal JSON into map for the discriminator lookup")
+ }
+
+ // check if the discriminator value is 'LEGAL'
+ if jsonDict["selected_entity_type"] == "LEGAL" {
+ // try to unmarshal JSON data into TravelRuleWithdrawLegalEntity
+ err = json.Unmarshal(data, &dst.TravelRuleWithdrawLegalEntity)
+ if err == nil {
+ return nil // data stored in dst.TravelRuleWithdrawLegalEntity, return on the first match
+ } else {
+ dst.TravelRuleWithdrawLegalEntity = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleWithdrawExchangesOrVASPEntityInfo as TravelRuleWithdrawLegalEntity: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'NATURAL'
+ if jsonDict["selected_entity_type"] == "NATURAL" {
+ // try to unmarshal JSON data into TravelRuleWithdrawNaturalEntity
+ err = json.Unmarshal(data, &dst.TravelRuleWithdrawNaturalEntity)
+ if err == nil {
+ return nil // data stored in dst.TravelRuleWithdrawNaturalEntity, return on the first match
+ } else {
+ dst.TravelRuleWithdrawNaturalEntity = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleWithdrawExchangesOrVASPEntityInfo as TravelRuleWithdrawNaturalEntity: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'TravelRuleWithdrawLegalEntity'
+ if jsonDict["selected_entity_type"] == "TravelRuleWithdrawLegalEntity" {
+ // try to unmarshal JSON data into TravelRuleWithdrawLegalEntity
+ err = json.Unmarshal(data, &dst.TravelRuleWithdrawLegalEntity)
+ if err == nil {
+ return nil // data stored in dst.TravelRuleWithdrawLegalEntity, return on the first match
+ } else {
+ dst.TravelRuleWithdrawLegalEntity = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleWithdrawExchangesOrVASPEntityInfo as TravelRuleWithdrawLegalEntity: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'TravelRuleWithdrawNaturalEntity'
+ if jsonDict["selected_entity_type"] == "TravelRuleWithdrawNaturalEntity" {
+ // try to unmarshal JSON data into TravelRuleWithdrawNaturalEntity
+ err = json.Unmarshal(data, &dst.TravelRuleWithdrawNaturalEntity)
+ if err == nil {
+ return nil // data stored in dst.TravelRuleWithdrawNaturalEntity, return on the first match
+ } else {
+ dst.TravelRuleWithdrawNaturalEntity = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleWithdrawExchangesOrVASPEntityInfo as TravelRuleWithdrawNaturalEntity: %s", err.Error())
+ }
+ }
+
+ return nil
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src TravelRuleWithdrawExchangesOrVASPEntityInfo) MarshalJSON() ([]byte, error) {
+ if src.TravelRuleWithdrawLegalEntity != nil {
+ return json.Marshal(&src.TravelRuleWithdrawLegalEntity)
+ }
+
+ if src.TravelRuleWithdrawNaturalEntity != nil {
+ return json.Marshal(&src.TravelRuleWithdrawNaturalEntity)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetActualInstance() (interface{}) {
+ if obj == nil {
+ return nil
+ }
+ if obj.TravelRuleWithdrawLegalEntity != nil {
+ return obj.TravelRuleWithdrawLegalEntity
+ }
+
+ if obj.TravelRuleWithdrawNaturalEntity != nil {
+ return obj.TravelRuleWithdrawNaturalEntity
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableTravelRuleWithdrawExchangesOrVASPEntityInfo struct {
+ value *TravelRuleWithdrawExchangesOrVASPEntityInfo
+ isSet bool
+}
+
+func (v NullableTravelRuleWithdrawExchangesOrVASPEntityInfo) Get() *TravelRuleWithdrawExchangesOrVASPEntityInfo {
+ return v.value
+}
+
+func (v *NullableTravelRuleWithdrawExchangesOrVASPEntityInfo) Set(val *TravelRuleWithdrawExchangesOrVASPEntityInfo) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTravelRuleWithdrawExchangesOrVASPEntityInfo) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTravelRuleWithdrawExchangesOrVASPEntityInfo) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTravelRuleWithdrawExchangesOrVASPEntityInfo(val *TravelRuleWithdrawExchangesOrVASPEntityInfo) *NullableTravelRuleWithdrawExchangesOrVASPEntityInfo {
+ return &NullableTravelRuleWithdrawExchangesOrVASPEntityInfo{value: val, isSet: true}
+}
+
+func (v NullableTravelRuleWithdrawExchangesOrVASPEntityInfo) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTravelRuleWithdrawExchangesOrVASPEntityInfo) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_travel_rule_withdraw_legal_entity.go b/cobo_waas2/model_travel_rule_withdraw_legal_entity.go
new file mode 100644
index 0000000..a164004
--- /dev/null
+++ b/cobo_waas2/model_travel_rule_withdraw_legal_entity.go
@@ -0,0 +1,259 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the TravelRuleWithdrawLegalEntity type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TravelRuleWithdrawLegalEntity{}
+
+// TravelRuleWithdrawLegalEntity Required fields for LEGAL entities.
+type TravelRuleWithdrawLegalEntity struct {
+ SelectedEntityType SelectedEntityType `json:"selected_entity_type"`
+ // The legal name of the entity.
+ LegalName string `json:"legal_name"`
+ // The incorporation date of the entity.
+ DateOfIncorporation *string `json:"date_of_incorporation,omitempty"`
+ // The place of incorporation of the entity.
+ PlaceOfIncorporation *string `json:"place_of_incorporation,omitempty"`
+}
+
+type _TravelRuleWithdrawLegalEntity TravelRuleWithdrawLegalEntity
+
+// NewTravelRuleWithdrawLegalEntity instantiates a new TravelRuleWithdrawLegalEntity object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTravelRuleWithdrawLegalEntity(selectedEntityType SelectedEntityType, legalName string) *TravelRuleWithdrawLegalEntity {
+ this := TravelRuleWithdrawLegalEntity{}
+ this.SelectedEntityType = selectedEntityType
+ this.LegalName = legalName
+ return &this
+}
+
+// NewTravelRuleWithdrawLegalEntityWithDefaults instantiates a new TravelRuleWithdrawLegalEntity object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTravelRuleWithdrawLegalEntityWithDefaults() *TravelRuleWithdrawLegalEntity {
+ this := TravelRuleWithdrawLegalEntity{}
+ return &this
+}
+
+// GetSelectedEntityType returns the SelectedEntityType field value
+func (o *TravelRuleWithdrawLegalEntity) GetSelectedEntityType() SelectedEntityType {
+ if o == nil {
+ var ret SelectedEntityType
+ return ret
+ }
+
+ return o.SelectedEntityType
+}
+
+// GetSelectedEntityTypeOk returns a tuple with the SelectedEntityType field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawLegalEntity) GetSelectedEntityTypeOk() (*SelectedEntityType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.SelectedEntityType, true
+}
+
+// SetSelectedEntityType sets field value
+func (o *TravelRuleWithdrawLegalEntity) SetSelectedEntityType(v SelectedEntityType) {
+ o.SelectedEntityType = v
+}
+
+// GetLegalName returns the LegalName field value
+func (o *TravelRuleWithdrawLegalEntity) GetLegalName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.LegalName
+}
+
+// GetLegalNameOk returns a tuple with the LegalName field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawLegalEntity) GetLegalNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.LegalName, true
+}
+
+// SetLegalName sets field value
+func (o *TravelRuleWithdrawLegalEntity) SetLegalName(v string) {
+ o.LegalName = v
+}
+
+// GetDateOfIncorporation returns the DateOfIncorporation field value if set, zero value otherwise.
+func (o *TravelRuleWithdrawLegalEntity) GetDateOfIncorporation() string {
+ if o == nil || IsNil(o.DateOfIncorporation) {
+ var ret string
+ return ret
+ }
+ return *o.DateOfIncorporation
+}
+
+// GetDateOfIncorporationOk returns a tuple with the DateOfIncorporation field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawLegalEntity) GetDateOfIncorporationOk() (*string, bool) {
+ if o == nil || IsNil(o.DateOfIncorporation) {
+ return nil, false
+ }
+ return o.DateOfIncorporation, true
+}
+
+// HasDateOfIncorporation returns a boolean if a field has been set.
+func (o *TravelRuleWithdrawLegalEntity) HasDateOfIncorporation() bool {
+ if o != nil && !IsNil(o.DateOfIncorporation) {
+ return true
+ }
+
+ return false
+}
+
+// SetDateOfIncorporation gets a reference to the given string and assigns it to the DateOfIncorporation field.
+func (o *TravelRuleWithdrawLegalEntity) SetDateOfIncorporation(v string) {
+ o.DateOfIncorporation = &v
+}
+
+// GetPlaceOfIncorporation returns the PlaceOfIncorporation field value if set, zero value otherwise.
+func (o *TravelRuleWithdrawLegalEntity) GetPlaceOfIncorporation() string {
+ if o == nil || IsNil(o.PlaceOfIncorporation) {
+ var ret string
+ return ret
+ }
+ return *o.PlaceOfIncorporation
+}
+
+// GetPlaceOfIncorporationOk returns a tuple with the PlaceOfIncorporation field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawLegalEntity) GetPlaceOfIncorporationOk() (*string, bool) {
+ if o == nil || IsNil(o.PlaceOfIncorporation) {
+ return nil, false
+ }
+ return o.PlaceOfIncorporation, true
+}
+
+// HasPlaceOfIncorporation returns a boolean if a field has been set.
+func (o *TravelRuleWithdrawLegalEntity) HasPlaceOfIncorporation() bool {
+ if o != nil && !IsNil(o.PlaceOfIncorporation) {
+ return true
+ }
+
+ return false
+}
+
+// SetPlaceOfIncorporation gets a reference to the given string and assigns it to the PlaceOfIncorporation field.
+func (o *TravelRuleWithdrawLegalEntity) SetPlaceOfIncorporation(v string) {
+ o.PlaceOfIncorporation = &v
+}
+
+func (o TravelRuleWithdrawLegalEntity) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TravelRuleWithdrawLegalEntity) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["selected_entity_type"] = o.SelectedEntityType
+ toSerialize["legal_name"] = o.LegalName
+ if !IsNil(o.DateOfIncorporation) {
+ toSerialize["date_of_incorporation"] = o.DateOfIncorporation
+ }
+ if !IsNil(o.PlaceOfIncorporation) {
+ toSerialize["place_of_incorporation"] = o.PlaceOfIncorporation
+ }
+ return toSerialize, nil
+}
+
+func (o *TravelRuleWithdrawLegalEntity) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "selected_entity_type",
+ "legal_name",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varTravelRuleWithdrawLegalEntity := _TravelRuleWithdrawLegalEntity{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varTravelRuleWithdrawLegalEntity)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TravelRuleWithdrawLegalEntity(varTravelRuleWithdrawLegalEntity)
+
+ return err
+}
+
+type NullableTravelRuleWithdrawLegalEntity struct {
+ value *TravelRuleWithdrawLegalEntity
+ isSet bool
+}
+
+func (v NullableTravelRuleWithdrawLegalEntity) Get() *TravelRuleWithdrawLegalEntity {
+ return v.value
+}
+
+func (v *NullableTravelRuleWithdrawLegalEntity) Set(val *TravelRuleWithdrawLegalEntity) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTravelRuleWithdrawLegalEntity) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTravelRuleWithdrawLegalEntity) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTravelRuleWithdrawLegalEntity(val *TravelRuleWithdrawLegalEntity) *NullableTravelRuleWithdrawLegalEntity {
+ return &NullableTravelRuleWithdrawLegalEntity{value: val, isSet: true}
+}
+
+func (v NullableTravelRuleWithdrawLegalEntity) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTravelRuleWithdrawLegalEntity) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_travel_rule_withdraw_natural_entity.go b/cobo_waas2/model_travel_rule_withdraw_natural_entity.go
new file mode 100644
index 0000000..83838ed
--- /dev/null
+++ b/cobo_waas2/model_travel_rule_withdraw_natural_entity.go
@@ -0,0 +1,288 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the TravelRuleWithdrawNaturalEntity type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TravelRuleWithdrawNaturalEntity{}
+
+// TravelRuleWithdrawNaturalEntity Required fields for NATURAL entities.
+type TravelRuleWithdrawNaturalEntity struct {
+ SelectedEntityType SelectedEntityType `json:"selected_entity_type"`
+ // The first name of the user.
+ FirstName string `json:"first_name"`
+ // The last name of the user.
+ LastName string `json:"last_name"`
+ // The date of birth of the user.
+ DateOfBirth *string `json:"date_of_birth,omitempty"`
+ // The place of birth of the user.
+ PlaceOfBirth *string `json:"place_of_birth,omitempty"`
+}
+
+type _TravelRuleWithdrawNaturalEntity TravelRuleWithdrawNaturalEntity
+
+// NewTravelRuleWithdrawNaturalEntity instantiates a new TravelRuleWithdrawNaturalEntity object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTravelRuleWithdrawNaturalEntity(selectedEntityType SelectedEntityType, firstName string, lastName string) *TravelRuleWithdrawNaturalEntity {
+ this := TravelRuleWithdrawNaturalEntity{}
+ this.SelectedEntityType = selectedEntityType
+ this.FirstName = firstName
+ this.LastName = lastName
+ return &this
+}
+
+// NewTravelRuleWithdrawNaturalEntityWithDefaults instantiates a new TravelRuleWithdrawNaturalEntity object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTravelRuleWithdrawNaturalEntityWithDefaults() *TravelRuleWithdrawNaturalEntity {
+ this := TravelRuleWithdrawNaturalEntity{}
+ return &this
+}
+
+// GetSelectedEntityType returns the SelectedEntityType field value
+func (o *TravelRuleWithdrawNaturalEntity) GetSelectedEntityType() SelectedEntityType {
+ if o == nil {
+ var ret SelectedEntityType
+ return ret
+ }
+
+ return o.SelectedEntityType
+}
+
+// GetSelectedEntityTypeOk returns a tuple with the SelectedEntityType field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawNaturalEntity) GetSelectedEntityTypeOk() (*SelectedEntityType, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.SelectedEntityType, true
+}
+
+// SetSelectedEntityType sets field value
+func (o *TravelRuleWithdrawNaturalEntity) SetSelectedEntityType(v SelectedEntityType) {
+ o.SelectedEntityType = v
+}
+
+// GetFirstName returns the FirstName field value
+func (o *TravelRuleWithdrawNaturalEntity) GetFirstName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.FirstName
+}
+
+// GetFirstNameOk returns a tuple with the FirstName field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawNaturalEntity) GetFirstNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.FirstName, true
+}
+
+// SetFirstName sets field value
+func (o *TravelRuleWithdrawNaturalEntity) SetFirstName(v string) {
+ o.FirstName = v
+}
+
+// GetLastName returns the LastName field value
+func (o *TravelRuleWithdrawNaturalEntity) GetLastName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.LastName
+}
+
+// GetLastNameOk returns a tuple with the LastName field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawNaturalEntity) GetLastNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.LastName, true
+}
+
+// SetLastName sets field value
+func (o *TravelRuleWithdrawNaturalEntity) SetLastName(v string) {
+ o.LastName = v
+}
+
+// GetDateOfBirth returns the DateOfBirth field value if set, zero value otherwise.
+func (o *TravelRuleWithdrawNaturalEntity) GetDateOfBirth() string {
+ if o == nil || IsNil(o.DateOfBirth) {
+ var ret string
+ return ret
+ }
+ return *o.DateOfBirth
+}
+
+// GetDateOfBirthOk returns a tuple with the DateOfBirth field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawNaturalEntity) GetDateOfBirthOk() (*string, bool) {
+ if o == nil || IsNil(o.DateOfBirth) {
+ return nil, false
+ }
+ return o.DateOfBirth, true
+}
+
+// HasDateOfBirth returns a boolean if a field has been set.
+func (o *TravelRuleWithdrawNaturalEntity) HasDateOfBirth() bool {
+ if o != nil && !IsNil(o.DateOfBirth) {
+ return true
+ }
+
+ return false
+}
+
+// SetDateOfBirth gets a reference to the given string and assigns it to the DateOfBirth field.
+func (o *TravelRuleWithdrawNaturalEntity) SetDateOfBirth(v string) {
+ o.DateOfBirth = &v
+}
+
+// GetPlaceOfBirth returns the PlaceOfBirth field value if set, zero value otherwise.
+func (o *TravelRuleWithdrawNaturalEntity) GetPlaceOfBirth() string {
+ if o == nil || IsNil(o.PlaceOfBirth) {
+ var ret string
+ return ret
+ }
+ return *o.PlaceOfBirth
+}
+
+// GetPlaceOfBirthOk returns a tuple with the PlaceOfBirth field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawNaturalEntity) GetPlaceOfBirthOk() (*string, bool) {
+ if o == nil || IsNil(o.PlaceOfBirth) {
+ return nil, false
+ }
+ return o.PlaceOfBirth, true
+}
+
+// HasPlaceOfBirth returns a boolean if a field has been set.
+func (o *TravelRuleWithdrawNaturalEntity) HasPlaceOfBirth() bool {
+ if o != nil && !IsNil(o.PlaceOfBirth) {
+ return true
+ }
+
+ return false
+}
+
+// SetPlaceOfBirth gets a reference to the given string and assigns it to the PlaceOfBirth field.
+func (o *TravelRuleWithdrawNaturalEntity) SetPlaceOfBirth(v string) {
+ o.PlaceOfBirth = &v
+}
+
+func (o TravelRuleWithdrawNaturalEntity) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TravelRuleWithdrawNaturalEntity) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["selected_entity_type"] = o.SelectedEntityType
+ toSerialize["first_name"] = o.FirstName
+ toSerialize["last_name"] = o.LastName
+ if !IsNil(o.DateOfBirth) {
+ toSerialize["date_of_birth"] = o.DateOfBirth
+ }
+ if !IsNil(o.PlaceOfBirth) {
+ toSerialize["place_of_birth"] = o.PlaceOfBirth
+ }
+ return toSerialize, nil
+}
+
+func (o *TravelRuleWithdrawNaturalEntity) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "selected_entity_type",
+ "first_name",
+ "last_name",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varTravelRuleWithdrawNaturalEntity := _TravelRuleWithdrawNaturalEntity{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varTravelRuleWithdrawNaturalEntity)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TravelRuleWithdrawNaturalEntity(varTravelRuleWithdrawNaturalEntity)
+
+ return err
+}
+
+type NullableTravelRuleWithdrawNaturalEntity struct {
+ value *TravelRuleWithdrawNaturalEntity
+ isSet bool
+}
+
+func (v NullableTravelRuleWithdrawNaturalEntity) Get() *TravelRuleWithdrawNaturalEntity {
+ return v.value
+}
+
+func (v *NullableTravelRuleWithdrawNaturalEntity) Set(val *TravelRuleWithdrawNaturalEntity) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTravelRuleWithdrawNaturalEntity) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTravelRuleWithdrawNaturalEntity) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTravelRuleWithdrawNaturalEntity(val *TravelRuleWithdrawNaturalEntity) *NullableTravelRuleWithdrawNaturalEntity {
+ return &NullableTravelRuleWithdrawNaturalEntity{value: val, isSet: true}
+}
+
+func (v NullableTravelRuleWithdrawNaturalEntity) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTravelRuleWithdrawNaturalEntity) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_travel_rule_withdraw_request.go b/cobo_waas2/model_travel_rule_withdraw_request.go
new file mode 100644
index 0000000..d9ff7be
--- /dev/null
+++ b/cobo_waas2/model_travel_rule_withdraw_request.go
@@ -0,0 +1,185 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the TravelRuleWithdrawRequest type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &TravelRuleWithdrawRequest{}
+
+// TravelRuleWithdrawRequest struct for TravelRuleWithdrawRequest
+type TravelRuleWithdrawRequest struct {
+ // The transaction ID.
+ TransactionId string `json:"transaction_id"`
+ TravelRuleInfo TravelRuleWithdrawRequestTravelRuleInfo `json:"travel_rule_info"`
+}
+
+type _TravelRuleWithdrawRequest TravelRuleWithdrawRequest
+
+// NewTravelRuleWithdrawRequest instantiates a new TravelRuleWithdrawRequest object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewTravelRuleWithdrawRequest(transactionId string, travelRuleInfo TravelRuleWithdrawRequestTravelRuleInfo) *TravelRuleWithdrawRequest {
+ this := TravelRuleWithdrawRequest{}
+ this.TransactionId = transactionId
+ this.TravelRuleInfo = travelRuleInfo
+ return &this
+}
+
+// NewTravelRuleWithdrawRequestWithDefaults instantiates a new TravelRuleWithdrawRequest object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewTravelRuleWithdrawRequestWithDefaults() *TravelRuleWithdrawRequest {
+ this := TravelRuleWithdrawRequest{}
+ return &this
+}
+
+// GetTransactionId returns the TransactionId field value
+func (o *TravelRuleWithdrawRequest) GetTransactionId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.TransactionId
+}
+
+// GetTransactionIdOk returns a tuple with the TransactionId field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawRequest) GetTransactionIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TransactionId, true
+}
+
+// SetTransactionId sets field value
+func (o *TravelRuleWithdrawRequest) SetTransactionId(v string) {
+ o.TransactionId = v
+}
+
+// GetTravelRuleInfo returns the TravelRuleInfo field value
+func (o *TravelRuleWithdrawRequest) GetTravelRuleInfo() TravelRuleWithdrawRequestTravelRuleInfo {
+ if o == nil {
+ var ret TravelRuleWithdrawRequestTravelRuleInfo
+ return ret
+ }
+
+ return o.TravelRuleInfo
+}
+
+// GetTravelRuleInfoOk returns a tuple with the TravelRuleInfo field value
+// and a boolean to check if the value has been set.
+func (o *TravelRuleWithdrawRequest) GetTravelRuleInfoOk() (*TravelRuleWithdrawRequestTravelRuleInfo, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.TravelRuleInfo, true
+}
+
+// SetTravelRuleInfo sets field value
+func (o *TravelRuleWithdrawRequest) SetTravelRuleInfo(v TravelRuleWithdrawRequestTravelRuleInfo) {
+ o.TravelRuleInfo = v
+}
+
+func (o TravelRuleWithdrawRequest) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o TravelRuleWithdrawRequest) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["transaction_id"] = o.TransactionId
+ toSerialize["travel_rule_info"] = o.TravelRuleInfo
+ return toSerialize, nil
+}
+
+func (o *TravelRuleWithdrawRequest) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "transaction_id",
+ "travel_rule_info",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varTravelRuleWithdrawRequest := _TravelRuleWithdrawRequest{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varTravelRuleWithdrawRequest)
+
+ if err != nil {
+ return err
+ }
+
+ *o = TravelRuleWithdrawRequest(varTravelRuleWithdrawRequest)
+
+ return err
+}
+
+type NullableTravelRuleWithdrawRequest struct {
+ value *TravelRuleWithdrawRequest
+ isSet bool
+}
+
+func (v NullableTravelRuleWithdrawRequest) Get() *TravelRuleWithdrawRequest {
+ return v.value
+}
+
+func (v *NullableTravelRuleWithdrawRequest) Set(val *TravelRuleWithdrawRequest) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTravelRuleWithdrawRequest) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTravelRuleWithdrawRequest) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTravelRuleWithdrawRequest(val *TravelRuleWithdrawRequest) *NullableTravelRuleWithdrawRequest {
+ return &NullableTravelRuleWithdrawRequest{value: val, isSet: true}
+}
+
+func (v NullableTravelRuleWithdrawRequest) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTravelRuleWithdrawRequest) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_travel_rule_withdraw_request_travel_rule_info.go b/cobo_waas2/model_travel_rule_withdraw_request_travel_rule_info.go
new file mode 100644
index 0000000..bd350df
--- /dev/null
+++ b/cobo_waas2/model_travel_rule_withdraw_request_travel_rule_info.go
@@ -0,0 +1,164 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "fmt"
+)
+
+// TravelRuleWithdrawRequestTravelRuleInfo - struct for TravelRuleWithdrawRequestTravelRuleInfo
+type TravelRuleWithdrawRequestTravelRuleInfo struct {
+ SelfCustodyWallet *SelfCustodyWallet
+ TravelRuleWithdrawExchangesOrVASP *TravelRuleWithdrawExchangesOrVASP
+}
+
+// SelfCustodyWalletAsTravelRuleWithdrawRequestTravelRuleInfo is a convenience function that returns SelfCustodyWallet wrapped in TravelRuleWithdrawRequestTravelRuleInfo
+func SelfCustodyWalletAsTravelRuleWithdrawRequestTravelRuleInfo(v *SelfCustodyWallet) TravelRuleWithdrawRequestTravelRuleInfo {
+ return TravelRuleWithdrawRequestTravelRuleInfo{
+ SelfCustodyWallet: v,
+ }
+}
+
+// TravelRuleWithdrawExchangesOrVASPAsTravelRuleWithdrawRequestTravelRuleInfo is a convenience function that returns TravelRuleWithdrawExchangesOrVASP wrapped in TravelRuleWithdrawRequestTravelRuleInfo
+func TravelRuleWithdrawExchangesOrVASPAsTravelRuleWithdrawRequestTravelRuleInfo(v *TravelRuleWithdrawExchangesOrVASP) TravelRuleWithdrawRequestTravelRuleInfo {
+ return TravelRuleWithdrawRequestTravelRuleInfo{
+ TravelRuleWithdrawExchangesOrVASP: v,
+ }
+}
+
+
+// Unmarshal JSON data into one of the pointers in the struct
+func (dst *TravelRuleWithdrawRequestTravelRuleInfo) UnmarshalJSON(data []byte) error {
+ var err error
+ // use discriminator value to speed up the lookup
+ var jsonDict map[string]interface{}
+ err = newStrictDecoder(data).Decode(&jsonDict)
+ if err != nil {
+ return fmt.Errorf("failed to unmarshal JSON into map for the discriminator lookup")
+ }
+
+ // check if the discriminator value is 'EXCHANGES_OR_VASP'
+ if jsonDict["destination_wallet_type"] == "EXCHANGES_OR_VASP" {
+ // try to unmarshal JSON data into TravelRuleWithdrawExchangesOrVASP
+ err = json.Unmarshal(data, &dst.TravelRuleWithdrawExchangesOrVASP)
+ if err == nil {
+ return nil // data stored in dst.TravelRuleWithdrawExchangesOrVASP, return on the first match
+ } else {
+ dst.TravelRuleWithdrawExchangesOrVASP = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleWithdrawRequestTravelRuleInfo as TravelRuleWithdrawExchangesOrVASP: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'SELF_CUSTODY_WALLET'
+ if jsonDict["destination_wallet_type"] == "SELF_CUSTODY_WALLET" {
+ // try to unmarshal JSON data into SelfCustodyWallet
+ err = json.Unmarshal(data, &dst.SelfCustodyWallet)
+ if err == nil {
+ return nil // data stored in dst.SelfCustodyWallet, return on the first match
+ } else {
+ dst.SelfCustodyWallet = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleWithdrawRequestTravelRuleInfo as SelfCustodyWallet: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'SelfCustodyWallet'
+ if jsonDict["destination_wallet_type"] == "SelfCustodyWallet" {
+ // try to unmarshal JSON data into SelfCustodyWallet
+ err = json.Unmarshal(data, &dst.SelfCustodyWallet)
+ if err == nil {
+ return nil // data stored in dst.SelfCustodyWallet, return on the first match
+ } else {
+ dst.SelfCustodyWallet = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleWithdrawRequestTravelRuleInfo as SelfCustodyWallet: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'TravelRuleWithdrawExchangesOrVASP'
+ if jsonDict["destination_wallet_type"] == "TravelRuleWithdrawExchangesOrVASP" {
+ // try to unmarshal JSON data into TravelRuleWithdrawExchangesOrVASP
+ err = json.Unmarshal(data, &dst.TravelRuleWithdrawExchangesOrVASP)
+ if err == nil {
+ return nil // data stored in dst.TravelRuleWithdrawExchangesOrVASP, return on the first match
+ } else {
+ dst.TravelRuleWithdrawExchangesOrVASP = nil
+ return fmt.Errorf("failed to unmarshal TravelRuleWithdrawRequestTravelRuleInfo as TravelRuleWithdrawExchangesOrVASP: %s", err.Error())
+ }
+ }
+
+ return nil
+}
+
+// Marshal data from the first non-nil pointers in the struct to JSON
+func (src TravelRuleWithdrawRequestTravelRuleInfo) MarshalJSON() ([]byte, error) {
+ if src.SelfCustodyWallet != nil {
+ return json.Marshal(&src.SelfCustodyWallet)
+ }
+
+ if src.TravelRuleWithdrawExchangesOrVASP != nil {
+ return json.Marshal(&src.TravelRuleWithdrawExchangesOrVASP)
+ }
+
+ return nil, nil // no data in oneOf schemas
+}
+
+// Get the actual instance
+func (obj *TravelRuleWithdrawRequestTravelRuleInfo) GetActualInstance() (interface{}) {
+ if obj == nil {
+ return nil
+ }
+ if obj.SelfCustodyWallet != nil {
+ return obj.SelfCustodyWallet
+ }
+
+ if obj.TravelRuleWithdrawExchangesOrVASP != nil {
+ return obj.TravelRuleWithdrawExchangesOrVASP
+ }
+
+ // all schemas are nil
+ return nil
+}
+
+type NullableTravelRuleWithdrawRequestTravelRuleInfo struct {
+ value *TravelRuleWithdrawRequestTravelRuleInfo
+ isSet bool
+}
+
+func (v NullableTravelRuleWithdrawRequestTravelRuleInfo) Get() *TravelRuleWithdrawRequestTravelRuleInfo {
+ return v.value
+}
+
+func (v *NullableTravelRuleWithdrawRequestTravelRuleInfo) Set(val *TravelRuleWithdrawRequestTravelRuleInfo) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableTravelRuleWithdrawRequestTravelRuleInfo) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableTravelRuleWithdrawRequestTravelRuleInfo) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableTravelRuleWithdrawRequestTravelRuleInfo(val *TravelRuleWithdrawRequestTravelRuleInfo) *NullableTravelRuleWithdrawRequestTravelRuleInfo {
+ return &NullableTravelRuleWithdrawRequestTravelRuleInfo{value: val, isSet: true}
+}
+
+func (v NullableTravelRuleWithdrawRequestTravelRuleInfo) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableTravelRuleWithdrawRequestTravelRuleInfo) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_trigger_test_webhook_event_request.go b/cobo_waas2/model_trigger_test_webhook_event_request.go
index 47b316a..311bfa0 100644
--- a/cobo_waas2/model_trigger_test_webhook_event_request.go
+++ b/cobo_waas2/model_trigger_test_webhook_event_request.go
@@ -20,7 +20,7 @@ var _ MappedNullable = &TriggerTestWebhookEventRequest{}
// TriggerTestWebhookEventRequest struct for TriggerTestWebhookEventRequest
type TriggerTestWebhookEventRequest struct {
EventType WebhookEventType `json:"event_type"`
- // An object for customization of the webhook event payload. You only need to include the fields you want to customize. The provided fields must match the webhook event data structure, depending on the specified event type. For a complete introduction of the webhook event data structure, refer to the `data.data` property in the response of [List all webhook events](/v2/api-references/developers--webhooks/list-all-webhook-events). If this property is not provided, a default payload will be returned.
+ // An object for customization of the webhook event payload. You only need to include the fields you want to customize. The provided fields must match the webhook event data structure, depending on the specified event type. For a complete introduction of the webhook event data structure, refer to the `data.data` property in the response of [List all webhook events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-webhook-events). If this property is not provided, a default payload will be returned.
OverrideData map[string]interface{} `json:"override_data,omitempty"`
}
diff --git a/cobo_waas2/model_tss_request_status.go b/cobo_waas2/model_tss_request_status.go
index 9070cf7..6671462 100644
--- a/cobo_waas2/model_tss_request_status.go
+++ b/cobo_waas2/model_tss_request_status.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// TSSRequestStatus The TSS request status. Possible values include: - `PendingKeyHolderConfirmation`: The action done to the TSS request is currently pending enough key share holders to approve. - `KeyHolderConfirmationFailed`: Key share holders failed to approve the the action to be done to the TSS request. - `KeyGenerating`: The key share is currently being generated for the action to be done to the TSS request. - `MPCProcessing`: The TSS request approval is waiting to be started. - For [MPC Wallets (User-Controlled Wallets)](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/introduction), you need to use the Client App and call the UCW SDK to start the TSS request approval process. - For [MPC Wallets (Organization-Controlled Wallets)](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/introduction): - If you are using the [API co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group), this status indicates that the TSS Node will soon request the callback server to start the [risk controls](https://manuals.cobo.com/en/portal/risk-controls/introduction) check. No further action is required from you at this stage. - If you are using the [mobile co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group), key share holders need to use their [Cobo Guard](https://manuals.cobo.com/en/guard/introduction) to approve the TSS request and participate in the signing process. - `KeyGeneratingFailed`: The key share generation process has failed for the action to be done to the TSS request. - `Success`: The action done to the TSS request has been completed successfully. If you see this status while running [Cancel TSS request](/v2/api-references/wallets--mpc-wallets/cancel-tss-request), this mean the specified TSS request has been successfully canceled.
+// TSSRequestStatus The TSS request status. Possible values include: - `PendingKeyHolderConfirmation`: The action done to the TSS request is currently pending enough key share holders to approve. - `KeyHolderConfirmationFailed`: Key share holders failed to approve the the action to be done to the TSS request. - `KeyGenerating`: The key share is currently being generated for the action to be done to the TSS request. - `MPCProcessing`: The TSS request approval is waiting to be started. - For [MPC Wallets (User-Controlled Wallets)](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/introduction), you need to use the Client App and call the UCW SDK to start the TSS request approval process. - For [MPC Wallets (Organization-Controlled Wallets)](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/introduction): - If you are using the [server co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group), this status indicates that the TSS Node will soon request the callback server to start the [risk controls](https://manuals.cobo.com/en/portal/risk-controls/introduction) check. No further action is required from you at this stage. - If you are using the [mobile co-signer](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group), key share holders need to use their [Cobo Guard](https://manuals.cobo.com/en/guard/introduction) to approve the TSS request and participate in the signing process. - `KeyGeneratingFailed`: The key share generation process has failed for the action to be done to the TSS request. - `Success`: The action done to the TSS request has been completed successfully. If you see this status while running [Cancel TSS request](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/cancel-tss-request), this mean the specified TSS request has been successfully canceled.
type TSSRequestStatus string
// List of TSSRequestStatus
diff --git a/cobo_waas2/model_tss_request_type.go b/cobo_waas2/model_tss_request_type.go
index 1324e67..f23aa9a 100644
--- a/cobo_waas2/model_tss_request_type.go
+++ b/cobo_waas2/model_tss_request_type.go
@@ -13,7 +13,7 @@ import (
"fmt"
)
-// TSSRequestType The TSS request type. Possible values include: - `KeyGen`: This is a key generation request to create a [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) and key shares for your [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) after you've created the Main Group with [Create key share holder group](/v2/api-references/wallets--mpc-wallets/create-key-share-holder-group). You only need to do this once per [organization](https://manuals.cobo.com/en/portal/organization/introduction). - `KeyGenFromKeyGroup`: This is a request to use the [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) to create key shares for your [Signing Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) or [Recovery Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) after you've created these key share holder groups with [Create key share holder group](/v2/api-references/wallets--mpc-wallets/create-key-share-holder-group). - `Recovery`: This is a request to create key shares using the [Recovery Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) for a key share holder in the [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) if their key share has been lost (e.g. by losing their phone).
+// TSSRequestType The TSS request type. Possible values include: - `KeyGen`: This is a key generation request to create a [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) and key shares for your [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) after you've created the Main Group with [Create key share holder group](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/create-key-share-holder-group). You only need to do this once per [organization](https://manuals.cobo.com/en/portal/organization/introduction). - `KeyGenFromKeyGroup`: This is a request to use the [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) to create key shares for your [Signing Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) or [Recovery Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) after you've created these key share holder groups with [Create key share holder group](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/create-key-share-holder-group). - `Recovery`: This is a request to create key shares using the [Recovery Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) for a key share holder in the [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups) if their key share has been lost (e.g. by losing their phone).
type TSSRequestType string
// List of TSSRequestType
diff --git a/cobo_waas2/model_tss_request_webhook_event_data.go b/cobo_waas2/model_tss_request_webhook_event_data.go
index f5e031e..5d0418a 100644
--- a/cobo_waas2/model_tss_request_webhook_event_data.go
+++ b/cobo_waas2/model_tss_request_webhook_event_data.go
@@ -19,7 +19,7 @@ var _ MappedNullable = &TSSRequestWebhookEventData{}
// TSSRequestWebhookEventData struct for TSSRequestWebhookEventData
type TSSRequestWebhookEventData struct {
- // The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data.
+ // The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
DataType string `json:"data_type"`
// The TSS request ID.
TssRequestId *string `json:"tss_request_id,omitempty"`
diff --git a/cobo_waas2/model_update_webhook_endpoint_by_id_request.go b/cobo_waas2/model_update_webhook_endpoint_by_id_request.go
index 8cfdad4..93d728e 100644
--- a/cobo_waas2/model_update_webhook_endpoint_by_id_request.go
+++ b/cobo_waas2/model_update_webhook_endpoint_by_id_request.go
@@ -17,7 +17,7 @@ var _ MappedNullable = &UpdateWebhookEndpointByIdRequest{}
// UpdateWebhookEndpointByIdRequest struct for UpdateWebhookEndpointByIdRequest
type UpdateWebhookEndpointByIdRequest struct {
- // The new event types you want to subscribe to for this webhook endpoint. You can call [Get webhook event types](/v2/api-references/developers--webhooks/get-webhook-event-types) to retrieve all available event types.
+ // The new event types you want to subscribe to for this webhook endpoint. You can call [Get webhook event types](https://www.cobo.com/developers/v2/api-references/developers--webhooks/get-webhook-event-types) to retrieve all available event types.
SubscribedEvents []WebhookEventType `json:"subscribed_events,omitempty"`
// The new status you want to set the webhook endpoint to. If you set `status` to `STATUS_INACTIVE`, the endpoint will be revoked, meaning it will no longer receive any webhook events.
Status *string `json:"status,omitempty"`
diff --git a/cobo_waas2/model_vasp.go b/cobo_waas2/model_vasp.go
new file mode 100644
index 0000000..17fc331
--- /dev/null
+++ b/cobo_waas2/model_vasp.go
@@ -0,0 +1,215 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the Vasp type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &Vasp{}
+
+// Vasp The information of an vasp.
+type Vasp struct {
+ // The name of the vasp.
+ Name string `json:"name"`
+ // The symbol.
+ VendorCode string `json:"vendor_code"`
+ // The vasp str id.
+ VendorVaspId string `json:"vendor_vasp_id"`
+}
+
+type _Vasp Vasp
+
+// NewVasp instantiates a new Vasp object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewVasp(name string, vendorCode string, vendorVaspId string) *Vasp {
+ this := Vasp{}
+ this.Name = name
+ this.VendorCode = vendorCode
+ this.VendorVaspId = vendorVaspId
+ return &this
+}
+
+// NewVaspWithDefaults instantiates a new Vasp object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewVaspWithDefaults() *Vasp {
+ this := Vasp{}
+ return &this
+}
+
+// GetName returns the Name field value
+func (o *Vasp) GetName() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.Name
+}
+
+// GetNameOk returns a tuple with the Name field value
+// and a boolean to check if the value has been set.
+func (o *Vasp) GetNameOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.Name, true
+}
+
+// SetName sets field value
+func (o *Vasp) SetName(v string) {
+ o.Name = v
+}
+
+// GetVendorCode returns the VendorCode field value
+func (o *Vasp) GetVendorCode() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.VendorCode
+}
+
+// GetVendorCodeOk returns a tuple with the VendorCode field value
+// and a boolean to check if the value has been set.
+func (o *Vasp) GetVendorCodeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.VendorCode, true
+}
+
+// SetVendorCode sets field value
+func (o *Vasp) SetVendorCode(v string) {
+ o.VendorCode = v
+}
+
+// GetVendorVaspId returns the VendorVaspId field value
+func (o *Vasp) GetVendorVaspId() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.VendorVaspId
+}
+
+// GetVendorVaspIdOk returns a tuple with the VendorVaspId field value
+// and a boolean to check if the value has been set.
+func (o *Vasp) GetVendorVaspIdOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.VendorVaspId, true
+}
+
+// SetVendorVaspId sets field value
+func (o *Vasp) SetVendorVaspId(v string) {
+ o.VendorVaspId = v
+}
+
+func (o Vasp) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o Vasp) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["name"] = o.Name
+ toSerialize["vendor_code"] = o.VendorCode
+ toSerialize["vendor_vasp_id"] = o.VendorVaspId
+ return toSerialize, nil
+}
+
+func (o *Vasp) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "name",
+ "vendor_code",
+ "vendor_vasp_id",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varVasp := _Vasp{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varVasp)
+
+ if err != nil {
+ return err
+ }
+
+ *o = Vasp(varVasp)
+
+ return err
+}
+
+type NullableVasp struct {
+ value *Vasp
+ isSet bool
+}
+
+func (v NullableVasp) Get() *Vasp {
+ return v.value
+}
+
+func (v *NullableVasp) Set(val *Vasp) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableVasp) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableVasp) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableVasp(val *Vasp) *NullableVasp {
+ return &NullableVasp{value: val, isSet: true}
+}
+
+func (v NullableVasp) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableVasp) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_wallet_info_event_data.go b/cobo_waas2/model_wallet_info_event_data.go
new file mode 100644
index 0000000..5bc2b8a
--- /dev/null
+++ b/cobo_waas2/model_wallet_info_event_data.go
@@ -0,0 +1,193 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Contact: help@cobo.com
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
+
+package cobo_waas2
+
+import (
+ "encoding/json"
+ "bytes"
+ "fmt"
+)
+
+// checks if the WalletInfoEventData type satisfies the MappedNullable interface at compile time
+var _ MappedNullable = &WalletInfoEventData{}
+
+// WalletInfoEventData struct for WalletInfoEventData
+type WalletInfoEventData struct {
+ // The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
+ DataType string `json:"data_type"`
+ Wallet *WalletInfo `json:"wallet,omitempty"`
+}
+
+type _WalletInfoEventData WalletInfoEventData
+
+// NewWalletInfoEventData instantiates a new WalletInfoEventData object
+// This constructor will assign default values to properties that have it defined,
+// and makes sure properties required by API are set, but the set of arguments
+// will change when the set of required properties is changed
+func NewWalletInfoEventData(dataType string) *WalletInfoEventData {
+ this := WalletInfoEventData{}
+ this.DataType = dataType
+ return &this
+}
+
+// NewWalletInfoEventDataWithDefaults instantiates a new WalletInfoEventData object
+// This constructor will only assign default values to properties that have it defined,
+// but it doesn't guarantee that properties required by API are set
+func NewWalletInfoEventDataWithDefaults() *WalletInfoEventData {
+ this := WalletInfoEventData{}
+ return &this
+}
+
+// GetDataType returns the DataType field value
+func (o *WalletInfoEventData) GetDataType() string {
+ if o == nil {
+ var ret string
+ return ret
+ }
+
+ return o.DataType
+}
+
+// GetDataTypeOk returns a tuple with the DataType field value
+// and a boolean to check if the value has been set.
+func (o *WalletInfoEventData) GetDataTypeOk() (*string, bool) {
+ if o == nil {
+ return nil, false
+ }
+ return &o.DataType, true
+}
+
+// SetDataType sets field value
+func (o *WalletInfoEventData) SetDataType(v string) {
+ o.DataType = v
+}
+
+// GetWallet returns the Wallet field value if set, zero value otherwise.
+func (o *WalletInfoEventData) GetWallet() WalletInfo {
+ if o == nil || IsNil(o.Wallet) {
+ var ret WalletInfo
+ return ret
+ }
+ return *o.Wallet
+}
+
+// GetWalletOk returns a tuple with the Wallet field value if set, nil otherwise
+// and a boolean to check if the value has been set.
+func (o *WalletInfoEventData) GetWalletOk() (*WalletInfo, bool) {
+ if o == nil || IsNil(o.Wallet) {
+ return nil, false
+ }
+ return o.Wallet, true
+}
+
+// HasWallet returns a boolean if a field has been set.
+func (o *WalletInfoEventData) HasWallet() bool {
+ if o != nil && !IsNil(o.Wallet) {
+ return true
+ }
+
+ return false
+}
+
+// SetWallet gets a reference to the given WalletInfo and assigns it to the Wallet field.
+func (o *WalletInfoEventData) SetWallet(v WalletInfo) {
+ o.Wallet = &v
+}
+
+func (o WalletInfoEventData) MarshalJSON() ([]byte, error) {
+ toSerialize,err := o.ToMap()
+ if err != nil {
+ return []byte{}, err
+ }
+ return json.Marshal(toSerialize)
+}
+
+func (o WalletInfoEventData) ToMap() (map[string]interface{}, error) {
+ toSerialize := map[string]interface{}{}
+ toSerialize["data_type"] = o.DataType
+ if !IsNil(o.Wallet) {
+ toSerialize["wallet"] = o.Wallet
+ }
+ return toSerialize, nil
+}
+
+func (o *WalletInfoEventData) UnmarshalJSON(data []byte) (err error) {
+ // This validates that all required properties are included in the JSON object
+ // by unmarshalling the object into a generic map with string keys and checking
+ // that every required field exists as a key in the generic map.
+ requiredProperties := []string{
+ "data_type",
+ }
+
+ allProperties := make(map[string]interface{})
+
+ err = json.Unmarshal(data, &allProperties)
+
+ if err != nil {
+ return err;
+ }
+
+ for _, requiredProperty := range(requiredProperties) {
+ if _, exists := allProperties[requiredProperty]; !exists {
+ return fmt.Errorf("no value given for required property %v", requiredProperty)
+ }
+ }
+
+ varWalletInfoEventData := _WalletInfoEventData{}
+
+ decoder := json.NewDecoder(bytes.NewReader(data))
+ //decoder.DisallowUnknownFields()
+ err = decoder.Decode(&varWalletInfoEventData)
+
+ if err != nil {
+ return err
+ }
+
+ *o = WalletInfoEventData(varWalletInfoEventData)
+
+ return err
+}
+
+type NullableWalletInfoEventData struct {
+ value *WalletInfoEventData
+ isSet bool
+}
+
+func (v NullableWalletInfoEventData) Get() *WalletInfoEventData {
+ return v.value
+}
+
+func (v *NullableWalletInfoEventData) Set(val *WalletInfoEventData) {
+ v.value = val
+ v.isSet = true
+}
+
+func (v NullableWalletInfoEventData) IsSet() bool {
+ return v.isSet
+}
+
+func (v *NullableWalletInfoEventData) Unset() {
+ v.value = nil
+ v.isSet = false
+}
+
+func NewNullableWalletInfoEventData(val *WalletInfoEventData) *NullableWalletInfoEventData {
+ return &NullableWalletInfoEventData{value: val, isSet: true}
+}
+
+func (v NullableWalletInfoEventData) MarshalJSON() ([]byte, error) {
+ return json.Marshal(v.value)
+}
+
+func (v *NullableWalletInfoEventData) UnmarshalJSON(src []byte) error {
+ v.isSet = true
+ return json.Unmarshal(src, &v.value)
+}
+
+
diff --git a/cobo_waas2/model_webhook_event_data.go b/cobo_waas2/model_webhook_event_data.go
index 1e49edd..4522aeb 100644
--- a/cobo_waas2/model_webhook_event_data.go
+++ b/cobo_waas2/model_webhook_event_data.go
@@ -15,8 +15,25 @@ import (
// WebhookEventData - struct for WebhookEventData
type WebhookEventData struct {
+ AddressesEventData *AddressesEventData
+ MPCVaultEventData *MPCVaultEventData
TSSRequestWebhookEventData *TSSRequestWebhookEventData
TransactionWebhookEventData *TransactionWebhookEventData
+ WalletInfoEventData *WalletInfoEventData
+}
+
+// AddressesEventDataAsWebhookEventData is a convenience function that returns AddressesEventData wrapped in WebhookEventData
+func AddressesEventDataAsWebhookEventData(v *AddressesEventData) WebhookEventData {
+ return WebhookEventData{
+ AddressesEventData: v,
+ }
+}
+
+// MPCVaultEventDataAsWebhookEventData is a convenience function that returns MPCVaultEventData wrapped in WebhookEventData
+func MPCVaultEventDataAsWebhookEventData(v *MPCVaultEventData) WebhookEventData {
+ return WebhookEventData{
+ MPCVaultEventData: v,
+ }
}
// TSSRequestWebhookEventDataAsWebhookEventData is a convenience function that returns TSSRequestWebhookEventData wrapped in WebhookEventData
@@ -33,6 +50,13 @@ func TransactionWebhookEventDataAsWebhookEventData(v *TransactionWebhookEventDat
}
}
+// WalletInfoEventDataAsWebhookEventData is a convenience function that returns WalletInfoEventData wrapped in WebhookEventData
+func WalletInfoEventDataAsWebhookEventData(v *WalletInfoEventData) WebhookEventData {
+ return WebhookEventData{
+ WalletInfoEventData: v,
+ }
+}
+
// Unmarshal JSON data into one of the pointers in the struct
func (dst *WebhookEventData) UnmarshalJSON(data []byte) error {
@@ -44,6 +68,30 @@ func (dst *WebhookEventData) UnmarshalJSON(data []byte) error {
return fmt.Errorf("failed to unmarshal JSON into map for the discriminator lookup")
}
+ // check if the discriminator value is 'Addresses'
+ if jsonDict["data_type"] == "Addresses" {
+ // try to unmarshal JSON data into AddressesEventData
+ err = json.Unmarshal(data, &dst.AddressesEventData)
+ if err == nil {
+ return nil // data stored in dst.AddressesEventData, return on the first match
+ } else {
+ dst.AddressesEventData = nil
+ return fmt.Errorf("failed to unmarshal WebhookEventData as AddressesEventData: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'MPCVault'
+ if jsonDict["data_type"] == "MPCVault" {
+ // try to unmarshal JSON data into MPCVaultEventData
+ err = json.Unmarshal(data, &dst.MPCVaultEventData)
+ if err == nil {
+ return nil // data stored in dst.MPCVaultEventData, return on the first match
+ } else {
+ dst.MPCVaultEventData = nil
+ return fmt.Errorf("failed to unmarshal WebhookEventData as MPCVaultEventData: %s", err.Error())
+ }
+ }
+
// check if the discriminator value is 'TSSRequest'
if jsonDict["data_type"] == "TSSRequest" {
// try to unmarshal JSON data into TSSRequestWebhookEventData
@@ -68,6 +116,42 @@ func (dst *WebhookEventData) UnmarshalJSON(data []byte) error {
}
}
+ // check if the discriminator value is 'WalletInfo'
+ if jsonDict["data_type"] == "WalletInfo" {
+ // try to unmarshal JSON data into WalletInfoEventData
+ err = json.Unmarshal(data, &dst.WalletInfoEventData)
+ if err == nil {
+ return nil // data stored in dst.WalletInfoEventData, return on the first match
+ } else {
+ dst.WalletInfoEventData = nil
+ return fmt.Errorf("failed to unmarshal WebhookEventData as WalletInfoEventData: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'AddressesEventData'
+ if jsonDict["data_type"] == "AddressesEventData" {
+ // try to unmarshal JSON data into AddressesEventData
+ err = json.Unmarshal(data, &dst.AddressesEventData)
+ if err == nil {
+ return nil // data stored in dst.AddressesEventData, return on the first match
+ } else {
+ dst.AddressesEventData = nil
+ return fmt.Errorf("failed to unmarshal WebhookEventData as AddressesEventData: %s", err.Error())
+ }
+ }
+
+ // check if the discriminator value is 'MPCVaultEventData'
+ if jsonDict["data_type"] == "MPCVaultEventData" {
+ // try to unmarshal JSON data into MPCVaultEventData
+ err = json.Unmarshal(data, &dst.MPCVaultEventData)
+ if err == nil {
+ return nil // data stored in dst.MPCVaultEventData, return on the first match
+ } else {
+ dst.MPCVaultEventData = nil
+ return fmt.Errorf("failed to unmarshal WebhookEventData as MPCVaultEventData: %s", err.Error())
+ }
+ }
+
// check if the discriminator value is 'TSSRequestWebhookEventData'
if jsonDict["data_type"] == "TSSRequestWebhookEventData" {
// try to unmarshal JSON data into TSSRequestWebhookEventData
@@ -92,11 +176,31 @@ func (dst *WebhookEventData) UnmarshalJSON(data []byte) error {
}
}
+ // check if the discriminator value is 'WalletInfoEventData'
+ if jsonDict["data_type"] == "WalletInfoEventData" {
+ // try to unmarshal JSON data into WalletInfoEventData
+ err = json.Unmarshal(data, &dst.WalletInfoEventData)
+ if err == nil {
+ return nil // data stored in dst.WalletInfoEventData, return on the first match
+ } else {
+ dst.WalletInfoEventData = nil
+ return fmt.Errorf("failed to unmarshal WebhookEventData as WalletInfoEventData: %s", err.Error())
+ }
+ }
+
return nil
}
// Marshal data from the first non-nil pointers in the struct to JSON
func (src WebhookEventData) MarshalJSON() ([]byte, error) {
+ if src.AddressesEventData != nil {
+ return json.Marshal(&src.AddressesEventData)
+ }
+
+ if src.MPCVaultEventData != nil {
+ return json.Marshal(&src.MPCVaultEventData)
+ }
+
if src.TSSRequestWebhookEventData != nil {
return json.Marshal(&src.TSSRequestWebhookEventData)
}
@@ -105,6 +209,10 @@ func (src WebhookEventData) MarshalJSON() ([]byte, error) {
return json.Marshal(&src.TransactionWebhookEventData)
}
+ if src.WalletInfoEventData != nil {
+ return json.Marshal(&src.WalletInfoEventData)
+ }
+
return nil, nil // no data in oneOf schemas
}
@@ -113,6 +221,14 @@ func (obj *WebhookEventData) GetActualInstance() (interface{}) {
if obj == nil {
return nil
}
+ if obj.AddressesEventData != nil {
+ return obj.AddressesEventData
+ }
+
+ if obj.MPCVaultEventData != nil {
+ return obj.MPCVaultEventData
+ }
+
if obj.TSSRequestWebhookEventData != nil {
return obj.TSSRequestWebhookEventData
}
@@ -121,6 +237,10 @@ func (obj *WebhookEventData) GetActualInstance() (interface{}) {
return obj.TransactionWebhookEventData
}
+ if obj.WalletInfoEventData != nil {
+ return obj.WalletInfoEventData
+ }
+
// all schemas are nil
return nil
}
diff --git a/cobo_waas2/model_webhook_event_data_type.go b/cobo_waas2/model_webhook_event_data_type.go
index 228e3d0..a040620 100644
--- a/cobo_waas2/model_webhook_event_data_type.go
+++ b/cobo_waas2/model_webhook_event_data_type.go
@@ -19,7 +19,7 @@ var _ MappedNullable = &WebhookEventDataType{}
// WebhookEventDataType The data type of the event.
type WebhookEventDataType struct {
- // The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data.
+ // The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data.
DataType string `json:"data_type"`
}
diff --git a/cobo_waas2/model_webhook_event_type.go b/cobo_waas2/model_webhook_event_type.go
index 8cfaaa2..82ca2f3 100644
--- a/cobo_waas2/model_webhook_event_type.go
+++ b/cobo_waas2/model_webhook_event_type.go
@@ -13,19 +13,22 @@ import (
"fmt"
)
-// WebhookEventType The event type. To learn the trigger condition of each event type, refer to [Webhook event types and event data](/v2/guides/webhooks-callbacks/webhook-event-type).
+// WebhookEventType The event type. To learn the trigger condition of each event type, refer to [Webhook event types and event data](https://www.cobo.com/developers/v2/guides/webhooks-callbacks/webhook-event-type).
type WebhookEventType string
// List of WebhookEventType
const (
- WEBHOOKEVENTTYPE_TRANSACTION_CREATED WebhookEventType = "wallets.transaction.created"
- WEBHOOKEVENTTYPE_TRANSACTION_UPDATED WebhookEventType = "wallets.transaction.updated"
- WEBHOOKEVENTTYPE_TRANSACTION_FAILED WebhookEventType = "wallets.transaction.failed"
- WEBHOOKEVENTTYPE_TRANSACTION_SUCCEEDED WebhookEventType = "wallets.transaction.succeeded"
- WEBHOOKEVENTTYPE_MPC_TSS_REQUEST_CREATED WebhookEventType = "wallets.mpc.tss_request.created"
- WEBHOOKEVENTTYPE_MPC_TSS_REQUEST_UPDATED WebhookEventType = "wallets.mpc.tss_request.updated"
- WEBHOOKEVENTTYPE_MPC_TSS_REQUEST_FAILED WebhookEventType = "wallets.mpc.tss_request.failed"
- WEBHOOKEVENTTYPE_MPC_TSS_REQUEST_SUCCEEDED WebhookEventType = "wallets.mpc.tss_request.succeeded"
+ WEBHOOKEVENTTYPE_WALLETS_TRANSACTION_CREATED WebhookEventType = "wallets.transaction.created"
+ WEBHOOKEVENTTYPE_WALLETS_TRANSACTION_UPDATED WebhookEventType = "wallets.transaction.updated"
+ WEBHOOKEVENTTYPE_WALLETS_TRANSACTION_FAILED WebhookEventType = "wallets.transaction.failed"
+ WEBHOOKEVENTTYPE_WALLETS_TRANSACTION_SUCCEEDED WebhookEventType = "wallets.transaction.succeeded"
+ WEBHOOKEVENTTYPE_WALLETS_MPC_TSS_REQUEST_CREATED WebhookEventType = "wallets.mpc.tss_request.created"
+ WEBHOOKEVENTTYPE_WALLETS_MPC_TSS_REQUEST_UPDATED WebhookEventType = "wallets.mpc.tss_request.updated"
+ WEBHOOKEVENTTYPE_WALLETS_MPC_TSS_REQUEST_FAILED WebhookEventType = "wallets.mpc.tss_request.failed"
+ WEBHOOKEVENTTYPE_WALLETS_MPC_TSS_REQUEST_SUCCEEDED WebhookEventType = "wallets.mpc.tss_request.succeeded"
+ WEBHOOKEVENTTYPE_WALLETS_ADDRESSES_CREATED WebhookEventType = "wallets.addresses.created"
+ WEBHOOKEVENTTYPE_WALLETS_CREATED WebhookEventType = "wallets.created"
+ WEBHOOKEVENTTYPE_MPC_VAULTS_CREATED WebhookEventType = "mpc_vaults.created"
)
// All allowed values of WebhookEventType enum
@@ -38,6 +41,9 @@ var AllowedWebhookEventTypeEnumValues = []WebhookEventType{
"wallets.mpc.tss_request.updated",
"wallets.mpc.tss_request.failed",
"wallets.mpc.tss_request.succeeded",
+ "wallets.addresses.created",
+ "wallets.created",
+ "mpc_vaults.created",
}
func (v *WebhookEventType) UnmarshalJSON(src []byte) error {
diff --git a/cobo_waas2/test/api_developers_test.go b/cobo_waas2/test/api_developers_test.go
index 1b1a1da..31f6912 100644
--- a/cobo_waas2/test/api_developers_test.go
+++ b/cobo_waas2/test/api_developers_test.go
@@ -40,4 +40,30 @@ func Test_cobo_waas2_DevelopersAPIService(t *testing.T) {
})
+ t.Run("Test DevelopersAPIService ListCallbackMessages", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.DevelopersAPI.ListCallbackMessages(ctx).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test DevelopersAPIService RetryCallbackMessage", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var messageId string
+
+ resp, httpRes, err := apiClient.DevelopersAPI.RetryCallbackMessage(ctx, messageId).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
}
diff --git a/cobo_waas2/test/api_transactions_test.go b/cobo_waas2/test/api_transactions_test.go
index ffdcea0..aefa5e7 100644
--- a/cobo_waas2/test/api_transactions_test.go
+++ b/cobo_waas2/test/api_transactions_test.go
@@ -128,6 +128,20 @@ func Test_cobo_waas2_TransactionsAPIService(t *testing.T) {
})
+ t.Run("Test TransactionsAPIService GetTransactionApprovalDetail", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ var transactionId string
+
+ resp, httpRes, err := apiClient.TransactionsAPI.GetTransactionApprovalDetail(ctx, transactionId).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
t.Run("Test TransactionsAPIService GetTransactionById", func(t *testing.T) {
t.Skip("skip test") // remove to run test
diff --git a/cobo_waas2/test/api_travel_rule_test.go b/cobo_waas2/test/api_travel_rule_test.go
new file mode 100644
index 0000000..8d41224
--- /dev/null
+++ b/cobo_waas2/test/api_travel_rule_test.go
@@ -0,0 +1,79 @@
+/*
+Cobo Wallet as a Service 2.0
+
+Testing TravelRuleAPIService
+
+*/
+
+// Code generated by OpenAPI Generator (https://openapi-generator.tech);
+
+package cobo_waas2
+
+import (
+ "context"
+ "testing"
+
+ coboWaas2 "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2"
+ "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2/crypto"
+ "github.com/stretchr/testify/assert"
+ "github.com/stretchr/testify/require"
+)
+
+func Test_cobo_waas2_TravelRuleAPIService(t *testing.T) {
+
+ configuration := coboWaas2.NewConfiguration()
+ apiClient := coboWaas2.NewAPIClient(configuration)
+ ctx := context.WithValue(context.Background(), coboWaas2.ContextServerHost, "https://api[.xxxx].cobo.com/v2")
+ ctx = context.WithValue(ctx, coboWaas2.ContextPortalSigner, crypto.Ed25519Signer{
+ Secret: "",
+ })
+
+ t.Run("Test TravelRuleAPIService GetTransactionLimitation", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.TravelRuleAPI.GetTransactionLimitation(ctx).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test TravelRuleAPIService ListSupportedCountries", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.TravelRuleAPI.ListSupportedCountries(ctx).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test TravelRuleAPIService SubmitDepositTravelRuleInfo", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.TravelRuleAPI.SubmitDepositTravelRuleInfo(ctx).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+ t.Run("Test TravelRuleAPIService SubmitWithdrawTravelRuleInfo", func(t *testing.T) {
+
+ t.Skip("skip test") // remove to run test
+
+ resp, httpRes, err := apiClient.TravelRuleAPI.SubmitWithdrawTravelRuleInfo(ctx).Execute()
+
+ require.Nil(t, err)
+ require.NotNil(t, resp)
+ assert.Equal(t, 200, httpRes.StatusCode)
+
+ })
+
+}
diff --git a/docs/Activity.md b/docs/Activity.md
index e8e5b20..fb39bf6 100644
--- a/docs/Activity.md
+++ b/docs/Activity.md
@@ -13,11 +13,13 @@ Name | Type | Description | Notes
**PoolId** | [**StakingPoolId**](StakingPoolId.md) | |
**TokenId** | **string** | The token ID. |
**StakingId** | Pointer to **string** | The ID of the corresponding staking position. | [optional]
+**RequestIds** | Pointer to **[]string** | The request IDs of the corresponding transactions of the activity. | [optional]
**Amount** | **string** | The staking amount. |
**TransactionIds** | Pointer to **[]string** | The IDs of the corresponding transactions of the activity. | [optional]
**Timeline** | Pointer to [**[]ActivityTimeline**](ActivityTimeline.md) | The timeline of the activity. | [optional]
**Fee** | Pointer to [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
**Status** | [**ActivityStatus**](ActivityStatus.md) | |
+**Extra** | Pointer to [**ActivityExtra**](ActivityExtra.md) | | [optional]
**CreatedTimestamp** | Pointer to **int64** | The time when the activity was created. | [optional]
**UpdatedTimestamp** | Pointer to **int64** | The time when the activity was last updated. | [optional]
@@ -255,6 +257,31 @@ SetStakingId sets StakingId field to given value.
HasStakingId returns a boolean if a field has been set.
+### GetRequestIds
+
+`func (o *Activity) GetRequestIds() []string`
+
+GetRequestIds returns the RequestIds field if non-nil, zero value otherwise.
+
+### GetRequestIdsOk
+
+`func (o *Activity) GetRequestIdsOk() (*[]string, bool)`
+
+GetRequestIdsOk returns a tuple with the RequestIds field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetRequestIds
+
+`func (o *Activity) SetRequestIds(v []string)`
+
+SetRequestIds sets RequestIds field to given value.
+
+### HasRequestIds
+
+`func (o *Activity) HasRequestIds() bool`
+
+HasRequestIds returns a boolean if a field has been set.
+
### GetAmount
`func (o *Activity) GetAmount() string`
@@ -370,6 +397,31 @@ and a boolean to check if the value has been set.
SetStatus sets Status field to given value.
+### GetExtra
+
+`func (o *Activity) GetExtra() ActivityExtra`
+
+GetExtra returns the Extra field if non-nil, zero value otherwise.
+
+### GetExtraOk
+
+`func (o *Activity) GetExtraOk() (*ActivityExtra, bool)`
+
+GetExtraOk returns a tuple with the Extra field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetExtra
+
+`func (o *Activity) SetExtra(v ActivityExtra)`
+
+SetExtra sets Extra field to given value.
+
+### HasExtra
+
+`func (o *Activity) HasExtra() bool`
+
+HasExtra returns a boolean if a field has been set.
+
### GetCreatedTimestamp
`func (o *Activity) GetCreatedTimestamp() int64`
diff --git a/docs/ActivityAction.md b/docs/ActivityAction.md
index ec1bd1e..9deb3ae 100644
--- a/docs/ActivityAction.md
+++ b/docs/ActivityAction.md
@@ -17,6 +17,18 @@
* `UNSTAKE_ETH` (value: `"UnstakeETH"`)
+* `APPROVE_USDC` (value: `"ApproveUSDC"`)
+
+* `CONVERT_TO_USDS` (value: `"ConvertToUSDS"`)
+
+* `APPROVE_USDS` (value: `"ApproveUSDS"`)
+
+* `DEPOSIT_USDS` (value: `"DepositUSDS"`)
+
+* `WITHDRAW_USDS` (value: `"WithdrawUSDS"`)
+
+* `CONVERT_TO_USDC` (value: `"ConvertToUSDC"`)
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/ActivityExtra.md b/docs/ActivityExtra.md
new file mode 100644
index 0000000..0e7f87e
--- /dev/null
+++ b/docs/ActivityExtra.md
@@ -0,0 +1,337 @@
+# ActivityExtra
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**PoolType** | [**StakingPoolType**](StakingPoolType.md) | |
+**FinalityProviderPublicKey** | Pointer to **string** | The public key of the finality provider. | [optional]
+**StakeBlockTime** | Pointer to **int64** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. | [optional]
+**AutoBroadcast** | Pointer to **bool** | Whether to automatically broadcast the transaction. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
+**ParamVersion** | Pointer to **int64** | The version of babylon global parameters. | [optional]
+**WithdrawFromType** | Pointer to [**ActivityType**](ActivityType.md) | | [optional]
+**ProviderName** | Pointer to **string** | The name of the provider. | [optional]
+**ValidatorPubkeys** | Pointer to **[]string** | A list of public keys identifying the validators to unstake from the Ethereum Beacon Chain. | [optional]
+**Timelock** | Pointer to **int32** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. | [optional]
+**ChangeAddress** | Pointer to **string** | The change bitcoin address. If not provided, the source wallet's address will be used as the change address. | [optional]
+**ValidatorAddress** | Pointer to **string** | The validator evm address. | [optional]
+**RewardAddress** | Pointer to **string** | The reward evm address. | [optional]
+
+## Methods
+
+### NewActivityExtra
+
+`func NewActivityExtra(poolType StakingPoolType, ) *ActivityExtra`
+
+NewActivityExtra instantiates a new ActivityExtra object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewActivityExtraWithDefaults
+
+`func NewActivityExtraWithDefaults() *ActivityExtra`
+
+NewActivityExtraWithDefaults instantiates a new ActivityExtra object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetPoolType
+
+`func (o *ActivityExtra) GetPoolType() StakingPoolType`
+
+GetPoolType returns the PoolType field if non-nil, zero value otherwise.
+
+### GetPoolTypeOk
+
+`func (o *ActivityExtra) GetPoolTypeOk() (*StakingPoolType, bool)`
+
+GetPoolTypeOk returns a tuple with the PoolType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPoolType
+
+`func (o *ActivityExtra) SetPoolType(v StakingPoolType)`
+
+SetPoolType sets PoolType field to given value.
+
+
+### GetFinalityProviderPublicKey
+
+`func (o *ActivityExtra) GetFinalityProviderPublicKey() string`
+
+GetFinalityProviderPublicKey returns the FinalityProviderPublicKey field if non-nil, zero value otherwise.
+
+### GetFinalityProviderPublicKeyOk
+
+`func (o *ActivityExtra) GetFinalityProviderPublicKeyOk() (*string, bool)`
+
+GetFinalityProviderPublicKeyOk returns a tuple with the FinalityProviderPublicKey field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetFinalityProviderPublicKey
+
+`func (o *ActivityExtra) SetFinalityProviderPublicKey(v string)`
+
+SetFinalityProviderPublicKey sets FinalityProviderPublicKey field to given value.
+
+### HasFinalityProviderPublicKey
+
+`func (o *ActivityExtra) HasFinalityProviderPublicKey() bool`
+
+HasFinalityProviderPublicKey returns a boolean if a field has been set.
+
+### GetStakeBlockTime
+
+`func (o *ActivityExtra) GetStakeBlockTime() int64`
+
+GetStakeBlockTime returns the StakeBlockTime field if non-nil, zero value otherwise.
+
+### GetStakeBlockTimeOk
+
+`func (o *ActivityExtra) GetStakeBlockTimeOk() (*int64, bool)`
+
+GetStakeBlockTimeOk returns a tuple with the StakeBlockTime field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetStakeBlockTime
+
+`func (o *ActivityExtra) SetStakeBlockTime(v int64)`
+
+SetStakeBlockTime sets StakeBlockTime field to given value.
+
+### HasStakeBlockTime
+
+`func (o *ActivityExtra) HasStakeBlockTime() bool`
+
+HasStakeBlockTime returns a boolean if a field has been set.
+
+### GetAutoBroadcast
+
+`func (o *ActivityExtra) GetAutoBroadcast() bool`
+
+GetAutoBroadcast returns the AutoBroadcast field if non-nil, zero value otherwise.
+
+### GetAutoBroadcastOk
+
+`func (o *ActivityExtra) GetAutoBroadcastOk() (*bool, bool)`
+
+GetAutoBroadcastOk returns a tuple with the AutoBroadcast field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAutoBroadcast
+
+`func (o *ActivityExtra) SetAutoBroadcast(v bool)`
+
+SetAutoBroadcast sets AutoBroadcast field to given value.
+
+### HasAutoBroadcast
+
+`func (o *ActivityExtra) HasAutoBroadcast() bool`
+
+HasAutoBroadcast returns a boolean if a field has been set.
+
+### GetParamVersion
+
+`func (o *ActivityExtra) GetParamVersion() int64`
+
+GetParamVersion returns the ParamVersion field if non-nil, zero value otherwise.
+
+### GetParamVersionOk
+
+`func (o *ActivityExtra) GetParamVersionOk() (*int64, bool)`
+
+GetParamVersionOk returns a tuple with the ParamVersion field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetParamVersion
+
+`func (o *ActivityExtra) SetParamVersion(v int64)`
+
+SetParamVersion sets ParamVersion field to given value.
+
+### HasParamVersion
+
+`func (o *ActivityExtra) HasParamVersion() bool`
+
+HasParamVersion returns a boolean if a field has been set.
+
+### GetWithdrawFromType
+
+`func (o *ActivityExtra) GetWithdrawFromType() ActivityType`
+
+GetWithdrawFromType returns the WithdrawFromType field if non-nil, zero value otherwise.
+
+### GetWithdrawFromTypeOk
+
+`func (o *ActivityExtra) GetWithdrawFromTypeOk() (*ActivityType, bool)`
+
+GetWithdrawFromTypeOk returns a tuple with the WithdrawFromType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetWithdrawFromType
+
+`func (o *ActivityExtra) SetWithdrawFromType(v ActivityType)`
+
+SetWithdrawFromType sets WithdrawFromType field to given value.
+
+### HasWithdrawFromType
+
+`func (o *ActivityExtra) HasWithdrawFromType() bool`
+
+HasWithdrawFromType returns a boolean if a field has been set.
+
+### GetProviderName
+
+`func (o *ActivityExtra) GetProviderName() string`
+
+GetProviderName returns the ProviderName field if non-nil, zero value otherwise.
+
+### GetProviderNameOk
+
+`func (o *ActivityExtra) GetProviderNameOk() (*string, bool)`
+
+GetProviderNameOk returns a tuple with the ProviderName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetProviderName
+
+`func (o *ActivityExtra) SetProviderName(v string)`
+
+SetProviderName sets ProviderName field to given value.
+
+### HasProviderName
+
+`func (o *ActivityExtra) HasProviderName() bool`
+
+HasProviderName returns a boolean if a field has been set.
+
+### GetValidatorPubkeys
+
+`func (o *ActivityExtra) GetValidatorPubkeys() []string`
+
+GetValidatorPubkeys returns the ValidatorPubkeys field if non-nil, zero value otherwise.
+
+### GetValidatorPubkeysOk
+
+`func (o *ActivityExtra) GetValidatorPubkeysOk() (*[]string, bool)`
+
+GetValidatorPubkeysOk returns a tuple with the ValidatorPubkeys field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetValidatorPubkeys
+
+`func (o *ActivityExtra) SetValidatorPubkeys(v []string)`
+
+SetValidatorPubkeys sets ValidatorPubkeys field to given value.
+
+### HasValidatorPubkeys
+
+`func (o *ActivityExtra) HasValidatorPubkeys() bool`
+
+HasValidatorPubkeys returns a boolean if a field has been set.
+
+### GetTimelock
+
+`func (o *ActivityExtra) GetTimelock() int32`
+
+GetTimelock returns the Timelock field if non-nil, zero value otherwise.
+
+### GetTimelockOk
+
+`func (o *ActivityExtra) GetTimelockOk() (*int32, bool)`
+
+GetTimelockOk returns a tuple with the Timelock field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTimelock
+
+`func (o *ActivityExtra) SetTimelock(v int32)`
+
+SetTimelock sets Timelock field to given value.
+
+### HasTimelock
+
+`func (o *ActivityExtra) HasTimelock() bool`
+
+HasTimelock returns a boolean if a field has been set.
+
+### GetChangeAddress
+
+`func (o *ActivityExtra) GetChangeAddress() string`
+
+GetChangeAddress returns the ChangeAddress field if non-nil, zero value otherwise.
+
+### GetChangeAddressOk
+
+`func (o *ActivityExtra) GetChangeAddressOk() (*string, bool)`
+
+GetChangeAddressOk returns a tuple with the ChangeAddress field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetChangeAddress
+
+`func (o *ActivityExtra) SetChangeAddress(v string)`
+
+SetChangeAddress sets ChangeAddress field to given value.
+
+### HasChangeAddress
+
+`func (o *ActivityExtra) HasChangeAddress() bool`
+
+HasChangeAddress returns a boolean if a field has been set.
+
+### GetValidatorAddress
+
+`func (o *ActivityExtra) GetValidatorAddress() string`
+
+GetValidatorAddress returns the ValidatorAddress field if non-nil, zero value otherwise.
+
+### GetValidatorAddressOk
+
+`func (o *ActivityExtra) GetValidatorAddressOk() (*string, bool)`
+
+GetValidatorAddressOk returns a tuple with the ValidatorAddress field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetValidatorAddress
+
+`func (o *ActivityExtra) SetValidatorAddress(v string)`
+
+SetValidatorAddress sets ValidatorAddress field to given value.
+
+### HasValidatorAddress
+
+`func (o *ActivityExtra) HasValidatorAddress() bool`
+
+HasValidatorAddress returns a boolean if a field has been set.
+
+### GetRewardAddress
+
+`func (o *ActivityExtra) GetRewardAddress() string`
+
+GetRewardAddress returns the RewardAddress field if non-nil, zero value otherwise.
+
+### GetRewardAddressOk
+
+`func (o *ActivityExtra) GetRewardAddressOk() (*string, bool)`
+
+GetRewardAddressOk returns a tuple with the RewardAddress field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetRewardAddress
+
+`func (o *ActivityExtra) SetRewardAddress(v string)`
+
+SetRewardAddress sets RewardAddress field to given value.
+
+### HasRewardAddress
+
+`func (o *ActivityExtra) HasRewardAddress() bool`
+
+HasRewardAddress returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/AddressBooksAPI.md b/docs/AddressBooksAPI.md
index 0ad3812..79f7cec 100644
--- a/docs/AddressBooksAPI.md
+++ b/docs/AddressBooksAPI.md
@@ -69,12 +69,12 @@ Other parameters are passed through a pointer to a apiListAddressBooksRequest st
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **chainId** | **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). |
+ **chainId** | **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
**address** | **string** | The wallet address. |
**label** | **string** | The address label. |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
diff --git a/docs/AddressInfo.md b/docs/AddressInfo.md
index e6f6d7a..b05e1af 100644
--- a/docs/AddressInfo.md
+++ b/docs/AddressInfo.md
@@ -5,12 +5,13 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Address** | **string** | The wallet address. |
-**ChainId** | **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). |
+**ChainId** | **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
**Memo** | Pointer to **string** | The memo code. | [optional]
**Path** | Pointer to **string** | The derivation path of the address. This property applies to MPC Wallets only. To learn the meaning of each level in the path, see [Path levels](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#path-levels). | [optional]
**Encoding** | Pointer to [**AddressEncoding**](AddressEncoding.md) | | [optional]
**Pubkey** | Pointer to **string** | The public key of the address. This property applies to MPC Wallets only. | [optional]
**XOnlyPubkey** | Pointer to **string** | The 32-byte x-only public key in hexadecimal format after tweaking. | [optional]
+**RootPubkey** | Pointer to **string** | The root public key of the address. This property applies to MPC Wallets only. | [optional]
**TaprootScriptTreeHash** | Pointer to **string** | The information about the new address. | [optional]
**TaprootInternalAddress** | Pointer to **string** | The Taproot address before tweaking. | [optional]
@@ -198,6 +199,31 @@ SetXOnlyPubkey sets XOnlyPubkey field to given value.
HasXOnlyPubkey returns a boolean if a field has been set.
+### GetRootPubkey
+
+`func (o *AddressInfo) GetRootPubkey() string`
+
+GetRootPubkey returns the RootPubkey field if non-nil, zero value otherwise.
+
+### GetRootPubkeyOk
+
+`func (o *AddressInfo) GetRootPubkeyOk() (*string, bool)`
+
+GetRootPubkeyOk returns a tuple with the RootPubkey field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetRootPubkey
+
+`func (o *AddressInfo) SetRootPubkey(v string)`
+
+SetRootPubkey sets RootPubkey field to given value.
+
+### HasRootPubkey
+
+`func (o *AddressInfo) HasRootPubkey() bool`
+
+HasRootPubkey returns a boolean if a field has been set.
+
### GetTaprootScriptTreeHash
`func (o *AddressInfo) GetTaprootScriptTreeHash() string`
diff --git a/docs/AddressesEventData.md b/docs/AddressesEventData.md
new file mode 100644
index 0000000..a2d6a2e
--- /dev/null
+++ b/docs/AddressesEventData.md
@@ -0,0 +1,77 @@
+# AddressesEventData
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**DataType** | **string** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. |
+**Addresses** | Pointer to [**[]AddressInfo**](AddressInfo.md) | A list of addresses. | [optional]
+
+## Methods
+
+### NewAddressesEventData
+
+`func NewAddressesEventData(dataType string, ) *AddressesEventData`
+
+NewAddressesEventData instantiates a new AddressesEventData object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewAddressesEventDataWithDefaults
+
+`func NewAddressesEventDataWithDefaults() *AddressesEventData`
+
+NewAddressesEventDataWithDefaults instantiates a new AddressesEventData object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetDataType
+
+`func (o *AddressesEventData) GetDataType() string`
+
+GetDataType returns the DataType field if non-nil, zero value otherwise.
+
+### GetDataTypeOk
+
+`func (o *AddressesEventData) GetDataTypeOk() (*string, bool)`
+
+GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDataType
+
+`func (o *AddressesEventData) SetDataType(v string)`
+
+SetDataType sets DataType field to given value.
+
+
+### GetAddresses
+
+`func (o *AddressesEventData) GetAddresses() []AddressInfo`
+
+GetAddresses returns the Addresses field if non-nil, zero value otherwise.
+
+### GetAddressesOk
+
+`func (o *AddressesEventData) GetAddressesOk() (*[]AddressInfo, bool)`
+
+GetAddressesOk returns a tuple with the Addresses field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAddresses
+
+`func (o *AddressesEventData) SetAddresses(v []AddressInfo)`
+
+SetAddresses sets Addresses field to given value.
+
+### HasAddresses
+
+`func (o *AddressesEventData) HasAddresses() bool`
+
+HasAddresses returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ApiLogDetails.md b/docs/ApiLogDetails.md
index e96c403..d69dd15 100644
--- a/docs/ApiLogDetails.md
+++ b/docs/ApiLogDetails.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
**StatusCode** | **int32** | The HTTP status code returned by the API request. |
**IpAddress** | **string** | The client's IP address that made the API request. |
**RequestTimestamp** | **int64** | The time when the API request was created, in Unix timestamp format, measured in milliseconds. |
-**ApiKey** | **string** | The API key used to call the API. For more details, refer to [API key](/v2/guides/overview/cobo-auth#api-key). |
+**ApiKey** | **string** | The API key used to call the API. For more details, refer to [API key](https://www.cobo.com/developers/v2/guides/overview/cobo-auth#api-key). |
**ResponseBody** | **string** | The response body of the API request. |
**QueryParams** | **string** | The query parameters of the API request. |
**RequestBody** | **string** | The request body of the API request. |
diff --git a/docs/BabylonStakeExtra.md b/docs/BabylonStakeExtra.md
index 70fd4fa..0aaeca4 100644
--- a/docs/BabylonStakeExtra.md
+++ b/docs/BabylonStakeExtra.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**PoolType** | [**StakingPoolType**](StakingPoolType.md) | |
**FinalityProviderPublicKey** | **string** | The public key of the finality provider. |
**StakeBlockTime** | **int64** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. |
-**AutoBroadcast** | Pointer to **bool** | Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
+**AutoBroadcast** | Pointer to **bool** | Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](https://www.cobo.com/developers/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](https://www.cobo.com/developers/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
## Methods
diff --git a/docs/BabylonStakingActivityDetailExtra.md b/docs/BabylonStakingActivityDetailExtra.md
new file mode 100644
index 0000000..3055345
--- /dev/null
+++ b/docs/BabylonStakingActivityDetailExtra.md
@@ -0,0 +1,181 @@
+# BabylonStakingActivityDetailExtra
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**PoolType** | [**StakingPoolType**](StakingPoolType.md) | |
+**FinalityProviderPublicKey** | Pointer to **string** | The public key of the finality provider. | [optional]
+**StakeBlockTime** | Pointer to **int64** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. | [optional]
+**AutoBroadcast** | Pointer to **bool** | Whether to automatically broadcast the transaction. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
+**ParamVersion** | Pointer to **int64** | The version of babylon global parameters. | [optional]
+**WithdrawFromType** | Pointer to [**ActivityType**](ActivityType.md) | | [optional]
+
+## Methods
+
+### NewBabylonStakingActivityDetailExtra
+
+`func NewBabylonStakingActivityDetailExtra(poolType StakingPoolType, ) *BabylonStakingActivityDetailExtra`
+
+NewBabylonStakingActivityDetailExtra instantiates a new BabylonStakingActivityDetailExtra object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewBabylonStakingActivityDetailExtraWithDefaults
+
+`func NewBabylonStakingActivityDetailExtraWithDefaults() *BabylonStakingActivityDetailExtra`
+
+NewBabylonStakingActivityDetailExtraWithDefaults instantiates a new BabylonStakingActivityDetailExtra object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetPoolType
+
+`func (o *BabylonStakingActivityDetailExtra) GetPoolType() StakingPoolType`
+
+GetPoolType returns the PoolType field if non-nil, zero value otherwise.
+
+### GetPoolTypeOk
+
+`func (o *BabylonStakingActivityDetailExtra) GetPoolTypeOk() (*StakingPoolType, bool)`
+
+GetPoolTypeOk returns a tuple with the PoolType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPoolType
+
+`func (o *BabylonStakingActivityDetailExtra) SetPoolType(v StakingPoolType)`
+
+SetPoolType sets PoolType field to given value.
+
+
+### GetFinalityProviderPublicKey
+
+`func (o *BabylonStakingActivityDetailExtra) GetFinalityProviderPublicKey() string`
+
+GetFinalityProviderPublicKey returns the FinalityProviderPublicKey field if non-nil, zero value otherwise.
+
+### GetFinalityProviderPublicKeyOk
+
+`func (o *BabylonStakingActivityDetailExtra) GetFinalityProviderPublicKeyOk() (*string, bool)`
+
+GetFinalityProviderPublicKeyOk returns a tuple with the FinalityProviderPublicKey field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetFinalityProviderPublicKey
+
+`func (o *BabylonStakingActivityDetailExtra) SetFinalityProviderPublicKey(v string)`
+
+SetFinalityProviderPublicKey sets FinalityProviderPublicKey field to given value.
+
+### HasFinalityProviderPublicKey
+
+`func (o *BabylonStakingActivityDetailExtra) HasFinalityProviderPublicKey() bool`
+
+HasFinalityProviderPublicKey returns a boolean if a field has been set.
+
+### GetStakeBlockTime
+
+`func (o *BabylonStakingActivityDetailExtra) GetStakeBlockTime() int64`
+
+GetStakeBlockTime returns the StakeBlockTime field if non-nil, zero value otherwise.
+
+### GetStakeBlockTimeOk
+
+`func (o *BabylonStakingActivityDetailExtra) GetStakeBlockTimeOk() (*int64, bool)`
+
+GetStakeBlockTimeOk returns a tuple with the StakeBlockTime field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetStakeBlockTime
+
+`func (o *BabylonStakingActivityDetailExtra) SetStakeBlockTime(v int64)`
+
+SetStakeBlockTime sets StakeBlockTime field to given value.
+
+### HasStakeBlockTime
+
+`func (o *BabylonStakingActivityDetailExtra) HasStakeBlockTime() bool`
+
+HasStakeBlockTime returns a boolean if a field has been set.
+
+### GetAutoBroadcast
+
+`func (o *BabylonStakingActivityDetailExtra) GetAutoBroadcast() bool`
+
+GetAutoBroadcast returns the AutoBroadcast field if non-nil, zero value otherwise.
+
+### GetAutoBroadcastOk
+
+`func (o *BabylonStakingActivityDetailExtra) GetAutoBroadcastOk() (*bool, bool)`
+
+GetAutoBroadcastOk returns a tuple with the AutoBroadcast field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAutoBroadcast
+
+`func (o *BabylonStakingActivityDetailExtra) SetAutoBroadcast(v bool)`
+
+SetAutoBroadcast sets AutoBroadcast field to given value.
+
+### HasAutoBroadcast
+
+`func (o *BabylonStakingActivityDetailExtra) HasAutoBroadcast() bool`
+
+HasAutoBroadcast returns a boolean if a field has been set.
+
+### GetParamVersion
+
+`func (o *BabylonStakingActivityDetailExtra) GetParamVersion() int64`
+
+GetParamVersion returns the ParamVersion field if non-nil, zero value otherwise.
+
+### GetParamVersionOk
+
+`func (o *BabylonStakingActivityDetailExtra) GetParamVersionOk() (*int64, bool)`
+
+GetParamVersionOk returns a tuple with the ParamVersion field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetParamVersion
+
+`func (o *BabylonStakingActivityDetailExtra) SetParamVersion(v int64)`
+
+SetParamVersion sets ParamVersion field to given value.
+
+### HasParamVersion
+
+`func (o *BabylonStakingActivityDetailExtra) HasParamVersion() bool`
+
+HasParamVersion returns a boolean if a field has been set.
+
+### GetWithdrawFromType
+
+`func (o *BabylonStakingActivityDetailExtra) GetWithdrawFromType() ActivityType`
+
+GetWithdrawFromType returns the WithdrawFromType field if non-nil, zero value otherwise.
+
+### GetWithdrawFromTypeOk
+
+`func (o *BabylonStakingActivityDetailExtra) GetWithdrawFromTypeOk() (*ActivityType, bool)`
+
+GetWithdrawFromTypeOk returns a tuple with the WithdrawFromType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetWithdrawFromType
+
+`func (o *BabylonStakingActivityDetailExtra) SetWithdrawFromType(v ActivityType)`
+
+SetWithdrawFromType sets WithdrawFromType field to given value.
+
+### HasWithdrawFromType
+
+`func (o *BabylonStakingActivityDetailExtra) HasWithdrawFromType() bool`
+
+HasWithdrawFromType returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BroadcastSignedTransactionsRequest.md b/docs/BroadcastSignedTransactionsRequest.md
index 14b2556..b3751d3 100644
--- a/docs/BroadcastSignedTransactionsRequest.md
+++ b/docs/BroadcastSignedTransactionsRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TransactionIds** | Pointer to **[]string** | The transaction IDs of the signed transactions to be broadcast. You can retrieve the transactions corresponding to a staking activity by calling [Get staking activity details](/v2/api-references/stakings/get-staking-activity-details). | [optional]
+**TransactionIds** | Pointer to **[]string** | The transaction IDs of the signed transactions to be broadcast. You can retrieve the transactions corresponding to a staking activity by calling [Get staking activity details](https://www.cobo.com/developers/v2/api-references/stakings/get-staking-activity-details). | [optional]
## Methods
diff --git a/docs/CallbackMessage.md b/docs/CallbackMessage.md
new file mode 100644
index 0000000..1cf392c
--- /dev/null
+++ b/docs/CallbackMessage.md
@@ -0,0 +1,250 @@
+# CallbackMessage
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **string** | The callback message ID. |
+**CreatedTimestamp** | **int64** | The time when the callback message was created, in Unix timestamp format, measured in milliseconds. |
+**UpdatedTimestamp** | **int64** | The time when the callback message was updated, in Unix timestamp format, measured in milliseconds. |
+**RequestId** | **string** | The request ID of the transaction. |
+**TransactionId** | **string** | The transaction ID. |
+**WalletId** | Pointer to **string** | The wallet ID. | [optional]
+**Url** | **string** | The callback endpoint URL. |
+**Data** | [**Transaction**](Transaction.md) | |
+**Status** | **string** | The callback message status. Possible values include `Denied`, `Approved`, and `Failed`. |
+**Result** | Pointer to **string** | The callback message result. Possible values include `ok` and `deny`. | [optional]
+
+## Methods
+
+### NewCallbackMessage
+
+`func NewCallbackMessage(id string, createdTimestamp int64, updatedTimestamp int64, requestId string, transactionId string, url string, data Transaction, status string, ) *CallbackMessage`
+
+NewCallbackMessage instantiates a new CallbackMessage object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewCallbackMessageWithDefaults
+
+`func NewCallbackMessageWithDefaults() *CallbackMessage`
+
+NewCallbackMessageWithDefaults instantiates a new CallbackMessage object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetId
+
+`func (o *CallbackMessage) GetId() string`
+
+GetId returns the Id field if non-nil, zero value otherwise.
+
+### GetIdOk
+
+`func (o *CallbackMessage) GetIdOk() (*string, bool)`
+
+GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetId
+
+`func (o *CallbackMessage) SetId(v string)`
+
+SetId sets Id field to given value.
+
+
+### GetCreatedTimestamp
+
+`func (o *CallbackMessage) GetCreatedTimestamp() int64`
+
+GetCreatedTimestamp returns the CreatedTimestamp field if non-nil, zero value otherwise.
+
+### GetCreatedTimestampOk
+
+`func (o *CallbackMessage) GetCreatedTimestampOk() (*int64, bool)`
+
+GetCreatedTimestampOk returns a tuple with the CreatedTimestamp field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCreatedTimestamp
+
+`func (o *CallbackMessage) SetCreatedTimestamp(v int64)`
+
+SetCreatedTimestamp sets CreatedTimestamp field to given value.
+
+
+### GetUpdatedTimestamp
+
+`func (o *CallbackMessage) GetUpdatedTimestamp() int64`
+
+GetUpdatedTimestamp returns the UpdatedTimestamp field if non-nil, zero value otherwise.
+
+### GetUpdatedTimestampOk
+
+`func (o *CallbackMessage) GetUpdatedTimestampOk() (*int64, bool)`
+
+GetUpdatedTimestampOk returns a tuple with the UpdatedTimestamp field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetUpdatedTimestamp
+
+`func (o *CallbackMessage) SetUpdatedTimestamp(v int64)`
+
+SetUpdatedTimestamp sets UpdatedTimestamp field to given value.
+
+
+### GetRequestId
+
+`func (o *CallbackMessage) GetRequestId() string`
+
+GetRequestId returns the RequestId field if non-nil, zero value otherwise.
+
+### GetRequestIdOk
+
+`func (o *CallbackMessage) GetRequestIdOk() (*string, bool)`
+
+GetRequestIdOk returns a tuple with the RequestId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetRequestId
+
+`func (o *CallbackMessage) SetRequestId(v string)`
+
+SetRequestId sets RequestId field to given value.
+
+
+### GetTransactionId
+
+`func (o *CallbackMessage) GetTransactionId() string`
+
+GetTransactionId returns the TransactionId field if non-nil, zero value otherwise.
+
+### GetTransactionIdOk
+
+`func (o *CallbackMessage) GetTransactionIdOk() (*string, bool)`
+
+GetTransactionIdOk returns a tuple with the TransactionId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTransactionId
+
+`func (o *CallbackMessage) SetTransactionId(v string)`
+
+SetTransactionId sets TransactionId field to given value.
+
+
+### GetWalletId
+
+`func (o *CallbackMessage) GetWalletId() string`
+
+GetWalletId returns the WalletId field if non-nil, zero value otherwise.
+
+### GetWalletIdOk
+
+`func (o *CallbackMessage) GetWalletIdOk() (*string, bool)`
+
+GetWalletIdOk returns a tuple with the WalletId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetWalletId
+
+`func (o *CallbackMessage) SetWalletId(v string)`
+
+SetWalletId sets WalletId field to given value.
+
+### HasWalletId
+
+`func (o *CallbackMessage) HasWalletId() bool`
+
+HasWalletId returns a boolean if a field has been set.
+
+### GetUrl
+
+`func (o *CallbackMessage) GetUrl() string`
+
+GetUrl returns the Url field if non-nil, zero value otherwise.
+
+### GetUrlOk
+
+`func (o *CallbackMessage) GetUrlOk() (*string, bool)`
+
+GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetUrl
+
+`func (o *CallbackMessage) SetUrl(v string)`
+
+SetUrl sets Url field to given value.
+
+
+### GetData
+
+`func (o *CallbackMessage) GetData() Transaction`
+
+GetData returns the Data field if non-nil, zero value otherwise.
+
+### GetDataOk
+
+`func (o *CallbackMessage) GetDataOk() (*Transaction, bool)`
+
+GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetData
+
+`func (o *CallbackMessage) SetData(v Transaction)`
+
+SetData sets Data field to given value.
+
+
+### GetStatus
+
+`func (o *CallbackMessage) GetStatus() string`
+
+GetStatus returns the Status field if non-nil, zero value otherwise.
+
+### GetStatusOk
+
+`func (o *CallbackMessage) GetStatusOk() (*string, bool)`
+
+GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetStatus
+
+`func (o *CallbackMessage) SetStatus(v string)`
+
+SetStatus sets Status field to given value.
+
+
+### GetResult
+
+`func (o *CallbackMessage) GetResult() string`
+
+GetResult returns the Result field if non-nil, zero value otherwise.
+
+### GetResultOk
+
+`func (o *CallbackMessage) GetResultOk() (*string, bool)`
+
+GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetResult
+
+`func (o *CallbackMessage) SetResult(v string)`
+
+SetResult sets Result field to given value.
+
+### HasResult
+
+`func (o *CallbackMessage) HasResult() bool`
+
+HasResult returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ChainInfo.md b/docs/ChainInfo.md
index f2f6b92..d36ff9e 100644
--- a/docs/ChainInfo.md
+++ b/docs/ChainInfo.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ChainId** | **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). |
+**ChainId** | **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
**Symbol** | Pointer to **string** | The chain symbol, which is the abbreviated name of a chain. | [optional]
**IconUrl** | Pointer to **string** | The URL of the chain icon. | [optional]
**ExplorerTxUrl** | Pointer to **string** | The transaction URL pattern on the blockchain explorer. You can use it to concatenate the transaction URLs. | [optional]
diff --git a/docs/ContractCallParams.md b/docs/ContractCallParams.md
index f010e2d..7d12101 100644
--- a/docs/ContractCallParams.md
+++ b/docs/ContractCallParams.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**RequestId** | **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. |
-**ChainId** | **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). |
+**ChainId** | **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
**Source** | [**ContractCallSource**](ContractCallSource.md) | |
**Destination** | [**ContractCallDestination**](ContractCallDestination.md) | |
**Description** | Pointer to **string** | The description of the contract call transaction. | [optional]
diff --git a/docs/CoreStakingActivityDetailExtra.md b/docs/CoreStakingActivityDetailExtra.md
new file mode 100644
index 0000000..8aa03cc
--- /dev/null
+++ b/docs/CoreStakingActivityDetailExtra.md
@@ -0,0 +1,155 @@
+# CoreStakingActivityDetailExtra
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**PoolType** | [**StakingPoolType**](StakingPoolType.md) | |
+**Timelock** | Pointer to **int32** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. | [optional]
+**ChangeAddress** | Pointer to **string** | The change bitcoin address. If not provided, the source wallet's address will be used as the change address. | [optional]
+**ValidatorAddress** | Pointer to **string** | The validator evm address. | [optional]
+**RewardAddress** | Pointer to **string** | The reward evm address. | [optional]
+
+## Methods
+
+### NewCoreStakingActivityDetailExtra
+
+`func NewCoreStakingActivityDetailExtra(poolType StakingPoolType, ) *CoreStakingActivityDetailExtra`
+
+NewCoreStakingActivityDetailExtra instantiates a new CoreStakingActivityDetailExtra object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewCoreStakingActivityDetailExtraWithDefaults
+
+`func NewCoreStakingActivityDetailExtraWithDefaults() *CoreStakingActivityDetailExtra`
+
+NewCoreStakingActivityDetailExtraWithDefaults instantiates a new CoreStakingActivityDetailExtra object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetPoolType
+
+`func (o *CoreStakingActivityDetailExtra) GetPoolType() StakingPoolType`
+
+GetPoolType returns the PoolType field if non-nil, zero value otherwise.
+
+### GetPoolTypeOk
+
+`func (o *CoreStakingActivityDetailExtra) GetPoolTypeOk() (*StakingPoolType, bool)`
+
+GetPoolTypeOk returns a tuple with the PoolType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPoolType
+
+`func (o *CoreStakingActivityDetailExtra) SetPoolType(v StakingPoolType)`
+
+SetPoolType sets PoolType field to given value.
+
+
+### GetTimelock
+
+`func (o *CoreStakingActivityDetailExtra) GetTimelock() int32`
+
+GetTimelock returns the Timelock field if non-nil, zero value otherwise.
+
+### GetTimelockOk
+
+`func (o *CoreStakingActivityDetailExtra) GetTimelockOk() (*int32, bool)`
+
+GetTimelockOk returns a tuple with the Timelock field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTimelock
+
+`func (o *CoreStakingActivityDetailExtra) SetTimelock(v int32)`
+
+SetTimelock sets Timelock field to given value.
+
+### HasTimelock
+
+`func (o *CoreStakingActivityDetailExtra) HasTimelock() bool`
+
+HasTimelock returns a boolean if a field has been set.
+
+### GetChangeAddress
+
+`func (o *CoreStakingActivityDetailExtra) GetChangeAddress() string`
+
+GetChangeAddress returns the ChangeAddress field if non-nil, zero value otherwise.
+
+### GetChangeAddressOk
+
+`func (o *CoreStakingActivityDetailExtra) GetChangeAddressOk() (*string, bool)`
+
+GetChangeAddressOk returns a tuple with the ChangeAddress field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetChangeAddress
+
+`func (o *CoreStakingActivityDetailExtra) SetChangeAddress(v string)`
+
+SetChangeAddress sets ChangeAddress field to given value.
+
+### HasChangeAddress
+
+`func (o *CoreStakingActivityDetailExtra) HasChangeAddress() bool`
+
+HasChangeAddress returns a boolean if a field has been set.
+
+### GetValidatorAddress
+
+`func (o *CoreStakingActivityDetailExtra) GetValidatorAddress() string`
+
+GetValidatorAddress returns the ValidatorAddress field if non-nil, zero value otherwise.
+
+### GetValidatorAddressOk
+
+`func (o *CoreStakingActivityDetailExtra) GetValidatorAddressOk() (*string, bool)`
+
+GetValidatorAddressOk returns a tuple with the ValidatorAddress field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetValidatorAddress
+
+`func (o *CoreStakingActivityDetailExtra) SetValidatorAddress(v string)`
+
+SetValidatorAddress sets ValidatorAddress field to given value.
+
+### HasValidatorAddress
+
+`func (o *CoreStakingActivityDetailExtra) HasValidatorAddress() bool`
+
+HasValidatorAddress returns a boolean if a field has been set.
+
+### GetRewardAddress
+
+`func (o *CoreStakingActivityDetailExtra) GetRewardAddress() string`
+
+GetRewardAddress returns the RewardAddress field if non-nil, zero value otherwise.
+
+### GetRewardAddressOk
+
+`func (o *CoreStakingActivityDetailExtra) GetRewardAddressOk() (*string, bool)`
+
+GetRewardAddressOk returns a tuple with the RewardAddress field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetRewardAddress
+
+`func (o *CoreStakingActivityDetailExtra) SetRewardAddress(v string)`
+
+SetRewardAddress sets RewardAddress field to given value.
+
+### HasRewardAddress
+
+`func (o *CoreStakingActivityDetailExtra) HasRewardAddress() bool`
+
+HasRewardAddress returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateAddressRequest.md b/docs/CreateAddressRequest.md
index ed5c108..1946b89 100644
--- a/docs/CreateAddressRequest.md
+++ b/docs/CreateAddressRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ChainId** | **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). |
+**ChainId** | **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
**Count** | **int32** | The number of addresses to create. | [default to 1]
**Encoding** | Pointer to [**AddressEncoding**](AddressEncoding.md) | | [optional]
diff --git a/docs/CreateClaimActivity.md b/docs/CreateClaimActivity.md
index 99ecccd..09f0595 100644
--- a/docs/CreateClaimActivity.md
+++ b/docs/CreateClaimActivity.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**RequestId** | Pointer to **string** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
-**StakingId** | **string** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions). |
+**StakingId** | **string** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions). |
**Fee** | Pointer to [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
## Methods
diff --git a/docs/CreateClaimActivityRequest.md b/docs/CreateClaimActivityRequest.md
index 5c5b390..e36638a 100644
--- a/docs/CreateClaimActivityRequest.md
+++ b/docs/CreateClaimActivityRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**RequestId** | Pointer to **string** | The request ID that is used to track a request. The request ID is provided by you and must be unique within your organization. | [optional]
-**StakingId** | **string** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions). |
+**StakingId** | **string** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions). |
**Fee** | Pointer to [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
**AppInitiator** | Pointer to **string** | The initiator of the staking activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator. | [optional]
diff --git a/docs/CreateKeyShareHolder.md b/docs/CreateKeyShareHolder.md
index eac4dd3..7a31676 100644
--- a/docs/CreateKeyShareHolder.md
+++ b/docs/CreateKeyShareHolder.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | Pointer to **string** | Key share holder's name. | [optional]
**Type** | Pointer to [**KeyShareHolderType**](KeyShareHolderType.md) | | [optional]
-**TssNodeId** | Pointer to **string** | Key share holder's TSS Node ID. You can obtain the TSS Node ID using either mobile co-signer or API co-signer. See the \"Primary Purposes\" row on the table in [Create a Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group). | [optional]
+**TssNodeId** | Pointer to **string** | Key share holder's TSS Node ID. You can obtain the TSS Node ID using either mobile co-signer or server co-signer. See the \"Primary Purposes\" row on the table in [Create a Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#create-a-main-group). | [optional]
**Signer** | Pointer to **bool** | Whether the key share holder has been selected as the designated transaction signer. For example, in a 2-3 [Threshold Signature Scheme (TSS)](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#threshold-signature-scheme-tss), Cobo will serve as one signer, and you can choose one of the other two key share holders to act as the second transaction signer. - `true`: The key share holder is a designated transaction signer. - `false`: The key share holder is not a designated transaction signer. | [optional]
## Methods
diff --git a/docs/CreateMpcVaultRequest.md b/docs/CreateMpcVaultRequest.md
index 28291c4..7bd91ff 100644
--- a/docs/CreateMpcVaultRequest.md
+++ b/docs/CreateMpcVaultRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ProjectId** | Pointer to **string** | The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects). **Notes:** 1. If you set `vault_type` to `OrgControlled`, the value of `project_id` will be ignored. 2. If you set `vault_type` to `UserControlled`, then `project_id` is required. | [optional]
+**ProjectId** | Pointer to **string** | The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects). **Notes:** 1. If you set `vault_type` to `OrgControlled`, the value of `project_id` will be ignored. 2. If you set `vault_type` to `UserControlled`, then `project_id` is required. | [optional]
**Name** | **string** | The vault name. |
**VaultType** | [**MPCVaultType**](MPCVaultType.md) | |
diff --git a/docs/CreateMpcWalletParams.md b/docs/CreateMpcWalletParams.md
index 4b67ca7..6cbbf23 100644
--- a/docs/CreateMpcWalletParams.md
+++ b/docs/CreateMpcWalletParams.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Name** | **string** | The wallet name. |
**WalletType** | [**WalletType**](WalletType.md) | |
**WalletSubtype** | [**WalletSubtype**](WalletSubtype.md) | |
-**VaultId** | **string** | The ID of the owning vault. You can call [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults) to retrieve all vault IDs under your organization. |
+**VaultId** | **string** | The ID of the owning vault. You can call [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults) to retrieve all vault IDs under your organization. |
## Methods
diff --git a/docs/CreateStakeActivity.md b/docs/CreateStakeActivity.md
index 9ad1328..1f46e0c 100644
--- a/docs/CreateStakeActivity.md
+++ b/docs/CreateStakeActivity.md
@@ -9,13 +9,13 @@ Name | Type | Description | Notes
**PoolId** | [**StakingPoolId**](StakingPoolId.md) | |
**Amount** | **string** | The amount to stake. |
**Fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
-**Extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | |
+**Extra** | Pointer to [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | | [optional]
## Methods
### NewCreateStakeActivity
-`func NewCreateStakeActivity(poolId StakingPoolId, amount string, fee TransactionRequestFee, extra CreateStakeActivityExtra, ) *CreateStakeActivity`
+`func NewCreateStakeActivity(poolId StakingPoolId, amount string, fee TransactionRequestFee, ) *CreateStakeActivity`
NewCreateStakeActivity instantiates a new CreateStakeActivity object
This constructor will assign default values to properties that have it defined,
@@ -159,6 +159,11 @@ and a boolean to check if the value has been set.
SetExtra sets Extra field to given value.
+### HasExtra
+
+`func (o *CreateStakeActivity) HasExtra() bool`
+
+HasExtra returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/CreateStakeActivityExtra.md b/docs/CreateStakeActivityExtra.md
index 8c14367..5c8c0be 100644
--- a/docs/CreateStakeActivityExtra.md
+++ b/docs/CreateStakeActivityExtra.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**PoolType** | [**StakingPoolType**](StakingPoolType.md) | |
**FinalityProviderPublicKey** | **string** | The public key of the finality provider. |
**StakeBlockTime** | **int64** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. |
-**AutoBroadcast** | Pointer to **bool** | Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
+**AutoBroadcast** | Pointer to **bool** | Whether to automatically broadcast the transaction. The default value is `true`. - `true`: Automatically broadcast the transaction. - `false`: The transaction will not be submitted to the blockchain automatically. You can call [Broadcast signed transactions](https://www.cobo.com/developers/v2/api-references/transactions/broadcast-signed-transactions) to broadcast the transaction to the blockchain, or retrieve the signed raw transaction data `raw_tx` by calling [Get transaction information](https://www.cobo.com/developers/v2/api-references/transactions/get-transaction-information) and broadcast it yourself. | [optional]
**ProviderName** | **string** | The name of the provider. |
**Timelock** | **int32** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. |
**ChangeAddress** | Pointer to **string** | The change address on the Bitcoin chain. If not provided, the source wallet's address will be used as the change address. | [optional]
diff --git a/docs/CreateStakeActivityRequest.md b/docs/CreateStakeActivityRequest.md
index 0396b0d..29f24a1 100644
--- a/docs/CreateStakeActivityRequest.md
+++ b/docs/CreateStakeActivityRequest.md
@@ -9,14 +9,14 @@ Name | Type | Description | Notes
**PoolId** | [**StakingPoolId**](StakingPoolId.md) | |
**Amount** | **string** | The amount to stake. |
**Fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
-**Extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | |
+**Extra** | Pointer to [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | | [optional]
**AppInitiator** | Pointer to **string** | The initiator of the staking activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator. | [optional]
## Methods
### NewCreateStakeActivityRequest
-`func NewCreateStakeActivityRequest(poolId StakingPoolId, amount string, fee TransactionRequestFee, extra CreateStakeActivityExtra, ) *CreateStakeActivityRequest`
+`func NewCreateStakeActivityRequest(poolId StakingPoolId, amount string, fee TransactionRequestFee, ) *CreateStakeActivityRequest`
NewCreateStakeActivityRequest instantiates a new CreateStakeActivityRequest object
This constructor will assign default values to properties that have it defined,
@@ -160,6 +160,11 @@ and a boolean to check if the value has been set.
SetExtra sets Extra field to given value.
+### HasExtra
+
+`func (o *CreateStakeActivityRequest) HasExtra() bool`
+
+HasExtra returns a boolean if a field has been set.
### GetAppInitiator
diff --git a/docs/CreateWalletParams.md b/docs/CreateWalletParams.md
index 66221a6..c5a9f77 100644
--- a/docs/CreateWalletParams.md
+++ b/docs/CreateWalletParams.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**Name** | **string** | The wallet name. |
**WalletType** | [**WalletType**](WalletType.md) | |
**WalletSubtype** | [**WalletSubtype**](WalletSubtype.md) | |
-**VaultId** | **string** | The ID of the owning vault. You can call [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults) to retrieve all vault IDs under your organization. |
+**VaultId** | **string** | The ID of the owning vault. You can call [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults) to retrieve all vault IDs under your organization. |
**ExchangeId** | [**ExchangeId**](ExchangeId.md) | |
**Apikey** | **string** | The API key of your exchange account. |
**Secret** | **string** | The API secret of your exchange account. |
diff --git a/docs/CreateWebhookEndpointRequest.md b/docs/CreateWebhookEndpointRequest.md
index 74c4bfd..16f5a90 100644
--- a/docs/CreateWebhookEndpointRequest.md
+++ b/docs/CreateWebhookEndpointRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Url** | **string** | The webhook endpoint URL. |
-**SubscribedEvents** | [**[]WebhookEventType**](WebhookEventType.md) | The event types you want to subscribe to for this webhook endpoint. You can call [Get webhook event types](/v2/api-references/developers--webhooks/get-webhook-event-types) to retrieve all available event types. |
+**SubscribedEvents** | [**[]WebhookEventType**](WebhookEventType.md) | The event types you want to subscribe to for this webhook endpoint. You can call [Get webhook event types](https://www.cobo.com/developers/v2/api-references/developers--webhooks/get-webhook-event-types) to retrieve all available event types. |
**Description** | Pointer to **string** | The description of the webhook endpoint. | [optional]
## Methods
diff --git a/docs/DestinationWalletType.md b/docs/DestinationWalletType.md
new file mode 100644
index 0000000..b045ea3
--- /dev/null
+++ b/docs/DestinationWalletType.md
@@ -0,0 +1,13 @@
+# DestinationWalletType
+
+## Enum
+
+
+* `EXCHANGES_OR_VASP` (value: `"EXCHANGES_OR_VASP"`)
+
+* `SELF_CUSTODY_WALLET` (value: `"SELF_CUSTODY_WALLET"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DevelopersAPI.md b/docs/DevelopersAPI.md
index a06cf4e..8f71dbe 100644
--- a/docs/DevelopersAPI.md
+++ b/docs/DevelopersAPI.md
@@ -5,6 +5,8 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
Method | HTTP request | Description
------------- | ------------- | -------------
[**GetApiKeyInfo**](DevelopersAPI.md#GetApiKeyInfo) | **Get** /developers/api_key_info | Get API key information
+[**ListCallbackMessages**](DevelopersAPI.md#ListCallbackMessages) | **Get** /developers/callback_messages | List all callback messages
+[**RetryCallbackMessage**](DevelopersAPI.md#RetryCallbackMessage) | **Post** /developers/callback_messages/{message_id}/retry | Retry callback message
@@ -78,3 +80,173 @@ Other parameters are passed through a pointer to a apiGetApiKeyInfoRequest struc
[[Back to Model list]](../README.md#documentation-for-models)
[[Back to README]](../README.md)
+
+## ListCallbackMessages
+
+> ListCallbackMessages200Response ListCallbackMessages(ctx).CallbackMessageIds(callbackMessageIds).RequestIds(requestIds).TransactionIds(transactionIds).WalletIds(walletIds).Status(status).Limit(limit).Before(before).After(after).Execute()
+
+List all callback messages
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ coboWaas2 "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2"
+ "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2/crypto"
+)
+
+func main() {
+ callbackMessageIds := "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479"
+ requestIds := "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479"
+ transactionIds := "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479"
+ walletIds := "f47ac10b-58cc-4372-a567-0e02b2c3d479,f47ac10b-58cc-4372-a567-0e02b2c3d479"
+ status := "Approved"
+ limit := int32(10)
+ before := "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1"
+ after := "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
+
+ configuration := coboWaas2.NewConfiguration()
+ // Initialize the API client
+ apiClient := coboWaas2.NewAPIClient(configuration)
+ ctx := context.Background()
+
+ // Select the development environment. To use the production environment, replace coboWaas2.DevEnv with coboWaas2.ProdEnv
+ ctx = context.WithValue(ctx, coboWaas2.ContextEnv, coboWaas2.DevEnv)
+ // Replace `` with your private key
+ ctx = context.WithValue(ctx, coboWaas2.ContextPortalSigner, crypto.Ed25519Signer{
+ Secret: "",
+ })
+ resp, r, err := apiClient.DevelopersAPI.ListCallbackMessages(ctx).CallbackMessageIds(callbackMessageIds).RequestIds(requestIds).TransactionIds(transactionIds).WalletIds(walletIds).Status(status).Limit(limit).Before(before).After(after).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DevelopersAPI.ListCallbackMessages``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ListCallbackMessages`: ListCallbackMessages200Response
+ fmt.Fprintf(os.Stdout, "Response from `DevelopersAPI.ListCallbackMessages`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiListCallbackMessagesRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **callbackMessageIds** | **string** | A list of callback message IDs, separated by commas. |
+ **requestIds** | **string** | A list of request IDs, separated by commas. The request ID is provided by you and must be unique within your organization. |
+ **transactionIds** | **string** | A list of transaction IDs, separated by commas. |
+ **walletIds** | **string** | A list of wallet IDs, separated by commas. |
+ **status** | **string** | The callback message status. Possible values include `Approved`, `Denied`, and `Failed`. |
+ **limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+
+### Return type
+
+[**ListCallbackMessages200Response**](ListCallbackMessages200Response.md)
+
+### Authorization
+
+[CoboAuth](../README.md#CoboAuth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## RetryCallbackMessage
+
+> RetryCallbackMessage201Response RetryCallbackMessage(ctx, messageId).Execute()
+
+Retry callback message
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ coboWaas2 "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2"
+ "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2/crypto"
+)
+
+func main() {
+ messageId := "f47ac10b-58cc-4372-a567-0e02b2c3d479"
+
+ configuration := coboWaas2.NewConfiguration()
+ // Initialize the API client
+ apiClient := coboWaas2.NewAPIClient(configuration)
+ ctx := context.Background()
+
+ // Select the development environment. To use the production environment, replace coboWaas2.DevEnv with coboWaas2.ProdEnv
+ ctx = context.WithValue(ctx, coboWaas2.ContextEnv, coboWaas2.DevEnv)
+ // Replace `` with your private key
+ ctx = context.WithValue(ctx, coboWaas2.ContextPortalSigner, crypto.Ed25519Signer{
+ Secret: "",
+ })
+ resp, r, err := apiClient.DevelopersAPI.RetryCallbackMessage(ctx, messageId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `DevelopersAPI.RetryCallbackMessage``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `RetryCallbackMessage`: RetryCallbackMessage201Response
+ fmt.Fprintf(os.Stdout, "Response from `DevelopersAPI.RetryCallbackMessage`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
+**messageId** | **string** | The callback message ID. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiRetryCallbackMessageRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**RetryCallbackMessage201Response**](RetryCallbackMessage201Response.md)
+
+### Authorization
+
+[CoboAuth](../README.md#CoboAuth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
diff --git a/docs/DevelopersWebhooksAPI.md b/docs/DevelopersWebhooksAPI.md
index d543e42..72e3253 100644
--- a/docs/DevelopersWebhooksAPI.md
+++ b/docs/DevelopersWebhooksAPI.md
@@ -144,7 +144,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**endpointId** | **string** | The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints). |
+**endpointId** | **string** | The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints). |
### Other Parameters
@@ -225,8 +225,8 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**eventId** | **string** | The event ID. You can obtain a list of event IDs by calling [List all events](/v2/api-references/developers--webhooks/list-all-events). |
-**endpointId** | **string** | The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints). |
+**eventId** | **string** | The event ID. You can obtain a list of event IDs by calling [List all events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-events). |
+**endpointId** | **string** | The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints). |
### Other Parameters
@@ -319,8 +319,8 @@ Name | Type | Description | Notes
**status** | [**WebhookEndpointStatus**](WebhookEndpointStatus.md) | |
**eventType** | [**WebhookEventType**](WebhookEventType.md) | |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -466,8 +466,8 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**eventId** | **string** | The event ID. You can obtain a list of event IDs by calling [List all events](/v2/api-references/developers--webhooks/list-all-events). |
-**endpointId** | **string** | The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints). |
+**eventId** | **string** | The event ID. You can obtain a list of event IDs by calling [List all events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-events). |
+**endpointId** | **string** | The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints). |
### Other Parameters
@@ -479,8 +479,8 @@ Name | Type | Description | Notes
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -556,7 +556,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**endpointId** | **string** | The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints). |
+**endpointId** | **string** | The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints). |
### Other Parameters
@@ -569,8 +569,8 @@ Name | Type | Description | Notes
**status** | [**WebhookEventStatus**](WebhookEventStatus.md) | |
**type_** | [**WebhookEventType**](WebhookEventType.md) | |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -642,8 +642,8 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**eventId** | **string** | The event ID. You can obtain a list of event IDs by calling [List all events](/v2/api-references/developers--webhooks/list-all-events). |
-**endpointId** | **string** | The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints). |
+**eventId** | **string** | The event ID. You can obtain a list of event IDs by calling [List all events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-events). |
+**endpointId** | **string** | The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints). |
### Other Parameters
@@ -801,7 +801,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**endpointId** | **string** | The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](/v2/api-references/developers--webhooks/list-webhook-endpoints). |
+**endpointId** | **string** | The webhook endpoint ID. You can retrieve a list of webhook endpoint IDs by calling [List webhook endpoints](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-webhook-endpoints). |
### Other Parameters
diff --git a/docs/ErrorResponse.md b/docs/ErrorResponse.md
index d230f4e..4cbcc10 100644
--- a/docs/ErrorResponse.md
+++ b/docs/ErrorResponse.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**ErrorCode** | **int32** | The error code. Refer to [Error codes and status codes](/v2/api-references/error-codes) for more details. |
+**ErrorCode** | **int32** | The error code. Refer to [Error codes and status codes](https://www.cobo.com/developers/v2/api-references/error-codes) for more details. |
**ErrorMessage** | **string** | The error description. |
**ErrorId** | **string** | The error log ID. You can provide the error ID when submitting a ticket to help Cobo to locate the issue. |
diff --git a/docs/EstimateClaimFee.md b/docs/EstimateClaimFee.md
index 952d6bf..2a7e760 100644
--- a/docs/EstimateClaimFee.md
+++ b/docs/EstimateClaimFee.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**ActivityType** | [**ActivityType**](ActivityType.md) | |
-**StakingId** | Pointer to **string** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions). | [optional]
+**StakingId** | Pointer to **string** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions). | [optional]
**Fee** | Pointer to [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
## Methods
diff --git a/docs/EstimateContractCallFeeParams.md b/docs/EstimateContractCallFeeParams.md
index a776a52..6d3e695 100644
--- a/docs/EstimateContractCallFeeParams.md
+++ b/docs/EstimateContractCallFeeParams.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**RequestId** | Pointer to **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. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. | [optional]
**RequestType** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
-**ChainId** | **string** | The chain ID of the chain on which the smart contract is deployed. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
+**ChainId** | **string** | The chain ID of the chain on which the smart contract is deployed. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
**Source** | [**ContractCallSource**](ContractCallSource.md) | |
**Destination** | [**ContractCallDestination**](ContractCallDestination.md) | |
**FeeType** | Pointer to [**FeeType**](FeeType.md) | | [optional] [default to FEETYPE_EVM_EIP_1559]
diff --git a/docs/EstimateFeeParams.md b/docs/EstimateFeeParams.md
index 9d62847..16bf5d5 100644
--- a/docs/EstimateFeeParams.md
+++ b/docs/EstimateFeeParams.md
@@ -7,10 +7,10 @@ Name | Type | Description | Notes
**RequestId** | Pointer to **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. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. | [optional]
**RequestType** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
**Source** | [**ContractCallSource**](ContractCallSource.md) | |
-**TokenId** | **string** | The token ID of the transferred 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). |
+**TokenId** | **string** | The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**Destination** | [**ContractCallDestination**](ContractCallDestination.md) | |
**FeeType** | Pointer to [**FeeType**](FeeType.md) | | [optional] [default to FEETYPE_EVM_EIP_1559]
-**ChainId** | **string** | The chain ID of the chain on which the smart contract is deployed. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
+**ChainId** | **string** | The chain ID of the chain on which the smart contract is deployed. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
## Methods
diff --git a/docs/EstimateStakeFee.md b/docs/EstimateStakeFee.md
index 3e959bc..656e7db 100644
--- a/docs/EstimateStakeFee.md
+++ b/docs/EstimateStakeFee.md
@@ -10,13 +10,13 @@ Name | Type | Description | Notes
**PoolId** | [**StakingPoolId**](StakingPoolId.md) | |
**Amount** | **string** | The amount to stake. |
**Fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
-**Extra** | [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | |
+**Extra** | Pointer to [**CreateStakeActivityExtra**](CreateStakeActivityExtra.md) | | [optional]
## Methods
### NewEstimateStakeFee
-`func NewEstimateStakeFee(activityType ActivityType, poolId StakingPoolId, amount string, fee TransactionRequestFee, extra CreateStakeActivityExtra, ) *EstimateStakeFee`
+`func NewEstimateStakeFee(activityType ActivityType, poolId StakingPoolId, amount string, fee TransactionRequestFee, ) *EstimateStakeFee`
NewEstimateStakeFee instantiates a new EstimateStakeFee object
This constructor will assign default values to properties that have it defined,
@@ -180,6 +180,11 @@ and a boolean to check if the value has been set.
SetExtra sets Extra field to given value.
+### HasExtra
+
+`func (o *EstimateStakeFee) HasExtra() bool`
+
+HasExtra returns a boolean if a field has been set.
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/EstimateTransferFeeParams.md b/docs/EstimateTransferFeeParams.md
index 60e1415..cae83d4 100644
--- a/docs/EstimateTransferFeeParams.md
+++ b/docs/EstimateTransferFeeParams.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
**RequestId** | Pointer to **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. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. | [optional]
**RequestType** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
**Source** | [**TransferSource**](TransferSource.md) | |
-**TokenId** | **string** | The token ID of the transferred 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). |
+**TokenId** | **string** | The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**Destination** | Pointer to [**TransferDestination**](TransferDestination.md) | | [optional]
**FeeType** | Pointer to [**FeeType**](FeeType.md) | | [optional] [default to FEETYPE_EVM_EIP_1559]
diff --git a/docs/EthStakeEstimatedFee.md b/docs/EthStakeEstimatedFee.md
index 4822ee5..6af8853 100644
--- a/docs/EthStakeEstimatedFee.md
+++ b/docs/EthStakeEstimatedFee.md
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
**PoolType** | Pointer to [**StakingPoolType**](StakingPoolType.md) | | [optional]
**Fee** | Pointer to [**EstimatedFee**](EstimatedFee.md) | | [optional]
**ValidatorPubkeys** | Pointer to **[]string** | A list of public keys associated with the Ethereum validators for this staking operation. | [optional]
+**CoreBtcStakingAddress** | Pointer to **string** | P2WSH address generated for this staking operation(If the estimated fee is for core BTC staking). | [optional]
## Methods
@@ -102,6 +103,31 @@ SetValidatorPubkeys sets ValidatorPubkeys field to given value.
HasValidatorPubkeys returns a boolean if a field has been set.
+### GetCoreBtcStakingAddress
+
+`func (o *EthStakeEstimatedFee) GetCoreBtcStakingAddress() string`
+
+GetCoreBtcStakingAddress returns the CoreBtcStakingAddress field if non-nil, zero value otherwise.
+
+### GetCoreBtcStakingAddressOk
+
+`func (o *EthStakeEstimatedFee) GetCoreBtcStakingAddressOk() (*string, bool)`
+
+GetCoreBtcStakingAddressOk returns a tuple with the CoreBtcStakingAddress field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCoreBtcStakingAddress
+
+`func (o *EthStakeEstimatedFee) SetCoreBtcStakingAddress(v string)`
+
+SetCoreBtcStakingAddress sets CoreBtcStakingAddress field to given value.
+
+### HasCoreBtcStakingAddress
+
+`func (o *EthStakeEstimatedFee) HasCoreBtcStakingAddress() bool`
+
+HasCoreBtcStakingAddress returns a boolean if a field has been set.
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/EthStakingActivityDetailExtra.md b/docs/EthStakingActivityDetailExtra.md
new file mode 100644
index 0000000..bcaa468
--- /dev/null
+++ b/docs/EthStakingActivityDetailExtra.md
@@ -0,0 +1,103 @@
+# EthStakingActivityDetailExtra
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**PoolType** | [**StakingPoolType**](StakingPoolType.md) | |
+**ProviderName** | Pointer to **string** | The name of the provider. | [optional]
+**ValidatorPubkeys** | Pointer to **[]string** | A list of public keys identifying the validators to unstake from the Ethereum Beacon Chain. | [optional]
+
+## Methods
+
+### NewEthStakingActivityDetailExtra
+
+`func NewEthStakingActivityDetailExtra(poolType StakingPoolType, ) *EthStakingActivityDetailExtra`
+
+NewEthStakingActivityDetailExtra instantiates a new EthStakingActivityDetailExtra object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewEthStakingActivityDetailExtraWithDefaults
+
+`func NewEthStakingActivityDetailExtraWithDefaults() *EthStakingActivityDetailExtra`
+
+NewEthStakingActivityDetailExtraWithDefaults instantiates a new EthStakingActivityDetailExtra object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetPoolType
+
+`func (o *EthStakingActivityDetailExtra) GetPoolType() StakingPoolType`
+
+GetPoolType returns the PoolType field if non-nil, zero value otherwise.
+
+### GetPoolTypeOk
+
+`func (o *EthStakingActivityDetailExtra) GetPoolTypeOk() (*StakingPoolType, bool)`
+
+GetPoolTypeOk returns a tuple with the PoolType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPoolType
+
+`func (o *EthStakingActivityDetailExtra) SetPoolType(v StakingPoolType)`
+
+SetPoolType sets PoolType field to given value.
+
+
+### GetProviderName
+
+`func (o *EthStakingActivityDetailExtra) GetProviderName() string`
+
+GetProviderName returns the ProviderName field if non-nil, zero value otherwise.
+
+### GetProviderNameOk
+
+`func (o *EthStakingActivityDetailExtra) GetProviderNameOk() (*string, bool)`
+
+GetProviderNameOk returns a tuple with the ProviderName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetProviderName
+
+`func (o *EthStakingActivityDetailExtra) SetProviderName(v string)`
+
+SetProviderName sets ProviderName field to given value.
+
+### HasProviderName
+
+`func (o *EthStakingActivityDetailExtra) HasProviderName() bool`
+
+HasProviderName returns a boolean if a field has been set.
+
+### GetValidatorPubkeys
+
+`func (o *EthStakingActivityDetailExtra) GetValidatorPubkeys() []string`
+
+GetValidatorPubkeys returns the ValidatorPubkeys field if non-nil, zero value otherwise.
+
+### GetValidatorPubkeysOk
+
+`func (o *EthStakingActivityDetailExtra) GetValidatorPubkeysOk() (*[]string, bool)`
+
+GetValidatorPubkeysOk returns a tuple with the ValidatorPubkeys field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetValidatorPubkeys
+
+`func (o *EthStakingActivityDetailExtra) SetValidatorPubkeys(v []string)`
+
+SetValidatorPubkeys sets ValidatorPubkeys field to given value.
+
+### HasValidatorPubkeys
+
+`func (o *EthStakingActivityDetailExtra) HasValidatorPubkeys() bool`
+
+HasValidatorPubkeys returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ExtendedTokenInfo.md b/docs/ExtendedTokenInfo.md
index 9c5b7a9..80ae0b6 100644
--- a/docs/ExtendedTokenInfo.md
+++ b/docs/ExtendedTokenInfo.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TokenId** | **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). |
+**TokenId** | **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**ChainId** | **string** | The ID of the chain on which the token operates. |
**AssetId** | Pointer to **string** | (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. | [optional]
**Symbol** | Pointer to **string** | The token symbol, which is the abbreviated name of a token. | [optional]
diff --git a/docs/GetStakingEstimationFee201Response.md b/docs/GetStakingEstimationFee201Response.md
index 1c03e38..6cd0614 100644
--- a/docs/GetStakingEstimationFee201Response.md
+++ b/docs/GetStakingEstimationFee201Response.md
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
**PoolType** | Pointer to [**StakingPoolType**](StakingPoolType.md) | | [optional]
**Fee** | Pointer to [**EstimatedFee**](EstimatedFee.md) | | [optional]
**ValidatorPubkeys** | Pointer to **[]string** | A list of public keys associated with the Ethereum validators for this staking operation. | [optional]
+**CoreBtcStakingAddress** | Pointer to **string** | P2WSH address generated for this staking operation(If the estimated fee is for core BTC staking). | [optional]
**FeeType** | Pointer to [**FeeType**](FeeType.md) | | [optional] [default to FEETYPE_EVM_EIP_1559]
**FeeAmount** | Pointer to **string** | The amount of the estimated fee. | [optional]
**TokenId** | Pointer to **string** | The token ID of the staking fee. | [optional]
@@ -105,6 +106,31 @@ SetValidatorPubkeys sets ValidatorPubkeys field to given value.
HasValidatorPubkeys returns a boolean if a field has been set.
+### GetCoreBtcStakingAddress
+
+`func (o *GetStakingEstimationFee201Response) GetCoreBtcStakingAddress() string`
+
+GetCoreBtcStakingAddress returns the CoreBtcStakingAddress field if non-nil, zero value otherwise.
+
+### GetCoreBtcStakingAddressOk
+
+`func (o *GetStakingEstimationFee201Response) GetCoreBtcStakingAddressOk() (*string, bool)`
+
+GetCoreBtcStakingAddressOk returns a tuple with the CoreBtcStakingAddress field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCoreBtcStakingAddress
+
+`func (o *GetStakingEstimationFee201Response) SetCoreBtcStakingAddress(v string)`
+
+SetCoreBtcStakingAddress sets CoreBtcStakingAddress field to given value.
+
+### HasCoreBtcStakingAddress
+
+`func (o *GetStakingEstimationFee201Response) HasCoreBtcStakingAddress() bool`
+
+HasCoreBtcStakingAddress returns a boolean if a field has been set.
+
### GetFeeType
`func (o *GetStakingEstimationFee201Response) GetFeeType() FeeType`
diff --git a/docs/GetStakingEstimationFeeRequest.md b/docs/GetStakingEstimationFeeRequest.md
index 720dd13..60d9795 100644
--- a/docs/GetStakingEstimationFeeRequest.md
+++ b/docs/GetStakingEstimationFeeRequest.md
@@ -10,14 +10,14 @@ Name | Type | Description | Notes
**PoolId** | [**StakingPoolId**](StakingPoolId.md) | |
**Amount** | **string** | The amount to withdraw. |
**Fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
-**Extra** | [**CreateUnstakeActivityExtra**](CreateUnstakeActivityExtra.md) | |
-**StakingId** | **string** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions). |
+**Extra** | Pointer to [**CreateUnstakeActivityExtra**](CreateUnstakeActivityExtra.md) | | [optional]
+**StakingId** | **string** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions). |
## Methods
### NewGetStakingEstimationFeeRequest
-`func NewGetStakingEstimationFeeRequest(activityType ActivityType, poolId StakingPoolId, amount string, fee TransactionRequestFee, extra CreateUnstakeActivityExtra, stakingId string, ) *GetStakingEstimationFeeRequest`
+`func NewGetStakingEstimationFeeRequest(activityType ActivityType, poolId StakingPoolId, amount string, fee TransactionRequestFee, stakingId string, ) *GetStakingEstimationFeeRequest`
NewGetStakingEstimationFeeRequest instantiates a new GetStakingEstimationFeeRequest object
This constructor will assign default values to properties that have it defined,
@@ -181,6 +181,11 @@ and a boolean to check if the value has been set.
SetExtra sets Extra field to given value.
+### HasExtra
+
+`func (o *GetStakingEstimationFeeRequest) HasExtra() bool`
+
+HasExtra returns a boolean if a field has been set.
### GetStakingId
diff --git a/docs/GetTransactionLimitation200Response.md b/docs/GetTransactionLimitation200Response.md
new file mode 100644
index 0000000..86cdaac
--- /dev/null
+++ b/docs/GetTransactionLimitation200Response.md
@@ -0,0 +1,134 @@
+# GetTransactionLimitation200Response
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**VaspList** | Pointer to [**[]Vasp**](Vasp.md) | A list of VASPs (Virtual Asset Service Providers) associated with the token. | [optional]
+**IsThresholdReached** | Pointer to **bool** | Indicates whether the transaction amount exceeds a predefined threshold. - **If `true`**: Additional information is required when filling Travel Rule details: - For deposits: `date_of_incorporation` and `place_of_incorporation`. - **If `false`**: No extra fields are required. | [optional]
+**SelfCustodyWalletChallenge** | Pointer to **string** | A human-readable, time-sensitive message to be signed by the wallet owner. The message contains key details including the wallet address, a unique nonce, and a timestamp. Signing this message confirms ownership of the wallet and allows the operation to proceed. | [optional]
+**ConnectWalletList** | Pointer to **[]string** | A list of wallets connected to the system for transactions. | [optional]
+
+## Methods
+
+### NewGetTransactionLimitation200Response
+
+`func NewGetTransactionLimitation200Response() *GetTransactionLimitation200Response`
+
+NewGetTransactionLimitation200Response instantiates a new GetTransactionLimitation200Response object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewGetTransactionLimitation200ResponseWithDefaults
+
+`func NewGetTransactionLimitation200ResponseWithDefaults() *GetTransactionLimitation200Response`
+
+NewGetTransactionLimitation200ResponseWithDefaults instantiates a new GetTransactionLimitation200Response object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetVaspList
+
+`func (o *GetTransactionLimitation200Response) GetVaspList() []Vasp`
+
+GetVaspList returns the VaspList field if non-nil, zero value otherwise.
+
+### GetVaspListOk
+
+`func (o *GetTransactionLimitation200Response) GetVaspListOk() (*[]Vasp, bool)`
+
+GetVaspListOk returns a tuple with the VaspList field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVaspList
+
+`func (o *GetTransactionLimitation200Response) SetVaspList(v []Vasp)`
+
+SetVaspList sets VaspList field to given value.
+
+### HasVaspList
+
+`func (o *GetTransactionLimitation200Response) HasVaspList() bool`
+
+HasVaspList returns a boolean if a field has been set.
+
+### GetIsThresholdReached
+
+`func (o *GetTransactionLimitation200Response) GetIsThresholdReached() bool`
+
+GetIsThresholdReached returns the IsThresholdReached field if non-nil, zero value otherwise.
+
+### GetIsThresholdReachedOk
+
+`func (o *GetTransactionLimitation200Response) GetIsThresholdReachedOk() (*bool, bool)`
+
+GetIsThresholdReachedOk returns a tuple with the IsThresholdReached field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetIsThresholdReached
+
+`func (o *GetTransactionLimitation200Response) SetIsThresholdReached(v bool)`
+
+SetIsThresholdReached sets IsThresholdReached field to given value.
+
+### HasIsThresholdReached
+
+`func (o *GetTransactionLimitation200Response) HasIsThresholdReached() bool`
+
+HasIsThresholdReached returns a boolean if a field has been set.
+
+### GetSelfCustodyWalletChallenge
+
+`func (o *GetTransactionLimitation200Response) GetSelfCustodyWalletChallenge() string`
+
+GetSelfCustodyWalletChallenge returns the SelfCustodyWalletChallenge field if non-nil, zero value otherwise.
+
+### GetSelfCustodyWalletChallengeOk
+
+`func (o *GetTransactionLimitation200Response) GetSelfCustodyWalletChallengeOk() (*string, bool)`
+
+GetSelfCustodyWalletChallengeOk returns a tuple with the SelfCustodyWalletChallenge field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelfCustodyWalletChallenge
+
+`func (o *GetTransactionLimitation200Response) SetSelfCustodyWalletChallenge(v string)`
+
+SetSelfCustodyWalletChallenge sets SelfCustodyWalletChallenge field to given value.
+
+### HasSelfCustodyWalletChallenge
+
+`func (o *GetTransactionLimitation200Response) HasSelfCustodyWalletChallenge() bool`
+
+HasSelfCustodyWalletChallenge returns a boolean if a field has been set.
+
+### GetConnectWalletList
+
+`func (o *GetTransactionLimitation200Response) GetConnectWalletList() []string`
+
+GetConnectWalletList returns the ConnectWalletList field if non-nil, zero value otherwise.
+
+### GetConnectWalletListOk
+
+`func (o *GetTransactionLimitation200Response) GetConnectWalletListOk() (*[]string, bool)`
+
+GetConnectWalletListOk returns a tuple with the ConnectWalletList field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetConnectWalletList
+
+`func (o *GetTransactionLimitation200Response) SetConnectWalletList(v []string)`
+
+SetConnectWalletList sets ConnectWalletList field to given value.
+
+### HasConnectWalletList
+
+`func (o *GetTransactionLimitation200Response) HasConnectWalletList() bool`
+
+HasConnectWalletList returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ListCallbackMessages200Response.md b/docs/ListCallbackMessages200Response.md
new file mode 100644
index 0000000..9c0c4e6
--- /dev/null
+++ b/docs/ListCallbackMessages200Response.md
@@ -0,0 +1,72 @@
+# ListCallbackMessages200Response
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Data** | [**[]CallbackMessage**](CallbackMessage.md) | |
+**Pagination** | [**Pagination**](Pagination.md) | |
+
+## Methods
+
+### NewListCallbackMessages200Response
+
+`func NewListCallbackMessages200Response(data []CallbackMessage, pagination Pagination, ) *ListCallbackMessages200Response`
+
+NewListCallbackMessages200Response instantiates a new ListCallbackMessages200Response object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewListCallbackMessages200ResponseWithDefaults
+
+`func NewListCallbackMessages200ResponseWithDefaults() *ListCallbackMessages200Response`
+
+NewListCallbackMessages200ResponseWithDefaults instantiates a new ListCallbackMessages200Response object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetData
+
+`func (o *ListCallbackMessages200Response) GetData() []CallbackMessage`
+
+GetData returns the Data field if non-nil, zero value otherwise.
+
+### GetDataOk
+
+`func (o *ListCallbackMessages200Response) GetDataOk() (*[]CallbackMessage, bool)`
+
+GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetData
+
+`func (o *ListCallbackMessages200Response) SetData(v []CallbackMessage)`
+
+SetData sets Data field to given value.
+
+
+### GetPagination
+
+`func (o *ListCallbackMessages200Response) GetPagination() Pagination`
+
+GetPagination returns the Pagination field if non-nil, zero value otherwise.
+
+### GetPaginationOk
+
+`func (o *ListCallbackMessages200Response) GetPaginationOk() (*Pagination, bool)`
+
+GetPaginationOk returns a tuple with the Pagination field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPagination
+
+`func (o *ListCallbackMessages200Response) SetPagination(v Pagination)`
+
+SetPagination sets Pagination field to given value.
+
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ListSupportedCountries200ResponseInner.md b/docs/ListSupportedCountries200ResponseInner.md
new file mode 100644
index 0000000..f0d00ee
--- /dev/null
+++ b/docs/ListSupportedCountries200ResponseInner.md
@@ -0,0 +1,93 @@
+# ListSupportedCountries200ResponseInner
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**En** | **string** | The English name of the country. |
+**ZhHans** | **string** | The simplified Chinese name of the country. |
+**Code2** | **string** | The 2-letter country code (ISO 3166-1 alpha-2). |
+
+## Methods
+
+### NewListSupportedCountries200ResponseInner
+
+`func NewListSupportedCountries200ResponseInner(en string, zhHans string, code2 string, ) *ListSupportedCountries200ResponseInner`
+
+NewListSupportedCountries200ResponseInner instantiates a new ListSupportedCountries200ResponseInner object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewListSupportedCountries200ResponseInnerWithDefaults
+
+`func NewListSupportedCountries200ResponseInnerWithDefaults() *ListSupportedCountries200ResponseInner`
+
+NewListSupportedCountries200ResponseInnerWithDefaults instantiates a new ListSupportedCountries200ResponseInner object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetEn
+
+`func (o *ListSupportedCountries200ResponseInner) GetEn() string`
+
+GetEn returns the En field if non-nil, zero value otherwise.
+
+### GetEnOk
+
+`func (o *ListSupportedCountries200ResponseInner) GetEnOk() (*string, bool)`
+
+GetEnOk returns a tuple with the En field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEn
+
+`func (o *ListSupportedCountries200ResponseInner) SetEn(v string)`
+
+SetEn sets En field to given value.
+
+
+### GetZhHans
+
+`func (o *ListSupportedCountries200ResponseInner) GetZhHans() string`
+
+GetZhHans returns the ZhHans field if non-nil, zero value otherwise.
+
+### GetZhHansOk
+
+`func (o *ListSupportedCountries200ResponseInner) GetZhHansOk() (*string, bool)`
+
+GetZhHansOk returns a tuple with the ZhHans field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetZhHans
+
+`func (o *ListSupportedCountries200ResponseInner) SetZhHans(v string)`
+
+SetZhHans sets ZhHans field to given value.
+
+
+### GetCode2
+
+`func (o *ListSupportedCountries200ResponseInner) GetCode2() string`
+
+GetCode2 returns the Code2 field if non-nil, zero value otherwise.
+
+### GetCode2Ok
+
+`func (o *ListSupportedCountries200ResponseInner) GetCode2Ok() (*string, bool)`
+
+GetCode2Ok returns a tuple with the Code2 field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCode2
+
+`func (o *ListSupportedCountries200ResponseInner) SetCode2(v string)`
+
+SetCode2 sets Code2 field to given value.
+
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/LockUtxosRequestUtxosInner.md b/docs/LockUtxosRequestUtxosInner.md
index 3709f85..fd3c1ca 100644
--- a/docs/LockUtxosRequestUtxosInner.md
+++ b/docs/LockUtxosRequestUtxosInner.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TokenId** | **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). |
+**TokenId** | **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**TxHash** | **string** | The transaction hash. |
**VoutN** | **int32** | The output index of the UTXO. |
diff --git a/docs/MPCVaultEventData.md b/docs/MPCVaultEventData.md
new file mode 100644
index 0000000..7113014
--- /dev/null
+++ b/docs/MPCVaultEventData.md
@@ -0,0 +1,207 @@
+# MPCVaultEventData
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**DataType** | **string** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. |
+**VaultId** | Pointer to **string** | The vault ID. | [optional]
+**ProjectId** | Pointer to **string** | The project ID. | [optional]
+**Name** | Pointer to **string** | The vault name. | [optional]
+**Type** | Pointer to [**MPCVaultType**](MPCVaultType.md) | | [optional]
+**RootPubkeys** | Pointer to [**[]RootPubkey**](RootPubkey.md) | | [optional]
+**CreatedTimestamp** | Pointer to **int64** | The vault's creation time in Unix timestamp format, measured in milliseconds. | [optional]
+
+## Methods
+
+### NewMPCVaultEventData
+
+`func NewMPCVaultEventData(dataType string, ) *MPCVaultEventData`
+
+NewMPCVaultEventData instantiates a new MPCVaultEventData object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewMPCVaultEventDataWithDefaults
+
+`func NewMPCVaultEventDataWithDefaults() *MPCVaultEventData`
+
+NewMPCVaultEventDataWithDefaults instantiates a new MPCVaultEventData object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetDataType
+
+`func (o *MPCVaultEventData) GetDataType() string`
+
+GetDataType returns the DataType field if non-nil, zero value otherwise.
+
+### GetDataTypeOk
+
+`func (o *MPCVaultEventData) GetDataTypeOk() (*string, bool)`
+
+GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDataType
+
+`func (o *MPCVaultEventData) SetDataType(v string)`
+
+SetDataType sets DataType field to given value.
+
+
+### GetVaultId
+
+`func (o *MPCVaultEventData) GetVaultId() string`
+
+GetVaultId returns the VaultId field if non-nil, zero value otherwise.
+
+### GetVaultIdOk
+
+`func (o *MPCVaultEventData) GetVaultIdOk() (*string, bool)`
+
+GetVaultIdOk returns a tuple with the VaultId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVaultId
+
+`func (o *MPCVaultEventData) SetVaultId(v string)`
+
+SetVaultId sets VaultId field to given value.
+
+### HasVaultId
+
+`func (o *MPCVaultEventData) HasVaultId() bool`
+
+HasVaultId returns a boolean if a field has been set.
+
+### GetProjectId
+
+`func (o *MPCVaultEventData) GetProjectId() string`
+
+GetProjectId returns the ProjectId field if non-nil, zero value otherwise.
+
+### GetProjectIdOk
+
+`func (o *MPCVaultEventData) GetProjectIdOk() (*string, bool)`
+
+GetProjectIdOk returns a tuple with the ProjectId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetProjectId
+
+`func (o *MPCVaultEventData) SetProjectId(v string)`
+
+SetProjectId sets ProjectId field to given value.
+
+### HasProjectId
+
+`func (o *MPCVaultEventData) HasProjectId() bool`
+
+HasProjectId returns a boolean if a field has been set.
+
+### GetName
+
+`func (o *MPCVaultEventData) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *MPCVaultEventData) GetNameOk() (*string, bool)`
+
+GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetName
+
+`func (o *MPCVaultEventData) SetName(v string)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *MPCVaultEventData) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### GetType
+
+`func (o *MPCVaultEventData) GetType() MPCVaultType`
+
+GetType returns the Type field if non-nil, zero value otherwise.
+
+### GetTypeOk
+
+`func (o *MPCVaultEventData) GetTypeOk() (*MPCVaultType, bool)`
+
+GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetType
+
+`func (o *MPCVaultEventData) SetType(v MPCVaultType)`
+
+SetType sets Type field to given value.
+
+### HasType
+
+`func (o *MPCVaultEventData) HasType() bool`
+
+HasType returns a boolean if a field has been set.
+
+### GetRootPubkeys
+
+`func (o *MPCVaultEventData) GetRootPubkeys() []RootPubkey`
+
+GetRootPubkeys returns the RootPubkeys field if non-nil, zero value otherwise.
+
+### GetRootPubkeysOk
+
+`func (o *MPCVaultEventData) GetRootPubkeysOk() (*[]RootPubkey, bool)`
+
+GetRootPubkeysOk returns a tuple with the RootPubkeys field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetRootPubkeys
+
+`func (o *MPCVaultEventData) SetRootPubkeys(v []RootPubkey)`
+
+SetRootPubkeys sets RootPubkeys field to given value.
+
+### HasRootPubkeys
+
+`func (o *MPCVaultEventData) HasRootPubkeys() bool`
+
+HasRootPubkeys returns a boolean if a field has been set.
+
+### GetCreatedTimestamp
+
+`func (o *MPCVaultEventData) GetCreatedTimestamp() int64`
+
+GetCreatedTimestamp returns the CreatedTimestamp field if non-nil, zero value otherwise.
+
+### GetCreatedTimestampOk
+
+`func (o *MPCVaultEventData) GetCreatedTimestampOk() (*int64, bool)`
+
+GetCreatedTimestampOk returns a tuple with the CreatedTimestamp field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCreatedTimestamp
+
+`func (o *MPCVaultEventData) SetCreatedTimestamp(v int64)`
+
+SetCreatedTimestamp sets CreatedTimestamp field to given value.
+
+### HasCreatedTimestamp
+
+`func (o *MPCVaultEventData) HasCreatedTimestamp() bool`
+
+HasCreatedTimestamp returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/MaxTransferableValue.md b/docs/MaxTransferableValue.md
index 2f0b4a0..02f836e 100644
--- a/docs/MaxTransferableValue.md
+++ b/docs/MaxTransferableValue.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TokenId** | Pointer to **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]
+**TokenId** | Pointer to **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). | [optional]
**MaxTransferableValue** | Pointer to **string** | The maximum amount you can transfer from the wallet or the specified wallet address. | [optional]
**Fee** | Pointer to [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
diff --git a/docs/MessageSignParams.md b/docs/MessageSignParams.md
index f4e85ae..d317f24 100644
--- a/docs/MessageSignParams.md
+++ b/docs/MessageSignParams.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**RequestId** | **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. |
-**ChainId** | **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). |
+**ChainId** | **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
**Source** | [**MessageSignSource**](MessageSignSource.md) | |
**Destination** | [**MessageSignDestination**](MessageSignDestination.md) | |
**Description** | Pointer to **string** | The description of the message signing transaction. | [optional]
diff --git a/docs/OrgInfo.md b/docs/OrgInfo.md
new file mode 100644
index 0000000..9b7e3ee
--- /dev/null
+++ b/docs/OrgInfo.md
@@ -0,0 +1,103 @@
+# OrgInfo
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**OrgId** | **string** | The ID of the owning organization. |
+**Name** | Pointer to **string** | The organization name. | [optional]
+**CreatedTimestamp** | Pointer to **int64** | The organization's creation time in Unix timestamp format, measured in milliseconds. | [optional]
+
+## Methods
+
+### NewOrgInfo
+
+`func NewOrgInfo(orgId string, ) *OrgInfo`
+
+NewOrgInfo instantiates a new OrgInfo object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewOrgInfoWithDefaults
+
+`func NewOrgInfoWithDefaults() *OrgInfo`
+
+NewOrgInfoWithDefaults instantiates a new OrgInfo object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetOrgId
+
+`func (o *OrgInfo) GetOrgId() string`
+
+GetOrgId returns the OrgId field if non-nil, zero value otherwise.
+
+### GetOrgIdOk
+
+`func (o *OrgInfo) GetOrgIdOk() (*string, bool)`
+
+GetOrgIdOk returns a tuple with the OrgId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetOrgId
+
+`func (o *OrgInfo) SetOrgId(v string)`
+
+SetOrgId sets OrgId field to given value.
+
+
+### GetName
+
+`func (o *OrgInfo) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *OrgInfo) GetNameOk() (*string, bool)`
+
+GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetName
+
+`func (o *OrgInfo) SetName(v string)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *OrgInfo) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### GetCreatedTimestamp
+
+`func (o *OrgInfo) GetCreatedTimestamp() int64`
+
+GetCreatedTimestamp returns the CreatedTimestamp field if non-nil, zero value otherwise.
+
+### GetCreatedTimestampOk
+
+`func (o *OrgInfo) GetCreatedTimestampOk() (*int64, bool)`
+
+GetCreatedTimestampOk returns a tuple with the CreatedTimestamp field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCreatedTimestamp
+
+`func (o *OrgInfo) SetCreatedTimestamp(v int64)`
+
+SetCreatedTimestamp sets CreatedTimestamp field to given value.
+
+### HasCreatedTimestamp
+
+`func (o *OrgInfo) HasCreatedTimestamp() bool`
+
+HasCreatedTimestamp returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/Pagination.md b/docs/Pagination.md
index aec50dd..2f2a9b6 100644
--- a/docs/Pagination.md
+++ b/docs/Pagination.md
@@ -4,8 +4,8 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**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. |
-**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. |
+**Before** | **string** | An object ID used to retrieve records before the specified object, indicating earlier or smaller records relative to the current dataset. You can use it to paginate backwards. If empty, it means you have reached the start of the data. Most API endpoints sort by object ID, but some use other fields depending on the endpoint. |
+**After** | **string** | An object ID used to retrieve records after the specified object, indicating newer or larger records relative to the current dataset. You can use it to paginate forwards. If empty, it means you have reached the end of the data. Most API endpoints sort by object ID, but some use other fields depending on the endpoint. |
**TotalCount** | **int32** | The total number of records that match the query criteria, unaffected by the pagination parameters (`before` , `after`, and `limit`). |
## Methods
diff --git a/docs/RetryCallbackMessage201Response.md b/docs/RetryCallbackMessage201Response.md
new file mode 100644
index 0000000..e93ba1e
--- /dev/null
+++ b/docs/RetryCallbackMessage201Response.md
@@ -0,0 +1,56 @@
+# RetryCallbackMessage201Response
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Retried** | Pointer to **bool** | Whether the callback message has been successfully resent: - `true`: The callback message has been successfully resent. - `false`: The callback message has not been successfully resent. | [optional]
+
+## Methods
+
+### NewRetryCallbackMessage201Response
+
+`func NewRetryCallbackMessage201Response() *RetryCallbackMessage201Response`
+
+NewRetryCallbackMessage201Response instantiates a new RetryCallbackMessage201Response object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewRetryCallbackMessage201ResponseWithDefaults
+
+`func NewRetryCallbackMessage201ResponseWithDefaults() *RetryCallbackMessage201Response`
+
+NewRetryCallbackMessage201ResponseWithDefaults instantiates a new RetryCallbackMessage201Response object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetRetried
+
+`func (o *RetryCallbackMessage201Response) GetRetried() bool`
+
+GetRetried returns the Retried field if non-nil, zero value otherwise.
+
+### GetRetriedOk
+
+`func (o *RetryCallbackMessage201Response) GetRetriedOk() (*bool, bool)`
+
+GetRetriedOk returns a tuple with the Retried field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetRetried
+
+`func (o *RetryCallbackMessage201Response) SetRetried(v bool)`
+
+SetRetried sets Retried field to given value.
+
+### HasRetried
+
+`func (o *RetryCallbackMessage201Response) HasRetried() bool`
+
+HasRetried returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SelectedEntityType.md b/docs/SelectedEntityType.md
new file mode 100644
index 0000000..5d287dd
--- /dev/null
+++ b/docs/SelectedEntityType.md
@@ -0,0 +1,13 @@
+# SelectedEntityType
+
+## Enum
+
+
+* `LEGAL` (value: `"LEGAL"`)
+
+* `NATURAL` (value: `"NATURAL"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SelfCustodyWallet.md b/docs/SelfCustodyWallet.md
new file mode 100644
index 0000000..99bfbc3
--- /dev/null
+++ b/docs/SelfCustodyWallet.md
@@ -0,0 +1,114 @@
+# SelfCustodyWallet
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**DestinationWalletType** | [**DestinationWalletType**](DestinationWalletType.md) | |
+**SelfCustodyWalletChallenge** | **string** | The challenge obtained from a previous operation. |
+**SelfCustodyWalletAddress** | **string** | The address of the self-custodial wallet. |
+**SelfCustodyWalletSign** | **string** | The signed message from the self-custodial wallet. |
+
+## Methods
+
+### NewSelfCustodyWallet
+
+`func NewSelfCustodyWallet(destinationWalletType DestinationWalletType, selfCustodyWalletChallenge string, selfCustodyWalletAddress string, selfCustodyWalletSign string, ) *SelfCustodyWallet`
+
+NewSelfCustodyWallet instantiates a new SelfCustodyWallet object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewSelfCustodyWalletWithDefaults
+
+`func NewSelfCustodyWalletWithDefaults() *SelfCustodyWallet`
+
+NewSelfCustodyWalletWithDefaults instantiates a new SelfCustodyWallet object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetDestinationWalletType
+
+`func (o *SelfCustodyWallet) GetDestinationWalletType() DestinationWalletType`
+
+GetDestinationWalletType returns the DestinationWalletType field if non-nil, zero value otherwise.
+
+### GetDestinationWalletTypeOk
+
+`func (o *SelfCustodyWallet) GetDestinationWalletTypeOk() (*DestinationWalletType, bool)`
+
+GetDestinationWalletTypeOk returns a tuple with the DestinationWalletType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDestinationWalletType
+
+`func (o *SelfCustodyWallet) SetDestinationWalletType(v DestinationWalletType)`
+
+SetDestinationWalletType sets DestinationWalletType field to given value.
+
+
+### GetSelfCustodyWalletChallenge
+
+`func (o *SelfCustodyWallet) GetSelfCustodyWalletChallenge() string`
+
+GetSelfCustodyWalletChallenge returns the SelfCustodyWalletChallenge field if non-nil, zero value otherwise.
+
+### GetSelfCustodyWalletChallengeOk
+
+`func (o *SelfCustodyWallet) GetSelfCustodyWalletChallengeOk() (*string, bool)`
+
+GetSelfCustodyWalletChallengeOk returns a tuple with the SelfCustodyWalletChallenge field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelfCustodyWalletChallenge
+
+`func (o *SelfCustodyWallet) SetSelfCustodyWalletChallenge(v string)`
+
+SetSelfCustodyWalletChallenge sets SelfCustodyWalletChallenge field to given value.
+
+
+### GetSelfCustodyWalletAddress
+
+`func (o *SelfCustodyWallet) GetSelfCustodyWalletAddress() string`
+
+GetSelfCustodyWalletAddress returns the SelfCustodyWalletAddress field if non-nil, zero value otherwise.
+
+### GetSelfCustodyWalletAddressOk
+
+`func (o *SelfCustodyWallet) GetSelfCustodyWalletAddressOk() (*string, bool)`
+
+GetSelfCustodyWalletAddressOk returns a tuple with the SelfCustodyWalletAddress field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelfCustodyWalletAddress
+
+`func (o *SelfCustodyWallet) SetSelfCustodyWalletAddress(v string)`
+
+SetSelfCustodyWalletAddress sets SelfCustodyWalletAddress field to given value.
+
+
+### GetSelfCustodyWalletSign
+
+`func (o *SelfCustodyWallet) GetSelfCustodyWalletSign() string`
+
+GetSelfCustodyWalletSign returns the SelfCustodyWalletSign field if non-nil, zero value otherwise.
+
+### GetSelfCustodyWalletSignOk
+
+`func (o *SelfCustodyWallet) GetSelfCustodyWalletSignOk() (*string, bool)`
+
+GetSelfCustodyWalletSignOk returns a tuple with the SelfCustodyWalletSign field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelfCustodyWalletSign
+
+`func (o *SelfCustodyWallet) SetSelfCustodyWalletSign(v string)`
+
+SetSelfCustodyWalletSign sets SelfCustodyWalletSign field to given value.
+
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SourceGroup.md b/docs/SourceGroup.md
index b45d8aa..c22e712 100644
--- a/docs/SourceGroup.md
+++ b/docs/SourceGroup.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**KeyShareHolderGroupId** | **string** | The source key share holder group ID. |
-**TssNodeIds** | Pointer to **[]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]
+**TssNodeIds** | Pointer to **[]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](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-cobo-key-share-holders). | [optional]
## Methods
diff --git a/docs/StakingPoolId.md b/docs/StakingPoolId.md
index 2bc6dd3..618ce9e 100644
--- a/docs/StakingPoolId.md
+++ b/docs/StakingPoolId.md
@@ -15,6 +15,8 @@
* `CORE_XTN` (value: `"core_xtn"`)
+* `SKY_FARM_ETH_USDC` (value: `"sky_farm_eth_usdc"`)
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/StakingPoolType.md b/docs/StakingPoolType.md
index d6e0433..026908a 100644
--- a/docs/StakingPoolType.md
+++ b/docs/StakingPoolType.md
@@ -9,6 +9,8 @@
* `CORE_BTC` (value: `"CoreBTC"`)
+* `SKY_FARM` (value: `"SkyFarm"`)
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/StakingsAPI.md b/docs/StakingsAPI.md
index 664166f..f85c501 100644
--- a/docs/StakingsAPI.md
+++ b/docs/StakingsAPI.md
@@ -11,7 +11,7 @@ Method | HTTP request | Description
[**GetStakingActivityById**](StakingsAPI.md#GetStakingActivityById) | **Get** /stakings/activities/{activity_id} | Get staking activity details
[**GetStakingById**](StakingsAPI.md#GetStakingById) | **Get** /stakings/{staking_id} | Get staking position details
[**GetStakingEstimationFee**](StakingsAPI.md#GetStakingEstimationFee) | **Post** /stakings/estimate_fee | Estimate staking fees
-[**GetStakingEstimationFeeV2**](StakingsAPI.md#GetStakingEstimationFeeV2) | **Post** /stakings/estimate_fee_v2 | Estimate staking fees
+[**GetStakingEstimationFeeV2**](StakingsAPI.md#GetStakingEstimationFeeV2) | **Post** /stakings/estimate_fee_v2 | Estimate staking fees v2
[**GetStakingPoolById**](StakingsAPI.md#GetStakingPoolById) | **Get** /stakings/pools/{pool_id} | Get staking pool details
[**ListStakingActivities**](StakingsAPI.md#ListStakingActivities) | **Get** /stakings/activities | List staking activities
[**ListStakingPools**](StakingsAPI.md#ListStakingPools) | **Get** /stakings/pools | List staking pools
@@ -117,7 +117,7 @@ import (
)
func main() {
- createStakeActivityRequest := *coboWaas2.NewCreateStakeActivityRequest(coboWaas2.StakingPoolId("babylon_btc_signet"), "100.00", coboWaas2.TransactionRequestFee{TransactionRequestEvmEip1559Fee: coboWaas2.NewTransactionRequestEvmEip1559Fee("9000000000000", "1000000000000", coboWaas2.FeeType("Fixed"), "ETH")}, coboWaas2.CreateStakeActivity_extra{BabylonStakeExtra: coboWaas2.NewBabylonStakeExtra(coboWaas2.StakingPoolType("Babylon"), "eca1b104dce16c30705f4147a9c4a373ac88646c5d1bcda6a89c018940cb96a0", int64(2000))})
+ createStakeActivityRequest := *coboWaas2.NewCreateStakeActivityRequest(coboWaas2.StakingPoolId("babylon_btc_signet"), "100.00", coboWaas2.TransactionRequestFee{TransactionRequestEvmEip1559Fee: coboWaas2.NewTransactionRequestEvmEip1559Fee("9000000000000", "1000000000000", coboWaas2.FeeType("Fixed"), "ETH")})
configuration := coboWaas2.NewConfiguration()
// Initialize the API client
@@ -454,7 +454,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**stakingId** | **string** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](/v2/api-references/stakings/list-staking-positions). |
+**stakingId** | **string** | The ID of the staking position. You can retrieve a list of staking positions by calling [List staking positions](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-positions). |
### Other Parameters
@@ -563,7 +563,7 @@ Name | Type | Description | Notes
> EthStakeEstimatedFee GetStakingEstimationFeeV2(ctx).GetStakingEstimationFeeRequest(getStakingEstimationFeeRequest).Execute()
-Estimate staking fees
+Estimate staking fees v2
@@ -686,7 +686,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**poolId** | **string** | The ID of the staking pool. A staking pool is a pairing of a staking protocol and a specific type of token. You can call [List staking pools](/v2/api-references/stakings/list-staking-pools) to retrieve a list of staking pools. |
+**poolId** | **string** | The ID of the staking pool. A staking pool is a pairing of a staking protocol and a specific type of token. You can call [List staking pools](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-pools) to retrieve a list of staking pools. |
### Other Parameters
@@ -717,7 +717,7 @@ Name | Type | Description | Notes
## ListStakingActivities
-> ListStakingActivities200Response ListStakingActivities(ctx).PoolId(poolId).StakingId(stakingId).ActivityType(activityType).ActivityStatus(activityStatus).MinModifiedTimestamp(minModifiedTimestamp).MaxModifiedTimestamp(maxModifiedTimestamp).Initiator(initiator).Limit(limit).Before(before).After(after).Execute()
+> ListStakingActivities200Response ListStakingActivities(ctx).PoolId(poolId).StakingId(stakingId).ActivityType(activityType).ActivityStatus(activityStatus).MinModifiedTimestamp(minModifiedTimestamp).MaxModifiedTimestamp(maxModifiedTimestamp).Initiator(initiator).RequestId(requestId).Limit(limit).Before(before).After(after).Execute()
List staking activities
@@ -744,6 +744,7 @@ func main() {
minModifiedTimestamp := int64(1635744000000)
maxModifiedTimestamp := int64(1635744000000)
initiator := "steve@example.com"
+ requestId := "web_send_by_user_327_1610444045047"
limit := int32(10)
before := "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1"
after := "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
@@ -759,7 +760,7 @@ func main() {
ctx = context.WithValue(ctx, coboWaas2.ContextPortalSigner, crypto.Ed25519Signer{
Secret: "",
})
- resp, r, err := apiClient.StakingsAPI.ListStakingActivities(ctx).PoolId(poolId).StakingId(stakingId).ActivityType(activityType).ActivityStatus(activityStatus).MinModifiedTimestamp(minModifiedTimestamp).MaxModifiedTimestamp(maxModifiedTimestamp).Initiator(initiator).Limit(limit).Before(before).After(after).Execute()
+ resp, r, err := apiClient.StakingsAPI.ListStakingActivities(ctx).PoolId(poolId).StakingId(stakingId).ActivityType(activityType).ActivityStatus(activityStatus).MinModifiedTimestamp(minModifiedTimestamp).MaxModifiedTimestamp(maxModifiedTimestamp).Initiator(initiator).RequestId(requestId).Limit(limit).Before(before).After(after).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StakingsAPI.ListStakingActivities``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -780,16 +781,17 @@ Other parameters are passed through a pointer to a apiListStakingActivitiesReque
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **poolId** | **string** | The ID of the staking pool. A staking pool is a pairing of a staking protocol and a specific type of token. You can call [List staking pools](/v2/api-references/stakings/list-staking-pools) to retrieve a list of staking pools. |
+ **poolId** | **string** | The ID of the staking pool. A staking pool is a pairing of a staking protocol and a specific type of token. You can call [List staking pools](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-pools) to retrieve a list of staking pools. |
**stakingId** | **string** | The position ID. |
**activityType** | [**ActivityType**](ActivityType.md) | |
**activityStatus** | [**ActivityStatus**](ActivityStatus.md) | |
**minModifiedTimestamp** | **int64** | The start time of the query. All staking activities updated after the specified time will be retrieved. The time is in Unix timestamp format, measured in milliseconds. |
**maxModifiedTimestamp** | **int64** | The end time of the query. All staking activities updated before the specified time will be retrieved. The time is in Unix timestamp format, measured in milliseconds. |
**initiator** | **string** | The activity initiator, which is your API key by default. You can also specify the initiator when creating the activity. |
+ **requestId** | **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. |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -869,11 +871,11 @@ Other parameters are passed through a pointer to a apiListStakingPoolsRequest st
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **chainId** | **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). |
- **tokenId** | **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). |
+ **chainId** | **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
+ **tokenId** | **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -955,13 +957,13 @@ Other parameters are passed through a pointer to a apiListStakingsRequest struct
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **poolId** | **string** | The ID of the staking pool. A staking pool is a pairing of a staking protocol and a specific type of token. You can call [List staking pools](/v2/api-references/stakings/list-staking-pools) to retrieve a list of staking pools. |
+ **poolId** | **string** | The ID of the staking pool. A staking pool is a pairing of a staking protocol and a specific type of token. You can call [List staking pools](https://www.cobo.com/developers/v2/api-references/stakings/list-staking-pools) to retrieve a list of staking pools. |
**statuses** | **string** | The statuses of the staking amounts, separated by comma. Possible values include: - `StakeInProgress`: The staking request is submitted and is waiting to be confirmed by the staking protocol. - `Active`: The amount has been staked. - `Rejected`: The staking request has been rejected because the signer refuses to sign the transaction. - `LimitExceeded`: The total staking cap of the staking protocol has been reached. - `Invalid`: The staking request is invalid. This is often due to the failure to broadcast the transaction. - `UnstakeInProgress`: The unstaking request is submitted and is waiting to be confirmed by the staking protocol. - `Withdrawable`: The tokens have been unstaked and are ready to be withdrawn. - `WithdrawInProgress`: The withdrawal request is submitted and is waiting to be confirmed on the chain network. - `Closed`: The staking position is closed. |
**walletId** | **string** | The wallet ID. |
- **tokenId** | **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). |
+ **tokenId** | **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
diff --git a/docs/SubmitDepositTravelRuleInfo201Response.md b/docs/SubmitDepositTravelRuleInfo201Response.md
new file mode 100644
index 0000000..fc5a66d
--- /dev/null
+++ b/docs/SubmitDepositTravelRuleInfo201Response.md
@@ -0,0 +1,56 @@
+# SubmitDepositTravelRuleInfo201Response
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Submitted** | Pointer to **bool** | Whether the submitted Travel Rule info has been successfully executed. - `true`: The operation has been successfully executed. - `false`: The operation has not been executed. | [optional]
+
+## Methods
+
+### NewSubmitDepositTravelRuleInfo201Response
+
+`func NewSubmitDepositTravelRuleInfo201Response() *SubmitDepositTravelRuleInfo201Response`
+
+NewSubmitDepositTravelRuleInfo201Response instantiates a new SubmitDepositTravelRuleInfo201Response object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewSubmitDepositTravelRuleInfo201ResponseWithDefaults
+
+`func NewSubmitDepositTravelRuleInfo201ResponseWithDefaults() *SubmitDepositTravelRuleInfo201Response`
+
+NewSubmitDepositTravelRuleInfo201ResponseWithDefaults instantiates a new SubmitDepositTravelRuleInfo201Response object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetSubmitted
+
+`func (o *SubmitDepositTravelRuleInfo201Response) GetSubmitted() bool`
+
+GetSubmitted returns the Submitted field if non-nil, zero value otherwise.
+
+### GetSubmittedOk
+
+`func (o *SubmitDepositTravelRuleInfo201Response) GetSubmittedOk() (*bool, bool)`
+
+GetSubmittedOk returns a tuple with the Submitted field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSubmitted
+
+`func (o *SubmitDepositTravelRuleInfo201Response) SetSubmitted(v bool)`
+
+SetSubmitted sets Submitted field to given value.
+
+### HasSubmitted
+
+`func (o *SubmitDepositTravelRuleInfo201Response) HasSubmitted() bool`
+
+HasSubmitted returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SwapActivity.md b/docs/SwapActivity.md
new file mode 100644
index 0000000..ca27626
--- /dev/null
+++ b/docs/SwapActivity.md
@@ -0,0 +1,352 @@
+# SwapActivity
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ActivityId** | Pointer to **string** | The unique identifier of the swap activity. | [optional]
+**Status** | Pointer to **string** | The status of the swap activity. | [optional]
+**WalletId** | Pointer to **string** | The unique identifier of the wallet. | [optional]
+**PayTokenId** | Pointer to **string** | The token symbol to swap from. | [optional]
+**ReceiveTokenId** | Pointer to **string** | The token symbol to swap to. | [optional]
+**PayAmount** | Pointer to **string** | The amount of tokens to bridge. | [optional]
+**ReceiveAmount** | Pointer to **string** | The amount of tokens to receive. | [optional]
+**FeeAmount** | Pointer to **string** | The amount of fee. | [optional]
+**Initiator** | Pointer to **NullableString** | The initiator of the swap activity. | [optional]
+**InitiatorType** | Pointer to [**TransactionInitiatorType**](TransactionInitiatorType.md) | | [optional]
+**CreatedTimestamp** | Pointer to **int32** | The time when the swap activity was created, in Unix timestamp format, measured in milliseconds. | [optional]
+**UpdatedTimestamp** | Pointer to **int32** | The time when the swap activity was last updated, in Unix timestamp format, measured in milliseconds. | [optional]
+
+## Methods
+
+### NewSwapActivity
+
+`func NewSwapActivity() *SwapActivity`
+
+NewSwapActivity instantiates a new SwapActivity object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewSwapActivityWithDefaults
+
+`func NewSwapActivityWithDefaults() *SwapActivity`
+
+NewSwapActivityWithDefaults instantiates a new SwapActivity object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetActivityId
+
+`func (o *SwapActivity) GetActivityId() string`
+
+GetActivityId returns the ActivityId field if non-nil, zero value otherwise.
+
+### GetActivityIdOk
+
+`func (o *SwapActivity) GetActivityIdOk() (*string, bool)`
+
+GetActivityIdOk returns a tuple with the ActivityId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActivityId
+
+`func (o *SwapActivity) SetActivityId(v string)`
+
+SetActivityId sets ActivityId field to given value.
+
+### HasActivityId
+
+`func (o *SwapActivity) HasActivityId() bool`
+
+HasActivityId returns a boolean if a field has been set.
+
+### GetStatus
+
+`func (o *SwapActivity) GetStatus() string`
+
+GetStatus returns the Status field if non-nil, zero value otherwise.
+
+### GetStatusOk
+
+`func (o *SwapActivity) GetStatusOk() (*string, bool)`
+
+GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetStatus
+
+`func (o *SwapActivity) SetStatus(v string)`
+
+SetStatus sets Status field to given value.
+
+### HasStatus
+
+`func (o *SwapActivity) HasStatus() bool`
+
+HasStatus returns a boolean if a field has been set.
+
+### GetWalletId
+
+`func (o *SwapActivity) GetWalletId() string`
+
+GetWalletId returns the WalletId field if non-nil, zero value otherwise.
+
+### GetWalletIdOk
+
+`func (o *SwapActivity) GetWalletIdOk() (*string, bool)`
+
+GetWalletIdOk returns a tuple with the WalletId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetWalletId
+
+`func (o *SwapActivity) SetWalletId(v string)`
+
+SetWalletId sets WalletId field to given value.
+
+### HasWalletId
+
+`func (o *SwapActivity) HasWalletId() bool`
+
+HasWalletId returns a boolean if a field has been set.
+
+### GetPayTokenId
+
+`func (o *SwapActivity) GetPayTokenId() string`
+
+GetPayTokenId returns the PayTokenId field if non-nil, zero value otherwise.
+
+### GetPayTokenIdOk
+
+`func (o *SwapActivity) GetPayTokenIdOk() (*string, bool)`
+
+GetPayTokenIdOk returns a tuple with the PayTokenId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPayTokenId
+
+`func (o *SwapActivity) SetPayTokenId(v string)`
+
+SetPayTokenId sets PayTokenId field to given value.
+
+### HasPayTokenId
+
+`func (o *SwapActivity) HasPayTokenId() bool`
+
+HasPayTokenId returns a boolean if a field has been set.
+
+### GetReceiveTokenId
+
+`func (o *SwapActivity) GetReceiveTokenId() string`
+
+GetReceiveTokenId returns the ReceiveTokenId field if non-nil, zero value otherwise.
+
+### GetReceiveTokenIdOk
+
+`func (o *SwapActivity) GetReceiveTokenIdOk() (*string, bool)`
+
+GetReceiveTokenIdOk returns a tuple with the ReceiveTokenId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetReceiveTokenId
+
+`func (o *SwapActivity) SetReceiveTokenId(v string)`
+
+SetReceiveTokenId sets ReceiveTokenId field to given value.
+
+### HasReceiveTokenId
+
+`func (o *SwapActivity) HasReceiveTokenId() bool`
+
+HasReceiveTokenId returns a boolean if a field has been set.
+
+### GetPayAmount
+
+`func (o *SwapActivity) GetPayAmount() string`
+
+GetPayAmount returns the PayAmount field if non-nil, zero value otherwise.
+
+### GetPayAmountOk
+
+`func (o *SwapActivity) GetPayAmountOk() (*string, bool)`
+
+GetPayAmountOk returns a tuple with the PayAmount field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPayAmount
+
+`func (o *SwapActivity) SetPayAmount(v string)`
+
+SetPayAmount sets PayAmount field to given value.
+
+### HasPayAmount
+
+`func (o *SwapActivity) HasPayAmount() bool`
+
+HasPayAmount returns a boolean if a field has been set.
+
+### GetReceiveAmount
+
+`func (o *SwapActivity) GetReceiveAmount() string`
+
+GetReceiveAmount returns the ReceiveAmount field if non-nil, zero value otherwise.
+
+### GetReceiveAmountOk
+
+`func (o *SwapActivity) GetReceiveAmountOk() (*string, bool)`
+
+GetReceiveAmountOk returns a tuple with the ReceiveAmount field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetReceiveAmount
+
+`func (o *SwapActivity) SetReceiveAmount(v string)`
+
+SetReceiveAmount sets ReceiveAmount field to given value.
+
+### HasReceiveAmount
+
+`func (o *SwapActivity) HasReceiveAmount() bool`
+
+HasReceiveAmount returns a boolean if a field has been set.
+
+### GetFeeAmount
+
+`func (o *SwapActivity) GetFeeAmount() string`
+
+GetFeeAmount returns the FeeAmount field if non-nil, zero value otherwise.
+
+### GetFeeAmountOk
+
+`func (o *SwapActivity) GetFeeAmountOk() (*string, bool)`
+
+GetFeeAmountOk returns a tuple with the FeeAmount field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetFeeAmount
+
+`func (o *SwapActivity) SetFeeAmount(v string)`
+
+SetFeeAmount sets FeeAmount field to given value.
+
+### HasFeeAmount
+
+`func (o *SwapActivity) HasFeeAmount() bool`
+
+HasFeeAmount returns a boolean if a field has been set.
+
+### GetInitiator
+
+`func (o *SwapActivity) GetInitiator() string`
+
+GetInitiator returns the Initiator field if non-nil, zero value otherwise.
+
+### GetInitiatorOk
+
+`func (o *SwapActivity) GetInitiatorOk() (*string, bool)`
+
+GetInitiatorOk returns a tuple with the Initiator field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetInitiator
+
+`func (o *SwapActivity) SetInitiator(v string)`
+
+SetInitiator sets Initiator field to given value.
+
+### HasInitiator
+
+`func (o *SwapActivity) HasInitiator() bool`
+
+HasInitiator returns a boolean if a field has been set.
+
+### SetInitiatorNil
+
+`func (o *SwapActivity) SetInitiatorNil(b bool)`
+
+ SetInitiatorNil sets the value for Initiator to be an explicit nil
+
+### UnsetInitiator
+`func (o *SwapActivity) UnsetInitiator()`
+
+UnsetInitiator ensures that no value is present for Initiator, not even an explicit nil
+### GetInitiatorType
+
+`func (o *SwapActivity) GetInitiatorType() TransactionInitiatorType`
+
+GetInitiatorType returns the InitiatorType field if non-nil, zero value otherwise.
+
+### GetInitiatorTypeOk
+
+`func (o *SwapActivity) GetInitiatorTypeOk() (*TransactionInitiatorType, bool)`
+
+GetInitiatorTypeOk returns a tuple with the InitiatorType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetInitiatorType
+
+`func (o *SwapActivity) SetInitiatorType(v TransactionInitiatorType)`
+
+SetInitiatorType sets InitiatorType field to given value.
+
+### HasInitiatorType
+
+`func (o *SwapActivity) HasInitiatorType() bool`
+
+HasInitiatorType returns a boolean if a field has been set.
+
+### GetCreatedTimestamp
+
+`func (o *SwapActivity) GetCreatedTimestamp() int32`
+
+GetCreatedTimestamp returns the CreatedTimestamp field if non-nil, zero value otherwise.
+
+### GetCreatedTimestampOk
+
+`func (o *SwapActivity) GetCreatedTimestampOk() (*int32, bool)`
+
+GetCreatedTimestampOk returns a tuple with the CreatedTimestamp field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCreatedTimestamp
+
+`func (o *SwapActivity) SetCreatedTimestamp(v int32)`
+
+SetCreatedTimestamp sets CreatedTimestamp field to given value.
+
+### HasCreatedTimestamp
+
+`func (o *SwapActivity) HasCreatedTimestamp() bool`
+
+HasCreatedTimestamp returns a boolean if a field has been set.
+
+### GetUpdatedTimestamp
+
+`func (o *SwapActivity) GetUpdatedTimestamp() int32`
+
+GetUpdatedTimestamp returns the UpdatedTimestamp field if non-nil, zero value otherwise.
+
+### GetUpdatedTimestampOk
+
+`func (o *SwapActivity) GetUpdatedTimestampOk() (*int32, bool)`
+
+GetUpdatedTimestampOk returns a tuple with the UpdatedTimestamp field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetUpdatedTimestamp
+
+`func (o *SwapActivity) SetUpdatedTimestamp(v int32)`
+
+SetUpdatedTimestamp sets UpdatedTimestamp field to given value.
+
+### HasUpdatedTimestamp
+
+`func (o *SwapActivity) HasUpdatedTimestamp() bool`
+
+HasUpdatedTimestamp returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SwapSummary.md b/docs/SwapSummary.md
new file mode 100644
index 0000000..ca2b912
--- /dev/null
+++ b/docs/SwapSummary.md
@@ -0,0 +1,72 @@
+# SwapSummary
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**TotalUsdValue** | **string** | The total USD value of the swap activities, represented as a string. |
+**ActivityCount** | **int32** | The total number of swap activities. |
+
+## Methods
+
+### NewSwapSummary
+
+`func NewSwapSummary(totalUsdValue string, activityCount int32, ) *SwapSummary`
+
+NewSwapSummary instantiates a new SwapSummary object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewSwapSummaryWithDefaults
+
+`func NewSwapSummaryWithDefaults() *SwapSummary`
+
+NewSwapSummaryWithDefaults instantiates a new SwapSummary object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetTotalUsdValue
+
+`func (o *SwapSummary) GetTotalUsdValue() string`
+
+GetTotalUsdValue returns the TotalUsdValue field if non-nil, zero value otherwise.
+
+### GetTotalUsdValueOk
+
+`func (o *SwapSummary) GetTotalUsdValueOk() (*string, bool)`
+
+GetTotalUsdValueOk returns a tuple with the TotalUsdValue field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTotalUsdValue
+
+`func (o *SwapSummary) SetTotalUsdValue(v string)`
+
+SetTotalUsdValue sets TotalUsdValue field to given value.
+
+
+### GetActivityCount
+
+`func (o *SwapSummary) GetActivityCount() int32`
+
+GetActivityCount returns the ActivityCount field if non-nil, zero value otherwise.
+
+### GetActivityCountOk
+
+`func (o *SwapSummary) GetActivityCountOk() (*int32, bool)`
+
+GetActivityCountOk returns a tuple with the ActivityCount field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetActivityCount
+
+`func (o *SwapSummary) SetActivityCount(v int32)`
+
+SetActivityCount sets ActivityCount field to given value.
+
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SwapTokenPair.md b/docs/SwapTokenPair.md
new file mode 100644
index 0000000..b25bb9f
--- /dev/null
+++ b/docs/SwapTokenPair.md
@@ -0,0 +1,82 @@
+# SwapTokenPair
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**PayTokenId** | Pointer to **string** | The source token symbol. | [optional]
+**ReceiveTokenId** | Pointer to **string** | The target token symbol. | [optional]
+
+## Methods
+
+### NewSwapTokenPair
+
+`func NewSwapTokenPair() *SwapTokenPair`
+
+NewSwapTokenPair instantiates a new SwapTokenPair object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewSwapTokenPairWithDefaults
+
+`func NewSwapTokenPairWithDefaults() *SwapTokenPair`
+
+NewSwapTokenPairWithDefaults instantiates a new SwapTokenPair object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetPayTokenId
+
+`func (o *SwapTokenPair) GetPayTokenId() string`
+
+GetPayTokenId returns the PayTokenId field if non-nil, zero value otherwise.
+
+### GetPayTokenIdOk
+
+`func (o *SwapTokenPair) GetPayTokenIdOk() (*string, bool)`
+
+GetPayTokenIdOk returns a tuple with the PayTokenId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPayTokenId
+
+`func (o *SwapTokenPair) SetPayTokenId(v string)`
+
+SetPayTokenId sets PayTokenId field to given value.
+
+### HasPayTokenId
+
+`func (o *SwapTokenPair) HasPayTokenId() bool`
+
+HasPayTokenId returns a boolean if a field has been set.
+
+### GetReceiveTokenId
+
+`func (o *SwapTokenPair) GetReceiveTokenId() string`
+
+GetReceiveTokenId returns the ReceiveTokenId field if non-nil, zero value otherwise.
+
+### GetReceiveTokenIdOk
+
+`func (o *SwapTokenPair) GetReceiveTokenIdOk() (*string, bool)`
+
+GetReceiveTokenIdOk returns a tuple with the ReceiveTokenId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetReceiveTokenId
+
+`func (o *SwapTokenPair) SetReceiveTokenId(v string)`
+
+SetReceiveTokenId sets ReceiveTokenId field to given value.
+
+### HasReceiveTokenId
+
+`func (o *SwapTokenPair) HasReceiveTokenId() bool`
+
+HasReceiveTokenId returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TSSRequestWebhookEventData.md b/docs/TSSRequestWebhookEventData.md
index 5924d5d..6d051d6 100644
--- a/docs/TSSRequestWebhookEventData.md
+++ b/docs/TSSRequestWebhookEventData.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DataType** | **string** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. |
+**DataType** | **string** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. |
**TssRequestId** | Pointer to **string** | The TSS request ID. | [optional]
**SourceKeyShareHolderGroup** | Pointer to [**SourceGroup**](SourceGroup.md) | | [optional]
**TargetKeyShareHolderGroupId** | Pointer to **string** | The target key share holder group ID. | [optional]
diff --git a/docs/TokenBalance.md b/docs/TokenBalance.md
index fd1785a..b2fa272 100644
--- a/docs/TokenBalance.md
+++ b/docs/TokenBalance.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TokenId** | **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). |
+**TokenId** | **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**Balance** | [**TokenBalanceBalance**](TokenBalanceBalance.md) | |
## Methods
diff --git a/docs/TokenBalanceBalance.md b/docs/TokenBalanceBalance.md
index f3148c2..19d154d 100644
--- a/docs/TokenBalanceBalance.md
+++ b/docs/TokenBalanceBalance.md
@@ -4,10 +4,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**Total** | **string** | The current amount of tokens in an address, which is retrieved directly from the network. To learn more, see [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details. |
-**Available** | **string** | The amount of tokens ready to be spent. To learn more, see [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details. |
-**Pending** | Pointer to **string** | The total amount being sent in a transaction, which is calculated as the withdrawal amount plus the transaction fee. To learn more, see [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details. | [optional] [default to "0"]
-**Locked** | Pointer to **string** | For UTXO chains, this is the combined value of the selected UTXOs for the transaction. For other chains, it is equal to the Pending amount. To learn more, see [Balances and transaction amounts for MPC Wallets](/v2/guides/mpc-wallets/balance-amounts) for more details. | [optional] [default to "0"]
+**Total** | **string** | The current amount of tokens in an address, which is retrieved directly from the network. To learn more, see [Balances and transaction amounts for MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/balance-amounts) for more details. |
+**Available** | **string** | The amount of tokens ready to be spent. To learn more, see [Balances and transaction amounts for MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/balance-amounts) for more details. |
+**Pending** | Pointer to **string** | The total amount being sent in a transaction, which is calculated as the withdrawal amount plus the transaction fee. To learn more, see [Balances and transaction amounts for MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/balance-amounts) for more details. | [optional] [default to "0"]
+**Locked** | Pointer to **string** | For UTXO chains, this is the combined value of the selected UTXOs for the transaction. For other chains, it is equal to the Pending amount. To learn more, see [Balances and transaction amounts for MPC Wallets](https://www.cobo.com/developers/v2/guides/mpc-wallets/balance-amounts) for more details. | [optional] [default to "0"]
## Methods
diff --git a/docs/TokenInfo.md b/docs/TokenInfo.md
index f5b68c0..5e0b3a0 100644
--- a/docs/TokenInfo.md
+++ b/docs/TokenInfo.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TokenId** | **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). |
+**TokenId** | **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**ChainId** | **string** | The ID of the chain on which the token operates. |
**AssetId** | Pointer to **string** | (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. | [optional]
**Symbol** | Pointer to **string** | The token symbol, which is the abbreviated name of a token. | [optional]
diff --git a/docs/Transaction.md b/docs/Transaction.md
index 83ec0aa..a00a4a8 100644
--- a/docs/Transaction.md
+++ b/docs/Transaction.md
@@ -12,8 +12,8 @@ Name | Type | Description | Notes
**Status** | [**TransactionStatus**](TransactionStatus.md) | |
**SubStatus** | Pointer to [**TransactionSubStatus**](TransactionSubStatus.md) | | [optional]
**FailedReason** | Pointer to **string** | (This property is applicable to approval failures and signature failures only) The reason why the transaction failed. | [optional]
-**ChainId** | Pointer to **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). | [optional]
-**TokenId** | Pointer to **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]
+**ChainId** | Pointer to **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). | [optional]
+**TokenId** | Pointer to **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). | [optional]
**AssetId** | Pointer to **string** | (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. | [optional]
**Source** | [**TransactionSource**](TransactionSource.md) | |
**Destination** | [**TransactionDestination**](TransactionDestination.md) | |
diff --git a/docs/TransactionApprovalDetail.md b/docs/TransactionApprovalDetail.md
new file mode 100644
index 0000000..7cd0bf1
--- /dev/null
+++ b/docs/TransactionApprovalDetail.md
@@ -0,0 +1,108 @@
+# TransactionApprovalDetail
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Spender** | Pointer to [**TransactionRoleApprovalDetail**](TransactionRoleApprovalDetail.md) | | [optional]
+**Approver** | Pointer to [**TransactionRoleApprovalDetail**](TransactionRoleApprovalDetail.md) | | [optional]
+**AddressOwner** | Pointer to [**TransactionRoleApprovalDetail**](TransactionRoleApprovalDetail.md) | | [optional]
+
+## Methods
+
+### NewTransactionApprovalDetail
+
+`func NewTransactionApprovalDetail() *TransactionApprovalDetail`
+
+NewTransactionApprovalDetail instantiates a new TransactionApprovalDetail object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTransactionApprovalDetailWithDefaults
+
+`func NewTransactionApprovalDetailWithDefaults() *TransactionApprovalDetail`
+
+NewTransactionApprovalDetailWithDefaults instantiates a new TransactionApprovalDetail object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetSpender
+
+`func (o *TransactionApprovalDetail) GetSpender() TransactionRoleApprovalDetail`
+
+GetSpender returns the Spender field if non-nil, zero value otherwise.
+
+### GetSpenderOk
+
+`func (o *TransactionApprovalDetail) GetSpenderOk() (*TransactionRoleApprovalDetail, bool)`
+
+GetSpenderOk returns a tuple with the Spender field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSpender
+
+`func (o *TransactionApprovalDetail) SetSpender(v TransactionRoleApprovalDetail)`
+
+SetSpender sets Spender field to given value.
+
+### HasSpender
+
+`func (o *TransactionApprovalDetail) HasSpender() bool`
+
+HasSpender returns a boolean if a field has been set.
+
+### GetApprover
+
+`func (o *TransactionApprovalDetail) GetApprover() TransactionRoleApprovalDetail`
+
+GetApprover returns the Approver field if non-nil, zero value otherwise.
+
+### GetApproverOk
+
+`func (o *TransactionApprovalDetail) GetApproverOk() (*TransactionRoleApprovalDetail, bool)`
+
+GetApproverOk returns a tuple with the Approver field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetApprover
+
+`func (o *TransactionApprovalDetail) SetApprover(v TransactionRoleApprovalDetail)`
+
+SetApprover sets Approver field to given value.
+
+### HasApprover
+
+`func (o *TransactionApprovalDetail) HasApprover() bool`
+
+HasApprover returns a boolean if a field has been set.
+
+### GetAddressOwner
+
+`func (o *TransactionApprovalDetail) GetAddressOwner() TransactionRoleApprovalDetail`
+
+GetAddressOwner returns the AddressOwner field if non-nil, zero value otherwise.
+
+### GetAddressOwnerOk
+
+`func (o *TransactionApprovalDetail) GetAddressOwnerOk() (*TransactionRoleApprovalDetail, bool)`
+
+GetAddressOwnerOk returns a tuple with the AddressOwner field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAddressOwner
+
+`func (o *TransactionApprovalDetail) SetAddressOwner(v TransactionRoleApprovalDetail)`
+
+SetAddressOwner sets AddressOwner field to given value.
+
+### HasAddressOwner
+
+`func (o *TransactionApprovalDetail) HasAddressOwner() bool`
+
+HasAddressOwner returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TransactionApprovalResult.md b/docs/TransactionApprovalResult.md
new file mode 100644
index 0000000..fbb337a
--- /dev/null
+++ b/docs/TransactionApprovalResult.md
@@ -0,0 +1,15 @@
+# TransactionApprovalResult
+
+## Enum
+
+
+* `APPROVED` (value: `"Approved"`)
+
+* `REJECTED` (value: `"Rejected"`)
+
+* `PENDING` (value: `"Pending"`)
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TransactionDetail.md b/docs/TransactionDetail.md
index 64ba6ce..2411e6d 100644
--- a/docs/TransactionDetail.md
+++ b/docs/TransactionDetail.md
@@ -12,8 +12,8 @@ Name | Type | Description | Notes
**Status** | [**TransactionStatus**](TransactionStatus.md) | |
**SubStatus** | Pointer to [**TransactionSubStatus**](TransactionSubStatus.md) | | [optional]
**FailedReason** | Pointer to **string** | (This property is applicable to approval failures and signature failures only) The reason why the transaction failed. | [optional]
-**ChainId** | Pointer to **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). | [optional]
-**TokenId** | Pointer to **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]
+**ChainId** | Pointer to **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). | [optional]
+**TokenId** | Pointer to **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). | [optional]
**AssetId** | Pointer to **string** | (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. | [optional]
**Source** | [**TransactionSource**](TransactionSource.md) | |
**Destination** | [**TransactionDestination**](TransactionDestination.md) | |
diff --git a/docs/TransactionDetails.md b/docs/TransactionDetails.md
index 3c23f6c..5fb8319 100644
--- a/docs/TransactionDetails.md
+++ b/docs/TransactionDetails.md
@@ -12,8 +12,8 @@ Name | Type | Description | Notes
**Status** | [**TransactionStatus**](TransactionStatus.md) | |
**SubStatus** | Pointer to [**TransactionSubStatus**](TransactionSubStatus.md) | | [optional]
**FailedReason** | Pointer to **string** | (This property is applicable to approval failures and signature failures only) The reason why the transaction failed. | [optional]
-**ChainId** | Pointer to **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). | [optional]
-**TokenId** | Pointer to **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]
+**ChainId** | Pointer to **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). | [optional]
+**TokenId** | Pointer to **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). | [optional]
**AssetId** | Pointer to **string** | (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. | [optional]
**Source** | [**TransactionSource**](TransactionSource.md) | |
**Destination** | [**TransactionDestination**](TransactionDestination.md) | |
diff --git a/docs/TransactionRawTxInfo.md b/docs/TransactionRawTxInfo.md
index 9cb0fcc..2ca1776 100644
--- a/docs/TransactionRawTxInfo.md
+++ b/docs/TransactionRawTxInfo.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**UsedNonce** | Pointer to **int32** | The transaction nonce. | [optional]
-**SelectedUtxos** | Pointer to [**[]TransactionUtxo**](TransactionUtxo.md) | The selected UTXOs to be consumed in the transaction. | [optional]
+**SelectedUtxos** | Pointer to [**[]TransactionSelectedUtxo**](TransactionSelectedUtxo.md) | The selected UTXOs to be consumed in the transaction. | [optional]
**RawTx** | Pointer to **string** | The raw transaction data. | [optional]
## Methods
@@ -54,20 +54,20 @@ HasUsedNonce returns a boolean if a field has been set.
### GetSelectedUtxos
-`func (o *TransactionRawTxInfo) GetSelectedUtxos() []TransactionUtxo`
+`func (o *TransactionRawTxInfo) GetSelectedUtxos() []TransactionSelectedUtxo`
GetSelectedUtxos returns the SelectedUtxos field if non-nil, zero value otherwise.
### GetSelectedUtxosOk
-`func (o *TransactionRawTxInfo) GetSelectedUtxosOk() (*[]TransactionUtxo, bool)`
+`func (o *TransactionRawTxInfo) GetSelectedUtxosOk() (*[]TransactionSelectedUtxo, bool)`
GetSelectedUtxosOk returns a tuple with the SelectedUtxos field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetSelectedUtxos
-`func (o *TransactionRawTxInfo) SetSelectedUtxos(v []TransactionUtxo)`
+`func (o *TransactionRawTxInfo) SetSelectedUtxos(v []TransactionSelectedUtxo)`
SetSelectedUtxos sets SelectedUtxos field to given value.
diff --git a/docs/TransactionRoleApprovalDetail.md b/docs/TransactionRoleApprovalDetail.md
new file mode 100644
index 0000000..266276c
--- /dev/null
+++ b/docs/TransactionRoleApprovalDetail.md
@@ -0,0 +1,160 @@
+# TransactionRoleApprovalDetail
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Result** | Pointer to [**TransactionApprovalResult**](TransactionApprovalResult.md) | | [optional]
+**ReviewThreshold** | Pointer to **int32** | The threshold for passing the review of this role. | [optional]
+**Initiator** | Pointer to **string** | The initiator of the transaction. | [optional]
+**CompleteTime** | Pointer to **string** | Time to complete the review. | [optional]
+**UserDetails** | Pointer to [**[]TransactionUserApprovalDetail**](TransactionUserApprovalDetail.md) | | [optional]
+
+## Methods
+
+### NewTransactionRoleApprovalDetail
+
+`func NewTransactionRoleApprovalDetail() *TransactionRoleApprovalDetail`
+
+NewTransactionRoleApprovalDetail instantiates a new TransactionRoleApprovalDetail object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTransactionRoleApprovalDetailWithDefaults
+
+`func NewTransactionRoleApprovalDetailWithDefaults() *TransactionRoleApprovalDetail`
+
+NewTransactionRoleApprovalDetailWithDefaults instantiates a new TransactionRoleApprovalDetail object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetResult
+
+`func (o *TransactionRoleApprovalDetail) GetResult() TransactionApprovalResult`
+
+GetResult returns the Result field if non-nil, zero value otherwise.
+
+### GetResultOk
+
+`func (o *TransactionRoleApprovalDetail) GetResultOk() (*TransactionApprovalResult, bool)`
+
+GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetResult
+
+`func (o *TransactionRoleApprovalDetail) SetResult(v TransactionApprovalResult)`
+
+SetResult sets Result field to given value.
+
+### HasResult
+
+`func (o *TransactionRoleApprovalDetail) HasResult() bool`
+
+HasResult returns a boolean if a field has been set.
+
+### GetReviewThreshold
+
+`func (o *TransactionRoleApprovalDetail) GetReviewThreshold() int32`
+
+GetReviewThreshold returns the ReviewThreshold field if non-nil, zero value otherwise.
+
+### GetReviewThresholdOk
+
+`func (o *TransactionRoleApprovalDetail) GetReviewThresholdOk() (*int32, bool)`
+
+GetReviewThresholdOk returns a tuple with the ReviewThreshold field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetReviewThreshold
+
+`func (o *TransactionRoleApprovalDetail) SetReviewThreshold(v int32)`
+
+SetReviewThreshold sets ReviewThreshold field to given value.
+
+### HasReviewThreshold
+
+`func (o *TransactionRoleApprovalDetail) HasReviewThreshold() bool`
+
+HasReviewThreshold returns a boolean if a field has been set.
+
+### GetInitiator
+
+`func (o *TransactionRoleApprovalDetail) GetInitiator() string`
+
+GetInitiator returns the Initiator field if non-nil, zero value otherwise.
+
+### GetInitiatorOk
+
+`func (o *TransactionRoleApprovalDetail) GetInitiatorOk() (*string, bool)`
+
+GetInitiatorOk returns a tuple with the Initiator field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetInitiator
+
+`func (o *TransactionRoleApprovalDetail) SetInitiator(v string)`
+
+SetInitiator sets Initiator field to given value.
+
+### HasInitiator
+
+`func (o *TransactionRoleApprovalDetail) HasInitiator() bool`
+
+HasInitiator returns a boolean if a field has been set.
+
+### GetCompleteTime
+
+`func (o *TransactionRoleApprovalDetail) GetCompleteTime() string`
+
+GetCompleteTime returns the CompleteTime field if non-nil, zero value otherwise.
+
+### GetCompleteTimeOk
+
+`func (o *TransactionRoleApprovalDetail) GetCompleteTimeOk() (*string, bool)`
+
+GetCompleteTimeOk returns a tuple with the CompleteTime field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetCompleteTime
+
+`func (o *TransactionRoleApprovalDetail) SetCompleteTime(v string)`
+
+SetCompleteTime sets CompleteTime field to given value.
+
+### HasCompleteTime
+
+`func (o *TransactionRoleApprovalDetail) HasCompleteTime() bool`
+
+HasCompleteTime returns a boolean if a field has been set.
+
+### GetUserDetails
+
+`func (o *TransactionRoleApprovalDetail) GetUserDetails() []TransactionUserApprovalDetail`
+
+GetUserDetails returns the UserDetails field if non-nil, zero value otherwise.
+
+### GetUserDetailsOk
+
+`func (o *TransactionRoleApprovalDetail) GetUserDetailsOk() (*[]TransactionUserApprovalDetail, bool)`
+
+GetUserDetailsOk returns a tuple with the UserDetails field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetUserDetails
+
+`func (o *TransactionRoleApprovalDetail) SetUserDetails(v []TransactionUserApprovalDetail)`
+
+SetUserDetails sets UserDetails field to given value.
+
+### HasUserDetails
+
+`func (o *TransactionRoleApprovalDetail) HasUserDetails() bool`
+
+HasUserDetails returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TransactionSelectedUtxo.md b/docs/TransactionSelectedUtxo.md
new file mode 100644
index 0000000..24441d5
--- /dev/null
+++ b/docs/TransactionSelectedUtxo.md
@@ -0,0 +1,134 @@
+# TransactionSelectedUtxo
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**TxHash** | Pointer to **string** | The transaction hash of the UTXO. | [optional]
+**VoutN** | Pointer to **int32** | The output index of the UTXO. | [optional]
+**Address** | Pointer to **string** | The address of the UTXO. | [optional]
+**Value** | Pointer to **string** | The value of the UTXO. | [optional]
+
+## Methods
+
+### NewTransactionSelectedUtxo
+
+`func NewTransactionSelectedUtxo() *TransactionSelectedUtxo`
+
+NewTransactionSelectedUtxo instantiates a new TransactionSelectedUtxo object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTransactionSelectedUtxoWithDefaults
+
+`func NewTransactionSelectedUtxoWithDefaults() *TransactionSelectedUtxo`
+
+NewTransactionSelectedUtxoWithDefaults instantiates a new TransactionSelectedUtxo object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetTxHash
+
+`func (o *TransactionSelectedUtxo) GetTxHash() string`
+
+GetTxHash returns the TxHash field if non-nil, zero value otherwise.
+
+### GetTxHashOk
+
+`func (o *TransactionSelectedUtxo) GetTxHashOk() (*string, bool)`
+
+GetTxHashOk returns a tuple with the TxHash field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTxHash
+
+`func (o *TransactionSelectedUtxo) SetTxHash(v string)`
+
+SetTxHash sets TxHash field to given value.
+
+### HasTxHash
+
+`func (o *TransactionSelectedUtxo) HasTxHash() bool`
+
+HasTxHash returns a boolean if a field has been set.
+
+### GetVoutN
+
+`func (o *TransactionSelectedUtxo) GetVoutN() int32`
+
+GetVoutN returns the VoutN field if non-nil, zero value otherwise.
+
+### GetVoutNOk
+
+`func (o *TransactionSelectedUtxo) GetVoutNOk() (*int32, bool)`
+
+GetVoutNOk returns a tuple with the VoutN field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVoutN
+
+`func (o *TransactionSelectedUtxo) SetVoutN(v int32)`
+
+SetVoutN sets VoutN field to given value.
+
+### HasVoutN
+
+`func (o *TransactionSelectedUtxo) HasVoutN() bool`
+
+HasVoutN returns a boolean if a field has been set.
+
+### GetAddress
+
+`func (o *TransactionSelectedUtxo) GetAddress() string`
+
+GetAddress returns the Address field if non-nil, zero value otherwise.
+
+### GetAddressOk
+
+`func (o *TransactionSelectedUtxo) GetAddressOk() (*string, bool)`
+
+GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAddress
+
+`func (o *TransactionSelectedUtxo) SetAddress(v string)`
+
+SetAddress sets Address field to given value.
+
+### HasAddress
+
+`func (o *TransactionSelectedUtxo) HasAddress() bool`
+
+HasAddress returns a boolean if a field has been set.
+
+### GetValue
+
+`func (o *TransactionSelectedUtxo) GetValue() string`
+
+GetValue returns the Value field if non-nil, zero value otherwise.
+
+### GetValueOk
+
+`func (o *TransactionSelectedUtxo) GetValueOk() (*string, bool)`
+
+GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetValue
+
+`func (o *TransactionSelectedUtxo) SetValue(v string)`
+
+SetValue sets Value field to given value.
+
+### HasValue
+
+`func (o *TransactionSelectedUtxo) HasValue() bool`
+
+HasValue returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TransactionTokeApproval.md b/docs/TransactionTokeApproval.md
index 3ae9e98..9fbd35d 100644
--- a/docs/TransactionTokeApproval.md
+++ b/docs/TransactionTokeApproval.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TokenId** | **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). |
+**TokenId** | **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**ChainId** | **string** | The ID of the chain on which the token operates. |
**AssetId** | Pointer to **string** | (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. | [optional]
**Symbol** | Pointer to **string** | The token symbol, which is the abbreviated name of a token. | [optional]
diff --git a/docs/TransactionTokenAmount.md b/docs/TransactionTokenAmount.md
index 35a38de..1752feb 100644
--- a/docs/TransactionTokenAmount.md
+++ b/docs/TransactionTokenAmount.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**TokenId** | Pointer to **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]
+**TokenId** | Pointer to **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). | [optional]
**AssetId** | **string** | (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. |
**Amount** | **float32** | Transaction value (Note that this is an absolute value. If you trade 1.5 BTC, then the value is 1.5) |
diff --git a/docs/TransactionUserApprovalDetail.md b/docs/TransactionUserApprovalDetail.md
new file mode 100644
index 0000000..9929880
--- /dev/null
+++ b/docs/TransactionUserApprovalDetail.md
@@ -0,0 +1,212 @@
+# TransactionUserApprovalDetail
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Pubkey** | Pointer to **string** | The gaurd pubkey of the user who audited the message. | [optional]
+**Result** | Pointer to [**TransactionApprovalResult**](TransactionApprovalResult.md) | | [optional]
+**Signature** | Pointer to **string** | Signature of the audited message. | [optional]
+**Language** | Pointer to **string** | The language of the audited message. | [optional]
+**MessageVersion** | Pointer to **string** | Version of the audited message. | [optional]
+**Message** | Pointer to **string** | The audited message. | [optional]
+**ExtraMessage** | Pointer to **string** | The extra audited message. | [optional]
+
+## Methods
+
+### NewTransactionUserApprovalDetail
+
+`func NewTransactionUserApprovalDetail() *TransactionUserApprovalDetail`
+
+NewTransactionUserApprovalDetail instantiates a new TransactionUserApprovalDetail object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTransactionUserApprovalDetailWithDefaults
+
+`func NewTransactionUserApprovalDetailWithDefaults() *TransactionUserApprovalDetail`
+
+NewTransactionUserApprovalDetailWithDefaults instantiates a new TransactionUserApprovalDetail object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetPubkey
+
+`func (o *TransactionUserApprovalDetail) GetPubkey() string`
+
+GetPubkey returns the Pubkey field if non-nil, zero value otherwise.
+
+### GetPubkeyOk
+
+`func (o *TransactionUserApprovalDetail) GetPubkeyOk() (*string, bool)`
+
+GetPubkeyOk returns a tuple with the Pubkey field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPubkey
+
+`func (o *TransactionUserApprovalDetail) SetPubkey(v string)`
+
+SetPubkey sets Pubkey field to given value.
+
+### HasPubkey
+
+`func (o *TransactionUserApprovalDetail) HasPubkey() bool`
+
+HasPubkey returns a boolean if a field has been set.
+
+### GetResult
+
+`func (o *TransactionUserApprovalDetail) GetResult() TransactionApprovalResult`
+
+GetResult returns the Result field if non-nil, zero value otherwise.
+
+### GetResultOk
+
+`func (o *TransactionUserApprovalDetail) GetResultOk() (*TransactionApprovalResult, bool)`
+
+GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetResult
+
+`func (o *TransactionUserApprovalDetail) SetResult(v TransactionApprovalResult)`
+
+SetResult sets Result field to given value.
+
+### HasResult
+
+`func (o *TransactionUserApprovalDetail) HasResult() bool`
+
+HasResult returns a boolean if a field has been set.
+
+### GetSignature
+
+`func (o *TransactionUserApprovalDetail) GetSignature() string`
+
+GetSignature returns the Signature field if non-nil, zero value otherwise.
+
+### GetSignatureOk
+
+`func (o *TransactionUserApprovalDetail) GetSignatureOk() (*string, bool)`
+
+GetSignatureOk returns a tuple with the Signature field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSignature
+
+`func (o *TransactionUserApprovalDetail) SetSignature(v string)`
+
+SetSignature sets Signature field to given value.
+
+### HasSignature
+
+`func (o *TransactionUserApprovalDetail) HasSignature() bool`
+
+HasSignature returns a boolean if a field has been set.
+
+### GetLanguage
+
+`func (o *TransactionUserApprovalDetail) GetLanguage() string`
+
+GetLanguage returns the Language field if non-nil, zero value otherwise.
+
+### GetLanguageOk
+
+`func (o *TransactionUserApprovalDetail) GetLanguageOk() (*string, bool)`
+
+GetLanguageOk returns a tuple with the Language field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLanguage
+
+`func (o *TransactionUserApprovalDetail) SetLanguage(v string)`
+
+SetLanguage sets Language field to given value.
+
+### HasLanguage
+
+`func (o *TransactionUserApprovalDetail) HasLanguage() bool`
+
+HasLanguage returns a boolean if a field has been set.
+
+### GetMessageVersion
+
+`func (o *TransactionUserApprovalDetail) GetMessageVersion() string`
+
+GetMessageVersion returns the MessageVersion field if non-nil, zero value otherwise.
+
+### GetMessageVersionOk
+
+`func (o *TransactionUserApprovalDetail) GetMessageVersionOk() (*string, bool)`
+
+GetMessageVersionOk returns a tuple with the MessageVersion field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetMessageVersion
+
+`func (o *TransactionUserApprovalDetail) SetMessageVersion(v string)`
+
+SetMessageVersion sets MessageVersion field to given value.
+
+### HasMessageVersion
+
+`func (o *TransactionUserApprovalDetail) HasMessageVersion() bool`
+
+HasMessageVersion returns a boolean if a field has been set.
+
+### GetMessage
+
+`func (o *TransactionUserApprovalDetail) GetMessage() string`
+
+GetMessage returns the Message field if non-nil, zero value otherwise.
+
+### GetMessageOk
+
+`func (o *TransactionUserApprovalDetail) GetMessageOk() (*string, bool)`
+
+GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetMessage
+
+`func (o *TransactionUserApprovalDetail) SetMessage(v string)`
+
+SetMessage sets Message field to given value.
+
+### HasMessage
+
+`func (o *TransactionUserApprovalDetail) HasMessage() bool`
+
+HasMessage returns a boolean if a field has been set.
+
+### GetExtraMessage
+
+`func (o *TransactionUserApprovalDetail) GetExtraMessage() string`
+
+GetExtraMessage returns the ExtraMessage field if non-nil, zero value otherwise.
+
+### GetExtraMessageOk
+
+`func (o *TransactionUserApprovalDetail) GetExtraMessageOk() (*string, bool)`
+
+GetExtraMessageOk returns a tuple with the ExtraMessage field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetExtraMessage
+
+`func (o *TransactionUserApprovalDetail) SetExtraMessage(v string)`
+
+SetExtraMessage sets ExtraMessage field to given value.
+
+### HasExtraMessage
+
+`func (o *TransactionUserApprovalDetail) HasExtraMessage() bool`
+
+HasExtraMessage returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TransactionWebhookEventData.md b/docs/TransactionWebhookEventData.md
index b30ca02..8109127 100644
--- a/docs/TransactionWebhookEventData.md
+++ b/docs/TransactionWebhookEventData.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DataType** | **string** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. |
+**DataType** | **string** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. |
**TransactionId** | **string** | The transaction ID. |
**CoboId** | Pointer to **string** | The Cobo ID, which can be used to track a transaction. | [optional]
**RequestId** | Pointer to **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. | [optional]
@@ -13,8 +13,8 @@ Name | Type | Description | Notes
**Status** | [**TransactionStatus**](TransactionStatus.md) | |
**SubStatus** | Pointer to [**TransactionSubStatus**](TransactionSubStatus.md) | | [optional]
**FailedReason** | Pointer to **string** | (This property is applicable to approval failures and signature failures only) The reason why the transaction failed. | [optional]
-**ChainId** | Pointer to **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). | [optional]
-**TokenId** | Pointer to **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]
+**ChainId** | Pointer to **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). | [optional]
+**TokenId** | Pointer to **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). | [optional]
**AssetId** | Pointer to **string** | (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. | [optional]
**Source** | [**TransactionSource**](TransactionSource.md) | |
**Destination** | [**TransactionDestination**](TransactionDestination.md) | |
diff --git a/docs/TransactionsAPI.md b/docs/TransactionsAPI.md
index 30c90d7..6c2f340 100644
--- a/docs/TransactionsAPI.md
+++ b/docs/TransactionsAPI.md
@@ -12,6 +12,7 @@ Method | HTTP request | Description
[**CreateTransferTransaction**](TransactionsAPI.md#CreateTransferTransaction) | **Post** /transactions/transfer | Transfer token
[**DropTransactionById**](TransactionsAPI.md#DropTransactionById) | **Post** /transactions/{transaction_id}/drop | Drop transaction
[**EstimateFee**](TransactionsAPI.md#EstimateFee) | **Post** /transactions/estimate_fee | Estimate transaction fee
+[**GetTransactionApprovalDetail**](TransactionsAPI.md#GetTransactionApprovalDetail) | **Get** /transactions/{transaction_id}/approval_detail | Get transaction approval information
[**GetTransactionById**](TransactionsAPI.md#GetTransactionById) | **Get** /transactions/{transaction_id} | Get transaction information
[**ListTransactions**](TransactionsAPI.md#ListTransactions) | **Get** /transactions | List all transactions
[**ResendTransactionById**](TransactionsAPI.md#ResendTransactionById) | **Post** /transactions/{transaction_id}/resend | Resend transaction
@@ -233,7 +234,7 @@ Other parameters are passed through a pointer to a apiCheckLoopTransfersRequest
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **tokenId** | **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). |
+ **tokenId** | **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**sourceWalletId** | **string** | The wallet ID of the transaction source. |
**destinationAddresses** | **string** | A list of destination addresses, separated by comma. |
@@ -641,6 +642,86 @@ Name | Type | Description | Notes
[[Back to README]](../README.md)
+## GetTransactionApprovalDetail
+
+> TransactionApprovalDetail GetTransactionApprovalDetail(ctx, transactionId).Execute()
+
+Get transaction approval information
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ coboWaas2 "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2"
+ "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2/crypto"
+)
+
+func main() {
+ transactionId := "f47ac10b-58cc-4372-a567-0e02b2c3d479"
+
+ configuration := coboWaas2.NewConfiguration()
+ // Initialize the API client
+ apiClient := coboWaas2.NewAPIClient(configuration)
+ ctx := context.Background()
+
+ // Select the development environment. To use the production environment, replace coboWaas2.DevEnv with coboWaas2.ProdEnv
+ ctx = context.WithValue(ctx, coboWaas2.ContextEnv, coboWaas2.DevEnv)
+ // Replace `` with your private key
+ ctx = context.WithValue(ctx, coboWaas2.ContextPortalSigner, crypto.Ed25519Signer{
+ Secret: "",
+ })
+ resp, r, err := apiClient.TransactionsAPI.GetTransactionApprovalDetail(ctx, transactionId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TransactionsAPI.GetTransactionApprovalDetail``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetTransactionApprovalDetail`: TransactionApprovalDetail
+ fmt.Fprintf(os.Stdout, "Response from `TransactionsAPI.GetTransactionApprovalDetail`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
+**transactionId** | **string** | The transaction ID. |
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiGetTransactionApprovalDetailRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+### Return type
+
+[**TransactionApprovalDetail**](TransactionApprovalDetail.md)
+
+### Authorization
+
+[CoboAuth](../README.md#CoboAuth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
## GetTransactionById
> TransactionDetail GetTransactionById(ctx, transactionId).Execute()
@@ -800,16 +881,16 @@ Name | Type | Description | Notes
**types** | **string** | A list of transaction types, separated by comma. Possible values include: - `Deposit`: A deposit transaction. - `Withdrawal`: A withdrawal transaction. - `ContractCall`: A transaction that interacts with a smart contract. - `MessageSign`: A transaction that signs a message. - `ExternalSafeTx`: A transaction to a Smart Contract Wallet (Safe{Wallet}) that requires one or multiple signatures to be executed. - `Stake`: A transaction that creates a staking request. - `Unstake`: A transaction that creates a unstaking request. |
**statuses** | **string** | A list of transaction statuses, separated by comma. Possible values include: - `Submitted`: The transaction is submitted. - `PendingScreening`: The transaction is pending screening by Risk Control. - `PendingAuthorization`: The transaction is pending approvals. - `PendingSignature`: The transaction is pending signature. - `Broadcasting`: The transaction is being broadcast. - `Confirming`: The transaction is waiting for the required number of confirmations. - `Completed`: The transaction is completed. - `Failed`: The transaction failed. - `Rejected`: The transaction is rejected. - `Pending`: The transaction is waiting to be included in the next block of the blockchain. |
**walletIds** | **string** | A list of wallet IDs, separated by comma. |
- **chainIds** | **string** | A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
- **tokenIds** | **string** | A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). |
+ **chainIds** | **string** | A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
+ **tokenIds** | **string** | A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**assetIds** | **string** | (This concept applies to Exchange Wallets only) A list of asset IDs, separated by comma. An asset ID is the unique identifier of the asset held within your linked exchange account. |
- **vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
- **projectId** | **string** | The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects). |
+ **vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
+ **projectId** | **string** | The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects). |
**minCreatedTimestamp** | **int64** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time. |
**maxCreatedTimestamp** | **int64** | The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time. |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
diff --git a/docs/TransferParams.md b/docs/TransferParams.md
index eab06cd..43d2980 100644
--- a/docs/TransferParams.md
+++ b/docs/TransferParams.md
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**RequestId** | **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. |
**Source** | [**TransferSource**](TransferSource.md) | |
-**TokenId** | **string** | The token ID of the transferred 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). For transfers from Exchange Wallets, this property value represents the asset ID. |
+**TokenId** | **string** | The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). For transfers from Exchange Wallets, this property value represents the asset ID. |
**Destination** | [**TransferDestination**](TransferDestination.md) | |
**CategoryNames** | Pointer to **[]string** | The custom category for you to identify your transactions. | [optional]
**Description** | Pointer to **string** | The description of the transfer. | [optional]
diff --git a/docs/TravelRuleAPI.md b/docs/TravelRuleAPI.md
new file mode 100644
index 0000000..5580fdd
--- /dev/null
+++ b/docs/TravelRuleAPI.md
@@ -0,0 +1,313 @@
+# \TravelRuleAPI
+
+All URIs are relative to *https://api.dev.cobo.com/v2*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**GetTransactionLimitation**](TravelRuleAPI.md#GetTransactionLimitation) | **Get** /travel_rule/transaction/limitation | Retrieve transaction limitations
+[**ListSupportedCountries**](TravelRuleAPI.md#ListSupportedCountries) | **Get** /travel_rule/transaction/countries | List supported countries
+[**SubmitDepositTravelRuleInfo**](TravelRuleAPI.md#SubmitDepositTravelRuleInfo) | **Post** /travel_rule/transaction/deposit/travel_rule_info | Submit Deposit Transaction Travel Rule information
+[**SubmitWithdrawTravelRuleInfo**](TravelRuleAPI.md#SubmitWithdrawTravelRuleInfo) | **Post** /travel_rule/transaction/withdraw/travel_rule_info | Submit Withdraw Transaction Travel Rule information
+
+
+
+## GetTransactionLimitation
+
+> GetTransactionLimitation200Response GetTransactionLimitation(ctx).TransactionType(transactionType).TransactionId(transactionId).Execute()
+
+Retrieve transaction limitations
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ coboWaas2 "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2"
+ "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2/crypto"
+)
+
+func main() {
+ transactionType := "DEPOSIT"
+ transactionId := "123e4567-e89b-12d3-a456-426614174000"
+
+ configuration := coboWaas2.NewConfiguration()
+ // Initialize the API client
+ apiClient := coboWaas2.NewAPIClient(configuration)
+ ctx := context.Background()
+
+ // Select the development environment. To use the production environment, replace coboWaas2.DevEnv with coboWaas2.ProdEnv
+ ctx = context.WithValue(ctx, coboWaas2.ContextEnv, coboWaas2.DevEnv)
+ // Replace `` with your private key
+ ctx = context.WithValue(ctx, coboWaas2.ContextPortalSigner, crypto.Ed25519Signer{
+ Secret: "",
+ })
+ resp, r, err := apiClient.TravelRuleAPI.GetTransactionLimitation(ctx).TransactionType(transactionType).TransactionId(transactionId).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TravelRuleAPI.GetTransactionLimitation``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `GetTransactionLimitation`: GetTransactionLimitation200Response
+ fmt.Fprintf(os.Stdout, "Response from `TravelRuleAPI.GetTransactionLimitation`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiGetTransactionLimitationRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **transactionType** | **string** | The transaction type. Possible values include: - `DEPOSIT`: A deposit transaction. - `WITHDRAW`: A withdrawal transaction. |
+ **transactionId** | **string** | The transaction ID |
+
+### Return type
+
+[**GetTransactionLimitation200Response**](GetTransactionLimitation200Response.md)
+
+### Authorization
+
+[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## ListSupportedCountries
+
+> []ListSupportedCountries200ResponseInner ListSupportedCountries(ctx).Execute()
+
+List supported countries
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ coboWaas2 "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2"
+ "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2/crypto"
+)
+
+func main() {
+
+ configuration := coboWaas2.NewConfiguration()
+ // Initialize the API client
+ apiClient := coboWaas2.NewAPIClient(configuration)
+ ctx := context.Background()
+
+ // Select the development environment. To use the production environment, replace coboWaas2.DevEnv with coboWaas2.ProdEnv
+ ctx = context.WithValue(ctx, coboWaas2.ContextEnv, coboWaas2.DevEnv)
+ // Replace `` with your private key
+ ctx = context.WithValue(ctx, coboWaas2.ContextPortalSigner, crypto.Ed25519Signer{
+ Secret: "",
+ })
+ resp, r, err := apiClient.TravelRuleAPI.ListSupportedCountries(ctx).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TravelRuleAPI.ListSupportedCountries``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `ListSupportedCountries`: []ListSupportedCountries200ResponseInner
+ fmt.Fprintf(os.Stdout, "Response from `TravelRuleAPI.ListSupportedCountries`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+This endpoint does not need any parameter.
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiListSupportedCountriesRequest struct via the builder pattern
+
+
+### Return type
+
+[**[]ListSupportedCountries200ResponseInner**](ListSupportedCountries200ResponseInner.md)
+
+### Authorization
+
+[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## SubmitDepositTravelRuleInfo
+
+> SubmitDepositTravelRuleInfo201Response SubmitDepositTravelRuleInfo(ctx).TravelRuleDepositRequest(travelRuleDepositRequest).Execute()
+
+Submit Deposit Transaction Travel Rule information
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ coboWaas2 "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2"
+ "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2/crypto"
+)
+
+func main() {
+ travelRuleDepositRequest := *coboWaas2.NewTravelRuleDepositRequest("f47ac10b-58cc-4372-a567-0e02b2c3d479", coboWaas2.TravelRuleDepositRequest_travel_rule_info{SelfCustodyWallet: coboWaas2.NewSelfCustodyWallet(coboWaas2.DestinationWalletType("EXCHANGES_OR_VASP"), "challenge_token_abc123", "0x1234567890abcdef1234567890abcdef12345678", "0xf0a0ca69dd3afc57235c72aba3ff1f1144ee5409aeec013a9b17cdb58d0185a66a525945bfbd66e87bf0503eb0b83bf90cb973a8cbb730d19dc032e00dfe393a1c")})
+
+ configuration := coboWaas2.NewConfiguration()
+ // Initialize the API client
+ apiClient := coboWaas2.NewAPIClient(configuration)
+ ctx := context.Background()
+
+ // Select the development environment. To use the production environment, replace coboWaas2.DevEnv with coboWaas2.ProdEnv
+ ctx = context.WithValue(ctx, coboWaas2.ContextEnv, coboWaas2.DevEnv)
+ // Replace `` with your private key
+ ctx = context.WithValue(ctx, coboWaas2.ContextPortalSigner, crypto.Ed25519Signer{
+ Secret: "",
+ })
+ resp, r, err := apiClient.TravelRuleAPI.SubmitDepositTravelRuleInfo(ctx).TravelRuleDepositRequest(travelRuleDepositRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TravelRuleAPI.SubmitDepositTravelRuleInfo``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `SubmitDepositTravelRuleInfo`: SubmitDepositTravelRuleInfo201Response
+ fmt.Fprintf(os.Stdout, "Response from `TravelRuleAPI.SubmitDepositTravelRuleInfo`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiSubmitDepositTravelRuleInfoRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **travelRuleDepositRequest** | [**TravelRuleDepositRequest**](TravelRuleDepositRequest.md) | |
+
+### Return type
+
+[**SubmitDepositTravelRuleInfo201Response**](SubmitDepositTravelRuleInfo201Response.md)
+
+### Authorization
+
+[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
+
+## SubmitWithdrawTravelRuleInfo
+
+> SubmitDepositTravelRuleInfo201Response SubmitWithdrawTravelRuleInfo(ctx).TravelRuleWithdrawRequest(travelRuleWithdrawRequest).Execute()
+
+Submit Withdraw Transaction Travel Rule information
+
+
+
+### Example
+
+```go
+package main
+
+import (
+ "context"
+ "fmt"
+ "os"
+ coboWaas2 "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2"
+ "github.com/CoboGlobal/cobo-waas2-go-sdk/cobo_waas2/crypto"
+)
+
+func main() {
+ travelRuleWithdrawRequest := *coboWaas2.NewTravelRuleWithdrawRequest("f47ac10b-58cc-4372-a567-0e02b2c3d479", coboWaas2.TravelRuleWithdrawRequest_travel_rule_info{SelfCustodyWallet: coboWaas2.NewSelfCustodyWallet(coboWaas2.DestinationWalletType("EXCHANGES_OR_VASP"), "challenge_token_abc123", "0x1234567890abcdef1234567890abcdef12345678", "0xf0a0ca69dd3afc57235c72aba3ff1f1144ee5409aeec013a9b17cdb58d0185a66a525945bfbd66e87bf0503eb0b83bf90cb973a8cbb730d19dc032e00dfe393a1c")})
+
+ configuration := coboWaas2.NewConfiguration()
+ // Initialize the API client
+ apiClient := coboWaas2.NewAPIClient(configuration)
+ ctx := context.Background()
+
+ // Select the development environment. To use the production environment, replace coboWaas2.DevEnv with coboWaas2.ProdEnv
+ ctx = context.WithValue(ctx, coboWaas2.ContextEnv, coboWaas2.DevEnv)
+ // Replace `` with your private key
+ ctx = context.WithValue(ctx, coboWaas2.ContextPortalSigner, crypto.Ed25519Signer{
+ Secret: "",
+ })
+ resp, r, err := apiClient.TravelRuleAPI.SubmitWithdrawTravelRuleInfo(ctx).TravelRuleWithdrawRequest(travelRuleWithdrawRequest).Execute()
+ if err != nil {
+ fmt.Fprintf(os.Stderr, "Error when calling `TravelRuleAPI.SubmitWithdrawTravelRuleInfo``: %v\n", err)
+ fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
+ }
+ // response from `SubmitWithdrawTravelRuleInfo`: SubmitDepositTravelRuleInfo201Response
+ fmt.Fprintf(os.Stdout, "Response from `TravelRuleAPI.SubmitWithdrawTravelRuleInfo`: %v\n", resp)
+}
+```
+
+### Path Parameters
+
+
+
+### Other Parameters
+
+Other parameters are passed through a pointer to a apiSubmitWithdrawTravelRuleInfoRequest struct via the builder pattern
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **travelRuleWithdrawRequest** | [**TravelRuleWithdrawRequest**](TravelRuleWithdrawRequest.md) | |
+
+### Return type
+
+[**SubmitDepositTravelRuleInfo201Response**](SubmitDepositTravelRuleInfo201Response.md)
+
+### Authorization
+
+[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
+[[Back to Model list]](../README.md#documentation-for-models)
+[[Back to README]](../README.md)
+
diff --git a/docs/TravelRuleDepositExchangesOrVASP.md b/docs/TravelRuleDepositExchangesOrVASP.md
new file mode 100644
index 0000000..b5a48b8
--- /dev/null
+++ b/docs/TravelRuleDepositExchangesOrVASP.md
@@ -0,0 +1,140 @@
+# TravelRuleDepositExchangesOrVASP
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**DestinationWalletType** | [**DestinationWalletType**](DestinationWalletType.md) | |
+**VendorCode** | **string** | The vendor code for exchanges or VASPs. |
+**VendorVaspId** | **string** | The unique identifier of the VASP. |
+**VendorVaspName** | Pointer to **string** | The vendor name to be provided when selecting \"Others\" as the VASP case. This field allows customers to specify the name of a vendor not listed. | [optional]
+**EntityInfo** | [**TravelRuleDepositExchangesOrVASPEntityInfo**](TravelRuleDepositExchangesOrVASPEntityInfo.md) | |
+
+## Methods
+
+### NewTravelRuleDepositExchangesOrVASP
+
+`func NewTravelRuleDepositExchangesOrVASP(destinationWalletType DestinationWalletType, vendorCode string, vendorVaspId string, entityInfo TravelRuleDepositExchangesOrVASPEntityInfo, ) *TravelRuleDepositExchangesOrVASP`
+
+NewTravelRuleDepositExchangesOrVASP instantiates a new TravelRuleDepositExchangesOrVASP object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTravelRuleDepositExchangesOrVASPWithDefaults
+
+`func NewTravelRuleDepositExchangesOrVASPWithDefaults() *TravelRuleDepositExchangesOrVASP`
+
+NewTravelRuleDepositExchangesOrVASPWithDefaults instantiates a new TravelRuleDepositExchangesOrVASP object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetDestinationWalletType
+
+`func (o *TravelRuleDepositExchangesOrVASP) GetDestinationWalletType() DestinationWalletType`
+
+GetDestinationWalletType returns the DestinationWalletType field if non-nil, zero value otherwise.
+
+### GetDestinationWalletTypeOk
+
+`func (o *TravelRuleDepositExchangesOrVASP) GetDestinationWalletTypeOk() (*DestinationWalletType, bool)`
+
+GetDestinationWalletTypeOk returns a tuple with the DestinationWalletType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDestinationWalletType
+
+`func (o *TravelRuleDepositExchangesOrVASP) SetDestinationWalletType(v DestinationWalletType)`
+
+SetDestinationWalletType sets DestinationWalletType field to given value.
+
+
+### GetVendorCode
+
+`func (o *TravelRuleDepositExchangesOrVASP) GetVendorCode() string`
+
+GetVendorCode returns the VendorCode field if non-nil, zero value otherwise.
+
+### GetVendorCodeOk
+
+`func (o *TravelRuleDepositExchangesOrVASP) GetVendorCodeOk() (*string, bool)`
+
+GetVendorCodeOk returns a tuple with the VendorCode field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVendorCode
+
+`func (o *TravelRuleDepositExchangesOrVASP) SetVendorCode(v string)`
+
+SetVendorCode sets VendorCode field to given value.
+
+
+### GetVendorVaspId
+
+`func (o *TravelRuleDepositExchangesOrVASP) GetVendorVaspId() string`
+
+GetVendorVaspId returns the VendorVaspId field if non-nil, zero value otherwise.
+
+### GetVendorVaspIdOk
+
+`func (o *TravelRuleDepositExchangesOrVASP) GetVendorVaspIdOk() (*string, bool)`
+
+GetVendorVaspIdOk returns a tuple with the VendorVaspId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVendorVaspId
+
+`func (o *TravelRuleDepositExchangesOrVASP) SetVendorVaspId(v string)`
+
+SetVendorVaspId sets VendorVaspId field to given value.
+
+
+### GetVendorVaspName
+
+`func (o *TravelRuleDepositExchangesOrVASP) GetVendorVaspName() string`
+
+GetVendorVaspName returns the VendorVaspName field if non-nil, zero value otherwise.
+
+### GetVendorVaspNameOk
+
+`func (o *TravelRuleDepositExchangesOrVASP) GetVendorVaspNameOk() (*string, bool)`
+
+GetVendorVaspNameOk returns a tuple with the VendorVaspName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVendorVaspName
+
+`func (o *TravelRuleDepositExchangesOrVASP) SetVendorVaspName(v string)`
+
+SetVendorVaspName sets VendorVaspName field to given value.
+
+### HasVendorVaspName
+
+`func (o *TravelRuleDepositExchangesOrVASP) HasVendorVaspName() bool`
+
+HasVendorVaspName returns a boolean if a field has been set.
+
+### GetEntityInfo
+
+`func (o *TravelRuleDepositExchangesOrVASP) GetEntityInfo() TravelRuleDepositExchangesOrVASPEntityInfo`
+
+GetEntityInfo returns the EntityInfo field if non-nil, zero value otherwise.
+
+### GetEntityInfoOk
+
+`func (o *TravelRuleDepositExchangesOrVASP) GetEntityInfoOk() (*TravelRuleDepositExchangesOrVASPEntityInfo, bool)`
+
+GetEntityInfoOk returns a tuple with the EntityInfo field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEntityInfo
+
+`func (o *TravelRuleDepositExchangesOrVASP) SetEntityInfo(v TravelRuleDepositExchangesOrVASPEntityInfo)`
+
+SetEntityInfo sets EntityInfo field to given value.
+
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TravelRuleDepositExchangesOrVASPEntityInfo.md b/docs/TravelRuleDepositExchangesOrVASPEntityInfo.md
new file mode 100644
index 0000000..639ca62
--- /dev/null
+++ b/docs/TravelRuleDepositExchangesOrVASPEntityInfo.md
@@ -0,0 +1,218 @@
+# TravelRuleDepositExchangesOrVASPEntityInfo
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**SelectedEntityType** | **string** | Specifies the type of entity associated with the transaction. |
+**LegalName** | **string** | The legal name of the entity. |
+**DateOfIncorporation** | Pointer to **string** | The incorporation date of the entity. This field is required when: - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`. - **Entity Type**: LEGAL. Otherwise, this field can be omitted. | [optional]
+**PlaceOfIncorporation** | Pointer to **string** | The place of incorporation of the entity. This field is required when: - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`. - **Entity Type**: LEGAL. Otherwise, this field can be omitted. | [optional]
+**FirstName** | **string** | The first name of the user. |
+**LastName** | **string** | The last name of the user. |
+**DateOfBirth** | Pointer to **string** | The date of birth of the user. This field is required when: - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`. - **Entity Type**: NATURAL. Otherwise, this field can be omitted. | [optional]
+**PlaceOfBirth** | Pointer to **string** | The place of birth of the user. This field is required when: - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`. - **Entity Type**: NATURAL. Otherwise, this field can be omitted. | [optional]
+
+## Methods
+
+### NewTravelRuleDepositExchangesOrVASPEntityInfo
+
+`func NewTravelRuleDepositExchangesOrVASPEntityInfo(selectedEntityType string, legalName string, firstName string, lastName string, ) *TravelRuleDepositExchangesOrVASPEntityInfo`
+
+NewTravelRuleDepositExchangesOrVASPEntityInfo instantiates a new TravelRuleDepositExchangesOrVASPEntityInfo object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTravelRuleDepositExchangesOrVASPEntityInfoWithDefaults
+
+`func NewTravelRuleDepositExchangesOrVASPEntityInfoWithDefaults() *TravelRuleDepositExchangesOrVASPEntityInfo`
+
+NewTravelRuleDepositExchangesOrVASPEntityInfoWithDefaults instantiates a new TravelRuleDepositExchangesOrVASPEntityInfo object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetSelectedEntityType
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetSelectedEntityType() string`
+
+GetSelectedEntityType returns the SelectedEntityType field if non-nil, zero value otherwise.
+
+### GetSelectedEntityTypeOk
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetSelectedEntityTypeOk() (*string, bool)`
+
+GetSelectedEntityTypeOk returns a tuple with the SelectedEntityType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelectedEntityType
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) SetSelectedEntityType(v string)`
+
+SetSelectedEntityType sets SelectedEntityType field to given value.
+
+
+### GetLegalName
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetLegalName() string`
+
+GetLegalName returns the LegalName field if non-nil, zero value otherwise.
+
+### GetLegalNameOk
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetLegalNameOk() (*string, bool)`
+
+GetLegalNameOk returns a tuple with the LegalName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLegalName
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) SetLegalName(v string)`
+
+SetLegalName sets LegalName field to given value.
+
+
+### GetDateOfIncorporation
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetDateOfIncorporation() string`
+
+GetDateOfIncorporation returns the DateOfIncorporation field if non-nil, zero value otherwise.
+
+### GetDateOfIncorporationOk
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetDateOfIncorporationOk() (*string, bool)`
+
+GetDateOfIncorporationOk returns a tuple with the DateOfIncorporation field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDateOfIncorporation
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) SetDateOfIncorporation(v string)`
+
+SetDateOfIncorporation sets DateOfIncorporation field to given value.
+
+### HasDateOfIncorporation
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) HasDateOfIncorporation() bool`
+
+HasDateOfIncorporation returns a boolean if a field has been set.
+
+### GetPlaceOfIncorporation
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetPlaceOfIncorporation() string`
+
+GetPlaceOfIncorporation returns the PlaceOfIncorporation field if non-nil, zero value otherwise.
+
+### GetPlaceOfIncorporationOk
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetPlaceOfIncorporationOk() (*string, bool)`
+
+GetPlaceOfIncorporationOk returns a tuple with the PlaceOfIncorporation field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPlaceOfIncorporation
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) SetPlaceOfIncorporation(v string)`
+
+SetPlaceOfIncorporation sets PlaceOfIncorporation field to given value.
+
+### HasPlaceOfIncorporation
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) HasPlaceOfIncorporation() bool`
+
+HasPlaceOfIncorporation returns a boolean if a field has been set.
+
+### GetFirstName
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetFirstName() string`
+
+GetFirstName returns the FirstName field if non-nil, zero value otherwise.
+
+### GetFirstNameOk
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetFirstNameOk() (*string, bool)`
+
+GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetFirstName
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) SetFirstName(v string)`
+
+SetFirstName sets FirstName field to given value.
+
+
+### GetLastName
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetLastName() string`
+
+GetLastName returns the LastName field if non-nil, zero value otherwise.
+
+### GetLastNameOk
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetLastNameOk() (*string, bool)`
+
+GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLastName
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) SetLastName(v string)`
+
+SetLastName sets LastName field to given value.
+
+
+### GetDateOfBirth
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetDateOfBirth() string`
+
+GetDateOfBirth returns the DateOfBirth field if non-nil, zero value otherwise.
+
+### GetDateOfBirthOk
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetDateOfBirthOk() (*string, bool)`
+
+GetDateOfBirthOk returns a tuple with the DateOfBirth field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDateOfBirth
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) SetDateOfBirth(v string)`
+
+SetDateOfBirth sets DateOfBirth field to given value.
+
+### HasDateOfBirth
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) HasDateOfBirth() bool`
+
+HasDateOfBirth returns a boolean if a field has been set.
+
+### GetPlaceOfBirth
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetPlaceOfBirth() string`
+
+GetPlaceOfBirth returns the PlaceOfBirth field if non-nil, zero value otherwise.
+
+### GetPlaceOfBirthOk
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) GetPlaceOfBirthOk() (*string, bool)`
+
+GetPlaceOfBirthOk returns a tuple with the PlaceOfBirth field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPlaceOfBirth
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) SetPlaceOfBirth(v string)`
+
+SetPlaceOfBirth sets PlaceOfBirth field to given value.
+
+### HasPlaceOfBirth
+
+`func (o *TravelRuleDepositExchangesOrVASPEntityInfo) HasPlaceOfBirth() bool`
+
+HasPlaceOfBirth returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TravelRuleDepositLegalEntity.md b/docs/TravelRuleDepositLegalEntity.md
new file mode 100644
index 0000000..61c38ea
--- /dev/null
+++ b/docs/TravelRuleDepositLegalEntity.md
@@ -0,0 +1,124 @@
+# TravelRuleDepositLegalEntity
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**SelectedEntityType** | **string** | Specifies the type of entity associated with the transaction. |
+**LegalName** | **string** | The legal name of the entity. |
+**DateOfIncorporation** | Pointer to **string** | The incorporation date of the entity. This field is required when: - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`. - **Entity Type**: LEGAL. Otherwise, this field can be omitted. | [optional]
+**PlaceOfIncorporation** | Pointer to **string** | The place of incorporation of the entity. This field is required when: - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`. - **Entity Type**: LEGAL. Otherwise, this field can be omitted. | [optional]
+
+## Methods
+
+### NewTravelRuleDepositLegalEntity
+
+`func NewTravelRuleDepositLegalEntity(selectedEntityType string, legalName string, ) *TravelRuleDepositLegalEntity`
+
+NewTravelRuleDepositLegalEntity instantiates a new TravelRuleDepositLegalEntity object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTravelRuleDepositLegalEntityWithDefaults
+
+`func NewTravelRuleDepositLegalEntityWithDefaults() *TravelRuleDepositLegalEntity`
+
+NewTravelRuleDepositLegalEntityWithDefaults instantiates a new TravelRuleDepositLegalEntity object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetSelectedEntityType
+
+`func (o *TravelRuleDepositLegalEntity) GetSelectedEntityType() string`
+
+GetSelectedEntityType returns the SelectedEntityType field if non-nil, zero value otherwise.
+
+### GetSelectedEntityTypeOk
+
+`func (o *TravelRuleDepositLegalEntity) GetSelectedEntityTypeOk() (*string, bool)`
+
+GetSelectedEntityTypeOk returns a tuple with the SelectedEntityType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelectedEntityType
+
+`func (o *TravelRuleDepositLegalEntity) SetSelectedEntityType(v string)`
+
+SetSelectedEntityType sets SelectedEntityType field to given value.
+
+
+### GetLegalName
+
+`func (o *TravelRuleDepositLegalEntity) GetLegalName() string`
+
+GetLegalName returns the LegalName field if non-nil, zero value otherwise.
+
+### GetLegalNameOk
+
+`func (o *TravelRuleDepositLegalEntity) GetLegalNameOk() (*string, bool)`
+
+GetLegalNameOk returns a tuple with the LegalName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLegalName
+
+`func (o *TravelRuleDepositLegalEntity) SetLegalName(v string)`
+
+SetLegalName sets LegalName field to given value.
+
+
+### GetDateOfIncorporation
+
+`func (o *TravelRuleDepositLegalEntity) GetDateOfIncorporation() string`
+
+GetDateOfIncorporation returns the DateOfIncorporation field if non-nil, zero value otherwise.
+
+### GetDateOfIncorporationOk
+
+`func (o *TravelRuleDepositLegalEntity) GetDateOfIncorporationOk() (*string, bool)`
+
+GetDateOfIncorporationOk returns a tuple with the DateOfIncorporation field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDateOfIncorporation
+
+`func (o *TravelRuleDepositLegalEntity) SetDateOfIncorporation(v string)`
+
+SetDateOfIncorporation sets DateOfIncorporation field to given value.
+
+### HasDateOfIncorporation
+
+`func (o *TravelRuleDepositLegalEntity) HasDateOfIncorporation() bool`
+
+HasDateOfIncorporation returns a boolean if a field has been set.
+
+### GetPlaceOfIncorporation
+
+`func (o *TravelRuleDepositLegalEntity) GetPlaceOfIncorporation() string`
+
+GetPlaceOfIncorporation returns the PlaceOfIncorporation field if non-nil, zero value otherwise.
+
+### GetPlaceOfIncorporationOk
+
+`func (o *TravelRuleDepositLegalEntity) GetPlaceOfIncorporationOk() (*string, bool)`
+
+GetPlaceOfIncorporationOk returns a tuple with the PlaceOfIncorporation field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPlaceOfIncorporation
+
+`func (o *TravelRuleDepositLegalEntity) SetPlaceOfIncorporation(v string)`
+
+SetPlaceOfIncorporation sets PlaceOfIncorporation field to given value.
+
+### HasPlaceOfIncorporation
+
+`func (o *TravelRuleDepositLegalEntity) HasPlaceOfIncorporation() bool`
+
+HasPlaceOfIncorporation returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TravelRuleDepositNaturalEntity.md b/docs/TravelRuleDepositNaturalEntity.md
new file mode 100644
index 0000000..e6c0173
--- /dev/null
+++ b/docs/TravelRuleDepositNaturalEntity.md
@@ -0,0 +1,145 @@
+# TravelRuleDepositNaturalEntity
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**SelectedEntityType** | **string** | Specifies the type of entity associated with the transaction. |
+**FirstName** | **string** | The first name of the user. |
+**LastName** | **string** | The last name of the user. |
+**DateOfBirth** | Pointer to **string** | The date of birth of the user. This field is required when: - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`. - **Entity Type**: NATURAL. Otherwise, this field can be omitted. | [optional]
+**PlaceOfBirth** | Pointer to **string** | The place of birth of the user. This field is required when: - **Calling**: `travel_rule/transaction/limitation` API returns `is_threshold_reached = true`. - **Entity Type**: NATURAL. Otherwise, this field can be omitted. | [optional]
+
+## Methods
+
+### NewTravelRuleDepositNaturalEntity
+
+`func NewTravelRuleDepositNaturalEntity(selectedEntityType string, firstName string, lastName string, ) *TravelRuleDepositNaturalEntity`
+
+NewTravelRuleDepositNaturalEntity instantiates a new TravelRuleDepositNaturalEntity object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTravelRuleDepositNaturalEntityWithDefaults
+
+`func NewTravelRuleDepositNaturalEntityWithDefaults() *TravelRuleDepositNaturalEntity`
+
+NewTravelRuleDepositNaturalEntityWithDefaults instantiates a new TravelRuleDepositNaturalEntity object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetSelectedEntityType
+
+`func (o *TravelRuleDepositNaturalEntity) GetSelectedEntityType() string`
+
+GetSelectedEntityType returns the SelectedEntityType field if non-nil, zero value otherwise.
+
+### GetSelectedEntityTypeOk
+
+`func (o *TravelRuleDepositNaturalEntity) GetSelectedEntityTypeOk() (*string, bool)`
+
+GetSelectedEntityTypeOk returns a tuple with the SelectedEntityType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelectedEntityType
+
+`func (o *TravelRuleDepositNaturalEntity) SetSelectedEntityType(v string)`
+
+SetSelectedEntityType sets SelectedEntityType field to given value.
+
+
+### GetFirstName
+
+`func (o *TravelRuleDepositNaturalEntity) GetFirstName() string`
+
+GetFirstName returns the FirstName field if non-nil, zero value otherwise.
+
+### GetFirstNameOk
+
+`func (o *TravelRuleDepositNaturalEntity) GetFirstNameOk() (*string, bool)`
+
+GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetFirstName
+
+`func (o *TravelRuleDepositNaturalEntity) SetFirstName(v string)`
+
+SetFirstName sets FirstName field to given value.
+
+
+### GetLastName
+
+`func (o *TravelRuleDepositNaturalEntity) GetLastName() string`
+
+GetLastName returns the LastName field if non-nil, zero value otherwise.
+
+### GetLastNameOk
+
+`func (o *TravelRuleDepositNaturalEntity) GetLastNameOk() (*string, bool)`
+
+GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLastName
+
+`func (o *TravelRuleDepositNaturalEntity) SetLastName(v string)`
+
+SetLastName sets LastName field to given value.
+
+
+### GetDateOfBirth
+
+`func (o *TravelRuleDepositNaturalEntity) GetDateOfBirth() string`
+
+GetDateOfBirth returns the DateOfBirth field if non-nil, zero value otherwise.
+
+### GetDateOfBirthOk
+
+`func (o *TravelRuleDepositNaturalEntity) GetDateOfBirthOk() (*string, bool)`
+
+GetDateOfBirthOk returns a tuple with the DateOfBirth field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDateOfBirth
+
+`func (o *TravelRuleDepositNaturalEntity) SetDateOfBirth(v string)`
+
+SetDateOfBirth sets DateOfBirth field to given value.
+
+### HasDateOfBirth
+
+`func (o *TravelRuleDepositNaturalEntity) HasDateOfBirth() bool`
+
+HasDateOfBirth returns a boolean if a field has been set.
+
+### GetPlaceOfBirth
+
+`func (o *TravelRuleDepositNaturalEntity) GetPlaceOfBirth() string`
+
+GetPlaceOfBirth returns the PlaceOfBirth field if non-nil, zero value otherwise.
+
+### GetPlaceOfBirthOk
+
+`func (o *TravelRuleDepositNaturalEntity) GetPlaceOfBirthOk() (*string, bool)`
+
+GetPlaceOfBirthOk returns a tuple with the PlaceOfBirth field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPlaceOfBirth
+
+`func (o *TravelRuleDepositNaturalEntity) SetPlaceOfBirth(v string)`
+
+SetPlaceOfBirth sets PlaceOfBirth field to given value.
+
+### HasPlaceOfBirth
+
+`func (o *TravelRuleDepositNaturalEntity) HasPlaceOfBirth() bool`
+
+HasPlaceOfBirth returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TravelRuleDepositRequest.md b/docs/TravelRuleDepositRequest.md
new file mode 100644
index 0000000..b405f37
--- /dev/null
+++ b/docs/TravelRuleDepositRequest.md
@@ -0,0 +1,72 @@
+# TravelRuleDepositRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**TransactionId** | **string** | The transaction ID. |
+**TravelRuleInfo** | [**TravelRuleDepositRequestTravelRuleInfo**](TravelRuleDepositRequestTravelRuleInfo.md) | |
+
+## Methods
+
+### NewTravelRuleDepositRequest
+
+`func NewTravelRuleDepositRequest(transactionId string, travelRuleInfo TravelRuleDepositRequestTravelRuleInfo, ) *TravelRuleDepositRequest`
+
+NewTravelRuleDepositRequest instantiates a new TravelRuleDepositRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTravelRuleDepositRequestWithDefaults
+
+`func NewTravelRuleDepositRequestWithDefaults() *TravelRuleDepositRequest`
+
+NewTravelRuleDepositRequestWithDefaults instantiates a new TravelRuleDepositRequest object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetTransactionId
+
+`func (o *TravelRuleDepositRequest) GetTransactionId() string`
+
+GetTransactionId returns the TransactionId field if non-nil, zero value otherwise.
+
+### GetTransactionIdOk
+
+`func (o *TravelRuleDepositRequest) GetTransactionIdOk() (*string, bool)`
+
+GetTransactionIdOk returns a tuple with the TransactionId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTransactionId
+
+`func (o *TravelRuleDepositRequest) SetTransactionId(v string)`
+
+SetTransactionId sets TransactionId field to given value.
+
+
+### GetTravelRuleInfo
+
+`func (o *TravelRuleDepositRequest) GetTravelRuleInfo() TravelRuleDepositRequestTravelRuleInfo`
+
+GetTravelRuleInfo returns the TravelRuleInfo field if non-nil, zero value otherwise.
+
+### GetTravelRuleInfoOk
+
+`func (o *TravelRuleDepositRequest) GetTravelRuleInfoOk() (*TravelRuleDepositRequestTravelRuleInfo, bool)`
+
+GetTravelRuleInfoOk returns a tuple with the TravelRuleInfo field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTravelRuleInfo
+
+`func (o *TravelRuleDepositRequest) SetTravelRuleInfo(v TravelRuleDepositRequestTravelRuleInfo)`
+
+SetTravelRuleInfo sets TravelRuleInfo field to given value.
+
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TravelRuleDepositRequestTravelRuleInfo.md b/docs/TravelRuleDepositRequestTravelRuleInfo.md
new file mode 100644
index 0000000..e3a89df
--- /dev/null
+++ b/docs/TravelRuleDepositRequestTravelRuleInfo.md
@@ -0,0 +1,203 @@
+# TravelRuleDepositRequestTravelRuleInfo
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**DestinationWalletType** | [**DestinationWalletType**](DestinationWalletType.md) | |
+**VendorCode** | **string** | The vendor code for exchanges or VASPs. |
+**VendorVaspId** | **string** | The unique identifier of the VASP. |
+**VendorVaspName** | Pointer to **string** | The vendor name to be provided when selecting \"Others\" as the VASP case. This field allows customers to specify the name of a vendor not listed. | [optional]
+**EntityInfo** | [**TravelRuleDepositExchangesOrVASPEntityInfo**](TravelRuleDepositExchangesOrVASPEntityInfo.md) | |
+**SelfCustodyWalletChallenge** | **string** | The challenge obtained from a previous operation. |
+**SelfCustodyWalletAddress** | **string** | The address of the self-custodial wallet. |
+**SelfCustodyWalletSign** | **string** | The signed message from the self-custodial wallet. |
+
+## Methods
+
+### NewTravelRuleDepositRequestTravelRuleInfo
+
+`func NewTravelRuleDepositRequestTravelRuleInfo(destinationWalletType DestinationWalletType, vendorCode string, vendorVaspId string, entityInfo TravelRuleDepositExchangesOrVASPEntityInfo, selfCustodyWalletChallenge string, selfCustodyWalletAddress string, selfCustodyWalletSign string, ) *TravelRuleDepositRequestTravelRuleInfo`
+
+NewTravelRuleDepositRequestTravelRuleInfo instantiates a new TravelRuleDepositRequestTravelRuleInfo object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTravelRuleDepositRequestTravelRuleInfoWithDefaults
+
+`func NewTravelRuleDepositRequestTravelRuleInfoWithDefaults() *TravelRuleDepositRequestTravelRuleInfo`
+
+NewTravelRuleDepositRequestTravelRuleInfoWithDefaults instantiates a new TravelRuleDepositRequestTravelRuleInfo object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetDestinationWalletType
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetDestinationWalletType() DestinationWalletType`
+
+GetDestinationWalletType returns the DestinationWalletType field if non-nil, zero value otherwise.
+
+### GetDestinationWalletTypeOk
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetDestinationWalletTypeOk() (*DestinationWalletType, bool)`
+
+GetDestinationWalletTypeOk returns a tuple with the DestinationWalletType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDestinationWalletType
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) SetDestinationWalletType(v DestinationWalletType)`
+
+SetDestinationWalletType sets DestinationWalletType field to given value.
+
+
+### GetVendorCode
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetVendorCode() string`
+
+GetVendorCode returns the VendorCode field if non-nil, zero value otherwise.
+
+### GetVendorCodeOk
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetVendorCodeOk() (*string, bool)`
+
+GetVendorCodeOk returns a tuple with the VendorCode field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVendorCode
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) SetVendorCode(v string)`
+
+SetVendorCode sets VendorCode field to given value.
+
+
+### GetVendorVaspId
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetVendorVaspId() string`
+
+GetVendorVaspId returns the VendorVaspId field if non-nil, zero value otherwise.
+
+### GetVendorVaspIdOk
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetVendorVaspIdOk() (*string, bool)`
+
+GetVendorVaspIdOk returns a tuple with the VendorVaspId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVendorVaspId
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) SetVendorVaspId(v string)`
+
+SetVendorVaspId sets VendorVaspId field to given value.
+
+
+### GetVendorVaspName
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetVendorVaspName() string`
+
+GetVendorVaspName returns the VendorVaspName field if non-nil, zero value otherwise.
+
+### GetVendorVaspNameOk
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetVendorVaspNameOk() (*string, bool)`
+
+GetVendorVaspNameOk returns a tuple with the VendorVaspName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVendorVaspName
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) SetVendorVaspName(v string)`
+
+SetVendorVaspName sets VendorVaspName field to given value.
+
+### HasVendorVaspName
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) HasVendorVaspName() bool`
+
+HasVendorVaspName returns a boolean if a field has been set.
+
+### GetEntityInfo
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetEntityInfo() TravelRuleDepositExchangesOrVASPEntityInfo`
+
+GetEntityInfo returns the EntityInfo field if non-nil, zero value otherwise.
+
+### GetEntityInfoOk
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetEntityInfoOk() (*TravelRuleDepositExchangesOrVASPEntityInfo, bool)`
+
+GetEntityInfoOk returns a tuple with the EntityInfo field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEntityInfo
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) SetEntityInfo(v TravelRuleDepositExchangesOrVASPEntityInfo)`
+
+SetEntityInfo sets EntityInfo field to given value.
+
+
+### GetSelfCustodyWalletChallenge
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetSelfCustodyWalletChallenge() string`
+
+GetSelfCustodyWalletChallenge returns the SelfCustodyWalletChallenge field if non-nil, zero value otherwise.
+
+### GetSelfCustodyWalletChallengeOk
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetSelfCustodyWalletChallengeOk() (*string, bool)`
+
+GetSelfCustodyWalletChallengeOk returns a tuple with the SelfCustodyWalletChallenge field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelfCustodyWalletChallenge
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) SetSelfCustodyWalletChallenge(v string)`
+
+SetSelfCustodyWalletChallenge sets SelfCustodyWalletChallenge field to given value.
+
+
+### GetSelfCustodyWalletAddress
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetSelfCustodyWalletAddress() string`
+
+GetSelfCustodyWalletAddress returns the SelfCustodyWalletAddress field if non-nil, zero value otherwise.
+
+### GetSelfCustodyWalletAddressOk
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetSelfCustodyWalletAddressOk() (*string, bool)`
+
+GetSelfCustodyWalletAddressOk returns a tuple with the SelfCustodyWalletAddress field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelfCustodyWalletAddress
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) SetSelfCustodyWalletAddress(v string)`
+
+SetSelfCustodyWalletAddress sets SelfCustodyWalletAddress field to given value.
+
+
+### GetSelfCustodyWalletSign
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetSelfCustodyWalletSign() string`
+
+GetSelfCustodyWalletSign returns the SelfCustodyWalletSign field if non-nil, zero value otherwise.
+
+### GetSelfCustodyWalletSignOk
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) GetSelfCustodyWalletSignOk() (*string, bool)`
+
+GetSelfCustodyWalletSignOk returns a tuple with the SelfCustodyWalletSign field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelfCustodyWalletSign
+
+`func (o *TravelRuleDepositRequestTravelRuleInfo) SetSelfCustodyWalletSign(v string)`
+
+SetSelfCustodyWalletSign sets SelfCustodyWalletSign field to given value.
+
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TravelRuleWithdrawExchangesOrVASP.md b/docs/TravelRuleWithdrawExchangesOrVASP.md
new file mode 100644
index 0000000..65e5499
--- /dev/null
+++ b/docs/TravelRuleWithdrawExchangesOrVASP.md
@@ -0,0 +1,114 @@
+# TravelRuleWithdrawExchangesOrVASP
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**DestinationWalletType** | [**DestinationWalletType**](DestinationWalletType.md) | |
+**VendorCode** | **string** | The vendor code for exchanges or VASPs. |
+**VendorVaspId** | **string** | The unique identifier of the VASP. |
+**EntityInfo** | [**TravelRuleWithdrawExchangesOrVASPEntityInfo**](TravelRuleWithdrawExchangesOrVASPEntityInfo.md) | |
+
+## Methods
+
+### NewTravelRuleWithdrawExchangesOrVASP
+
+`func NewTravelRuleWithdrawExchangesOrVASP(destinationWalletType DestinationWalletType, vendorCode string, vendorVaspId string, entityInfo TravelRuleWithdrawExchangesOrVASPEntityInfo, ) *TravelRuleWithdrawExchangesOrVASP`
+
+NewTravelRuleWithdrawExchangesOrVASP instantiates a new TravelRuleWithdrawExchangesOrVASP object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTravelRuleWithdrawExchangesOrVASPWithDefaults
+
+`func NewTravelRuleWithdrawExchangesOrVASPWithDefaults() *TravelRuleWithdrawExchangesOrVASP`
+
+NewTravelRuleWithdrawExchangesOrVASPWithDefaults instantiates a new TravelRuleWithdrawExchangesOrVASP object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetDestinationWalletType
+
+`func (o *TravelRuleWithdrawExchangesOrVASP) GetDestinationWalletType() DestinationWalletType`
+
+GetDestinationWalletType returns the DestinationWalletType field if non-nil, zero value otherwise.
+
+### GetDestinationWalletTypeOk
+
+`func (o *TravelRuleWithdrawExchangesOrVASP) GetDestinationWalletTypeOk() (*DestinationWalletType, bool)`
+
+GetDestinationWalletTypeOk returns a tuple with the DestinationWalletType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDestinationWalletType
+
+`func (o *TravelRuleWithdrawExchangesOrVASP) SetDestinationWalletType(v DestinationWalletType)`
+
+SetDestinationWalletType sets DestinationWalletType field to given value.
+
+
+### GetVendorCode
+
+`func (o *TravelRuleWithdrawExchangesOrVASP) GetVendorCode() string`
+
+GetVendorCode returns the VendorCode field if non-nil, zero value otherwise.
+
+### GetVendorCodeOk
+
+`func (o *TravelRuleWithdrawExchangesOrVASP) GetVendorCodeOk() (*string, bool)`
+
+GetVendorCodeOk returns a tuple with the VendorCode field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVendorCode
+
+`func (o *TravelRuleWithdrawExchangesOrVASP) SetVendorCode(v string)`
+
+SetVendorCode sets VendorCode field to given value.
+
+
+### GetVendorVaspId
+
+`func (o *TravelRuleWithdrawExchangesOrVASP) GetVendorVaspId() string`
+
+GetVendorVaspId returns the VendorVaspId field if non-nil, zero value otherwise.
+
+### GetVendorVaspIdOk
+
+`func (o *TravelRuleWithdrawExchangesOrVASP) GetVendorVaspIdOk() (*string, bool)`
+
+GetVendorVaspIdOk returns a tuple with the VendorVaspId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVendorVaspId
+
+`func (o *TravelRuleWithdrawExchangesOrVASP) SetVendorVaspId(v string)`
+
+SetVendorVaspId sets VendorVaspId field to given value.
+
+
+### GetEntityInfo
+
+`func (o *TravelRuleWithdrawExchangesOrVASP) GetEntityInfo() TravelRuleWithdrawExchangesOrVASPEntityInfo`
+
+GetEntityInfo returns the EntityInfo field if non-nil, zero value otherwise.
+
+### GetEntityInfoOk
+
+`func (o *TravelRuleWithdrawExchangesOrVASP) GetEntityInfoOk() (*TravelRuleWithdrawExchangesOrVASPEntityInfo, bool)`
+
+GetEntityInfoOk returns a tuple with the EntityInfo field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEntityInfo
+
+`func (o *TravelRuleWithdrawExchangesOrVASP) SetEntityInfo(v TravelRuleWithdrawExchangesOrVASPEntityInfo)`
+
+SetEntityInfo sets EntityInfo field to given value.
+
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md b/docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md
new file mode 100644
index 0000000..8f49069
--- /dev/null
+++ b/docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md
@@ -0,0 +1,218 @@
+# TravelRuleWithdrawExchangesOrVASPEntityInfo
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**SelectedEntityType** | [**SelectedEntityType**](SelectedEntityType.md) | |
+**LegalName** | **string** | The legal name of the entity. |
+**DateOfIncorporation** | Pointer to **string** | The incorporation date of the entity. | [optional]
+**PlaceOfIncorporation** | Pointer to **string** | The place of incorporation of the entity. | [optional]
+**FirstName** | **string** | The first name of the user. |
+**LastName** | **string** | The last name of the user. |
+**DateOfBirth** | Pointer to **string** | The date of birth of the user. | [optional]
+**PlaceOfBirth** | Pointer to **string** | The place of birth of the user. | [optional]
+
+## Methods
+
+### NewTravelRuleWithdrawExchangesOrVASPEntityInfo
+
+`func NewTravelRuleWithdrawExchangesOrVASPEntityInfo(selectedEntityType SelectedEntityType, legalName string, firstName string, lastName string, ) *TravelRuleWithdrawExchangesOrVASPEntityInfo`
+
+NewTravelRuleWithdrawExchangesOrVASPEntityInfo instantiates a new TravelRuleWithdrawExchangesOrVASPEntityInfo object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTravelRuleWithdrawExchangesOrVASPEntityInfoWithDefaults
+
+`func NewTravelRuleWithdrawExchangesOrVASPEntityInfoWithDefaults() *TravelRuleWithdrawExchangesOrVASPEntityInfo`
+
+NewTravelRuleWithdrawExchangesOrVASPEntityInfoWithDefaults instantiates a new TravelRuleWithdrawExchangesOrVASPEntityInfo object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetSelectedEntityType
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetSelectedEntityType() SelectedEntityType`
+
+GetSelectedEntityType returns the SelectedEntityType field if non-nil, zero value otherwise.
+
+### GetSelectedEntityTypeOk
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetSelectedEntityTypeOk() (*SelectedEntityType, bool)`
+
+GetSelectedEntityTypeOk returns a tuple with the SelectedEntityType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelectedEntityType
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) SetSelectedEntityType(v SelectedEntityType)`
+
+SetSelectedEntityType sets SelectedEntityType field to given value.
+
+
+### GetLegalName
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetLegalName() string`
+
+GetLegalName returns the LegalName field if non-nil, zero value otherwise.
+
+### GetLegalNameOk
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetLegalNameOk() (*string, bool)`
+
+GetLegalNameOk returns a tuple with the LegalName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLegalName
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) SetLegalName(v string)`
+
+SetLegalName sets LegalName field to given value.
+
+
+### GetDateOfIncorporation
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetDateOfIncorporation() string`
+
+GetDateOfIncorporation returns the DateOfIncorporation field if non-nil, zero value otherwise.
+
+### GetDateOfIncorporationOk
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetDateOfIncorporationOk() (*string, bool)`
+
+GetDateOfIncorporationOk returns a tuple with the DateOfIncorporation field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDateOfIncorporation
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) SetDateOfIncorporation(v string)`
+
+SetDateOfIncorporation sets DateOfIncorporation field to given value.
+
+### HasDateOfIncorporation
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) HasDateOfIncorporation() bool`
+
+HasDateOfIncorporation returns a boolean if a field has been set.
+
+### GetPlaceOfIncorporation
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetPlaceOfIncorporation() string`
+
+GetPlaceOfIncorporation returns the PlaceOfIncorporation field if non-nil, zero value otherwise.
+
+### GetPlaceOfIncorporationOk
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetPlaceOfIncorporationOk() (*string, bool)`
+
+GetPlaceOfIncorporationOk returns a tuple with the PlaceOfIncorporation field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPlaceOfIncorporation
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) SetPlaceOfIncorporation(v string)`
+
+SetPlaceOfIncorporation sets PlaceOfIncorporation field to given value.
+
+### HasPlaceOfIncorporation
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) HasPlaceOfIncorporation() bool`
+
+HasPlaceOfIncorporation returns a boolean if a field has been set.
+
+### GetFirstName
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetFirstName() string`
+
+GetFirstName returns the FirstName field if non-nil, zero value otherwise.
+
+### GetFirstNameOk
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetFirstNameOk() (*string, bool)`
+
+GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetFirstName
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) SetFirstName(v string)`
+
+SetFirstName sets FirstName field to given value.
+
+
+### GetLastName
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetLastName() string`
+
+GetLastName returns the LastName field if non-nil, zero value otherwise.
+
+### GetLastNameOk
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetLastNameOk() (*string, bool)`
+
+GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLastName
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) SetLastName(v string)`
+
+SetLastName sets LastName field to given value.
+
+
+### GetDateOfBirth
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetDateOfBirth() string`
+
+GetDateOfBirth returns the DateOfBirth field if non-nil, zero value otherwise.
+
+### GetDateOfBirthOk
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetDateOfBirthOk() (*string, bool)`
+
+GetDateOfBirthOk returns a tuple with the DateOfBirth field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDateOfBirth
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) SetDateOfBirth(v string)`
+
+SetDateOfBirth sets DateOfBirth field to given value.
+
+### HasDateOfBirth
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) HasDateOfBirth() bool`
+
+HasDateOfBirth returns a boolean if a field has been set.
+
+### GetPlaceOfBirth
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetPlaceOfBirth() string`
+
+GetPlaceOfBirth returns the PlaceOfBirth field if non-nil, zero value otherwise.
+
+### GetPlaceOfBirthOk
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) GetPlaceOfBirthOk() (*string, bool)`
+
+GetPlaceOfBirthOk returns a tuple with the PlaceOfBirth field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPlaceOfBirth
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) SetPlaceOfBirth(v string)`
+
+SetPlaceOfBirth sets PlaceOfBirth field to given value.
+
+### HasPlaceOfBirth
+
+`func (o *TravelRuleWithdrawExchangesOrVASPEntityInfo) HasPlaceOfBirth() bool`
+
+HasPlaceOfBirth returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TravelRuleWithdrawLegalEntity.md b/docs/TravelRuleWithdrawLegalEntity.md
new file mode 100644
index 0000000..3d80248
--- /dev/null
+++ b/docs/TravelRuleWithdrawLegalEntity.md
@@ -0,0 +1,124 @@
+# TravelRuleWithdrawLegalEntity
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**SelectedEntityType** | [**SelectedEntityType**](SelectedEntityType.md) | |
+**LegalName** | **string** | The legal name of the entity. |
+**DateOfIncorporation** | Pointer to **string** | The incorporation date of the entity. | [optional]
+**PlaceOfIncorporation** | Pointer to **string** | The place of incorporation of the entity. | [optional]
+
+## Methods
+
+### NewTravelRuleWithdrawLegalEntity
+
+`func NewTravelRuleWithdrawLegalEntity(selectedEntityType SelectedEntityType, legalName string, ) *TravelRuleWithdrawLegalEntity`
+
+NewTravelRuleWithdrawLegalEntity instantiates a new TravelRuleWithdrawLegalEntity object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTravelRuleWithdrawLegalEntityWithDefaults
+
+`func NewTravelRuleWithdrawLegalEntityWithDefaults() *TravelRuleWithdrawLegalEntity`
+
+NewTravelRuleWithdrawLegalEntityWithDefaults instantiates a new TravelRuleWithdrawLegalEntity object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetSelectedEntityType
+
+`func (o *TravelRuleWithdrawLegalEntity) GetSelectedEntityType() SelectedEntityType`
+
+GetSelectedEntityType returns the SelectedEntityType field if non-nil, zero value otherwise.
+
+### GetSelectedEntityTypeOk
+
+`func (o *TravelRuleWithdrawLegalEntity) GetSelectedEntityTypeOk() (*SelectedEntityType, bool)`
+
+GetSelectedEntityTypeOk returns a tuple with the SelectedEntityType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelectedEntityType
+
+`func (o *TravelRuleWithdrawLegalEntity) SetSelectedEntityType(v SelectedEntityType)`
+
+SetSelectedEntityType sets SelectedEntityType field to given value.
+
+
+### GetLegalName
+
+`func (o *TravelRuleWithdrawLegalEntity) GetLegalName() string`
+
+GetLegalName returns the LegalName field if non-nil, zero value otherwise.
+
+### GetLegalNameOk
+
+`func (o *TravelRuleWithdrawLegalEntity) GetLegalNameOk() (*string, bool)`
+
+GetLegalNameOk returns a tuple with the LegalName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLegalName
+
+`func (o *TravelRuleWithdrawLegalEntity) SetLegalName(v string)`
+
+SetLegalName sets LegalName field to given value.
+
+
+### GetDateOfIncorporation
+
+`func (o *TravelRuleWithdrawLegalEntity) GetDateOfIncorporation() string`
+
+GetDateOfIncorporation returns the DateOfIncorporation field if non-nil, zero value otherwise.
+
+### GetDateOfIncorporationOk
+
+`func (o *TravelRuleWithdrawLegalEntity) GetDateOfIncorporationOk() (*string, bool)`
+
+GetDateOfIncorporationOk returns a tuple with the DateOfIncorporation field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDateOfIncorporation
+
+`func (o *TravelRuleWithdrawLegalEntity) SetDateOfIncorporation(v string)`
+
+SetDateOfIncorporation sets DateOfIncorporation field to given value.
+
+### HasDateOfIncorporation
+
+`func (o *TravelRuleWithdrawLegalEntity) HasDateOfIncorporation() bool`
+
+HasDateOfIncorporation returns a boolean if a field has been set.
+
+### GetPlaceOfIncorporation
+
+`func (o *TravelRuleWithdrawLegalEntity) GetPlaceOfIncorporation() string`
+
+GetPlaceOfIncorporation returns the PlaceOfIncorporation field if non-nil, zero value otherwise.
+
+### GetPlaceOfIncorporationOk
+
+`func (o *TravelRuleWithdrawLegalEntity) GetPlaceOfIncorporationOk() (*string, bool)`
+
+GetPlaceOfIncorporationOk returns a tuple with the PlaceOfIncorporation field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPlaceOfIncorporation
+
+`func (o *TravelRuleWithdrawLegalEntity) SetPlaceOfIncorporation(v string)`
+
+SetPlaceOfIncorporation sets PlaceOfIncorporation field to given value.
+
+### HasPlaceOfIncorporation
+
+`func (o *TravelRuleWithdrawLegalEntity) HasPlaceOfIncorporation() bool`
+
+HasPlaceOfIncorporation returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TravelRuleWithdrawNaturalEntity.md b/docs/TravelRuleWithdrawNaturalEntity.md
new file mode 100644
index 0000000..dd1e225
--- /dev/null
+++ b/docs/TravelRuleWithdrawNaturalEntity.md
@@ -0,0 +1,145 @@
+# TravelRuleWithdrawNaturalEntity
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**SelectedEntityType** | [**SelectedEntityType**](SelectedEntityType.md) | |
+**FirstName** | **string** | The first name of the user. |
+**LastName** | **string** | The last name of the user. |
+**DateOfBirth** | Pointer to **string** | The date of birth of the user. | [optional]
+**PlaceOfBirth** | Pointer to **string** | The place of birth of the user. | [optional]
+
+## Methods
+
+### NewTravelRuleWithdrawNaturalEntity
+
+`func NewTravelRuleWithdrawNaturalEntity(selectedEntityType SelectedEntityType, firstName string, lastName string, ) *TravelRuleWithdrawNaturalEntity`
+
+NewTravelRuleWithdrawNaturalEntity instantiates a new TravelRuleWithdrawNaturalEntity object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTravelRuleWithdrawNaturalEntityWithDefaults
+
+`func NewTravelRuleWithdrawNaturalEntityWithDefaults() *TravelRuleWithdrawNaturalEntity`
+
+NewTravelRuleWithdrawNaturalEntityWithDefaults instantiates a new TravelRuleWithdrawNaturalEntity object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetSelectedEntityType
+
+`func (o *TravelRuleWithdrawNaturalEntity) GetSelectedEntityType() SelectedEntityType`
+
+GetSelectedEntityType returns the SelectedEntityType field if non-nil, zero value otherwise.
+
+### GetSelectedEntityTypeOk
+
+`func (o *TravelRuleWithdrawNaturalEntity) GetSelectedEntityTypeOk() (*SelectedEntityType, bool)`
+
+GetSelectedEntityTypeOk returns a tuple with the SelectedEntityType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelectedEntityType
+
+`func (o *TravelRuleWithdrawNaturalEntity) SetSelectedEntityType(v SelectedEntityType)`
+
+SetSelectedEntityType sets SelectedEntityType field to given value.
+
+
+### GetFirstName
+
+`func (o *TravelRuleWithdrawNaturalEntity) GetFirstName() string`
+
+GetFirstName returns the FirstName field if non-nil, zero value otherwise.
+
+### GetFirstNameOk
+
+`func (o *TravelRuleWithdrawNaturalEntity) GetFirstNameOk() (*string, bool)`
+
+GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetFirstName
+
+`func (o *TravelRuleWithdrawNaturalEntity) SetFirstName(v string)`
+
+SetFirstName sets FirstName field to given value.
+
+
+### GetLastName
+
+`func (o *TravelRuleWithdrawNaturalEntity) GetLastName() string`
+
+GetLastName returns the LastName field if non-nil, zero value otherwise.
+
+### GetLastNameOk
+
+`func (o *TravelRuleWithdrawNaturalEntity) GetLastNameOk() (*string, bool)`
+
+GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetLastName
+
+`func (o *TravelRuleWithdrawNaturalEntity) SetLastName(v string)`
+
+SetLastName sets LastName field to given value.
+
+
+### GetDateOfBirth
+
+`func (o *TravelRuleWithdrawNaturalEntity) GetDateOfBirth() string`
+
+GetDateOfBirth returns the DateOfBirth field if non-nil, zero value otherwise.
+
+### GetDateOfBirthOk
+
+`func (o *TravelRuleWithdrawNaturalEntity) GetDateOfBirthOk() (*string, bool)`
+
+GetDateOfBirthOk returns a tuple with the DateOfBirth field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDateOfBirth
+
+`func (o *TravelRuleWithdrawNaturalEntity) SetDateOfBirth(v string)`
+
+SetDateOfBirth sets DateOfBirth field to given value.
+
+### HasDateOfBirth
+
+`func (o *TravelRuleWithdrawNaturalEntity) HasDateOfBirth() bool`
+
+HasDateOfBirth returns a boolean if a field has been set.
+
+### GetPlaceOfBirth
+
+`func (o *TravelRuleWithdrawNaturalEntity) GetPlaceOfBirth() string`
+
+GetPlaceOfBirth returns the PlaceOfBirth field if non-nil, zero value otherwise.
+
+### GetPlaceOfBirthOk
+
+`func (o *TravelRuleWithdrawNaturalEntity) GetPlaceOfBirthOk() (*string, bool)`
+
+GetPlaceOfBirthOk returns a tuple with the PlaceOfBirth field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetPlaceOfBirth
+
+`func (o *TravelRuleWithdrawNaturalEntity) SetPlaceOfBirth(v string)`
+
+SetPlaceOfBirth sets PlaceOfBirth field to given value.
+
+### HasPlaceOfBirth
+
+`func (o *TravelRuleWithdrawNaturalEntity) HasPlaceOfBirth() bool`
+
+HasPlaceOfBirth returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TravelRuleWithdrawRequest.md b/docs/TravelRuleWithdrawRequest.md
new file mode 100644
index 0000000..158fd07
--- /dev/null
+++ b/docs/TravelRuleWithdrawRequest.md
@@ -0,0 +1,72 @@
+# TravelRuleWithdrawRequest
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**TransactionId** | **string** | The transaction ID. |
+**TravelRuleInfo** | [**TravelRuleWithdrawRequestTravelRuleInfo**](TravelRuleWithdrawRequestTravelRuleInfo.md) | |
+
+## Methods
+
+### NewTravelRuleWithdrawRequest
+
+`func NewTravelRuleWithdrawRequest(transactionId string, travelRuleInfo TravelRuleWithdrawRequestTravelRuleInfo, ) *TravelRuleWithdrawRequest`
+
+NewTravelRuleWithdrawRequest instantiates a new TravelRuleWithdrawRequest object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTravelRuleWithdrawRequestWithDefaults
+
+`func NewTravelRuleWithdrawRequestWithDefaults() *TravelRuleWithdrawRequest`
+
+NewTravelRuleWithdrawRequestWithDefaults instantiates a new TravelRuleWithdrawRequest object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetTransactionId
+
+`func (o *TravelRuleWithdrawRequest) GetTransactionId() string`
+
+GetTransactionId returns the TransactionId field if non-nil, zero value otherwise.
+
+### GetTransactionIdOk
+
+`func (o *TravelRuleWithdrawRequest) GetTransactionIdOk() (*string, bool)`
+
+GetTransactionIdOk returns a tuple with the TransactionId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTransactionId
+
+`func (o *TravelRuleWithdrawRequest) SetTransactionId(v string)`
+
+SetTransactionId sets TransactionId field to given value.
+
+
+### GetTravelRuleInfo
+
+`func (o *TravelRuleWithdrawRequest) GetTravelRuleInfo() TravelRuleWithdrawRequestTravelRuleInfo`
+
+GetTravelRuleInfo returns the TravelRuleInfo field if non-nil, zero value otherwise.
+
+### GetTravelRuleInfoOk
+
+`func (o *TravelRuleWithdrawRequest) GetTravelRuleInfoOk() (*TravelRuleWithdrawRequestTravelRuleInfo, bool)`
+
+GetTravelRuleInfoOk returns a tuple with the TravelRuleInfo field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetTravelRuleInfo
+
+`func (o *TravelRuleWithdrawRequest) SetTravelRuleInfo(v TravelRuleWithdrawRequestTravelRuleInfo)`
+
+SetTravelRuleInfo sets TravelRuleInfo field to given value.
+
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TravelRuleWithdrawRequestTravelRuleInfo.md b/docs/TravelRuleWithdrawRequestTravelRuleInfo.md
new file mode 100644
index 0000000..d71ed51
--- /dev/null
+++ b/docs/TravelRuleWithdrawRequestTravelRuleInfo.md
@@ -0,0 +1,177 @@
+# TravelRuleWithdrawRequestTravelRuleInfo
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**DestinationWalletType** | [**DestinationWalletType**](DestinationWalletType.md) | |
+**SelfCustodyWalletChallenge** | **string** | The challenge obtained from a previous operation. |
+**SelfCustodyWalletAddress** | **string** | The address of the self-custodial wallet. |
+**SelfCustodyWalletSign** | **string** | The signed message from the self-custodial wallet. |
+**VendorCode** | **string** | The vendor code for exchanges or VASPs. |
+**VendorVaspId** | **string** | The unique identifier of the VASP. |
+**EntityInfo** | [**TravelRuleWithdrawExchangesOrVASPEntityInfo**](TravelRuleWithdrawExchangesOrVASPEntityInfo.md) | |
+
+## Methods
+
+### NewTravelRuleWithdrawRequestTravelRuleInfo
+
+`func NewTravelRuleWithdrawRequestTravelRuleInfo(destinationWalletType DestinationWalletType, selfCustodyWalletChallenge string, selfCustodyWalletAddress string, selfCustodyWalletSign string, vendorCode string, vendorVaspId string, entityInfo TravelRuleWithdrawExchangesOrVASPEntityInfo, ) *TravelRuleWithdrawRequestTravelRuleInfo`
+
+NewTravelRuleWithdrawRequestTravelRuleInfo instantiates a new TravelRuleWithdrawRequestTravelRuleInfo object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewTravelRuleWithdrawRequestTravelRuleInfoWithDefaults
+
+`func NewTravelRuleWithdrawRequestTravelRuleInfoWithDefaults() *TravelRuleWithdrawRequestTravelRuleInfo`
+
+NewTravelRuleWithdrawRequestTravelRuleInfoWithDefaults instantiates a new TravelRuleWithdrawRequestTravelRuleInfo object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetDestinationWalletType
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) GetDestinationWalletType() DestinationWalletType`
+
+GetDestinationWalletType returns the DestinationWalletType field if non-nil, zero value otherwise.
+
+### GetDestinationWalletTypeOk
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) GetDestinationWalletTypeOk() (*DestinationWalletType, bool)`
+
+GetDestinationWalletTypeOk returns a tuple with the DestinationWalletType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDestinationWalletType
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) SetDestinationWalletType(v DestinationWalletType)`
+
+SetDestinationWalletType sets DestinationWalletType field to given value.
+
+
+### GetSelfCustodyWalletChallenge
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) GetSelfCustodyWalletChallenge() string`
+
+GetSelfCustodyWalletChallenge returns the SelfCustodyWalletChallenge field if non-nil, zero value otherwise.
+
+### GetSelfCustodyWalletChallengeOk
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) GetSelfCustodyWalletChallengeOk() (*string, bool)`
+
+GetSelfCustodyWalletChallengeOk returns a tuple with the SelfCustodyWalletChallenge field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelfCustodyWalletChallenge
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) SetSelfCustodyWalletChallenge(v string)`
+
+SetSelfCustodyWalletChallenge sets SelfCustodyWalletChallenge field to given value.
+
+
+### GetSelfCustodyWalletAddress
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) GetSelfCustodyWalletAddress() string`
+
+GetSelfCustodyWalletAddress returns the SelfCustodyWalletAddress field if non-nil, zero value otherwise.
+
+### GetSelfCustodyWalletAddressOk
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) GetSelfCustodyWalletAddressOk() (*string, bool)`
+
+GetSelfCustodyWalletAddressOk returns a tuple with the SelfCustodyWalletAddress field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelfCustodyWalletAddress
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) SetSelfCustodyWalletAddress(v string)`
+
+SetSelfCustodyWalletAddress sets SelfCustodyWalletAddress field to given value.
+
+
+### GetSelfCustodyWalletSign
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) GetSelfCustodyWalletSign() string`
+
+GetSelfCustodyWalletSign returns the SelfCustodyWalletSign field if non-nil, zero value otherwise.
+
+### GetSelfCustodyWalletSignOk
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) GetSelfCustodyWalletSignOk() (*string, bool)`
+
+GetSelfCustodyWalletSignOk returns a tuple with the SelfCustodyWalletSign field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetSelfCustodyWalletSign
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) SetSelfCustodyWalletSign(v string)`
+
+SetSelfCustodyWalletSign sets SelfCustodyWalletSign field to given value.
+
+
+### GetVendorCode
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) GetVendorCode() string`
+
+GetVendorCode returns the VendorCode field if non-nil, zero value otherwise.
+
+### GetVendorCodeOk
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) GetVendorCodeOk() (*string, bool)`
+
+GetVendorCodeOk returns a tuple with the VendorCode field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVendorCode
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) SetVendorCode(v string)`
+
+SetVendorCode sets VendorCode field to given value.
+
+
+### GetVendorVaspId
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) GetVendorVaspId() string`
+
+GetVendorVaspId returns the VendorVaspId field if non-nil, zero value otherwise.
+
+### GetVendorVaspIdOk
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) GetVendorVaspIdOk() (*string, bool)`
+
+GetVendorVaspIdOk returns a tuple with the VendorVaspId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVendorVaspId
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) SetVendorVaspId(v string)`
+
+SetVendorVaspId sets VendorVaspId field to given value.
+
+
+### GetEntityInfo
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) GetEntityInfo() TravelRuleWithdrawExchangesOrVASPEntityInfo`
+
+GetEntityInfo returns the EntityInfo field if non-nil, zero value otherwise.
+
+### GetEntityInfoOk
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) GetEntityInfoOk() (*TravelRuleWithdrawExchangesOrVASPEntityInfo, bool)`
+
+GetEntityInfoOk returns a tuple with the EntityInfo field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetEntityInfo
+
+`func (o *TravelRuleWithdrawRequestTravelRuleInfo) SetEntityInfo(v TravelRuleWithdrawExchangesOrVASPEntityInfo)`
+
+SetEntityInfo sets EntityInfo field to given value.
+
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/TriggerTestWebhookEventRequest.md b/docs/TriggerTestWebhookEventRequest.md
index d6f93e9..8a4d526 100644
--- a/docs/TriggerTestWebhookEventRequest.md
+++ b/docs/TriggerTestWebhookEventRequest.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**EventType** | [**WebhookEventType**](WebhookEventType.md) | |
-**OverrideData** | Pointer to **map[string]interface{}** | An object for customization of the webhook event payload. You only need to include the fields you want to customize. The provided fields must match the webhook event data structure, depending on the specified event type. For a complete introduction of the webhook event data structure, refer to the `data.data` property in the response of [List all webhook events](/v2/api-references/developers--webhooks/list-all-webhook-events). If this property is not provided, a default payload will be returned. | [optional]
+**OverrideData** | Pointer to **map[string]interface{}** | An object for customization of the webhook event payload. You only need to include the fields you want to customize. The provided fields must match the webhook event data structure, depending on the specified event type. For a complete introduction of the webhook event data structure, refer to the `data.data` property in the response of [List all webhook events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-webhook-events). If this property is not provided, a default payload will be returned. | [optional]
## Methods
diff --git a/docs/UpdateWebhookEndpointByIdRequest.md b/docs/UpdateWebhookEndpointByIdRequest.md
index 102a9fb..4aa67c2 100644
--- a/docs/UpdateWebhookEndpointByIdRequest.md
+++ b/docs/UpdateWebhookEndpointByIdRequest.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**SubscribedEvents** | Pointer to [**[]WebhookEventType**](WebhookEventType.md) | The new event types you want to subscribe to for this webhook endpoint. You can call [Get webhook event types](/v2/api-references/developers--webhooks/get-webhook-event-types) to retrieve all available event types. | [optional]
+**SubscribedEvents** | Pointer to [**[]WebhookEventType**](WebhookEventType.md) | The new event types you want to subscribe to for this webhook endpoint. You can call [Get webhook event types](https://www.cobo.com/developers/v2/api-references/developers--webhooks/get-webhook-event-types) to retrieve all available event types. | [optional]
**Status** | Pointer to **string** | The new status you want to set the webhook endpoint to. If you set `status` to `STATUS_INACTIVE`, the endpoint will be revoked, meaning it will no longer receive any webhook events. | [optional]
**Description** | Pointer to **string** | The webhook endpoint description. | [optional]
diff --git a/docs/Vasp.md b/docs/Vasp.md
new file mode 100644
index 0000000..4a77bfb
--- /dev/null
+++ b/docs/Vasp.md
@@ -0,0 +1,93 @@
+# Vasp
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | The name of the vasp. |
+**VendorCode** | **string** | The symbol. |
+**VendorVaspId** | **string** | The vasp str id. |
+
+## Methods
+
+### NewVasp
+
+`func NewVasp(name string, vendorCode string, vendorVaspId string, ) *Vasp`
+
+NewVasp instantiates a new Vasp object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewVaspWithDefaults
+
+`func NewVaspWithDefaults() *Vasp`
+
+NewVaspWithDefaults instantiates a new Vasp object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetName
+
+`func (o *Vasp) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *Vasp) GetNameOk() (*string, bool)`
+
+GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetName
+
+`func (o *Vasp) SetName(v string)`
+
+SetName sets Name field to given value.
+
+
+### GetVendorCode
+
+`func (o *Vasp) GetVendorCode() string`
+
+GetVendorCode returns the VendorCode field if non-nil, zero value otherwise.
+
+### GetVendorCodeOk
+
+`func (o *Vasp) GetVendorCodeOk() (*string, bool)`
+
+GetVendorCodeOk returns a tuple with the VendorCode field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVendorCode
+
+`func (o *Vasp) SetVendorCode(v string)`
+
+SetVendorCode sets VendorCode field to given value.
+
+
+### GetVendorVaspId
+
+`func (o *Vasp) GetVendorVaspId() string`
+
+GetVendorVaspId returns the VendorVaspId field if non-nil, zero value otherwise.
+
+### GetVendorVaspIdOk
+
+`func (o *Vasp) GetVendorVaspIdOk() (*string, bool)`
+
+GetVendorVaspIdOk returns a tuple with the VendorVaspId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVendorVaspId
+
+`func (o *Vasp) SetVendorVaspId(v string)`
+
+SetVendorVaspId sets VendorVaspId field to given value.
+
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/WalletInfoEventData.md b/docs/WalletInfoEventData.md
new file mode 100644
index 0000000..03a1a40
--- /dev/null
+++ b/docs/WalletInfoEventData.md
@@ -0,0 +1,77 @@
+# WalletInfoEventData
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**DataType** | **string** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. |
+**Wallet** | Pointer to [**WalletInfo**](WalletInfo.md) | | [optional]
+
+## Methods
+
+### NewWalletInfoEventData
+
+`func NewWalletInfoEventData(dataType string, ) *WalletInfoEventData`
+
+NewWalletInfoEventData instantiates a new WalletInfoEventData object
+This constructor will assign default values to properties that have it defined,
+and makes sure properties required by API are set, but the set of arguments
+will change when the set of required properties is changed
+
+### NewWalletInfoEventDataWithDefaults
+
+`func NewWalletInfoEventDataWithDefaults() *WalletInfoEventData`
+
+NewWalletInfoEventDataWithDefaults instantiates a new WalletInfoEventData object
+This constructor will only assign default values to properties that have it defined,
+but it doesn't guarantee that properties required by API are set
+
+### GetDataType
+
+`func (o *WalletInfoEventData) GetDataType() string`
+
+GetDataType returns the DataType field if non-nil, zero value otherwise.
+
+### GetDataTypeOk
+
+`func (o *WalletInfoEventData) GetDataTypeOk() (*string, bool)`
+
+GetDataTypeOk returns a tuple with the DataType field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetDataType
+
+`func (o *WalletInfoEventData) SetDataType(v string)`
+
+SetDataType sets DataType field to given value.
+
+
+### GetWallet
+
+`func (o *WalletInfoEventData) GetWallet() WalletInfo`
+
+GetWallet returns the Wallet field if non-nil, zero value otherwise.
+
+### GetWalletOk
+
+`func (o *WalletInfoEventData) GetWalletOk() (*WalletInfo, bool)`
+
+GetWalletOk returns a tuple with the Wallet field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetWallet
+
+`func (o *WalletInfoEventData) SetWallet(v WalletInfo)`
+
+SetWallet sets Wallet field to given value.
+
+### HasWallet
+
+`func (o *WalletInfoEventData) HasWallet() bool`
+
+HasWallet returns a boolean if a field has been set.
+
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/WalletsAPI.md b/docs/WalletsAPI.md
index 2175ec7..cf50c3e 100644
--- a/docs/WalletsAPI.md
+++ b/docs/WalletsAPI.md
@@ -87,7 +87,7 @@ Other parameters are passed through a pointer to a apiCheckAddressChainsValidity
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**address** | **string** | The wallet address. |
- **chainIds** | **string** | A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
+ **chainIds** | **string** | A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
### Return type
@@ -164,7 +164,7 @@ Other parameters are passed through a pointer to a apiCheckAddressValidityReques
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **chainId** | **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). |
+ **chainId** | **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
**address** | **string** | The wallet address. |
### Return type
@@ -242,7 +242,7 @@ Other parameters are passed through a pointer to a apiCheckAddressesValidityRequ
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **chainId** | **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). |
+ **chainId** | **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
**addresses** | **string** | A list of wallet addresses, separated by comma. You can specify a maximum of 100 addresses. |
### Return type
@@ -552,7 +552,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**chainId** | **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). |
+**chainId** | **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
### Other Parameters
@@ -646,7 +646,7 @@ Other parameters are passed through a pointer to a apiGetMaxTransferableValueReq
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **tokenId** | **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). |
+ **tokenId** | **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**feeRate** | **string** | The fee rate in sats/vByte or gas price in wei. |
**toAddress** | **string** | The recipient's address. |
**fromAddress** | **string** | The sender's address. For EVM addresses in MPC Wallets, this parameter is required. |
@@ -720,7 +720,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**tokenId** | **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). |
+**tokenId** | **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
### Other Parameters
@@ -895,11 +895,11 @@ Other parameters are passed through a pointer to a apiListAddressesRequest struc
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **chainIds** | **string** | A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
+ **chainIds** | **string** | A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
**addresses** | **string** | A list of wallet addresses, separated by comma. For addresses requiring a memo, append the memo after the address using the '|' separator (e.g., \"address|memo\"). |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -982,8 +982,8 @@ Name | Type | Description | Notes
**walletType** | [**WalletType**](WalletType.md) | The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction) |
**walletSubtype** | [**WalletSubtype**](WalletSubtype.md) | The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet}) |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -1066,10 +1066,10 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**walletType** | [**WalletType**](WalletType.md) | The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction) |
**walletSubtype** | [**WalletSubtype**](WalletSubtype.md) | The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet}) |
- **chainIds** | **string** | A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
+ **chainIds** | **string** | A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -1152,10 +1152,10 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**walletType** | [**WalletType**](WalletType.md) | The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction) |
**walletSubtype** | [**WalletSubtype**](WalletSubtype.md) | The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet}) |
- **chainIds** | **string** | A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
+ **chainIds** | **string** | A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -1239,11 +1239,11 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**walletType** | [**WalletType**](WalletType.md) | The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction) |
**walletSubtype** | [**WalletSubtype**](WalletSubtype.md) | The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet}) |
- **chainIds** | **string** | A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
- **tokenIds** | **string** | A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). |
+ **chainIds** | **string** | A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
+ **tokenIds** | **string** | A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -1331,10 +1331,10 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **tokenIds** | **string** | A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). |
+ **tokenIds** | **string** | A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -1419,10 +1419,10 @@ Other parameters are passed through a pointer to a apiListTokenBalancesForWallet
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **tokenIds** | **string** | A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). |
+ **tokenIds** | **string** | A list of token IDs, separated by comma. The token ID is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -1508,11 +1508,11 @@ Other parameters are passed through a pointer to a apiListUtxosRequest struct vi
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **tokenId** | **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). |
+ **tokenId** | **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). |
**address** | **string** | The wallet address. |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -1596,11 +1596,11 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**walletType** | [**WalletType**](WalletType.md) | The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction) |
**walletSubtype** | [**WalletSubtype**](WalletSubtype.md) | The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet}) |
- **projectId** | **string** | The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects). |
- **vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
+ **projectId** | **string** | The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects). |
+ **vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-vaults). |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
diff --git a/docs/WalletsExchangeWalletAPI.md b/docs/WalletsExchangeWalletAPI.md
index 0e1f777..567fce9 100644
--- a/docs/WalletsExchangeWalletAPI.md
+++ b/docs/WalletsExchangeWalletAPI.md
@@ -77,11 +77,11 @@ Other parameters are passed through a pointer to a apiListAssetBalancesForExchan
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **tradingAccountTypes** | **string** | A list of trading account types, separated by comma. You can get the the supported trading account types of an exchange by calling [List supported exchanges](/v2/api-references/wallets--exchange-wallet/list-supported-exchanges). |
+ **tradingAccountTypes** | **string** | A list of trading account types, separated by comma. You can get the the supported trading account types of an exchange by calling [List supported exchanges](https://www.cobo.com/developers/v2/api-references/wallets--exchange-wallet/list-supported-exchanges). |
**assetIds** | **string** | (This concept applies to Exchange Wallets only) A list of asset IDs, separated by comma. An asset ID is the unique identifier of the asset held within your linked exchange account. |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -237,8 +237,8 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -311,7 +311,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
**exchangeId** | [**ExchangeId**](.md) | The ID of the exchange. Possible values include: - `binance`: Binance. - `okx`: OKX. - `deribit`: Deribit. - `bybit`: Bybit. - `gate`: Gate.io - `bitget`: Bitget - `bitmart`: BitMart - `bitfinex`: Bitfinex |
-**assetId** | **string** | (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. You can get the ID of the assets supported by an exchanges by calling [List supported assets](/v2/api-references/wallets--exchange-wallet/list-supported-assets). |
+**assetId** | **string** | (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. You can get the ID of the assets supported by an exchanges by calling [List supported assets](https://www.cobo.com/developers/v2/api-references/wallets--exchange-wallet/list-supported-assets). |
### Other Parameters
diff --git a/docs/WalletsMPCWalletsAPI.md b/docs/WalletsMPCWalletsAPI.md
index 0cadc5f..a1d8519 100644
--- a/docs/WalletsMPCWalletsAPI.md
+++ b/docs/WalletsMPCWalletsAPI.md
@@ -77,8 +77,8 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
-**tssRequestId** | **string** | The TSS request ID, which you can retrieve by calling [List TSS requests](/v2/api-references/wallets--mpc-wallets/list-tss-requests). |
+**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
+**tssRequestId** | **string** | The TSS request ID, which you can retrieve by calling [List TSS requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests). |
### Other Parameters
@@ -160,7 +160,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
+**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
### Other Parameters
@@ -394,7 +394,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
+**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
### Other Parameters
@@ -476,7 +476,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
+**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
**keyShareHolderGroupId** | **string** | The key share holder group ID. |
### Other Parameters
@@ -559,7 +559,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
+**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
**keyShareHolderGroupId** | **string** | The key share holder group ID. |
### Other Parameters
@@ -641,7 +641,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**projectId** | **string** | The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects). |
+**projectId** | **string** | The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects). |
### Other Parameters
@@ -721,7 +721,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
+**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
### Other Parameters
@@ -802,8 +802,8 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
-**tssRequestId** | **string** | The TSS request ID, which you can retrieve by calling [List TSS requests](/v2/api-references/wallets--mpc-wallets/list-tss-requests). |
+**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
+**tssRequestId** | **string** | The TSS request ID, which you can retrieve by calling [List TSS requests](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-tss-requests). |
### Other Parameters
@@ -959,7 +959,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
+**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
### Other Parameters
@@ -971,8 +971,8 @@ Name | Type | Description | Notes
**keyShareHolderGroupType** | [**KeyShareHolderGroupType**](KeyShareHolderGroupType.md) | The key share holder group type. Possible values include: - `MainGroup`: The [Main Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#main-group). - `SigningGroup`: The [Signing Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#signing-group). - `RecoveryGroup`: The [Recovery Group](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/create-key-share-groups#recovery-group). **Note**: If this parameter is left empty, all key share holder group types will be retrieved. |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -1051,8 +1051,8 @@ Other parameters are passed through a pointer to a apiListMpcProjectsRequest str
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -1133,10 +1133,10 @@ Other parameters are passed through a pointer to a apiListMpcVaultsRequest struc
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**vaultType** | [**MPCVaultType**](MPCVaultType.md) | The vault type. Possible values include: - `Org-Controlled`: This vault is a collection of [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#organization-controlled-wallets). - `User-Controlled`: This vault is a collection of [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction#user-controlled-wallets). |
- **projectId** | **string** | The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects). |
+ **projectId** | **string** | The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects). |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -1211,7 +1211,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
+**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
### Other Parameters
@@ -1221,10 +1221,10 @@ Other parameters are passed through a pointer to a apiListTssRequestsRequest str
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **keyShareHolderGroupId** | **string** | The key share holder group ID of the TSS request, which you can retrieve by calling [List all key share holder groups](/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups). |
+ **keyShareHolderGroupId** | **string** | The key share holder group ID of the TSS request, which you can retrieve by calling [List all key share holder groups](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-key-share-holder-groups). |
**limit** | **int32** | The maximum number of objects to return. For most operations, the value range is [1, 50]. | [default to 10]
- **before** | **string** | An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. |
- **after** | **string** | An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
+ **before** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data before the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `before` to the ID of Object C (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object A. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set it to `infinity`, the last page of data is returned. |
+ **after** | **string** | This parameter specifies an object ID as a starting point for pagination, retrieving data after the specified object relative to the current dataset. Suppose the current data is ordered as Object A, Object B, and Object C. If you set `after` to the ID of Object A (`RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`), the response will include Object B and Object C. **Notes**: - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. |
### Return type
@@ -1297,7 +1297,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
+**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
**keyShareHolderGroupId** | **string** | The key share holder group ID. |
### Other Parameters
@@ -1381,7 +1381,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**projectId** | **string** | The project ID, which you can retrieve by calling [List all projects](/v2/api-references/wallets--mpc-wallets/list-all-projects). |
+**projectId** | **string** | The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects). |
### Other Parameters
@@ -1463,7 +1463,7 @@ func main() {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**ctx** | **context.Context** | context for ServerHost/Env, Signer, etc.
-**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
+**vaultId** | **string** | The vault ID, which you can retrieve by calling [List all vaults](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallet/list-all-mpc-vaults). |
### Other Parameters
diff --git a/docs/WebhookEventData.md b/docs/WebhookEventData.md
index d54b85e..455fef1 100644
--- a/docs/WebhookEventData.md
+++ b/docs/WebhookEventData.md
@@ -4,17 +4,17 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DataType** | **string** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. |
+**DataType** | **string** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. |
**TransactionId** | **string** | The transaction ID. |
**CoboId** | Pointer to **string** | The Cobo ID, which can be used to track a transaction. | [optional]
**RequestId** | Pointer to **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. | [optional]
**WalletId** | **string** | For deposit transactions, this property represents the wallet ID of the transaction destination. For transactions of other types, this property represents the wallet ID of the transaction source. |
-**Type** | Pointer to [**TSSRequestType**](TSSRequestType.md) | | [optional]
+**Type** | Pointer to [**MPCVaultType**](MPCVaultType.md) | | [optional]
**Status** | [**TSSRequestStatus**](TSSRequestStatus.md) | |
**SubStatus** | Pointer to [**TransactionSubStatus**](TransactionSubStatus.md) | | [optional]
**FailedReason** | Pointer to **string** | (This property is applicable to approval failures and signature failures only) The reason why the transaction failed. | [optional]
-**ChainId** | Pointer to **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). | [optional]
-**TokenId** | Pointer to **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]
+**ChainId** | Pointer to **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](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). | [optional]
+**TokenId** | Pointer to **string** | The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). | [optional]
**AssetId** | Pointer to **string** | (This concept applies to Exchange Wallets only) The asset ID. An asset ID is the unique identifier of the asset held within your linked exchange account. | [optional]
**Source** | [**TransactionSource**](TransactionSource.md) | |
**Destination** | [**TransactionDestination**](TransactionDestination.md) | |
@@ -31,11 +31,17 @@ Name | Type | Description | Notes
**Category** | Pointer to **[]string** | A custom transaction category for you to identify your transfers more easily. | [optional]
**Description** | Pointer to **string** | The description of the TSS request. | [optional]
**IsLoop** | Pointer to **bool** | Whether the transaction was executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `true`: The transaction was executed as a Cobo Loop transfer. - `false`: The transaction was not executed as a Cobo Loop transfer. | [optional]
-**CreatedTimestamp** | Pointer to **int64** | The TSS request's creation time in Unix timestamp format, measured in milliseconds. | [optional]
+**CreatedTimestamp** | Pointer to **int64** | The vault's creation time in Unix timestamp format, measured in milliseconds. | [optional]
**UpdatedTimestamp** | Pointer to **int64** | The time when the transaction was updated, in Unix timestamp format, measured in milliseconds. | [optional]
**TssRequestId** | Pointer to **string** | The TSS request ID. | [optional]
**SourceKeyShareHolderGroup** | Pointer to [**SourceGroup**](SourceGroup.md) | | [optional]
**TargetKeyShareHolderGroupId** | Pointer to **string** | The target key share holder group ID. | [optional]
+**Addresses** | Pointer to [**[]AddressInfo**](AddressInfo.md) | A list of addresses. | [optional]
+**Wallet** | Pointer to [**WalletInfo**](WalletInfo.md) | | [optional]
+**VaultId** | Pointer to **string** | The vault ID. | [optional]
+**ProjectId** | Pointer to **string** | The project ID. | [optional]
+**Name** | Pointer to **string** | The vault name. | [optional]
+**RootPubkeys** | Pointer to [**[]RootPubkey**](RootPubkey.md) | | [optional]
## Methods
@@ -168,20 +174,20 @@ SetWalletId sets WalletId field to given value.
### GetType
-`func (o *WebhookEventData) GetType() TSSRequestType`
+`func (o *WebhookEventData) GetType() MPCVaultType`
GetType returns the Type field if non-nil, zero value otherwise.
### GetTypeOk
-`func (o *WebhookEventData) GetTypeOk() (*TSSRequestType, bool)`
+`func (o *WebhookEventData) GetTypeOk() (*MPCVaultType, bool)`
GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.
### SetType
-`func (o *WebhookEventData) SetType(v TSSRequestType)`
+`func (o *WebhookEventData) SetType(v MPCVaultType)`
SetType sets Type field to given value.
@@ -821,6 +827,156 @@ SetTargetKeyShareHolderGroupId sets TargetKeyShareHolderGroupId field to given v
HasTargetKeyShareHolderGroupId returns a boolean if a field has been set.
+### GetAddresses
+
+`func (o *WebhookEventData) GetAddresses() []AddressInfo`
+
+GetAddresses returns the Addresses field if non-nil, zero value otherwise.
+
+### GetAddressesOk
+
+`func (o *WebhookEventData) GetAddressesOk() (*[]AddressInfo, bool)`
+
+GetAddressesOk returns a tuple with the Addresses field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetAddresses
+
+`func (o *WebhookEventData) SetAddresses(v []AddressInfo)`
+
+SetAddresses sets Addresses field to given value.
+
+### HasAddresses
+
+`func (o *WebhookEventData) HasAddresses() bool`
+
+HasAddresses returns a boolean if a field has been set.
+
+### GetWallet
+
+`func (o *WebhookEventData) GetWallet() WalletInfo`
+
+GetWallet returns the Wallet field if non-nil, zero value otherwise.
+
+### GetWalletOk
+
+`func (o *WebhookEventData) GetWalletOk() (*WalletInfo, bool)`
+
+GetWalletOk returns a tuple with the Wallet field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetWallet
+
+`func (o *WebhookEventData) SetWallet(v WalletInfo)`
+
+SetWallet sets Wallet field to given value.
+
+### HasWallet
+
+`func (o *WebhookEventData) HasWallet() bool`
+
+HasWallet returns a boolean if a field has been set.
+
+### GetVaultId
+
+`func (o *WebhookEventData) GetVaultId() string`
+
+GetVaultId returns the VaultId field if non-nil, zero value otherwise.
+
+### GetVaultIdOk
+
+`func (o *WebhookEventData) GetVaultIdOk() (*string, bool)`
+
+GetVaultIdOk returns a tuple with the VaultId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetVaultId
+
+`func (o *WebhookEventData) SetVaultId(v string)`
+
+SetVaultId sets VaultId field to given value.
+
+### HasVaultId
+
+`func (o *WebhookEventData) HasVaultId() bool`
+
+HasVaultId returns a boolean if a field has been set.
+
+### GetProjectId
+
+`func (o *WebhookEventData) GetProjectId() string`
+
+GetProjectId returns the ProjectId field if non-nil, zero value otherwise.
+
+### GetProjectIdOk
+
+`func (o *WebhookEventData) GetProjectIdOk() (*string, bool)`
+
+GetProjectIdOk returns a tuple with the ProjectId field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetProjectId
+
+`func (o *WebhookEventData) SetProjectId(v string)`
+
+SetProjectId sets ProjectId field to given value.
+
+### HasProjectId
+
+`func (o *WebhookEventData) HasProjectId() bool`
+
+HasProjectId returns a boolean if a field has been set.
+
+### GetName
+
+`func (o *WebhookEventData) GetName() string`
+
+GetName returns the Name field if non-nil, zero value otherwise.
+
+### GetNameOk
+
+`func (o *WebhookEventData) GetNameOk() (*string, bool)`
+
+GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetName
+
+`func (o *WebhookEventData) SetName(v string)`
+
+SetName sets Name field to given value.
+
+### HasName
+
+`func (o *WebhookEventData) HasName() bool`
+
+HasName returns a boolean if a field has been set.
+
+### GetRootPubkeys
+
+`func (o *WebhookEventData) GetRootPubkeys() []RootPubkey`
+
+GetRootPubkeys returns the RootPubkeys field if non-nil, zero value otherwise.
+
+### GetRootPubkeysOk
+
+`func (o *WebhookEventData) GetRootPubkeysOk() (*[]RootPubkey, bool)`
+
+GetRootPubkeysOk returns a tuple with the RootPubkeys field if it's non-nil, zero value otherwise
+and a boolean to check if the value has been set.
+
+### SetRootPubkeys
+
+`func (o *WebhookEventData) SetRootPubkeys(v []RootPubkey)`
+
+SetRootPubkeys sets RootPubkeys field to given value.
+
+### HasRootPubkeys
+
+`func (o *WebhookEventData) HasRootPubkeys() bool`
+
+HasRootPubkeys returns a boolean if a field has been set.
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/WebhookEventDataType.md b/docs/WebhookEventDataType.md
index 63efc79..aaafea0 100644
--- a/docs/WebhookEventDataType.md
+++ b/docs/WebhookEventDataType.md
@@ -4,7 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**DataType** | **string** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. |
+**DataType** | **string** | The data type of the event. - `Transaction`: The transaction event data. - `TSSRequest`: The TSS request event data. - `Addresses`: The addresses event data. - `WalletInfo`: The wallet information event data. - `MPCVault`: The MPC vault event data. |
## Methods
diff --git a/docs/WebhookEventType.md b/docs/WebhookEventType.md
index ca90ab1..9102251 100644
--- a/docs/WebhookEventType.md
+++ b/docs/WebhookEventType.md
@@ -3,21 +3,27 @@
## Enum
-* `TRANSACTION_CREATED` (value: `"wallets.transaction.created"`)
+* `WALLETS_TRANSACTION_CREATED` (value: `"wallets.transaction.created"`)
-* `TRANSACTION_UPDATED` (value: `"wallets.transaction.updated"`)
+* `WALLETS_TRANSACTION_UPDATED` (value: `"wallets.transaction.updated"`)
-* `TRANSACTION_FAILED` (value: `"wallets.transaction.failed"`)
+* `WALLETS_TRANSACTION_FAILED` (value: `"wallets.transaction.failed"`)
-* `TRANSACTION_SUCCEEDED` (value: `"wallets.transaction.succeeded"`)
+* `WALLETS_TRANSACTION_SUCCEEDED` (value: `"wallets.transaction.succeeded"`)
-* `MPC_TSS_REQUEST_CREATED` (value: `"wallets.mpc.tss_request.created"`)
+* `WALLETS_MPC_TSS_REQUEST_CREATED` (value: `"wallets.mpc.tss_request.created"`)
-* `MPC_TSS_REQUEST_UPDATED` (value: `"wallets.mpc.tss_request.updated"`)
+* `WALLETS_MPC_TSS_REQUEST_UPDATED` (value: `"wallets.mpc.tss_request.updated"`)
-* `MPC_TSS_REQUEST_FAILED` (value: `"wallets.mpc.tss_request.failed"`)
+* `WALLETS_MPC_TSS_REQUEST_FAILED` (value: `"wallets.mpc.tss_request.failed"`)
-* `MPC_TSS_REQUEST_SUCCEEDED` (value: `"wallets.mpc.tss_request.succeeded"`)
+* `WALLETS_MPC_TSS_REQUEST_SUCCEEDED` (value: `"wallets.mpc.tss_request.succeeded"`)
+
+* `WALLETS_ADDRESSES_CREATED` (value: `"wallets.addresses.created"`)
+
+* `WALLETS_CREATED` (value: `"wallets.created"`)
+
+* `MPC_VAULTS_CREATED` (value: `"mpc_vaults.created"`)
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)