@cobo/cobo-waas2 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/README.md +31 -5
  2. package/dist/ApiClient.js +56 -6
  3. package/dist/ServerDemo.js +80 -0
  4. package/dist/api/DevelopersApi.js +79 -0
  5. package/dist/api/DevelopersWebhooksApi.js +2 -2
  6. package/dist/api/OAuthApi.js +8 -8
  7. package/dist/api/StakingsApi.js +91 -7
  8. package/dist/api/TransactionsApi.js +4 -4
  9. package/dist/api/WalletsApi.js +58 -57
  10. package/dist/crypto/Ed25519Signer.js +36 -0
  11. package/dist/crypto/Secp256k1Signer.js +36 -0
  12. package/dist/index.js +153 -13
  13. package/dist/model/Activity.js +4 -8
  14. package/dist/model/ActivityAction.js +20 -0
  15. package/dist/model/ActivityType.js +5 -0
  16. package/dist/model/AddressTransferDestination.js +2 -2
  17. package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +6 -17
  18. package/dist/model/AutoFuelType.js +61 -0
  19. package/dist/model/BabylonStakeEstimatedFee.js +118 -0
  20. package/dist/model/BabylonValidator.js +9 -12
  21. package/dist/model/CheckAddressChainsValidity200ResponseInner.js +121 -0
  22. package/dist/model/ContractCallParams.js +9 -0
  23. package/dist/model/CoreStakeExtra.js +170 -0
  24. package/dist/model/CoreStakingExtra.js +187 -0
  25. package/dist/model/CreateClaimActivity.js +139 -0
  26. package/dist/model/CreateClaimActivityRequest.js +182 -0
  27. package/dist/model/CreateSmartContractWalletParams.js +1 -1
  28. package/dist/model/CreateStakeActivity.js +4 -8
  29. package/dist/model/CreateStakeActivityExtra.js +94 -8
  30. package/dist/model/CreateStakeActivityRequest.js +5 -10
  31. package/dist/model/CreateUnstakeActivity.js +16 -0
  32. package/dist/model/CreateUnstakeActivityExtra.js +159 -0
  33. package/dist/model/CreateUnstakeActivityRequest.js +20 -0
  34. package/dist/model/CreateWithdrawActivity.js +0 -13
  35. package/dist/model/CreateWithdrawActivityRequest.js +0 -18
  36. package/dist/model/EstimateClaimFee.js +145 -0
  37. package/dist/model/EstimateContractCallFeeParams.js +6 -8
  38. package/dist/model/EstimateFeeParams.js +1 -1
  39. package/dist/model/EstimateStakeFee.js +5 -10
  40. package/dist/model/EstimateTransferFeeParams.js +4 -8
  41. package/dist/model/EstimateUnstakeFee.js +20 -0
  42. package/dist/model/EstimateWithdrawFee.js +0 -18
  43. package/dist/model/EstimatedEvmEip1559FeeSlow.js +3 -5
  44. package/dist/model/EstimatedEvmLegacyFeeSlow.js +3 -5
  45. package/dist/model/EstimatedFee.js +1 -1
  46. package/dist/model/EstimatedFixedFee.js +4 -4
  47. package/dist/model/EstimatedUtxoFeeSlow.js +3 -3
  48. package/dist/model/EthStakeEstimatedFee.js +112 -0
  49. package/dist/model/EthStakeExtra.js +131 -0
  50. package/dist/model/EthStakingExtra.js +162 -0
  51. package/dist/model/EthStakingExtraAllOfBeaconValidators.js +140 -0
  52. package/dist/model/EthUnstakeExtra.js +131 -0
  53. package/dist/model/FeeAmount.js +1 -1
  54. package/dist/model/FeeGasLimit.js +1 -2
  55. package/dist/model/FeeRate.js +1 -1
  56. package/dist/model/FixedFeeRate.js +2 -2
  57. package/dist/model/GetApiKeyInfo200Response.js +251 -0
  58. package/dist/model/GetStakingEstimationFee201Response.js +144 -43
  59. package/dist/model/GetStakingEstimationFeeRequest.js +41 -19
  60. package/dist/model/{GetToken200Response.js → GetToken2XXResponse.js} +21 -21
  61. package/dist/model/GetToken4XXResponse.js +12 -10
  62. package/dist/model/MPCDelegate.js +1 -1
  63. package/dist/model/MPCProject.js +4 -4
  64. package/dist/model/MpcTransferSource.js +2 -2
  65. package/dist/model/Pagination.js +2 -2
  66. package/dist/model/{RefreshToken201Response.js → RefreshToken2XXResponse.js} +21 -21
  67. package/dist/model/RoleScopes.js +128 -0
  68. package/dist/model/Scopes.js +142 -0
  69. package/dist/model/SmartContractWalletInfo.js +1 -1
  70. package/dist/model/StakingPoolId.js +81 -0
  71. package/dist/model/StakingPoolType.js +10 -0
  72. package/dist/model/Stakings.js +10 -14
  73. package/dist/model/StakingsExtra.js +95 -8
  74. package/dist/model/TransactionEvmEip1559Fee.js +2 -4
  75. package/dist/model/TransactionEvmLegacyFee.js +2 -4
  76. package/dist/model/TransactionFee.js +1 -2
  77. package/dist/model/TransactionRbf.js +9 -0
  78. package/dist/model/TransactionRbfSource.js +1 -1
  79. package/dist/model/TransactionRequestEvmEip1559Fee.js +2 -3
  80. package/dist/model/TransactionRequestEvmLegacyFee.js +2 -3
  81. package/dist/model/TransactionRequestFee.js +1 -2
  82. package/dist/model/TransactionRequestFixedFee.js +1 -1
  83. package/dist/model/TransactionRequestUtxoFee.js +1 -1
  84. package/dist/model/TransactionSource.js +1 -1
  85. package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +0 -13
  86. package/dist/model/TransferDestination.js +2 -2
  87. package/dist/model/TransferParams.js +9 -0
  88. package/docs/Activity.md +1 -1
  89. package/docs/ActivityAction.md +8 -0
  90. package/docs/ActivityType.md +2 -0
  91. package/docs/AddressTransferDestination.md +2 -2
  92. package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -2
  93. package/docs/AutoFuelType.md +12 -0
  94. package/docs/BabylonStakeEstimatedFee.md +12 -0
  95. package/docs/BabylonValidator.md +6 -4
  96. package/docs/CheckAddressChainsValidity200ResponseInner.md +10 -0
  97. package/docs/ContractCallParams.md +1 -0
  98. package/docs/CoreStakeExtra.md +13 -0
  99. package/docs/CoreStakingExtra.md +14 -0
  100. package/docs/CreateClaimActivity.md +11 -0
  101. package/docs/CreateClaimActivityRequest.md +12 -0
  102. package/docs/CreateStakeActivity.md +1 -1
  103. package/docs/CreateStakeActivityExtra.md +5 -0
  104. package/docs/CreateStakeActivityRequest.md +1 -1
  105. package/docs/CreateUnstakeActivity.md +1 -0
  106. package/docs/CreateUnstakeActivityExtra.md +10 -0
  107. package/docs/CreateUnstakeActivityRequest.md +1 -0
  108. package/docs/CreateWithdrawActivity.md +0 -1
  109. package/docs/CreateWithdrawActivityRequest.md +0 -1
  110. package/docs/DevelopersApi.md +55 -0
  111. package/docs/DevelopersWebhooksApi.md +1 -1
  112. package/docs/EstimateClaimFee.md +11 -0
  113. package/docs/EstimateContractCallFeeParams.md +2 -2
  114. package/docs/EstimateFeeParams.md +2 -2
  115. package/docs/EstimateStakeFee.md +1 -1
  116. package/docs/EstimateTransferFeeParams.md +2 -2
  117. package/docs/EstimateUnstakeFee.md +1 -0
  118. package/docs/EstimateWithdrawFee.md +0 -1
  119. package/docs/EstimatedEvmEip1559FeeSlow.md +1 -1
  120. package/docs/EstimatedEvmLegacyFeeSlow.md +1 -1
  121. package/docs/EstimatedFee.md +1 -1
  122. package/docs/EstimatedFixedFee.md +1 -1
  123. package/docs/EstimatedUtxoFeeSlow.md +1 -1
  124. package/docs/EthStakeEstimatedFee.md +11 -0
  125. package/docs/EthStakeExtra.md +10 -0
  126. package/docs/EthStakingExtra.md +11 -0
  127. package/docs/EthStakingExtraAllOfBeaconValidators.md +14 -0
  128. package/docs/EthUnstakeExtra.md +10 -0
  129. package/docs/FeeAmount.md +1 -1
  130. package/docs/FeeGasLimit.md +1 -1
  131. package/docs/FeeRate.md +1 -1
  132. package/docs/FixedFeeRate.md +1 -1
  133. package/docs/GetApiKeyInfo200Response.md +30 -0
  134. package/docs/GetStakingEstimationFee201Response.md +3 -0
  135. package/docs/GetStakingEstimationFeeRequest.md +3 -4
  136. package/docs/{GetToken200Response.md → GetToken2XXResponse.md} +1 -1
  137. package/docs/GetToken4XXResponse.md +1 -1
  138. package/docs/MPCProject.md +1 -1
  139. package/docs/MpcTransferSource.md +1 -1
  140. package/docs/OAuthApi.md +4 -4
  141. package/docs/Pagination.md +1 -1
  142. package/docs/PoolDetailsAllOfValidatorsInfo.md +6 -4
  143. package/docs/{RefreshToken201Response.md → RefreshToken2XXResponse.md} +1 -1
  144. package/docs/RoleScopes.md +10 -0
  145. package/docs/Scopes.md +13 -0
  146. package/docs/StakingPoolId.md +20 -0
  147. package/docs/StakingPoolType.md +4 -0
  148. package/docs/Stakings.md +2 -2
  149. package/docs/StakingsApi.md +108 -2
  150. package/docs/StakingsExtra.md +5 -0
  151. package/docs/TransactionEvmEip1559Fee.md +1 -1
  152. package/docs/TransactionEvmLegacyFee.md +1 -1
  153. package/docs/TransactionFee.md +1 -1
  154. package/docs/TransactionRbf.md +1 -0
  155. package/docs/TransactionRbfSource.md +1 -1
  156. package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
  157. package/docs/TransactionRequestEvmLegacyFee.md +1 -1
  158. package/docs/TransactionRequestFee.md +1 -1
  159. package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +0 -1
  160. package/docs/TransactionsApi.md +2 -2
  161. package/docs/TransferDestination.md +2 -2
  162. package/docs/TransferParams.md +1 -0
  163. package/docs/WalletsApi.md +54 -54
  164. package/package.json +4 -2
  165. package/dist/model/StakingsValidatorInfo.js +0 -140
  166. package/docs/StakingsValidatorInfo.md +0 -13
@@ -9,6 +9,6 @@ Name | Type | Description | Notes
9
9
  **name** | **String** | The project name. | [optional]
10
10
  **participants** | **Number** | The number of key share holders in the project. | [optional]
11
11
  **threshold** | **Number** | The number of key share holders required to sign an operation in the project. | [optional]
12
- **create_timestamp** | **Number** | The project's creation time in Unix timestamp format, measured in milliseconds. | [optional]
12
+ **created_timestamp** | **Number** | The project's creation time in Unix timestamp format, measured in milliseconds. | [optional]
13
13
 
14
14
 
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **source_type** | [**WalletSubtype**](WalletSubtype.md) | |
8
8
  **wallet_id** | **String** | The wallet ID. |
9
- **address** | **String** | The wallet address. | [optional]
9
+ **address** | **String** | The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. It is recommended to specify no more than 100 included UTXOs to ensure optimal transaction processing. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail. | [optional]
10
10
  **included_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
11
11
  **excluded_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
12
12
 
package/docs/OAuthApi.md CHANGED
@@ -11,7 +11,7 @@ Method | HTTP request | Description
11
11
 
12
12
  ## getToken
13
13
 
14
- > GetToken200Response getToken(client_id, org_id, grant_type)
14
+ > GetToken2XXResponse getToken(client_id, org_id, grant_type)
15
15
 
16
16
  Get Org Access Token
17
17
 
@@ -51,7 +51,7 @@ Name | Type | Description | Notes
51
51
 
52
52
  ### Return type
53
53
 
54
- [**GetToken200Response**](GetToken200Response.md)
54
+ [**GetToken2XXResponse**](GetToken2XXResponse.md)
55
55
 
56
56
  ### Authorization
57
57
 
@@ -65,7 +65,7 @@ Name | Type | Description | Notes
65
65
 
66
66
  ## refreshToken
67
67
 
68
- > RefreshToken201Response refreshToken(RefreshTokenRequest)
68
+ > RefreshToken2XXResponse refreshToken(RefreshTokenRequest)
69
69
 
70
70
  Refresh Org Access Token
71
71
 
@@ -101,7 +101,7 @@ Name | Type | Description | Notes
101
101
 
102
102
  ### Return type
103
103
 
104
- [**RefreshToken201Response**](RefreshToken201Response.md)
104
+ [**RefreshToken2XXResponse**](RefreshToken2XXResponse.md)
105
105
 
106
106
  ### Authorization
107
107
 
@@ -6,6 +6,6 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **before** | **String** | An object ID that serves as a starting point for retrieving data in reverse chronological order for the next request. If this property is empty, it means that you have reached the start of the data records. |
8
8
  **after** | **String** | An object ID that acts as a starting point for retrieving data in chronological order for the next request. If this property is empty, it means that you have reached the end of the data records. |
9
- **total_count** | **Number** | The total number of records that match the query, across all pages. |
9
+ **total_count** | **Number** | The total number of records that match the query criteria, unaffected by the pagination parameters (`before` , `after`, and `limit`). |
10
10
 
11
11
 
@@ -5,12 +5,12 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
8
- **icon_url** | **String** | The URL of the validator's icon. |
8
+ **icon_url** | **String** | The URL of the validator's icon. | [optional]
9
9
  **name** | **String** | The validator's name. |
10
10
  **priority** | **Number** | This property can be ignored. | [optional]
11
- **public_key** | **String** | The public key of the validator. |
12
- **commission_rate** | **Number** | The commission rate of the validator. |
13
- **supported_pos_chains** | **[String]** | A list of supported Proof-of-Stake (PoS) chains. |
11
+ **public_key** | **String** | The public key of the validator. | [optional]
12
+ **commission_rate** | **Number** | The commission rate of the validator. | [optional]
13
+ **supported_pos_chains** | **[String]** | A list of supported Proof-of-Stake (PoS) chains. | [optional]
14
14
 
15
15
 
16
16
 
@@ -21,6 +21,8 @@ Name | Type | Description | Notes
21
21
 
22
22
  * `Cosmos` (value: `"Cosmos"`)
23
23
 
24
+ * `Ethereum` (value: `"Ethereum"`)
25
+
24
26
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
25
27
 
26
28
 
@@ -1,4 +1,4 @@
1
- # CoboWaas2.RefreshToken201Response
1
+ # CoboWaas2.RefreshToken2XXResponse
2
2
 
3
3
  ## Properties
4
4
 
@@ -0,0 +1,10 @@
1
+ # CoboWaas2.RoleScopes
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **role_name** | **String** | The user role associated with this API key. |
8
+ **scopes** | [**Scopes**](Scopes.md) | |
9
+
10
+
package/docs/Scopes.md ADDED
@@ -0,0 +1,13 @@
1
+ # CoboWaas2.Scopes
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **wallet_types** | [**[WalletType]**](WalletType.md) | The list of wallet types that this API key can access. Possible values include: - `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) | [optional]
8
+ **wallet_subtypes** | [**[WalletSubtype]**](WalletSubtype.md) | The list of wallet sub-types that this API key can access. Possible values include: - `Asset`: Custodial Wallets (Asset Wallets). - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets). - `User-Controlled`: MPC Wallets (User-Controlled Wallets). - `Safe{Wallet}`: Smart Contract Wallets (Safe). - `Main`: Exchange Wallets (Main Account). - `Sub`: Exchange Wallets (Sub Account). | [optional]
9
+ **wallet_ids** | **[String]** | The list of wallet IDs that this API key can access. | [optional]
10
+ **vault_ids** | **[String]** | (Applicable to MPC Wallets only) The list of vault IDs that this API key can access. | [optional]
11
+ **project_ids** | **[String]** | (Applicable to MPC Wallets only) The list of project IDs that this API key can access. | [optional]
12
+
13
+
@@ -0,0 +1,20 @@
1
+ # CoboWaas2.StakingPoolId
2
+
3
+ ## Enum
4
+
5
+
6
+ * `babylon_btc_signet` (value: `"babylon_btc_signet"`)
7
+
8
+ * `babylon_btc` (value: `"babylon_btc"`)
9
+
10
+ * `beacon_eth` (value: `"beacon_eth"`)
11
+
12
+ * `beacon_eth_holesky` (value: `"beacon_eth_holesky"`)
13
+
14
+ * `core_btc` (value: `"core_btc"`)
15
+
16
+ * `core_xtn` (value: `"core_xtn"`)
17
+
18
+ * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
19
+
20
+
@@ -5,6 +5,10 @@
5
5
 
6
6
  * `Babylon` (value: `"Babylon"`)
7
7
 
8
+ * `ETHBeacon` (value: `"ETHBeacon"`)
9
+
10
+ * `CoreBTC` (value: `"CoreBTC"`)
11
+
8
12
  * `unknown_default_open_api` (value: `"unknown_default_open_api"`)
9
13
 
10
14
 
package/docs/Stakings.md CHANGED
@@ -8,12 +8,12 @@ Name | Type | Description | Notes
8
8
  **wallet_id** | **String** | The staker's wallet ID. |
9
9
  **address** | **String** | The staker's wallet address. |
10
10
  **amounts** | [**[AmountDetailsInner]**](AmountDetailsInner.md) | The details about the staking amount. |
11
- **pool_id** | **String** | The ID of the staking pool. |
11
+ **pool_id** | [**StakingPoolId**](StakingPoolId.md) | |
12
12
  **token_id** | **String** | The token ID. |
13
13
  **rewards_info** | **Object** | The information about the staking rewards. | [optional]
14
14
  **created_timestamp** | **Number** | The time when the staking position was created. |
15
15
  **updated_timestamp** | **Number** | The time when the staking position was last updated. |
16
- **validator_info** | [**StakingsValidatorInfo**](StakingsValidatorInfo.md) | |
16
+ **validator_info** | [**BabylonValidator**](BabylonValidator.md) | |
17
17
  **extra** | [**StakingsExtra**](StakingsExtra.md) | | [optional]
18
18
 
19
19
 
@@ -4,12 +4,14 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**createClaimActivity**](StakingsApi.md#createClaimActivity) | **POST** /stakings/activities/claim | Create claim activity
7
8
  [**createStakeActivity**](StakingsApi.md#createStakeActivity) | **POST** /stakings/activities/stake | Create stake activity
8
9
  [**createUnstakeActivity**](StakingsApi.md#createUnstakeActivity) | **POST** /stakings/activities/unstake | Create unstake activity
9
10
  [**createWithdrawActivity**](StakingsApi.md#createWithdrawActivity) | **POST** /stakings/activities/withdraw | Create withdraw activity
10
11
  [**getStakingActivityById**](StakingsApi.md#getStakingActivityById) | **GET** /stakings/activities/{activity_id} | Get staking activity details
11
12
  [**getStakingById**](StakingsApi.md#getStakingById) | **GET** /stakings/{staking_id} | Get staking position details
12
13
  [**getStakingEstimationFee**](StakingsApi.md#getStakingEstimationFee) | **POST** /stakings/estimate_fee | Estimate staking fees
14
+ [**getStakingEstimationFeeV2**](StakingsApi.md#getStakingEstimationFeeV2) | **POST** /stakings/estimate_fee_v2 | Estimate staking fees
13
15
  [**getStakingPoolById**](StakingsApi.md#getStakingPoolById) | **GET** /stakings/pools/{pool_id} | Get staking pool details
14
16
  [**listStakingActivities**](StakingsApi.md#listStakingActivities) | **GET** /stakings/activities | List staking activities
15
17
  [**listStakingPools**](StakingsApi.md#listStakingPools) | **GET** /stakings/pools | List staking pools
@@ -17,6 +19,58 @@ Method | HTTP request | Description
17
19
 
18
20
 
19
21
 
22
+ ## createClaimActivity
23
+
24
+ > CreateStakeActivity201Response createClaimActivity(opts)
25
+
26
+ Create claim activity
27
+
28
+ This operation creates a claim request. <Note>Currently, only the Ethereum Beacon protocol supports this operation.</Note> For some protocols, you can use the `fee` property in the request body to specify the maximum fee you are willing to pay. The transaction will fail if the actual fee exceeds the specified maximum fee.
29
+
30
+ ### Example
31
+
32
+ ```javascript
33
+ const CoboWaas2 = require('@cobo/cobo-waas2');
34
+ // Initialize the API client
35
+ const apiClient = CoboWaas2.ApiClient.instance
36
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
37
+ apiClient.setEnv(CoboWaas2.Env.DEV);
38
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
39
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
40
+ // Call the API
41
+ const apiInstance = new CoboWaas2.StakingsApi();
42
+ const opts = {
43
+ 'CreateClaimActivityRequest': new CoboWaas2.CreateClaimActivityRequest()
44
+ };
45
+ apiInstance.createClaimActivity(opts).then((data) => {
46
+ console.log('API called successfully. Returned data: ' + data);
47
+ }, (error) => {
48
+ console.error(error);
49
+ });
50
+
51
+ ```
52
+
53
+ ### Parameters
54
+
55
+
56
+ Name | Type | Description | Notes
57
+ ------------- | ------------- | ------------- | -------------
58
+ **CreateClaimActivityRequest** | [**CreateClaimActivityRequest**](CreateClaimActivityRequest.md)| The request body to create a staking request. | [optional]
59
+
60
+ ### Return type
61
+
62
+ [**CreateStakeActivity201Response**](CreateStakeActivity201Response.md)
63
+
64
+ ### Authorization
65
+
66
+ [CoboAuth](../README.md#CoboAuth)
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: application/json
71
+ - **Accept**: application/json
72
+
73
+
20
74
  ## createStakeActivity
21
75
 
22
76
  > CreateStakeActivity201Response createStakeActivity(opts)
@@ -257,7 +311,7 @@ apiInstance.getStakingById(staking_id).then((data) => {
257
311
 
258
312
  Name | Type | Description | Notes
259
313
  ------------- | ------------- | ------------- | -------------
260
- **staking_id** | **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-all-stakings). |
314
+ **staking_id** | **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). |
261
315
 
262
316
  ### Return type
263
317
 
@@ -279,7 +333,7 @@ Name | Type | Description | Notes
279
333
 
280
334
  Estimate staking fees
281
335
 
282
- 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 &#x60;fee.fee_rate&#x60; property in the request body to specify the fee rate you are willing to pay. The &#x60;fee.max_fee_amount&#x60; property in the request body will be ignored. &lt;Note&gt;For the Babylon protocol, you can only select UTXO as the fee model.&lt;/Note&gt;
336
+ &lt;Note&gt;This operation is deprecated. Please use the [updated version](/v2/api-references/stakings/estimate-staking-fees-1) instead.&lt;/Note&gt; 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 &#x60;fee.fee_rate&#x60; property in the request body to specify the fee rate you are willing to pay. The &#x60;fee.max_fee_amount&#x60; property in the request body will be ignored. &lt;Note&gt;For the Babylon protocol, you can only select UTXO as the fee model.&lt;/Note&gt;
283
337
 
284
338
  ### Example
285
339
 
@@ -325,6 +379,58 @@ Name | Type | Description | Notes
325
379
  - **Accept**: application/json
326
380
 
327
381
 
382
+ ## getStakingEstimationFeeV2
383
+
384
+ > EthStakeEstimatedFee getStakingEstimationFeeV2(opts)
385
+
386
+ Estimate staking fees
387
+
388
+ This operation calculates the fee required for a staking activity based on factors such as network congestion and transaction complexity. &lt;Note&gt;For the Babylon protocol, you can only select UTXO as the fee model.&lt;/Note&gt;
389
+
390
+ ### Example
391
+
392
+ ```javascript
393
+ const CoboWaas2 = require('@cobo/cobo-waas2');
394
+ // Initialize the API client
395
+ const apiClient = CoboWaas2.ApiClient.instance
396
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
397
+ apiClient.setEnv(CoboWaas2.Env.DEV);
398
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
399
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
400
+ // Call the API
401
+ const apiInstance = new CoboWaas2.StakingsApi();
402
+ const opts = {
403
+ 'GetStakingEstimationFeeRequest': new CoboWaas2.GetStakingEstimationFeeRequest()
404
+ };
405
+ apiInstance.getStakingEstimationFeeV2(opts).then((data) => {
406
+ console.log('API called successfully. Returned data: ' + data);
407
+ }, (error) => {
408
+ console.error(error);
409
+ });
410
+
411
+ ```
412
+
413
+ ### Parameters
414
+
415
+
416
+ Name | Type | Description | Notes
417
+ ------------- | ------------- | ------------- | -------------
418
+ **GetStakingEstimationFeeRequest** | [**GetStakingEstimationFeeRequest**](GetStakingEstimationFeeRequest.md)| The request body to get the estimated fee of a staking activity. | [optional]
419
+
420
+ ### Return type
421
+
422
+ [**EthStakeEstimatedFee**](EthStakeEstimatedFee.md)
423
+
424
+ ### Authorization
425
+
426
+ [CoboAuth](../README.md#CoboAuth)
427
+
428
+ ### HTTP request headers
429
+
430
+ - **Content-Type**: application/json
431
+ - **Accept**: application/json
432
+
433
+
328
434
  ## getStakingPoolById
329
435
 
330
436
  > PoolDetails getStakingPoolById(pool_id)
@@ -10,5 +10,10 @@ Name | Type | Description | Notes
10
10
  **unlock_block_height** | **Number** | The block height at which the bitcoins will be unlocked. | [optional]
11
11
  **stake_address** | **String** | The address receiving the staked bitcoins. | [optional]
12
12
  **unbond_address** | **String** | The address receiving the unlocked bitcoins. | [optional]
13
+ **beacon_validators** | [**[EthStakingExtraAllOfBeaconValidators]**](EthStakingExtraAllOfBeaconValidators.md) | The list of validator information. | [optional]
14
+ **staker_address** | **String** | The staker&#39;s Bitcoin address. |
15
+ **validator_address** | **String** | The validator&#39;s EVM address. |
16
+ **reward_address** | **String** | The EVM address to receive staking rewards. |
17
+ **timelock** | **Number** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. |
13
18
 
14
19
 
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **max_fee_per_gas** | **String** | The maximum gas fee per gas unit used on the chain, in wei. | [optional]
8
8
  **max_priority_fee_per_gas** | **String** | The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction. | [optional]
9
- **gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional] [default to &#39;21000&#39;]
9
+ **gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
10
10
  **fee_type** | [**FeeType**](FeeType.md) | |
11
11
  **token_id** | **String** | The token ID of the transaction fee. | [optional]
12
12
  **effective_gas_price** | **String** | The gas price (gas fee per gas unit) on the chain, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions. | [optional]
@@ -5,7 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **gas_price** | **String** | 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. | [optional]
8
- **gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional] [default to &#39;21000&#39;]
8
+ **gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
9
9
  **fee_type** | [**FeeType**](FeeType.md) | |
10
10
  **token_id** | **String** | The token ID of the transaction fee. | [optional]
11
11
  **fee_used** | **String** | The transaction fee. | [optional]
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  **gas_used** | **String** | The gas units used in the transaction. | [optional]
12
12
  **max_fee_per_gas** | **String** | The maximum gas fee per gas unit used on the chain, in wei. | [optional]
13
13
  **max_priority_fee_per_gas** | **String** | The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction. | [optional]
14
- **gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional] [default to &#39;21000&#39;]
14
+ **gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
15
15
  **gas_price** | **String** | 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. | [optional]
16
16
  **max_fee_amount** | **String** | The maximum fee that you are willing to pay for the transaction. The transaction will fail if the transaction fee exceeds the maximum fee. | [optional]
17
17
  **fee_rate** | **String** | 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. | [optional]
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
9
9
  **source** | [**TransactionRbfSource**](TransactionRbfSource.md) | | [optional]
10
10
  **category_names** | **[String]** | The custom category for you to identify your transactions. | [optional]
11
11
  **description** | **String** | The description of the RBF transaction. | [optional]
12
+ **auto_fuel** | [**AutoFuelType**](AutoFuelType.md) | | [optional]
12
13
 
13
14
 
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **source_type** | [**WalletSubtype**](WalletSubtype.md) | |
8
8
  **wallet_id** | **String** | The wallet ID. |
9
- **address** | **String** | The wallet address. | [optional]
9
+ **address** | **String** | The wallet address. If you want to specify the UTXOs to be used, please provide the &#x60;included_utxos&#x60; property. If you specify both the &#x60;address&#x60; and &#x60;included_utxos&#x60; properties, the specified included UTXOs must belong to the address. It is recommended to specify no more than 100 included UTXOs to ensure optimal transaction processing. You need to provide either the &#x60;address&#x60; or &#x60;included_utxos&#x60; property. If neither property is provided, the transfer will fail. | [optional]
10
10
  **included_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
11
11
  **excluded_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
12
12
 
@@ -8,6 +8,6 @@ Name | Type | Description | Notes
8
8
  **max_priority_fee_per_gas** | **String** | The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction. |
9
9
  **fee_type** | [**FeeType**](FeeType.md) | |
10
10
  **token_id** | **String** | The token ID of the transaction fee. |
11
- **gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional] [default to &#39;21000&#39;]
11
+ **gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
12
12
 
13
13
 
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
7
7
  **gas_price** | **String** | 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. |
8
8
  **fee_type** | [**FeeType**](FeeType.md) | |
9
9
  **token_id** | **String** | The token ID of the transaction fee. |
10
- **gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional] [default to &#39;21000&#39;]
10
+ **gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
11
11
 
12
12
 
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **fee_type** | [**FeeType**](FeeType.md) | |
8
8
  **token_id** | **String** | The token ID of the transaction fee. |
9
9
  **max_fee_amount** | **String** | The maximum fee that you are willing to pay for the transaction. The transaction will fail if the transaction fee exceeds the maximum fee. | [optional]
10
- **gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional] [default to &#39;21000&#39;]
10
+ **gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
11
11
  **max_fee_per_gas** | **String** | The maximum gas fee per gas unit used on the chain, in wei. |
12
12
  **max_priority_fee_per_gas** | **String** | The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction. |
13
13
  **gas_price** | **String** | 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. |
@@ -6,6 +6,5 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **address** | **String** | The destination address. | [optional]
8
8
  **amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is &#x60;1.5&#x60;. | [optional]
9
- **script** | **String** | The script of the output. It is a programmable code fragment that defines the conditions under which the UTXO can be spent. | [optional]
10
9
 
11
10
 
@@ -285,7 +285,7 @@ Name | Type | Description | Notes
285
285
 
286
286
  Transfer token
287
287
 
288
- The operation transfers your assets from a wallet created on Cobo Protal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. &lt;Note&gt;If you make transfers from Custodial Wallets, do not set the fee-related properties. Otherwise, the transaction will fail.&lt;/Note&gt; &lt;Note&gt;You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the &lt;code&gt;utxo_outputs&lt;/code&gt; property to specify the destination addresses.&lt;/Note&gt; &lt;Info&gt;If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe&#39;s address of the Smart Contract Wallet, with a transfer amount of &lt;code&gt;0&lt;/code&gt;.&lt;/Info&gt;
288
+ The operation transfers your assets from a wallet created on Cobo Portal to another address. You need to specify details such as the sender address and recipient address, token ID, and the amount to transfer. You can specify the fee-related properties to limit the transaction fee. A transaction request for tracking is returned upon successful operation. &lt;Note&gt;If you make transfers from Custodial Wallets, do not set the fee-related properties. Otherwise, the transaction will fail.&lt;/Note&gt; &lt;Note&gt;You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the &lt;code&gt;utxo_outputs&lt;/code&gt; property to specify the destination addresses.&lt;/Note&gt; &lt;Info&gt;If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe&#39;s address of the Smart Contract Wallet, with a transfer amount of &lt;code&gt;0&lt;/code&gt;.&lt;/Info&gt;
289
289
 
290
290
  ### Example
291
291
 
@@ -391,7 +391,7 @@ Name | Type | Description | Notes
391
391
 
392
392
  Estimate transaction fee
393
393
 
394
- This operation estimates the transaction fee rates of a token transfer or a contract call based on three different transaction speeds (slow, recommended, and fast), considering factors such as network congestion and transaction complexity. You need to specify the transaction information, including the request ID, request type, source address, destination address, and token ID of the transaction fee. The response can contain different properties based on the transaction fee model used by the chain, including EIP-1559 fee model, legacy fee model, UTXO fee model, and fixed fee model.
394
+ This operation estimates the transaction fee of a token transfer or a contract call based on the fee model that the chain uses, considering factors such as network congestion and transaction complexity. 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).
395
395
 
396
396
  ### Example
397
397
 
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
8
8
  **account_output** | [**AddressTransferDestinationAccountOutput**](AddressTransferDestinationAccountOutput.md) | | [optional]
9
9
  **utxo_outputs** | [**[AddressTransferDestinationUtxoOutputsInner]**](AddressTransferDestinationUtxoOutputsInner.md) | | [optional]
10
10
  **change_address** | **String** | The address used to receive the remaining funds or change from the transaction. | [optional]
11
- **force_internal** | **Boolean** | Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction request must be executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both &#x60;force_internal&#x60; and &#x60;force_internal&#x60; as &#x60;true&#x60;. | [optional]
12
- **force_external** | **Boolean** | Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction request must not be executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction request can be executed as a Cobo Loop transfer. Please do not set both &#x60;force_internal&#x60; and &#x60;force_internal&#x60; as &#x60;true&#x60;. | [optional]
11
+ **force_internal** | **Boolean** | Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction request must be executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both &#x60;force_internal&#x60; and &#x60;force_external&#x60; as &#x60;true&#x60;. | [optional]
12
+ **force_external** | **Boolean** | Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - &#x60;true&#x60;: The transaction request must not be executed as a Cobo Loop transfer. - &#x60;false&#x60;: The transaction request can be executed as a Cobo Loop transfer. Please do not set both &#x60;force_internal&#x60; and &#x60;force_external&#x60; as &#x60;true&#x60;. | [optional]
13
13
  **wallet_id** | **String** | The wallet ID. |
14
14
  **trading_account_type** | **String** | The trading account type. |
15
15
  **amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is &#x60;1.5&#x60;. |
@@ -11,5 +11,6 @@ Name | Type | Description | Notes
11
11
  **category_names** | **[String]** | The custom category for you to identify your transactions. | [optional]
12
12
  **description** | **String** | The description of the transfer. | [optional]
13
13
  **fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
14
+ **auto_fuel** | [**AutoFuelType**](AutoFuelType.md) | | [optional]
14
15
 
15
16
 
@@ -4,12 +4,12 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
+ [**checkAddressChainsValidity**](WalletsApi.md#checkAddressChainsValidity) | **GET** /wallets/check_address_chains_validity | Check address validity across chains
7
8
  [**checkAddressValidity**](WalletsApi.md#checkAddressValidity) | **GET** /wallets/check_address_validity | Check address validity
8
9
  [**checkAddressesValidity**](WalletsApi.md#checkAddressesValidity) | **GET** /wallets/check_addresses_validity | Check addresses validity
9
10
  [**createAddress**](WalletsApi.md#createAddress) | **POST** /wallets/{wallet_id}/addresses | Create addresses in wallet
10
11
  [**createWallet**](WalletsApi.md#createWallet) | **POST** /wallets | Create wallet
11
12
  [**deleteWalletById**](WalletsApi.md#deleteWalletById) | **POST** /wallets/{wallet_id}/delete | Delete wallet
12
- [**getAddress**](WalletsApi.md#getAddress) | **GET** /wallets/{wallet_id}/addresses/{address} | Get address information
13
13
  [**getChainById**](WalletsApi.md#getChainById) | **GET** /wallets/chains/{chain_id} | Get chain information
14
14
  [**getMaxTransferableValue**](WalletsApi.md#getMaxTransferableValue) | **GET** /wallets/{wallet_id}/max_transferable_value | Get maximum transferable value
15
15
  [**getTokenById**](WalletsApi.md#getTokenById) | **GET** /wallets/tokens/{token_id} | Get token information
@@ -29,6 +29,58 @@ Method | HTTP request | Description
29
29
 
30
30
 
31
31
 
32
+ ## checkAddressChainsValidity
33
+
34
+ > [CheckAddressChainsValidity200ResponseInner] checkAddressChainsValidity(address, chain_ids)
35
+
36
+ Check address validity across chains
37
+
38
+ This operation verifies if a given address is valid for a list of chains.
39
+
40
+ ### Example
41
+
42
+ ```javascript
43
+ const CoboWaas2 = require('@cobo/cobo-waas2');
44
+ // Initialize the API client
45
+ const apiClient = CoboWaas2.ApiClient.instance
46
+ // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
47
+ apiClient.setEnv(CoboWaas2.Env.DEV);
48
+ // Replace `<YOUR_PRIVATE_KEY>` with your private key
49
+ apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
50
+ // Call the API
51
+ const apiInstance = new CoboWaas2.WalletsApi();
52
+ const address = "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045";
53
+ const chain_ids = "BTC,ETH";
54
+ apiInstance.checkAddressChainsValidity(address, chain_ids).then((data) => {
55
+ console.log('API called successfully. Returned data: ' + data);
56
+ }, (error) => {
57
+ console.error(error);
58
+ });
59
+
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+
65
+ Name | Type | Description | Notes
66
+ ------------- | ------------- | ------------- | -------------
67
+ **address** | **String**| The wallet address. |
68
+ **chain_ids** | **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). |
69
+
70
+ ### Return type
71
+
72
+ [**[CheckAddressChainsValidity200ResponseInner]**](CheckAddressChainsValidity200ResponseInner.md)
73
+
74
+ ### Authorization
75
+
76
+ [CoboAuth](../README.md#CoboAuth)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: Not defined
81
+ - **Accept**: application/json
82
+
83
+
32
84
  ## checkAddressValidity
33
85
 
34
86
  > CheckAddressValidity200Response checkAddressValidity(chain_id, address)
@@ -289,58 +341,6 @@ Name | Type | Description | Notes
289
341
  - **Accept**: application/json
290
342
 
291
343
 
292
- ## getAddress
293
-
294
- > [AddressInfo] getAddress(wallet_id, address)
295
-
296
- Get address information
297
-
298
- This operation retrieves the detailed information about a specified address within a wallet.
299
-
300
- ### Example
301
-
302
- ```javascript
303
- const CoboWaas2 = require('@cobo/cobo-waas2');
304
- // Initialize the API client
305
- const apiClient = CoboWaas2.ApiClient.instance
306
- // Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
307
- apiClient.setEnv(CoboWaas2.Env.DEV);
308
- // Replace `<YOUR_PRIVATE_KEY>` with your private key
309
- apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
310
- // Call the API
311
- const apiInstance = new CoboWaas2.WalletsApi();
312
- const wallet_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
313
- const address = "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045";
314
- apiInstance.getAddress(wallet_id, address).then((data) => {
315
- console.log('API called successfully. Returned data: ' + data);
316
- }, (error) => {
317
- console.error(error);
318
- });
319
-
320
- ```
321
-
322
- ### Parameters
323
-
324
-
325
- Name | Type | Description | Notes
326
- ------------- | ------------- | ------------- | -------------
327
- **wallet_id** | **String**| The wallet ID. |
328
- **address** | **String**| The wallet address. |
329
-
330
- ### Return type
331
-
332
- [**[AddressInfo]**](AddressInfo.md)
333
-
334
- ### Authorization
335
-
336
- [CoboAuth](../README.md#CoboAuth)
337
-
338
- ### HTTP request headers
339
-
340
- - **Content-Type**: Not defined
341
- - **Accept**: application/json
342
-
343
-
344
344
  ## getChainById
345
345
 
346
346
  > ChainInfo getChainById(chain_id)
@@ -594,7 +594,7 @@ Name | Type | Description | Notes
594
594
  ------------- | ------------- | ------------- | -------------
595
595
  **wallet_id** | **String**| The wallet ID. |
596
596
  **chain_ids** | **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). | [optional]
597
- **addresses** | **String**| A list of wallet addresses, separated by comma. | [optional]
597
+ **addresses** | **String**| A list of wallet addresses, separated by comma. For addresses requiring a memo, append the memo after the address using the &#39;|&#39; separator (e.g., \&quot;address|memo\&quot;). | [optional]
598
598
  **limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
599
599
  **before** | **String**| An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify &#x60;before&#x60; as &#x60;RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1&#x60;, the request will retrieve a list of data objects that end before the object with the object ID &#x60;RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1&#x60;. You can set this parameter to the value of &#x60;pagination.before&#x60; in the response of the previous request. - If you set both &#x60;after&#x60; and &#x60;before&#x60;, an error will occur. - If you leave both &#x60;before&#x60; and &#x60;after&#x60; empty, the first page of data is returned. - If you set &#x60;before&#x60; to &#x60;infinity&#x60;, the last page of data is returned. | [optional]
600
600
  **after** | **String**| An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify &#x60;after&#x60; as &#x60;RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk&#x60;, the request will retrieve a list of data objects that start after the object with the object ID &#x60;RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk&#x60;. You can set this parameter to the value of &#x60;pagination.after&#x60; in the response of the previous request. - If you set both &#x60;after&#x60; and &#x60;before&#x60;, an error will occur. - If you leave both &#x60;before&#x60; and &#x60;after&#x60; empty, the first page of data is returned. | [optional]