@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
package/docs/TransactionsApi.md
CHANGED
|
@@ -12,10 +12,11 @@ Method | HTTP request | Description
|
|
|
12
12
|
[**createTransferTransaction**](TransactionsApi.md#createTransferTransaction) | **POST** /transactions/transfer | Transfer token
|
|
13
13
|
[**dropTransactionById**](TransactionsApi.md#dropTransactionById) | **POST** /transactions/{transaction_id}/drop | Drop transaction
|
|
14
14
|
[**estimateFee**](TransactionsApi.md#estimateFee) | **POST** /transactions/estimate_fee | Estimate transaction fee
|
|
15
|
-
[**getTransactionApprovalDetail**](TransactionsApi.md#getTransactionApprovalDetail) | **GET** /transactions/{transaction_id}/approval_detail | Get transaction approval
|
|
15
|
+
[**getTransactionApprovalDetail**](TransactionsApi.md#getTransactionApprovalDetail) | **GET** /transactions/{transaction_id}/approval_detail | Get transaction approval details
|
|
16
16
|
[**getTransactionById**](TransactionsApi.md#getTransactionById) | **GET** /transactions/{transaction_id} | Get transaction information
|
|
17
17
|
[**listTransactions**](TransactionsApi.md#listTransactions) | **GET** /transactions | List all transactions
|
|
18
18
|
[**resendTransactionById**](TransactionsApi.md#resendTransactionById) | **POST** /transactions/{transaction_id}/resend | Resend transaction
|
|
19
|
+
[**signAndBroadcastTransactionById**](TransactionsApi.md#signAndBroadcastTransactionById) | **POST** /transactions/{transaction_id}/sign_and_broadcast | Sign and broadcast transaction
|
|
19
20
|
[**speedupTransactionById**](TransactionsApi.md#speedupTransactionById) | **POST** /transactions/{transaction_id}/speedup | Speed up transaction
|
|
20
21
|
|
|
21
22
|
|
|
@@ -64,7 +65,7 @@ Name | Type | Description | Notes
|
|
|
64
65
|
|
|
65
66
|
### Authorization
|
|
66
67
|
|
|
67
|
-
[
|
|
68
|
+
[OAuth2](../README.md#OAuth2)
|
|
68
69
|
|
|
69
70
|
### HTTP request headers
|
|
70
71
|
|
|
@@ -114,7 +115,7 @@ Name | Type | Description | Notes
|
|
|
114
115
|
|
|
115
116
|
### Authorization
|
|
116
117
|
|
|
117
|
-
[
|
|
118
|
+
[OAuth2](../README.md#OAuth2)
|
|
118
119
|
|
|
119
120
|
### HTTP request headers
|
|
120
121
|
|
|
@@ -168,7 +169,7 @@ Name | Type | Description | Notes
|
|
|
168
169
|
|
|
169
170
|
### Authorization
|
|
170
171
|
|
|
171
|
-
[
|
|
172
|
+
[OAuth2](../README.md#OAuth2)
|
|
172
173
|
|
|
173
174
|
### HTTP request headers
|
|
174
175
|
|
|
@@ -220,7 +221,7 @@ Name | Type | Description | Notes
|
|
|
220
221
|
|
|
221
222
|
### Authorization
|
|
222
223
|
|
|
223
|
-
[OAuth2](../README.md#OAuth2)
|
|
224
|
+
[OAuth2](../README.md#OAuth2)
|
|
224
225
|
|
|
225
226
|
### HTTP request headers
|
|
226
227
|
|
|
@@ -272,7 +273,7 @@ Name | Type | Description | Notes
|
|
|
272
273
|
|
|
273
274
|
### Authorization
|
|
274
275
|
|
|
275
|
-
[OAuth2](../README.md#OAuth2)
|
|
276
|
+
[OAuth2](../README.md#OAuth2)
|
|
276
277
|
|
|
277
278
|
### HTTP request headers
|
|
278
279
|
|
|
@@ -286,7 +287,7 @@ Name | Type | Description | Notes
|
|
|
286
287
|
|
|
287
288
|
Transfer token
|
|
288
289
|
|
|
289
|
-
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. <Note>If you make transfers from Custodial Wallets, do not set the fee-related properties
|
|
290
|
+
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. <Note>If you make transfers from Custodial Wallets (Asset Wallets) and Exchange Wallets, do not set the fee-related properties, as they will not take effects.</Note> <Note>You can transfer tokens to multiple addresses only if you use MPC Wallets as the transaction source. You should use the <code>utxo_outputs</code> property to specify the destination addresses.</Note> <Info>If you initiate a transaction from a Smart Contract Wallet, a relevant transaction will be triggered from the Delegate to the Cobo Safe's address of the Smart Contract Wallet, with a transfer amount of <code>0</code>.</Info>
|
|
290
291
|
|
|
291
292
|
### Example
|
|
292
293
|
|
|
@@ -324,7 +325,7 @@ Name | Type | Description | Notes
|
|
|
324
325
|
|
|
325
326
|
### Authorization
|
|
326
327
|
|
|
327
|
-
[OAuth2](../README.md#OAuth2)
|
|
328
|
+
[OAuth2](../README.md#OAuth2)
|
|
328
329
|
|
|
329
330
|
### HTTP request headers
|
|
330
331
|
|
|
@@ -378,7 +379,7 @@ Name | Type | Description | Notes
|
|
|
378
379
|
|
|
379
380
|
### Authorization
|
|
380
381
|
|
|
381
|
-
[
|
|
382
|
+
[OAuth2](../README.md#OAuth2)
|
|
382
383
|
|
|
383
384
|
### HTTP request headers
|
|
384
385
|
|
|
@@ -430,7 +431,7 @@ Name | Type | Description | Notes
|
|
|
430
431
|
|
|
431
432
|
### Authorization
|
|
432
433
|
|
|
433
|
-
[
|
|
434
|
+
[OAuth2](../README.md#OAuth2)
|
|
434
435
|
|
|
435
436
|
### HTTP request headers
|
|
436
437
|
|
|
@@ -442,7 +443,7 @@ Name | Type | Description | Notes
|
|
|
442
443
|
|
|
443
444
|
> TransactionApprovalDetail getTransactionApprovalDetail(transaction_id)
|
|
444
445
|
|
|
445
|
-
Get transaction approval
|
|
446
|
+
Get transaction approval details
|
|
446
447
|
|
|
447
448
|
This operation retrieves approval detailed information about a specified transaction.
|
|
448
449
|
|
|
@@ -530,7 +531,7 @@ Name | Type | Description | Notes
|
|
|
530
531
|
|
|
531
532
|
### Authorization
|
|
532
533
|
|
|
533
|
-
[
|
|
534
|
+
[OAuth2](../README.md#OAuth2)
|
|
534
535
|
|
|
535
536
|
### HTTP request headers
|
|
536
537
|
|
|
@@ -614,7 +615,7 @@ Name | Type | Description | Notes
|
|
|
614
615
|
|
|
615
616
|
### Authorization
|
|
616
617
|
|
|
617
|
-
[
|
|
618
|
+
[OAuth2](../README.md#OAuth2)
|
|
618
619
|
|
|
619
620
|
### HTTP request headers
|
|
620
621
|
|
|
@@ -668,7 +669,7 @@ Name | Type | Description | Notes
|
|
|
668
669
|
|
|
669
670
|
### Authorization
|
|
670
671
|
|
|
671
|
-
[
|
|
672
|
+
[OAuth2](../README.md#OAuth2)
|
|
672
673
|
|
|
673
674
|
### HTTP request headers
|
|
674
675
|
|
|
@@ -676,6 +677,56 @@ Name | Type | Description | Notes
|
|
|
676
677
|
- **Accept**: application/json
|
|
677
678
|
|
|
678
679
|
|
|
680
|
+
## signAndBroadcastTransactionById
|
|
681
|
+
|
|
682
|
+
> CreateTransferTransaction201Response signAndBroadcastTransactionById(transaction_id)
|
|
683
|
+
|
|
684
|
+
Sign and broadcast transaction
|
|
685
|
+
|
|
686
|
+
This operation signs and broadcasts a specified transaction. To call this operation, the following conditions must be met: - The `transaction_process_type` of the transaction must be set to `BuildOnly` when you call the [Transfer token](https://www.cobo.com/developers/v2/api-references/transactions/transfer-token) or [Call smart contract](https://www.cobo.com/developers/v2/api-references/transactions/call-smart-contract) operation. - The transaction status must be `Built`.
|
|
687
|
+
|
|
688
|
+
### Example
|
|
689
|
+
|
|
690
|
+
```javascript
|
|
691
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
692
|
+
// Initialize the API client
|
|
693
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
694
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
695
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
696
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
697
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
698
|
+
// Call the API
|
|
699
|
+
const apiInstance = new CoboWaas2.TransactionsApi();
|
|
700
|
+
const transaction_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
|
|
701
|
+
apiInstance.signAndBroadcastTransactionById(transaction_id).then((data) => {
|
|
702
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
703
|
+
}, (error) => {
|
|
704
|
+
console.error(error);
|
|
705
|
+
});
|
|
706
|
+
|
|
707
|
+
```
|
|
708
|
+
|
|
709
|
+
### Parameters
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
Name | Type | Description | Notes
|
|
713
|
+
------------- | ------------- | ------------- | -------------
|
|
714
|
+
**transaction_id** | **String**| The transaction ID. |
|
|
715
|
+
|
|
716
|
+
### Return type
|
|
717
|
+
|
|
718
|
+
[**CreateTransferTransaction201Response**](CreateTransferTransaction201Response.md)
|
|
719
|
+
|
|
720
|
+
### Authorization
|
|
721
|
+
|
|
722
|
+
[CoboAuth](../README.md#CoboAuth)
|
|
723
|
+
|
|
724
|
+
### HTTP request headers
|
|
725
|
+
|
|
726
|
+
- **Content-Type**: Not defined
|
|
727
|
+
- **Accept**: application/json
|
|
728
|
+
|
|
729
|
+
|
|
679
730
|
## speedupTransactionById
|
|
680
731
|
|
|
681
732
|
> CreateTransferTransaction201Response speedupTransactionById(transaction_id, opts)
|
|
@@ -722,7 +773,7 @@ Name | Type | Description | Notes
|
|
|
722
773
|
|
|
723
774
|
### Authorization
|
|
724
775
|
|
|
725
|
-
[
|
|
776
|
+
[OAuth2](../README.md#OAuth2)
|
|
726
777
|
|
|
727
778
|
### HTTP request headers
|
|
728
779
|
|
|
@@ -8,6 +8,7 @@ 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
|
**wallet_id** | **String** | The wallet ID. |
|
|
@@ -15,3 +16,16 @@ Name | Type | Description | Notes
|
|
|
15
16
|
**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. |
|
|
16
17
|
|
|
17
18
|
|
|
19
|
+
|
|
20
|
+
## Enum: ChangeOutputTypeEnum
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
* `Last` (value: `"Last"`)
|
|
24
|
+
|
|
25
|
+
* `First` (value: `"First"`)
|
|
26
|
+
|
|
27
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
package/docs/TransferParams.md
CHANGED
|
@@ -11,6 +11,20 @@ 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
|
+
**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
|
+
|
package/docs/TravelRuleApi.md
CHANGED
|
@@ -6,8 +6,8 @@ Method | HTTP request | Description
|
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
7
|
[**getTransactionLimitation**](TravelRuleApi.md#getTransactionLimitation) | **GET** /travel_rule/transaction/limitation | Retrieve transaction limitations
|
|
8
8
|
[**listSupportedCountries**](TravelRuleApi.md#listSupportedCountries) | **GET** /travel_rule/transaction/countries | List supported countries
|
|
9
|
-
[**submitDepositTravelRuleInfo**](TravelRuleApi.md#submitDepositTravelRuleInfo) | **POST** /travel_rule/transaction/deposit/travel_rule_info | Submit
|
|
10
|
-
[**submitWithdrawTravelRuleInfo**](TravelRuleApi.md#submitWithdrawTravelRuleInfo) | **POST** /travel_rule/transaction/withdraw/travel_rule_info | Submit
|
|
9
|
+
[**submitDepositTravelRuleInfo**](TravelRuleApi.md#submitDepositTravelRuleInfo) | **POST** /travel_rule/transaction/deposit/travel_rule_info | Submit Travel Rule information for deposits
|
|
10
|
+
[**submitWithdrawTravelRuleInfo**](TravelRuleApi.md#submitWithdrawTravelRuleInfo) | **POST** /travel_rule/transaction/withdraw/travel_rule_info | Submit Travel Rule information for withdrawals
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -17,7 +17,7 @@ Method | HTTP request | Description
|
|
|
17
17
|
|
|
18
18
|
Retrieve transaction limitations
|
|
19
19
|
|
|
20
|
-
This
|
|
20
|
+
This operation retrieves Travel Rule requirements and available options for a transaction based on its transaction type and ID. Use this endpoint before submitting Travel Rule information to understand the requirements and available options for your transaction.
|
|
21
21
|
|
|
22
22
|
### Example
|
|
23
23
|
|
|
@@ -47,7 +47,7 @@ apiInstance.getTransactionLimitation(transaction_type, transaction_id).then((dat
|
|
|
47
47
|
Name | Type | Description | Notes
|
|
48
48
|
------------- | ------------- | ------------- | -------------
|
|
49
49
|
**transaction_type** | **String**| The transaction type. Possible values include: - `DEPOSIT`: A deposit transaction. - `WITHDRAW`: A withdrawal transaction. |
|
|
50
|
-
**transaction_id** | **String**| The transaction ID |
|
|
50
|
+
**transaction_id** | **String**| The transaction ID. |
|
|
51
51
|
|
|
52
52
|
### Return type
|
|
53
53
|
|
|
@@ -55,7 +55,7 @@ Name | Type | Description | Notes
|
|
|
55
55
|
|
|
56
56
|
### Authorization
|
|
57
57
|
|
|
58
|
-
[OAuth2](../README.md#OAuth2)
|
|
58
|
+
[OAuth2](../README.md#OAuth2)
|
|
59
59
|
|
|
60
60
|
### HTTP request headers
|
|
61
61
|
|
|
@@ -69,7 +69,7 @@ Name | Type | Description | Notes
|
|
|
69
69
|
|
|
70
70
|
List supported countries
|
|
71
71
|
|
|
72
|
-
This operation retrieves
|
|
72
|
+
This operation retrieves a list of supported countries that can be used when submitting Travel Rule information. Use this endpoint to obtain valid country values for: - Place of incorporation of a legal entity - Place of birth of a natural person
|
|
73
73
|
|
|
74
74
|
### Example
|
|
75
75
|
|
|
@@ -101,7 +101,7 @@ This endpoint does not need any parameter.
|
|
|
101
101
|
|
|
102
102
|
### Authorization
|
|
103
103
|
|
|
104
|
-
[OAuth2](../README.md#OAuth2)
|
|
104
|
+
[OAuth2](../README.md#OAuth2)
|
|
105
105
|
|
|
106
106
|
### HTTP request headers
|
|
107
107
|
|
|
@@ -113,9 +113,9 @@ This endpoint does not need any parameter.
|
|
|
113
113
|
|
|
114
114
|
> SubmitDepositTravelRuleInfo201Response submitDepositTravelRuleInfo(opts)
|
|
115
115
|
|
|
116
|
-
Submit
|
|
116
|
+
Submit Travel Rule information for deposits
|
|
117
117
|
|
|
118
|
-
This operation
|
|
118
|
+
This operation submits Travel Rule information for a deposit transaction.
|
|
119
119
|
|
|
120
120
|
### Example
|
|
121
121
|
|
|
@@ -153,7 +153,7 @@ Name | Type | Description | Notes
|
|
|
153
153
|
|
|
154
154
|
### Authorization
|
|
155
155
|
|
|
156
|
-
[OAuth2](../README.md#OAuth2)
|
|
156
|
+
[OAuth2](../README.md#OAuth2)
|
|
157
157
|
|
|
158
158
|
### HTTP request headers
|
|
159
159
|
|
|
@@ -165,9 +165,9 @@ Name | Type | Description | Notes
|
|
|
165
165
|
|
|
166
166
|
> SubmitDepositTravelRuleInfo201Response submitWithdrawTravelRuleInfo(opts)
|
|
167
167
|
|
|
168
|
-
Submit
|
|
168
|
+
Submit Travel Rule information for withdrawals
|
|
169
169
|
|
|
170
|
-
This operation
|
|
170
|
+
This operation submits Travel Rule information for a withdrawal transaction.
|
|
171
171
|
|
|
172
172
|
### Example
|
|
173
173
|
|
|
@@ -205,7 +205,7 @@ Name | Type | Description | Notes
|
|
|
205
205
|
|
|
206
206
|
### Authorization
|
|
207
207
|
|
|
208
|
-
[OAuth2](../README.md#OAuth2)
|
|
208
|
+
[OAuth2](../README.md#OAuth2)
|
|
209
209
|
|
|
210
210
|
### HTTP request headers
|
|
211
211
|
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**destination_wallet_type** | [**DestinationWalletType**](DestinationWalletType.md) | |
|
|
8
|
-
**vendor_code** | **String** | The vendor code
|
|
8
|
+
**vendor_code** | **String** | The vendor code of the VASP. |
|
|
9
9
|
**vendor_vasp_id** | **String** | The unique identifier of the VASP. |
|
|
10
|
-
**vendor_vasp_name** | **String** | The vendor name
|
|
10
|
+
**vendor_vasp_name** | **String** | The vendor name. Use this field to specify the name of a vendor not listed. | [optional]
|
|
11
11
|
**entity_info** | [**TravelRuleDepositExchangesOrVASPEntityInfo**](TravelRuleDepositExchangesOrVASPEntityInfo.md) | |
|
|
12
12
|
|
|
13
13
|
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**selected_entity_type** | **String** | Specifies the type of entity associated with the transaction. |
|
|
7
|
+
**selected_entity_type** | **String** | Specifies the type of entity associated with the transaction. - `LEGAL`: Legal entity. - `NATURAL`: Natural person. |
|
|
8
8
|
**legal_name** | **String** | The legal name of the entity. |
|
|
9
|
-
**date_of_incorporation** | **Date** | The
|
|
10
|
-
**place_of_incorporation** | **String** | The place of incorporation of the entity. This field is required when: -
|
|
11
|
-
**first_name** | **String** | The first name of the
|
|
12
|
-
**last_name** | **String** | The last name of the
|
|
13
|
-
**date_of_birth** | **Date** | The date of birth of the
|
|
14
|
-
**place_of_birth** | **String** | The place of birth of the
|
|
9
|
+
**date_of_incorporation** | **Date** | The date of incorporation of the entity. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `LEGAL`. | [optional]
|
|
10
|
+
**place_of_incorporation** | **String** | The place of incorporation of the entity. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `LEGAL`. | [optional]
|
|
11
|
+
**first_name** | **String** | The first name of the natural person. |
|
|
12
|
+
**last_name** | **String** | The last name of the natural person. |
|
|
13
|
+
**date_of_birth** | **Date** | The date of birth of the natural person. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `NATURAL`. | [optional]
|
|
14
|
+
**place_of_birth** | **String** | The place of birth of the natural person. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `NATURAL`. | [optional]
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**selected_entity_type** | **String** |
|
|
7
|
+
**selected_entity_type** | **String** | The entity type. Possible values include: - `LEGAL`: Legal entity. - `NATURAL`: Natural person. |
|
|
8
8
|
**legal_name** | **String** | The legal name of the entity. |
|
|
9
|
-
**date_of_incorporation** | **Date** | The
|
|
10
|
-
**place_of_incorporation** | **String** | The place of incorporation of the entity. This field is required when: -
|
|
9
|
+
**date_of_incorporation** | **Date** | The date of incorporation of the entity. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `LEGAL`. | [optional]
|
|
10
|
+
**place_of_incorporation** | **String** | The place of incorporation of the entity. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `LEGAL`. | [optional]
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**selected_entity_type** | **String** | Specifies the type of entity associated with the transaction. |
|
|
8
|
-
**first_name** | **String** | The first name of the
|
|
9
|
-
**last_name** | **String** | The last name of the
|
|
10
|
-
**date_of_birth** | **Date** | The date of birth of the
|
|
11
|
-
**place_of_birth** | **String** | The place of birth of the
|
|
7
|
+
**selected_entity_type** | **String** | Specifies the type of entity associated with the transaction. - `LEGAL`: Legal entity. - `NATURAL`: Natural person. |
|
|
8
|
+
**first_name** | **String** | The first name of the natural person. |
|
|
9
|
+
**last_name** | **String** | The last name of the natural person. |
|
|
10
|
+
**date_of_birth** | **Date** | The date of birth of the natural person. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `NATURAL`. | [optional]
|
|
11
|
+
**place_of_birth** | **String** | The place of birth of the natural person. This field is required when either of the following conditions is met: - `is_threshold_reached` is `true` in the response of the [Retrieve transaction limitations](https://www.cobo.com/developers/v2/api-references/travelrule/retrieve-transaction-limitations) operation. - `selected_entity_type` is `NATURAL`. | [optional]
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**destination_wallet_type** | [**DestinationWalletType**](DestinationWalletType.md) | |
|
|
8
|
-
**vendor_code** | **String** | The vendor code
|
|
8
|
+
**vendor_code** | **String** | The vendor code of the VASP. |
|
|
9
9
|
**vendor_vasp_id** | **String** | The unique identifier of the VASP. |
|
|
10
|
-
**vendor_vasp_name** | **String** | The vendor name
|
|
10
|
+
**vendor_vasp_name** | **String** | The vendor name. Use this field to specify the name of a vendor not listed. | [optional]
|
|
11
11
|
**entity_info** | [**TravelRuleDepositExchangesOrVASPEntityInfo**](TravelRuleDepositExchangesOrVASPEntityInfo.md) | |
|
|
12
|
-
**self_custody_wallet_challenge** | **String** | The
|
|
13
|
-
**self_custody_wallet_address** | **String** | The address of the self-
|
|
14
|
-
**self_custody_wallet_sign** | **String** | The
|
|
12
|
+
**self_custody_wallet_challenge** | **String** | The message obtained from the `Retrieve transaction limitations` operation. This message is used to verify wallet ownership through signing. |
|
|
13
|
+
**self_custody_wallet_address** | **String** | The address of the self-custody wallet. |
|
|
14
|
+
**self_custody_wallet_sign** | **String** | The signature created by signing the challenge message with the wallet's private key. |
|
|
15
15
|
|
|
16
16
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**destination_wallet_type** | [**DestinationWalletType**](DestinationWalletType.md) | |
|
|
8
|
-
**vendor_code** | **String** | The vendor code
|
|
8
|
+
**vendor_code** | **String** | The vendor code of the exchange or virtual asset service provider (VASP). |
|
|
9
9
|
**vendor_vasp_id** | **String** | The unique identifier of the VASP. |
|
|
10
10
|
**entity_info** | [**TravelRuleWithdrawExchangesOrVASPEntityInfo**](TravelRuleWithdrawExchangesOrVASPEntityInfo.md) | |
|
|
11
11
|
|
|
@@ -6,11 +6,11 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**selected_entity_type** | [**SelectedEntityType**](SelectedEntityType.md) | |
|
|
8
8
|
**legal_name** | **String** | The legal name of the entity. |
|
|
9
|
-
**date_of_incorporation** | **Date** | The
|
|
9
|
+
**date_of_incorporation** | **Date** | The date of incorporation of the entity. | [optional]
|
|
10
10
|
**place_of_incorporation** | **String** | The place of incorporation of the entity. | [optional]
|
|
11
|
-
**first_name** | **String** | The first name of the
|
|
12
|
-
**last_name** | **String** | The last name of the
|
|
13
|
-
**date_of_birth** | **Date** | The date of birth of the
|
|
14
|
-
**place_of_birth** | **String** | The place of birth of the
|
|
11
|
+
**first_name** | **String** | The first name of the natural person. |
|
|
12
|
+
**last_name** | **String** | The last name of the natural person. |
|
|
13
|
+
**date_of_birth** | **Date** | The date of birth of the natural person. | [optional]
|
|
14
|
+
**place_of_birth** | **String** | The place of birth of the natural person. | [optional]
|
|
15
15
|
|
|
16
16
|
|
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**selected_entity_type** | [**SelectedEntityType**](SelectedEntityType.md) | |
|
|
8
8
|
**legal_name** | **String** | The legal name of the entity. |
|
|
9
|
-
**date_of_incorporation** | **Date** | The
|
|
9
|
+
**date_of_incorporation** | **Date** | The date of incorporation of the entity. | [optional]
|
|
10
10
|
**place_of_incorporation** | **String** | The place of incorporation of the entity. | [optional]
|
|
11
11
|
|
|
12
12
|
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**selected_entity_type** | [**SelectedEntityType**](SelectedEntityType.md) | |
|
|
8
|
-
**first_name** | **String** | The first name of the
|
|
9
|
-
**last_name** | **String** | The last name of the
|
|
10
|
-
**date_of_birth** | **Date** | The date of birth of the
|
|
11
|
-
**place_of_birth** | **String** | The place of birth of the
|
|
8
|
+
**first_name** | **String** | The first name of the natural person. |
|
|
9
|
+
**last_name** | **String** | The last name of the natural person. |
|
|
10
|
+
**date_of_birth** | **Date** | The date of birth of the natural person. | [optional]
|
|
11
|
+
**place_of_birth** | **String** | The place of birth of the natural person. | [optional]
|
|
12
12
|
|
|
13
13
|
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**destination_wallet_type** | [**DestinationWalletType**](DestinationWalletType.md) | |
|
|
8
|
-
**self_custody_wallet_challenge** | **String** | The
|
|
9
|
-
**self_custody_wallet_address** | **String** | The address of the self-
|
|
10
|
-
**self_custody_wallet_sign** | **String** | The
|
|
11
|
-
**vendor_code** | **String** | The vendor code
|
|
8
|
+
**self_custody_wallet_challenge** | **String** | The message obtained from the `Retrieve transaction limitations` operation. This message is used to verify wallet ownership through signing. |
|
|
9
|
+
**self_custody_wallet_address** | **String** | The address of the self-custody wallet. |
|
|
10
|
+
**self_custody_wallet_sign** | **String** | The signature created by signing the challenge message with the wallet's private key. |
|
|
11
|
+
**vendor_code** | **String** | The vendor code of the exchange or virtual asset service provider (VASP). |
|
|
12
12
|
**vendor_vasp_id** | **String** | The unique identifier of the VASP. |
|
|
13
13
|
**entity_info** | [**TravelRuleWithdrawExchangesOrVASPEntityInfo**](TravelRuleWithdrawExchangesOrVASPEntityInfo.md) | |
|
|
14
14
|
|
package/docs/Vasp.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**name** | **String** | The name
|
|
8
|
-
**vendor_code** | **String** | The
|
|
9
|
-
**vendor_vasp_id** | **String** | The
|
|
7
|
+
**name** | **String** | The VASP name. |
|
|
8
|
+
**vendor_code** | **String** | The vendor code of the VASP. |
|
|
9
|
+
**vendor_vasp_id** | **String** | The VASP ID. |
|
|
10
10
|
|
|
11
11
|
|