@cobo/cobo-waas2 1.31.0 → 1.32.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 +5 -1
- package/dist/ApiClient.js +1 -1
- package/dist/api/AutoSweepApi.js +4 -4
- package/dist/api/FeeStationApi.js +4 -4
- package/dist/api/PaymentApi.js +53 -14
- package/dist/api/TransactionsApi.js +4 -4
- package/dist/api/WalletsApi.js +83 -0
- package/dist/index.js +14 -0
- package/dist/model/CreateDestinationBankAccount.js +26 -0
- package/dist/model/DestinationBankAccount.js +26 -0
- package/dist/model/DestinationBankAccountDetail.js +26 -0
- package/dist/model/IntermediaryBankInfo.js +4 -6
- package/dist/model/MerchantBalance.js +4 -6
- package/dist/model/ReportType.js +5 -0
- package/dist/model/TransactionDepositToAddressDestinationTxInfo.js +26 -0
- package/dist/model/TransactionRawTxInfo.js +32 -1
- package/dist/model/TransactionSelectedUtxo.js +39 -0
- package/dist/model/TransactionUtxoChange.js +13 -0
- package/dist/model/TriggerTestPaymentWebhookEventResponse.js +83 -0
- package/dist/model/TriggerTestPaymentsWebhookEventRequest.js +115 -0
- package/dist/model/UTXO.js +48 -0
- package/dist/model/UpdateDestinationBankAccount.js +26 -0
- package/dist/model/WebhookEventType.js +10 -0
- package/docs/AutoSweepApi.md +2 -2
- package/docs/CreateDestinationBankAccount.md +2 -0
- package/docs/DestinationBankAccount.md +2 -0
- package/docs/DestinationBankAccountDetail.md +2 -0
- package/docs/FeeStationApi.md +2 -2
- package/docs/IntermediaryBankInfo.md +1 -1
- package/docs/MerchantBalance.md +1 -1
- package/docs/PaymentApi.md +59 -6
- package/docs/ReportType.md +2 -0
- package/docs/TransactionDepositToAddressDestinationTxInfo.md +2 -0
- package/docs/TransactionRawTxInfo.md +2 -1
- package/docs/TransactionSelectedUtxo.md +3 -0
- package/docs/TransactionUtxoChange.md +1 -0
- package/docs/TransactionsApi.md +2 -2
- package/docs/TriggerTestPaymentWebhookEventResponse.md +9 -0
- package/docs/TriggerTestPaymentsWebhookEventRequest.md +10 -0
- package/docs/UTXO.md +4 -0
- package/docs/UpdateDestinationBankAccount.md +2 -0
- package/docs/WalletsApi.md +71 -0
- package/docs/WebhookEventType.md +4 -0
- package/package.json +1 -1
package/docs/PaymentApi.md
CHANGED
|
@@ -66,6 +66,7 @@ Method | HTTP request | Description
|
|
|
66
66
|
[**listTopUpPayerAccounts**](PaymentApi.md#listTopUpPayerAccounts) | **GET** /payments/topup/payer_accounts | List top-up payer accounts
|
|
67
67
|
[**listTopUpPayers**](PaymentApi.md#listTopUpPayers) | **GET** /payments/topup/payers | List payers
|
|
68
68
|
[**paymentEstimateFee**](PaymentApi.md#paymentEstimateFee) | **POST** /payments/estimate_fee | Estimate fees
|
|
69
|
+
[**triggerTestPaymentsWebhookEvent**](PaymentApi.md#triggerTestPaymentsWebhookEvent) | **POST** /payments/webhooks/trigger | Trigger test webhook event
|
|
69
70
|
[**updateBankAccountById**](PaymentApi.md#updateBankAccountById) | **PUT** /payments/bank_accounts/{bank_account_id} | Update bank account
|
|
70
71
|
[**updateCounterparty**](PaymentApi.md#updateCounterparty) | **PUT** /payments/counterparty/{counterparty_id} | Update counterparty
|
|
71
72
|
[**updateDestination**](PaymentApi.md#updateDestination) | **PUT** /payments/destination/{destination_id} | Update destination
|
|
@@ -2815,11 +2816,11 @@ Name | Type | Description | Notes
|
|
|
2815
2816
|
|
|
2816
2817
|
## listMerchantBalances
|
|
2817
2818
|
|
|
2818
|
-
> ListMerchantBalances200Response listMerchantBalances(
|
|
2819
|
+
> ListMerchantBalances200Response listMerchantBalances(opts)
|
|
2819
2820
|
|
|
2820
2821
|
List merchant balances
|
|
2821
2822
|
|
|
2822
|
-
|
|
2823
|
+
This operation retrieves merchant balance information. You need to specify at least one of `merchant_ids` or `token_id` to filter the results. <Note>Do not pass `acquiring_type` for this operation.</Note> For more information, refer to [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview).
|
|
2823
2824
|
|
|
2824
2825
|
### Example
|
|
2825
2826
|
|
|
@@ -2833,12 +2834,12 @@ apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
|
2833
2834
|
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
2834
2835
|
// Call the API
|
|
2835
2836
|
const apiInstance = new CoboWaas2.PaymentApi();
|
|
2836
|
-
const token_id = "ETH_USDT";
|
|
2837
2837
|
const opts = {
|
|
2838
2838
|
'merchant_ids': "M1001,M1002,M1003",
|
|
2839
|
+
'token_id': "ETH_USDT",
|
|
2839
2840
|
'acquiring_type': new CoboWaas2.AcquiringType()
|
|
2840
2841
|
};
|
|
2841
|
-
apiInstance.listMerchantBalances(
|
|
2842
|
+
apiInstance.listMerchantBalances(opts).then((data) => {
|
|
2842
2843
|
console.log('API called successfully. Returned data: ' + data);
|
|
2843
2844
|
}, (error) => {
|
|
2844
2845
|
console.error(error);
|
|
@@ -2851,8 +2852,8 @@ apiInstance.listMerchantBalances(token_id, opts).then((data) => {
|
|
|
2851
2852
|
|
|
2852
2853
|
Name | Type | Description | Notes
|
|
2853
2854
|
------------- | ------------- | ------------- | -------------
|
|
2854
|
-
**
|
|
2855
|
-
**
|
|
2855
|
+
**merchant_ids** | **String**| The comma-separated list of merchant IDs to filter by. At least one of `merchant_ids` or `token_id` must be provided. For more information about merchants, refer to [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview). | [optional]
|
|
2856
|
+
**token_id** | **String**| The token ID that identifies the cryptocurrency. At least one of `merchant_ids` or `token_id` must be provided. For a complete list of supported tokens, refer to [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview). | [optional]
|
|
2856
2857
|
**acquiring_type** | [**AcquiringType**](.md)| This parameter has been deprecated | [optional]
|
|
2857
2858
|
|
|
2858
2859
|
### Return type
|
|
@@ -3441,6 +3442,58 @@ Name | Type | Description | Notes
|
|
|
3441
3442
|
- **Accept**: application/json
|
|
3442
3443
|
|
|
3443
3444
|
|
|
3445
|
+
## triggerTestPaymentsWebhookEvent
|
|
3446
|
+
|
|
3447
|
+
> TriggerTestPaymentWebhookEventResponse triggerTestPaymentsWebhookEvent(opts)
|
|
3448
|
+
|
|
3449
|
+
Trigger test webhook event
|
|
3450
|
+
|
|
3451
|
+
This operation tests the functionality of your Payments webhook endpoint by triggering a test webhook event. The test event is sent to all endpoints you have registered on Cobo Portal. You need to specify the event type. By default, the payload contains dummy data with no impact on your real business transactions or activities. You can optionally provide the `override_data` property to customize the payload. For more information about Payments webhooks, see [Cobo Payments Guide](https://www.cobo.com/payments/en/guides/overview). For webhook event types and payload structure, refer to [List all webhook events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-webhook-events).
|
|
3452
|
+
|
|
3453
|
+
### Example
|
|
3454
|
+
|
|
3455
|
+
```javascript
|
|
3456
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
3457
|
+
// Initialize the API client
|
|
3458
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
3459
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
3460
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
3461
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
3462
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
3463
|
+
// Call the API
|
|
3464
|
+
const apiInstance = new CoboWaas2.PaymentApi();
|
|
3465
|
+
const opts = {
|
|
3466
|
+
'TriggerTestPaymentsWebhookEventRequest': new CoboWaas2.TriggerTestPaymentsWebhookEventRequest()
|
|
3467
|
+
};
|
|
3468
|
+
apiInstance.triggerTestPaymentsWebhookEvent(opts).then((data) => {
|
|
3469
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
3470
|
+
}, (error) => {
|
|
3471
|
+
console.error(error);
|
|
3472
|
+
});
|
|
3473
|
+
|
|
3474
|
+
```
|
|
3475
|
+
|
|
3476
|
+
### Parameters
|
|
3477
|
+
|
|
3478
|
+
|
|
3479
|
+
Name | Type | Description | Notes
|
|
3480
|
+
------------- | ------------- | ------------- | -------------
|
|
3481
|
+
**TriggerTestPaymentsWebhookEventRequest** | [**TriggerTestPaymentsWebhookEventRequest**](TriggerTestPaymentsWebhookEventRequest.md)| The request body used to trigger a test Payments webhook event. You need to specify the event type. You can optionally include the `override_data` property to customize the payload. The provided fields must match the webhook event data structure for the specified event type. | [optional]
|
|
3482
|
+
|
|
3483
|
+
### Return type
|
|
3484
|
+
|
|
3485
|
+
[**TriggerTestPaymentWebhookEventResponse**](TriggerTestPaymentWebhookEventResponse.md)
|
|
3486
|
+
|
|
3487
|
+
### Authorization
|
|
3488
|
+
|
|
3489
|
+
[CoboAuth](../README.md#CoboAuth)
|
|
3490
|
+
|
|
3491
|
+
### HTTP request headers
|
|
3492
|
+
|
|
3493
|
+
- **Content-Type**: application/json
|
|
3494
|
+
- **Accept**: application/json
|
|
3495
|
+
|
|
3496
|
+
|
|
3444
3497
|
## updateBankAccountById
|
|
3445
3498
|
|
|
3446
3499
|
> BankAccount updateBankAccountById(bank_account_id, opts)
|
package/docs/ReportType.md
CHANGED
|
@@ -5,5 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**vout_n** | **Number** | The output index of the UTXO. | [optional]
|
|
8
|
+
**object_id** | **String** | The ID of the blockchain object to spend (e.g., SUI Coin object). | [optional]
|
|
9
|
+
**version** | **String** | Object version number. | [optional]
|
|
8
10
|
|
|
9
11
|
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**selected_utxos** | [**[TransactionSelectedUtxo]**](TransactionSelectedUtxo.md) | The selected UTXOs to be consumed in the transaction. | [optional]
|
|
9
9
|
**raw_tx** | **String** | The raw transaction data. | [optional]
|
|
10
10
|
**unsigned_raw_tx** | **String** | The unsigned raw transaction data. | [optional]
|
|
11
|
-
**utxo_change** | [**TransactionUtxoChange**](TransactionUtxoChange.md) |
|
|
11
|
+
**utxo_change** | [**TransactionUtxoChange**](TransactionUtxoChange.md) | Deprecated. Use `utxo_changes` instead. | [optional]
|
|
12
|
+
**utxo_changes** | [**[TransactionUtxoChange]**](TransactionUtxoChange.md) | The UTXO change outputs in the transaction. | [optional]
|
|
12
13
|
|
|
13
14
|
|
|
@@ -6,9 +6,12 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**tx_hash** | **String** | The transaction hash of the UTXO. | [optional]
|
|
8
8
|
**vout_n** | **Number** | The output index of the UTXO. | [optional]
|
|
9
|
+
**token_id** | **String** | The token ID of the UTXO. | [optional]
|
|
9
10
|
**address** | **String** | The address of the UTXO. | [optional]
|
|
10
11
|
**value** | **String** | The value of the UTXO. | [optional]
|
|
11
12
|
**redeem_script** | **String** | The redeem script used in P2SH and P2WSH transactions. | [optional]
|
|
12
13
|
**revealed_script** | **String** | The revealed script used for Taproot script-path spend transaction. | [optional]
|
|
14
|
+
**object_id** | **String** | The ID of the blockchain object to spend (e.g., SUI Coin object). | [optional]
|
|
15
|
+
**version** | **String** | Object version number. | [optional]
|
|
13
16
|
|
|
14
17
|
|
|
@@ -6,5 +6,6 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**address** | **String** | The receiving address of the UTXO change output. | [optional]
|
|
8
8
|
**value** | **String** | The amount of the UTXO change output. | [optional]
|
|
9
|
+
**token_id** | **String** | The token ID of the UTXO change output. | [optional]
|
|
9
10
|
|
|
10
11
|
|
package/docs/TransactionsApi.md
CHANGED
|
@@ -775,8 +775,8 @@ Name | Type | Description | Notes
|
|
|
775
775
|
**wallet_type** | [**WalletType**](.md)| The wallet type. - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction) | [optional]
|
|
776
776
|
**wallet_subtype** | [**WalletSubtype**](.md)| The wallet subtype. - `Asset`: Custodial Wallets (Asset Wallets) - `Web3`: Custodial Wallets (Web3 Wallets) - `Main`: Exchange Wallets (Main Account) - `Sub`: Exchange Wallets (Sub Account) - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets) - `User-Controlled`: MPC Wallets (User-Controlled Wallets) - `Safe{Wallet}`: Smart Contract Wallets (Safe{Wallet}) | [optional]
|
|
777
777
|
**project_id** | **String**| (This parameter is only applicable to User-Controlled Wallets.) The project ID, which you can retrieve by calling [List all projects](https://www.cobo.com/developers/v2/api-references/wallets--mpc-wallets/list-all-projects). | [optional]
|
|
778
|
-
**min_created_timestamp** | **Number**| The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time. If not provided, the default value is 90 days before the current time. This default value is subject to change. | [optional]
|
|
779
|
-
**max_created_timestamp** | **Number**| The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time. If not provided, the default value is the current time. This default value is subject to change. | [optional]
|
|
778
|
+
**min_created_timestamp** | **Number**| The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or after the specified time. If you specify `min_created_timestamp` without specifying `max_created_timestamp`, `max_created_timestamp` is automatically set to `min_created_timestamp` + 90 days. If you specify both, the time range cannot exceed 90 days. If not provided, the default value is 90 days before the current time. This default value is subject to change. | [optional]
|
|
779
|
+
**max_created_timestamp** | **Number**| The time when the transaction was created, in Unix timestamp format, measured in milliseconds. You can use this parameter to filter transactions created on or before the specified time. If you specify `max_created_timestamp` without specifying `min_created_timestamp`, `min_created_timestamp` is automatically set to `max_created_timestamp` - 90 days. If you specify both, the time range cannot exceed 90 days. If not provided, the default value is the current time. This default value is subject to change. | [optional]
|
|
780
780
|
**limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
|
|
781
781
|
**before** | **String**| A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response. | [optional]
|
|
782
782
|
**after** | **String**| A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response. | [optional]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# CoboWaas2.TriggerTestPaymentWebhookEventResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**triggered** | **Boolean** | Whether a test webhook event was successfully triggered. - `true`: The test webhook event was successfully triggered. - `false`: The test webhook event could not be triggered. | [optional]
|
|
8
|
+
|
|
9
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.TriggerTestPaymentsWebhookEventRequest
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**event_type** | [**WebhookEventType**](WebhookEventType.md) | |
|
|
8
|
+
**override_data** | **Object** | An optional object to customize the webhook event payload. Include only the fields you want to override. The provided fields must match the webhook event data structure for the specified event type. For the full event data structure, refer to the `data.data` property in the response of [List all webhook events](https://www.cobo.com/developers/v2/api-references/developers--webhooks/list-all-webhook-events). If this property is omitted, a default payload is returned. | [optional]
|
|
9
|
+
|
|
10
|
+
|
package/docs/UTXO.md
CHANGED
|
@@ -13,5 +13,9 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**is_locked** | **Boolean** | Whether the UTXO is locked. | [optional]
|
|
14
14
|
**confirmed_number** | **Number** | The number of confirmations for the UTXO. | [optional]
|
|
15
15
|
**is_frozen** | **Boolean** | Whether the UTXO is frozen. | [optional]
|
|
16
|
+
**is_change** | **Boolean** | Whether the UTXO is a change output of a transaction. | [optional]
|
|
17
|
+
**chain_id** | **String** | The chain ID, which is the unique identifier of a blockchain. | [optional]
|
|
18
|
+
**object_id** | **String** | The ID of the blockchain object to spend (e.g., SUI Coin object). | [optional]
|
|
19
|
+
**version** | **String** | Object version number. | [optional]
|
|
16
20
|
|
|
17
21
|
|
|
@@ -15,5 +15,7 @@ Name | Type | Description | Notes
|
|
|
15
15
|
**iban_code** | **String** | The IBAN code of the bank account. | [optional]
|
|
16
16
|
**further_credit** | **String** | The further credit of the bank account. | [optional]
|
|
17
17
|
**intermediary_bank_info** | [**IntermediaryBankInfo**](IntermediaryBankInfo.md) | | [optional]
|
|
18
|
+
**country** | **String** | Beneficiary's country, in ISO 3166-1 alpha-3 format. | [optional]
|
|
19
|
+
**city** | **String** | Beneficiary's city. | [optional]
|
|
18
20
|
|
|
19
21
|
|
package/docs/WalletsApi.md
CHANGED
|
@@ -27,6 +27,7 @@ Method | HTTP request | Description
|
|
|
27
27
|
[**listTokenBalancesForAddress**](WalletsApi.md#listTokenBalancesForAddress) | **GET** /wallets/{wallet_id}/addresses/{address}/tokens | List token balances by address
|
|
28
28
|
[**listTokenBalancesForWallet**](WalletsApi.md#listTokenBalancesForWallet) | **GET** /wallets/{wallet_id}/tokens | List token balances by wallet
|
|
29
29
|
[**listTokenListingRequests**](WalletsApi.md#listTokenListingRequests) | **GET** /wallets/tokens/listing_requests | List token listing requests
|
|
30
|
+
[**listTransactionUtxos**](WalletsApi.md#listTransactionUtxos) | **GET** /wallets/{wallet_id}/transaction_utxos | List transaction UTXOs
|
|
30
31
|
[**listUtxos**](WalletsApi.md#listUtxos) | **GET** /wallets/{wallet_id}/utxos | List UTXOs
|
|
31
32
|
[**listWallets**](WalletsApi.md#listWallets) | **GET** /wallets | List all wallets
|
|
32
33
|
[**lockUtxos**](WalletsApi.md#lockUtxos) | **POST** /wallets/{wallet_id}/utxos/lock | Lock UTXOs
|
|
@@ -1320,6 +1321,76 @@ Name | Type | Description | Notes
|
|
|
1320
1321
|
- **Accept**: application/json
|
|
1321
1322
|
|
|
1322
1323
|
|
|
1324
|
+
## listTransactionUtxos
|
|
1325
|
+
|
|
1326
|
+
> ListUtxos200Response listTransactionUtxos(wallet_id, chain_id, tx_hash, opts)
|
|
1327
|
+
|
|
1328
|
+
List transaction UTXOs
|
|
1329
|
+
|
|
1330
|
+
The operation retrieves a list of UTXOs for a specified transaction of a wallet. You must specify the wallet, chain, and transaction hash. <Note>This operation is applicable to MPC and Custodial Web3 Wallets.</Note>
|
|
1331
|
+
|
|
1332
|
+
### Example
|
|
1333
|
+
|
|
1334
|
+
```javascript
|
|
1335
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
1336
|
+
// Initialize the API client
|
|
1337
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
1338
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
1339
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
1340
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
1341
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
1342
|
+
// Call the API
|
|
1343
|
+
const apiInstance = new CoboWaas2.WalletsApi();
|
|
1344
|
+
const wallet_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
|
|
1345
|
+
const chain_id = "ETH";
|
|
1346
|
+
const tx_hash = "dd7e1cecf6bbde1844ee1815b780711a1e306a718bcd23cd64401b48ef88eb83";
|
|
1347
|
+
const opts = {
|
|
1348
|
+
'is_change': false,
|
|
1349
|
+
'vout_n': 0,
|
|
1350
|
+
'token_id': "ETH_USDT",
|
|
1351
|
+
'address': "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
|
|
1352
|
+
'limit': 10,
|
|
1353
|
+
'before': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1",
|
|
1354
|
+
'after': "RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk"
|
|
1355
|
+
};
|
|
1356
|
+
apiInstance.listTransactionUtxos(wallet_id, chain_id, tx_hash, opts).then((data) => {
|
|
1357
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
1358
|
+
}, (error) => {
|
|
1359
|
+
console.error(error);
|
|
1360
|
+
});
|
|
1361
|
+
|
|
1362
|
+
```
|
|
1363
|
+
|
|
1364
|
+
### Parameters
|
|
1365
|
+
|
|
1366
|
+
|
|
1367
|
+
Name | Type | Description | Notes
|
|
1368
|
+
------------- | ------------- | ------------- | -------------
|
|
1369
|
+
**wallet_id** | **String**| The wallet ID. |
|
|
1370
|
+
**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). |
|
|
1371
|
+
**tx_hash** | **String**| The transaction hash to filter UTXOs by. |
|
|
1372
|
+
**is_change** | **Boolean**| Filter UTXOs by whether they are change outputs. | [optional]
|
|
1373
|
+
**vout_n** | **Number**| The output index of the UTXO to filter by. | [optional]
|
|
1374
|
+
**token_id** | **String**| The token ID, which is the unique identifier of a token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](https://www.cobo.com/developers/v2/api-references/wallets/list-enabled-tokens). | [optional]
|
|
1375
|
+
**address** | **String**| | [optional]
|
|
1376
|
+
**limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
|
|
1377
|
+
**before** | **String**| A cursor indicating the position before the current page. This value is generated by Cobo and returned in the response. If you are paginating forward from the beginning, you do not need to provide it on the first request. When paginating backward (to the previous page), you should pass the before value returned from the last response. | [optional]
|
|
1378
|
+
**after** | **String**| A cursor indicating the position after the current page. This value is generated by Cobo and returned in the response. You do not need to provide it on the first request. When paginating forward (to the next page), you should pass the after value returned from the last response. | [optional]
|
|
1379
|
+
|
|
1380
|
+
### Return type
|
|
1381
|
+
|
|
1382
|
+
[**ListUtxos200Response**](ListUtxos200Response.md)
|
|
1383
|
+
|
|
1384
|
+
### Authorization
|
|
1385
|
+
|
|
1386
|
+
[OAuth2](../README.md#OAuth2), [CoboAuth](../README.md#CoboAuth)
|
|
1387
|
+
|
|
1388
|
+
### HTTP request headers
|
|
1389
|
+
|
|
1390
|
+
- **Content-Type**: Not defined
|
|
1391
|
+
- **Accept**: application/json
|
|
1392
|
+
|
|
1393
|
+
|
|
1323
1394
|
## listUtxos
|
|
1324
1395
|
|
|
1325
1396
|
> ListUtxos200Response listUtxos(wallet_id, token_id, opts)
|
package/docs/WebhookEventType.md
CHANGED
|
@@ -85,6 +85,10 @@
|
|
|
85
85
|
|
|
86
86
|
* `payment.transaction.external.completed` (value: `"payment.transaction.external.completed"`)
|
|
87
87
|
|
|
88
|
+
* `payment.transaction.settlement_network.created` (value: `"payment.transaction.settlement_network.created"`)
|
|
89
|
+
|
|
90
|
+
* `payment.transaction.settlement_network.completed` (value: `"payment.transaction.settlement_network.completed"`)
|
|
91
|
+
|
|
88
92
|
* `compliance.disposition.status.updated` (value: `"compliance.disposition.status.updated"`)
|
|
89
93
|
|
|
90
94
|
* `compliance.kyt.screenings.status.updated` (value: `"compliance.kyt.screenings.status.updated"`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobo/cobo-waas2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.0",
|
|
4
4
|
"description": "The Cobo Wallet-as-a-Service (WaaS) 2.0 API is the latest version of Cobo's WaaS API offering. It enables you to access Cobo's full suite of crypto wallet technologies with powerful and flexible access controls. By encapsulating complex security protocols and streamlining blockchain interactions, this API allows you to concentrate on your core business activities without worrying about the safety of your assets. The WaaS 2.0 API presents the following key features: - A unified API for Cobo's [all four wallet types](https://manuals.cobo.com/en/portal/introduction#an-all-in-one-wallet-platform) - Support for 80+ chains and 3000+ tokens - A comprehensive selection of webhook events - Flexible usage models for MPC Wallets, including [Organization-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ocw/introduction) and [User-Controlled Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/ucw/introduction) - Programmatic control of smart contract wallets such as Safe{Wallet} with fine-grained access controls - Seamlessly transfer funds across multiple exchanges, including Binance, OKX, Bybit, Deribit, and more For more information about the WaaS 2.0 API, see [Introduction to WaaS 2.0](https://www.cobo.com/developers/v2/guides/overview/introduction). ",
|
|
5
5
|
"license": "GPL 2.0",
|
|
6
6
|
"main": "dist/index.js",
|