@cobo/cobo-waas2 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -30
- package/dist/ApiClient.js +11 -1
- package/dist/api/AddressBooksApi.js +1 -1
- package/dist/api/DevelopersApi.js +3 -3
- package/dist/api/DevelopersWebhooksApi.js +8 -8
- package/dist/api/PrimeBrokerApi.js +317 -0
- package/dist/api/StakingsApi.js +12 -12
- package/dist/api/TransactionsApi.js +60 -16
- package/dist/api/TravelRuleApi.js +18 -18
- package/dist/api/WalletsApi.js +84 -13
- package/dist/api/WalletsExchangeWalletApi.js +1 -1
- package/dist/api/WalletsMPCWalletsApi.js +151 -39
- package/dist/api/WalletsSmartContractWalletsApi.js +1 -1
- package/dist/index.js +112 -7
- package/dist/model/ActivityExtra.js +5 -5
- package/dist/model/AddressBalance.js +129 -0
- package/dist/model/AddressTransferDestination.js +36 -0
- package/dist/model/ApprovalStatementStatus.js +81 -0
- package/dist/model/AssetBalance.js +6 -6
- package/dist/model/BTCEIP191MessageSignDestination.js +122 -0
- package/dist/model/BabylonStakingActivityDetailExtra.js +1 -1
- package/dist/model/{TokenBalanceBalance.js → Balance.js} +22 -22
- package/dist/model/ChangeGuardPubkey200Response.js +110 -0
- package/dist/model/ContractCallParams.js +36 -0
- package/dist/model/CoreStakingActivityDetailExtra.js +3 -3
- package/dist/model/CreateAddressRequest.js +28 -2
- package/dist/model/CreatePrimeBrokerAddress201Response.js +140 -0
- package/dist/model/CreatePrimeBrokerAddressRequest.js +107 -0
- package/dist/model/DeleteGuardPubkey201Response.js +110 -0
- package/dist/model/EthStakeEstimatedFee.js +1 -1
- package/dist/model/EthStakingActivityDetailExtra.js +1 -1
- package/dist/model/GetStakingEstimationFee201Response.js +1 -1
- package/dist/model/GetTransactionLimitation200Response.js +4 -4
- package/dist/model/GuardPubkeyStatus.js +91 -0
- package/dist/model/ListAddressBalancesByToken200Response.js +123 -0
- package/dist/model/ListKeyShareHolders200Response.js +123 -0
- package/dist/model/MessageSignDestination.js +70 -8
- package/dist/model/MessageSignDestinationType.js +12 -2
- package/dist/model/OrgInfo.js +3 -3
- package/dist/model/QueryApprovalStatement200Response.js +122 -0
- package/dist/model/QueryGuardPubkey200Response.js +129 -0
- package/dist/model/QueryGuardPubkey200ResponseAddressesInner.js +125 -0
- package/dist/model/RootPubkey.js +1 -1
- package/dist/model/SelfCustodyWallet.js +7 -7
- package/dist/model/SubWalletAssetBalance.js +6 -6
- package/dist/model/SubmitDepositTravelRuleInfo201Response.js +1 -1
- package/dist/model/TSSGroups.js +1 -1
- package/dist/model/TokenBalance.js +6 -6
- package/dist/model/TransactionDepositToAddressDestination.js +16 -0
- package/dist/model/TransactionDepositToAddressDestinationTxInfo.js +83 -0
- package/dist/model/TransactionDestination.js +6 -0
- package/dist/model/TransactionRawTxInfo.js +13 -0
- package/dist/model/TransactionSubStatus.js +5 -0
- package/dist/model/TransactionUserApprovalDetail.js +3 -3
- package/dist/model/TransferDestination.js +6 -0
- package/dist/model/TransferParams.js +36 -0
- package/dist/model/TravelRuleDepositExchangesOrVASP.js +4 -4
- package/dist/model/TravelRuleDepositExchangesOrVASPEntityInfo.js +7 -7
- package/dist/model/TravelRuleDepositLegalEntity.js +5 -5
- package/dist/model/TravelRuleDepositNaturalEntity.js +9 -9
- package/dist/model/TravelRuleDepositRequestTravelRuleInfo.js +5 -5
- package/dist/model/TravelRuleWithdrawExchangesOrVASP.js +3 -3
- package/dist/model/TravelRuleWithdrawExchangesOrVASPEntityInfo.js +5 -5
- package/dist/model/TravelRuleWithdrawLegalEntity.js +2 -2
- package/dist/model/TravelRuleWithdrawNaturalEntity.js +7 -7
- package/dist/model/TravelRuleWithdrawRequestTravelRuleInfo.js +4 -4
- package/dist/model/Vasp.js +7 -7
- package/docs/ActivityExtra.md +5 -5
- package/docs/AddressBalance.md +10 -0
- package/docs/AddressBooksApi.md +1 -1
- package/docs/AddressTransferDestination.md +14 -0
- package/docs/ApprovalStatementStatus.md +20 -0
- package/docs/AssetBalance.md +1 -1
- package/docs/BTCEIP191MessageSignDestination.md +10 -0
- package/docs/BabylonStakingActivityDetailExtra.md +1 -1
- package/docs/{TokenBalanceBalance.md → Balance.md} +1 -1
- package/docs/ChangeGuardPubkey200Response.md +9 -0
- package/docs/ContractCallParams.md +14 -0
- package/docs/CoreStakingActivityDetailExtra.md +3 -3
- package/docs/CreateAddressRequest.md +3 -1
- package/docs/CreatePrimeBrokerAddress201Response.md +10 -0
- package/docs/CreatePrimeBrokerAddressRequest.md +9 -0
- package/docs/DeleteGuardPubkey201Response.md +9 -0
- package/docs/DevelopersApi.md +3 -3
- package/docs/DevelopersWebhooksApi.md +8 -8
- package/docs/EthStakeEstimatedFee.md +1 -1
- package/docs/EthStakingActivityDetailExtra.md +1 -1
- package/docs/GetStakingEstimationFee201Response.md +1 -1
- package/docs/GetTransactionLimitation200Response.md +4 -4
- package/docs/GuardPubkeyStatus.md +24 -0
- package/docs/ListAddressBalancesByToken200Response.md +10 -0
- package/docs/ListKeyShareHolders200Response.md +10 -0
- package/docs/MessageSignDestination.md +1 -0
- package/docs/MessageSignDestinationType.md +6 -2
- package/docs/OrgInfo.md +1 -1
- package/docs/PrimeBrokerApi.md +318 -0
- package/docs/QueryApprovalStatement200Response.md +12 -0
- package/docs/QueryGuardPubkey200Response.md +11 -0
- package/docs/QueryGuardPubkey200ResponseAddressesInner.md +10 -0
- package/docs/RootPubkey.md +1 -1
- package/docs/SelfCustodyWallet.md +3 -3
- package/docs/StakingsApi.md +12 -12
- package/docs/SubWalletAssetBalance.md +1 -1
- package/docs/SubmitDepositTravelRuleInfo201Response.md +1 -1
- package/docs/TSSGroups.md +1 -1
- package/docs/TokenBalance.md +1 -1
- package/docs/TransactionDepositToAddressDestination.md +1 -0
- package/docs/TransactionDepositToAddressDestinationTxInfo.md +9 -0
- package/docs/TransactionDestination.md +1 -0
- package/docs/TransactionRawTxInfo.md +1 -0
- package/docs/TransactionSubStatus.md +2 -0
- package/docs/TransactionUserApprovalDetail.md +3 -3
- package/docs/TransactionsApi.md +66 -15
- package/docs/TransferDestination.md +14 -0
- package/docs/TransferParams.md +14 -0
- package/docs/TravelRuleApi.md +13 -13
- package/docs/TravelRuleDepositExchangesOrVASP.md +2 -2
- package/docs/TravelRuleDepositExchangesOrVASPEntityInfo.md +7 -7
- package/docs/TravelRuleDepositLegalEntity.md +3 -3
- package/docs/TravelRuleDepositNaturalEntity.md +5 -5
- package/docs/TravelRuleDepositRequestTravelRuleInfo.md +5 -5
- package/docs/TravelRuleWithdrawExchangesOrVASP.md +1 -1
- package/docs/TravelRuleWithdrawExchangesOrVASPEntityInfo.md +5 -5
- package/docs/TravelRuleWithdrawLegalEntity.md +1 -1
- package/docs/TravelRuleWithdrawNaturalEntity.md +4 -4
- package/docs/TravelRuleWithdrawRequestTravelRuleInfo.md +4 -4
- package/docs/Vasp.md +3 -3
- package/docs/WalletsApi.md +78 -13
- package/docs/WalletsExchangeWalletApi.md +1 -1
- package/docs/WalletsMPCWalletsApi.md +141 -27
- package/docs/WalletsSmartContractWalletsApi.md +1 -1
- package/package.json +1 -1
|
@@ -33,10 +33,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
var TravelRuleWithdrawExchangesOrVASP = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
35
|
* Constructs a new <code>TravelRuleWithdrawExchangesOrVASP</code>.
|
|
36
|
-
* Required
|
|
36
|
+
* Required information when withdrawing tokens to an exchange or other virtual asset service providers (VASP).
|
|
37
37
|
* @alias module:model/TravelRuleWithdrawExchangesOrVASP
|
|
38
38
|
* @param destination_wallet_type {module:model/DestinationWalletType}
|
|
39
|
-
* @param vendor_code {String} The vendor code
|
|
39
|
+
* @param vendor_code {String} The vendor code of the exchange or virtual asset service provider (VASP).
|
|
40
40
|
* @param vendor_vasp_id {String} The unique identifier of the VASP.
|
|
41
41
|
* @param entity_info {module:model/TravelRuleWithdrawExchangesOrVASPEntityInfo}
|
|
42
42
|
*/
|
|
@@ -137,7 +137,7 @@ TravelRuleWithdrawExchangesOrVASP.RequiredProperties = ["destination_wallet_type
|
|
|
137
137
|
TravelRuleWithdrawExchangesOrVASP.prototype['destination_wallet_type'] = undefined;
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
|
-
* The vendor code
|
|
140
|
+
* The vendor code of the exchange or virtual asset service provider (VASP).
|
|
141
141
|
* @member {String} vendor_code
|
|
142
142
|
*/
|
|
143
143
|
TravelRuleWithdrawExchangesOrVASP.prototype['vendor_code'] = undefined;
|
|
@@ -184,7 +184,7 @@ TravelRuleWithdrawExchangesOrVASPEntityInfo.prototype['selected_entity_type'] =
|
|
|
184
184
|
TravelRuleWithdrawExchangesOrVASPEntityInfo.prototype['legal_name'] = undefined;
|
|
185
185
|
|
|
186
186
|
/**
|
|
187
|
-
* The
|
|
187
|
+
* The date of incorporation of the entity.
|
|
188
188
|
* @member {Date} date_of_incorporation
|
|
189
189
|
*/
|
|
190
190
|
TravelRuleWithdrawExchangesOrVASPEntityInfo.prototype['date_of_incorporation'] = undefined;
|
|
@@ -196,25 +196,25 @@ TravelRuleWithdrawExchangesOrVASPEntityInfo.prototype['date_of_incorporation'] =
|
|
|
196
196
|
TravelRuleWithdrawExchangesOrVASPEntityInfo.prototype['place_of_incorporation'] = undefined;
|
|
197
197
|
|
|
198
198
|
/**
|
|
199
|
-
* The first name of the
|
|
199
|
+
* The first name of the natural person.
|
|
200
200
|
* @member {String} first_name
|
|
201
201
|
*/
|
|
202
202
|
TravelRuleWithdrawExchangesOrVASPEntityInfo.prototype['first_name'] = undefined;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
|
-
* The last name of the
|
|
205
|
+
* The last name of the natural person.
|
|
206
206
|
* @member {String} last_name
|
|
207
207
|
*/
|
|
208
208
|
TravelRuleWithdrawExchangesOrVASPEntityInfo.prototype['last_name'] = undefined;
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
|
-
* The date of birth of the
|
|
211
|
+
* The date of birth of the natural person.
|
|
212
212
|
* @member {Date} date_of_birth
|
|
213
213
|
*/
|
|
214
214
|
TravelRuleWithdrawExchangesOrVASPEntityInfo.prototype['date_of_birth'] = undefined;
|
|
215
215
|
|
|
216
216
|
/**
|
|
217
|
-
* The place of birth of the
|
|
217
|
+
* The place of birth of the natural person.
|
|
218
218
|
* @member {String} place_of_birth
|
|
219
219
|
*/
|
|
220
220
|
TravelRuleWithdrawExchangesOrVASPEntityInfo.prototype['place_of_birth'] = undefined;
|
|
@@ -32,7 +32,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
32
32
|
var TravelRuleWithdrawLegalEntity = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
34
34
|
* Constructs a new <code>TravelRuleWithdrawLegalEntity</code>.
|
|
35
|
-
*
|
|
35
|
+
* The required information of a legal entity.
|
|
36
36
|
* @alias module:model/TravelRuleWithdrawLegalEntity
|
|
37
37
|
* @param selected_entity_type {module:model/SelectedEntityType}
|
|
38
38
|
* @param legal_name {String} The legal name of the entity.
|
|
@@ -131,7 +131,7 @@ TravelRuleWithdrawLegalEntity.prototype['selected_entity_type'] = undefined;
|
|
|
131
131
|
TravelRuleWithdrawLegalEntity.prototype['legal_name'] = undefined;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
|
-
* The
|
|
134
|
+
* The date of incorporation of the entity.
|
|
135
135
|
* @member {Date} date_of_incorporation
|
|
136
136
|
*/
|
|
137
137
|
TravelRuleWithdrawLegalEntity.prototype['date_of_incorporation'] = undefined;
|
|
@@ -32,11 +32,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
32
32
|
var TravelRuleWithdrawNaturalEntity = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
34
34
|
* Constructs a new <code>TravelRuleWithdrawNaturalEntity</code>.
|
|
35
|
-
*
|
|
35
|
+
* The required information of a natural person.
|
|
36
36
|
* @alias module:model/TravelRuleWithdrawNaturalEntity
|
|
37
37
|
* @param selected_entity_type {module:model/SelectedEntityType}
|
|
38
|
-
* @param first_name {String} The first name of the
|
|
39
|
-
* @param last_name {String} The last name of the
|
|
38
|
+
* @param first_name {String} The first name of the natural person.
|
|
39
|
+
* @param last_name {String} The last name of the natural person.
|
|
40
40
|
*/
|
|
41
41
|
function TravelRuleWithdrawNaturalEntity(selected_entity_type, first_name, last_name) {
|
|
42
42
|
_classCallCheck(this, TravelRuleWithdrawNaturalEntity);
|
|
@@ -134,25 +134,25 @@ TravelRuleWithdrawNaturalEntity.RequiredProperties = ["selected_entity_type", "f
|
|
|
134
134
|
TravelRuleWithdrawNaturalEntity.prototype['selected_entity_type'] = undefined;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
|
-
* The first name of the
|
|
137
|
+
* The first name of the natural person.
|
|
138
138
|
* @member {String} first_name
|
|
139
139
|
*/
|
|
140
140
|
TravelRuleWithdrawNaturalEntity.prototype['first_name'] = undefined;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
|
-
* The last name of the
|
|
143
|
+
* The last name of the natural person.
|
|
144
144
|
* @member {String} last_name
|
|
145
145
|
*/
|
|
146
146
|
TravelRuleWithdrawNaturalEntity.prototype['last_name'] = undefined;
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
-
* The date of birth of the
|
|
149
|
+
* The date of birth of the natural person.
|
|
150
150
|
* @member {Date} date_of_birth
|
|
151
151
|
*/
|
|
152
152
|
TravelRuleWithdrawNaturalEntity.prototype['date_of_birth'] = undefined;
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
|
-
* The place of birth of the
|
|
155
|
+
* The place of birth of the natural person.
|
|
156
156
|
* @member {String} place_of_birth
|
|
157
157
|
*/
|
|
158
158
|
TravelRuleWithdrawNaturalEntity.prototype['place_of_birth'] = undefined;
|
|
@@ -179,25 +179,25 @@ _defineProperty(TravelRuleWithdrawRequestTravelRuleInfo, "fromJSON", function (j
|
|
|
179
179
|
TravelRuleWithdrawRequestTravelRuleInfo.prototype['destination_wallet_type'] = undefined;
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
|
-
* The
|
|
182
|
+
* The message obtained from the `Retrieve transaction limitations` operation. This message is used to verify wallet ownership through signing.
|
|
183
183
|
* @member {String} self_custody_wallet_challenge
|
|
184
184
|
*/
|
|
185
185
|
TravelRuleWithdrawRequestTravelRuleInfo.prototype['self_custody_wallet_challenge'] = undefined;
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
|
-
* The address of the self-
|
|
188
|
+
* The address of the self-custody wallet.
|
|
189
189
|
* @member {String} self_custody_wallet_address
|
|
190
190
|
*/
|
|
191
191
|
TravelRuleWithdrawRequestTravelRuleInfo.prototype['self_custody_wallet_address'] = undefined;
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
|
-
* The
|
|
194
|
+
* The signature created by signing the challenge message with the wallet's private key.
|
|
195
195
|
* @member {String} self_custody_wallet_sign
|
|
196
196
|
*/
|
|
197
197
|
TravelRuleWithdrawRequestTravelRuleInfo.prototype['self_custody_wallet_sign'] = undefined;
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
|
-
* The vendor code
|
|
200
|
+
* The vendor code of the exchange or virtual asset service provider (VASP).
|
|
201
201
|
* @member {String} vendor_code
|
|
202
202
|
*/
|
|
203
203
|
TravelRuleWithdrawRequestTravelRuleInfo.prototype['vendor_code'] = undefined;
|
package/dist/model/Vasp.js
CHANGED
|
@@ -31,11 +31,11 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
var Vasp = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
33
|
* Constructs a new <code>Vasp</code>.
|
|
34
|
-
* The information of
|
|
34
|
+
* The information of a virtual asset service provider (VASP).
|
|
35
35
|
* @alias module:model/Vasp
|
|
36
|
-
* @param name {String} The name
|
|
37
|
-
* @param vendor_code {String} The
|
|
38
|
-
* @param vendor_vasp_id {String} The
|
|
36
|
+
* @param name {String} The VASP name.
|
|
37
|
+
* @param vendor_code {String} The vendor code of the VASP.
|
|
38
|
+
* @param vendor_vasp_id {String} The VASP ID.
|
|
39
39
|
*/
|
|
40
40
|
function Vasp(name, vendor_code, vendor_vasp_id) {
|
|
41
41
|
_classCallCheck(this, Vasp);
|
|
@@ -122,19 +122,19 @@ var Vasp = /*#__PURE__*/function () {
|
|
|
122
122
|
Vasp.RequiredProperties = ["name", "vendor_code", "vendor_vasp_id"];
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
|
-
* The name
|
|
125
|
+
* The VASP name.
|
|
126
126
|
* @member {String} name
|
|
127
127
|
*/
|
|
128
128
|
Vasp.prototype['name'] = undefined;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* The
|
|
131
|
+
* The vendor code of the VASP.
|
|
132
132
|
* @member {String} vendor_code
|
|
133
133
|
*/
|
|
134
134
|
Vasp.prototype['vendor_code'] = undefined;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
|
-
* The
|
|
137
|
+
* The VASP ID.
|
|
138
138
|
* @member {String} vendor_vasp_id
|
|
139
139
|
*/
|
|
140
140
|
Vasp.prototype['vendor_vasp_id'] = undefined;
|
package/docs/ActivityExtra.md
CHANGED
|
@@ -7,14 +7,14 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
|
|
8
8
|
**finality_provider_public_key** | **String** | The public key of the finality provider. | [optional]
|
|
9
9
|
**stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. | [optional]
|
|
10
|
-
**auto_broadcast** | **Boolean** | 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]
|
|
10
|
+
**auto_broadcast** | **Boolean** | 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](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]
|
|
11
11
|
**param_version** | **Number** | The version of babylon global parameters. | [optional]
|
|
12
12
|
**withdraw_from_type** | [**ActivityType**](ActivityType.md) | | [optional]
|
|
13
13
|
**provider_name** | **String** | The name of the provider. | [optional]
|
|
14
|
-
**validator_pubkeys** | **[String]** | A list of public keys
|
|
14
|
+
**validator_pubkeys** | **[String]** | A list of public keys associated with the Ethereum validators for this unstaking operation. | [optional]
|
|
15
15
|
**timelock** | **Number** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. | [optional]
|
|
16
|
-
**change_address** | **String** | The change
|
|
17
|
-
**validator_address** | **String** | The validator
|
|
18
|
-
**reward_address** | **String** | The
|
|
16
|
+
**change_address** | **String** | The change address on the Bitcoin chain. If not provided, the source wallet's address will be used as the change address. | [optional]
|
|
17
|
+
**validator_address** | **String** | The validator's EVM address. | [optional]
|
|
18
|
+
**reward_address** | **String** | The EVM address to receive staking rewards. | [optional]
|
|
19
19
|
|
|
20
20
|
|
package/docs/AddressBooksApi.md
CHANGED
|
@@ -8,7 +8,21 @@ 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
|
+
**change_output_type** | **String** | The position of the change output in the transaction's outputs. Possible values are: - `Last`: The change output is placed at the end of the transaction's outputs. - `First`: The change output is placed at the beginning of the transaction's outputs. | [optional]
|
|
11
12
|
**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. - `true`: The transaction request must be executed as a Cobo Loop transfer. - `false`: The transaction request may not be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`. | [optional]
|
|
12
13
|
**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. - `true`: The transaction request must not be executed as a Cobo Loop transfer. - `false`: The transaction request can be executed as a Cobo Loop transfer. Please do not set both `force_internal` and `force_external` as `true`. | [optional]
|
|
13
14
|
|
|
14
15
|
|
|
16
|
+
|
|
17
|
+
## Enum: ChangeOutputTypeEnum
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
* `Last` (value: `"Last"`)
|
|
21
|
+
|
|
22
|
+
* `First` (value: `"First"`)
|
|
23
|
+
|
|
24
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# CoboWaas2.ApprovalStatementStatus
|
|
2
|
+
|
|
3
|
+
## Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* `UnSend` (value: `"UnSend"`)
|
|
7
|
+
|
|
8
|
+
* `WaitAudit` (value: `"WaitAudit"`)
|
|
9
|
+
|
|
10
|
+
* `Approve` (value: `"Approve"`)
|
|
11
|
+
|
|
12
|
+
* `Reject` (value: `"Reject"`)
|
|
13
|
+
|
|
14
|
+
* `Invalid` (value: `"Invalid"`)
|
|
15
|
+
|
|
16
|
+
* `Timeout` (value: `"Timeout"`)
|
|
17
|
+
|
|
18
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
19
|
+
|
|
20
|
+
|
package/docs/AssetBalance.md
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**asset_id** | **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. |
|
|
8
|
-
**balance** | [**
|
|
8
|
+
**balance** | [**Balance**](Balance.md) | |
|
|
9
9
|
|
|
10
10
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.BTCEIP191MessageSignDestination
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**destination_type** | [**MessageSignDestinationType**](MessageSignDestinationType.md) | |
|
|
8
|
+
**message** | **String** | The raw data of the message to be signed, encoded in Base64 format. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
|
|
8
8
|
**finality_provider_public_key** | **String** | The public key of the finality provider. | [optional]
|
|
9
9
|
**stake_block_time** | **Number** | The number of blocks that need to be processed before the locked tokens are unlocked and become accessible. | [optional]
|
|
10
|
-
**auto_broadcast** | **Boolean** | 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]
|
|
10
|
+
**auto_broadcast** | **Boolean** | 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](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]
|
|
11
11
|
**param_version** | **Number** | The version of babylon global parameters. | [optional]
|
|
12
12
|
**withdraw_from_type** | [**ActivityType**](ActivityType.md) | | [optional]
|
|
13
13
|
|
|
@@ -11,6 +11,20 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**description** | **String** | The description of the contract call transaction. | [optional]
|
|
12
12
|
**category_names** | **[String]** | The custom category for you to identify your transactions. | [optional]
|
|
13
13
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
|
|
14
|
+
**transaction_process_type** | **String** | Transaction processing type. Possible values are: - `AutoProcess` (default): After the transaction is constructed, it will be automatically signed and broadcast. - `BuildOnly`: Set to this value if you want to build the transaction first without automatically signing and broadcasting it. You can manually call the [Sign and broadcast transaction](https://www.cobo.com/developers/v2/api-references/transactions/sign-and-broadcast-transaction) operation to complete the signing and broadcasting process. | [optional]
|
|
14
15
|
**auto_fuel** | [**AutoFuelType**](AutoFuelType.md) | | [optional]
|
|
15
16
|
|
|
16
17
|
|
|
18
|
+
|
|
19
|
+
## Enum: TransactionProcessTypeEnum
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* `AutoProcess` (value: `"AutoProcess"`)
|
|
23
|
+
|
|
24
|
+
* `BuildOnly` (value: `"BuildOnly"`)
|
|
25
|
+
|
|
26
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
@@ -6,8 +6,8 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
|
|
8
8
|
**timelock** | **Number** | The Unix timestamp (in seconds) when the staking position will be unlocked and available for withdrawal. | [optional]
|
|
9
|
-
**change_address** | **String** | The change
|
|
10
|
-
**validator_address** | **String** | The validator
|
|
11
|
-
**reward_address** | **String** | The
|
|
9
|
+
**change_address** | **String** | The change address on the Bitcoin chain. If not provided, the source wallet's address will be used as the change address. | [optional]
|
|
10
|
+
**validator_address** | **String** | The validator's EVM address. | [optional]
|
|
11
|
+
**reward_address** | **String** | The EVM address to receive staking rewards. | [optional]
|
|
12
12
|
|
|
13
13
|
|
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**chain_id** | **String** | The chain ID, which is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-chains). |
|
|
8
|
-
**count** | **Number** | The number of addresses to create. | [default to 1]
|
|
8
|
+
**count** | **Number** | The number of addresses to create. This property will be ignored if you are generating tweaked Taproot addresses. | [default to 1]
|
|
9
|
+
**taproot_script_tree_hashes** | **[String]** | A list of script tree hashes used to generate a tweaked Taproot address. This property is required only if you want to generate tweaked Taproot addresses. | [optional]
|
|
10
|
+
**taproot_internal_address** | **String** | The original Taproot address to be tweaked. This property is required only if you want to generate tweaked Taproot addresses. | [optional]
|
|
9
11
|
**encoding** | [**AddressEncoding**](AddressEncoding.md) | | [optional]
|
|
10
12
|
|
|
11
13
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.CreatePrimeBrokerAddress201Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pubkey** | **String** | The Cobo Guard's public key. |
|
|
8
|
+
**addresses** | [**[QueryGuardPubkey200ResponseAddressesInner]**](QueryGuardPubkey200ResponseAddressesInner.md) | | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CoboWaas2.CreatePrimeBrokerAddressRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**addresses** | [**[QueryGuardPubkey200ResponseAddressesInner]**](QueryGuardPubkey200ResponseAddressesInner.md) | | [optional]
|
|
8
|
+
|
|
9
|
+
|
package/docs/DevelopersApi.md
CHANGED
|
@@ -48,7 +48,7 @@ This endpoint does not need any parameter.
|
|
|
48
48
|
|
|
49
49
|
### Authorization
|
|
50
50
|
|
|
51
|
-
[
|
|
51
|
+
[OAuth2](../README.md#OAuth2)
|
|
52
52
|
|
|
53
53
|
### HTTP request headers
|
|
54
54
|
|
|
@@ -114,7 +114,7 @@ Name | Type | Description | Notes
|
|
|
114
114
|
|
|
115
115
|
### Authorization
|
|
116
116
|
|
|
117
|
-
[
|
|
117
|
+
[OAuth2](../README.md#OAuth2)
|
|
118
118
|
|
|
119
119
|
### HTTP request headers
|
|
120
120
|
|
|
@@ -164,7 +164,7 @@ Name | Type | Description | Notes
|
|
|
164
164
|
|
|
165
165
|
### Authorization
|
|
166
166
|
|
|
167
|
-
[
|
|
167
|
+
[OAuth2](../README.md#OAuth2)
|
|
168
168
|
|
|
169
169
|
### HTTP request headers
|
|
170
170
|
|
|
@@ -61,7 +61,7 @@ Name | Type | Description | Notes
|
|
|
61
61
|
|
|
62
62
|
### Authorization
|
|
63
63
|
|
|
64
|
-
[OAuth2](../README.md#OAuth2)
|
|
64
|
+
[OAuth2](../README.md#OAuth2)
|
|
65
65
|
|
|
66
66
|
### HTTP request headers
|
|
67
67
|
|
|
@@ -111,7 +111,7 @@ Name | Type | Description | Notes
|
|
|
111
111
|
|
|
112
112
|
### Authorization
|
|
113
113
|
|
|
114
|
-
[
|
|
114
|
+
[OAuth2](../README.md#OAuth2)
|
|
115
115
|
|
|
116
116
|
### HTTP request headers
|
|
117
117
|
|
|
@@ -163,7 +163,7 @@ Name | Type | Description | Notes
|
|
|
163
163
|
|
|
164
164
|
### Authorization
|
|
165
165
|
|
|
166
|
-
[
|
|
166
|
+
[OAuth2](../README.md#OAuth2)
|
|
167
167
|
|
|
168
168
|
### HTTP request headers
|
|
169
169
|
|
|
@@ -223,7 +223,7 @@ Name | Type | Description | Notes
|
|
|
223
223
|
|
|
224
224
|
### Authorization
|
|
225
225
|
|
|
226
|
-
[
|
|
226
|
+
[OAuth2](../README.md#OAuth2)
|
|
227
227
|
|
|
228
228
|
### HTTP request headers
|
|
229
229
|
|
|
@@ -329,7 +329,7 @@ Name | Type | Description | Notes
|
|
|
329
329
|
|
|
330
330
|
### Authorization
|
|
331
331
|
|
|
332
|
-
[
|
|
332
|
+
[OAuth2](../README.md#OAuth2)
|
|
333
333
|
|
|
334
334
|
### HTTP request headers
|
|
335
335
|
|
|
@@ -391,7 +391,7 @@ Name | Type | Description | Notes
|
|
|
391
391
|
|
|
392
392
|
### Authorization
|
|
393
393
|
|
|
394
|
-
[
|
|
394
|
+
[OAuth2](../README.md#OAuth2)
|
|
395
395
|
|
|
396
396
|
### HTTP request headers
|
|
397
397
|
|
|
@@ -443,7 +443,7 @@ Name | Type | Description | Notes
|
|
|
443
443
|
|
|
444
444
|
### Authorization
|
|
445
445
|
|
|
446
|
-
[OAuth2](../README.md#OAuth2)
|
|
446
|
+
[OAuth2](../README.md#OAuth2)
|
|
447
447
|
|
|
448
448
|
### HTTP request headers
|
|
449
449
|
|
|
@@ -549,7 +549,7 @@ Name | Type | Description | Notes
|
|
|
549
549
|
|
|
550
550
|
### Authorization
|
|
551
551
|
|
|
552
|
-
[OAuth2](../README.md#OAuth2)
|
|
552
|
+
[OAuth2](../README.md#OAuth2)
|
|
553
553
|
|
|
554
554
|
### HTTP request headers
|
|
555
555
|
|
|
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | | [optional]
|
|
8
8
|
**fee** | [**EstimatedFee**](EstimatedFee.md) | | [optional]
|
|
9
9
|
**validator_pubkeys** | **[String]** | A list of public keys associated with the Ethereum validators for this staking operation. | [optional]
|
|
10
|
-
**core_btc_staking_address** | **String** | P2WSH address generated for this staking operation(
|
|
10
|
+
**core_btc_staking_address** | **String** | The P2WSH address generated for this staking operation (only applicable if the estimated fee is for CORE staking). | [optional]
|
|
11
11
|
|
|
12
12
|
|
|
@@ -6,6 +6,6 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
|
|
8
8
|
**provider_name** | **String** | The name of the provider. | [optional]
|
|
9
|
-
**validator_pubkeys** | **[String]** | A list of public keys
|
|
9
|
+
**validator_pubkeys** | **[String]** | A list of public keys associated with the Ethereum validators for this unstaking operation. | [optional]
|
|
10
10
|
|
|
11
11
|
|
|
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | | [optional]
|
|
8
8
|
**fee** | [**EstimatedFee**](EstimatedFee.md) | | [optional]
|
|
9
9
|
**validator_pubkeys** | **[String]** | A list of public keys associated with the Ethereum validators for this staking operation. | [optional]
|
|
10
|
-
**core_btc_staking_address** | **String** | P2WSH address generated for this staking operation(
|
|
10
|
+
**core_btc_staking_address** | **String** | The P2WSH address generated for this staking operation (only applicable if the estimated fee is for CORE staking). | [optional]
|
|
11
11
|
**fee_type** | [**FeeType**](FeeType.md) | | [optional]
|
|
12
12
|
**fee_amount** | **String** | The amount of the estimated fee. | [optional]
|
|
13
13
|
**token_id** | **String** | The token ID of the staking fee. | [optional]
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**vasp_list** | [**[Vasp]**](Vasp.md) | A list of
|
|
8
|
-
**is_threshold_reached** | **Boolean** | Indicates whether the transaction amount exceeds a predefined threshold.
|
|
9
|
-
**self_custody_wallet_challenge** | **String** | A human-readable, time-sensitive message to be signed by the wallet owner.
|
|
10
|
-
**connect_wallet_list** | **[String]** | A list of
|
|
7
|
+
**vasp_list** | [**[Vasp]**](Vasp.md) | A list of virtual asset service providers (VASP) you can select as the transaction source or destination. | [optional]
|
|
8
|
+
**is_threshold_reached** | **Boolean** | Indicates whether the transaction amount exceeds a predefined threshold. If exceeded, additional information is required when filling Travel Rule details. - `true`: Threshold exceeded. - `false`: Threshold not exceeded. | [optional]
|
|
9
|
+
**self_custody_wallet_challenge** | **String** | A human-readable, time-sensitive message to be signed by the wallet owner. The message contains key information 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]
|
|
10
|
+
**connect_wallet_list** | **[String]** | A list of self-custody wallet providers you can select as the transaction source or destination. | [optional]
|
|
11
11
|
|
|
12
12
|
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# CoboWaas2.GuardPubkeyStatus
|
|
2
|
+
|
|
3
|
+
## Enum
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
* `New` (value: `"New"`)
|
|
7
|
+
|
|
8
|
+
* `ChangeNew` (value: `"ChangeNew"`)
|
|
9
|
+
|
|
10
|
+
* `WaitSelfConfirm` (value: `"WaitSelfConfirm"`)
|
|
11
|
+
|
|
12
|
+
* `WaitConfirm` (value: `"WaitConfirm"`)
|
|
13
|
+
|
|
14
|
+
* `WaitActive` (value: `"WaitActive"`)
|
|
15
|
+
|
|
16
|
+
* `Active` (value: `"Active"`)
|
|
17
|
+
|
|
18
|
+
* `Freeze` (value: `"Freeze"`)
|
|
19
|
+
|
|
20
|
+
* `Invalid` (value: `"Invalid"`)
|
|
21
|
+
|
|
22
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
23
|
+
|
|
24
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.ListAddressBalancesByToken200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**data** | [**[AddressBalance]**](AddressBalance.md) | | [optional]
|
|
8
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.ListKeyShareHolders200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**data** | [**[KeyShareHolder]**](KeyShareHolder.md) | | [optional]
|
|
8
|
+
**pagination** | [**Pagination**](Pagination.md) | | [optional]
|
|
9
|
+
|
|
10
|
+
|
|
@@ -7,5 +7,6 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**destination_type** | [**MessageSignDestinationType**](MessageSignDestinationType.md) | |
|
|
8
8
|
**message** | **String** | The raw data of the message to be signed, encoded in Base64 format. |
|
|
9
9
|
**structured_data** | **{String: Object}** | The structured data to be signed, formatted as a JSON object according to the EIP-712 standard. |
|
|
10
|
+
**msg_hash** | **String** | Message hash to be signed, in hexadecimal format. |
|
|
10
11
|
|
|
11
12
|
|
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
## Enum
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
* `
|
|
6
|
+
* `EVM_EIP_191_Signature` (value: `"EVM_EIP_191_Signature"`)
|
|
7
7
|
|
|
8
|
-
* `
|
|
8
|
+
* `EVM_EIP_712_Signature` (value: `"EVM_EIP_712_Signature"`)
|
|
9
|
+
|
|
10
|
+
* `BTC_EIP_191_Signature` (value: `"BTC_EIP_191_Signature"`)
|
|
11
|
+
|
|
12
|
+
* `Raw_Message_Signature` (value: `"Raw_Message_Signature"`)
|
|
9
13
|
|
|
10
14
|
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
11
15
|
|