@cobo/cobo-waas2 1.5.0 → 1.6.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 +15 -4
- package/dist/ApiClient.js +1 -1
- package/dist/ServerDemo.js +80 -0
- package/dist/api/DevelopersApi.js +79 -0
- package/dist/api/OAuthApi.js +8 -8
- package/dist/api/WalletsApi.js +58 -57
- package/dist/index.js +83 -6
- package/dist/model/AddressTransferDestination.js +2 -2
- package/dist/model/AddressTransferDestinationUtxoOutputsInner.js +6 -17
- package/dist/model/BabylonStakeEstimatedFee.js +118 -0
- package/dist/model/BabylonValidator.js +5 -0
- package/dist/model/CheckAddressChainsValidity200ResponseInner.js +121 -0
- package/dist/model/CreateSmartContractWalletParams.js +1 -1
- package/dist/model/CreateStakeActivityExtra.js +42 -8
- package/dist/model/CreateUnstakeActivity.js +16 -0
- package/dist/model/CreateUnstakeActivityExtra.js +159 -0
- package/dist/model/CreateUnstakeActivityRequest.js +20 -0
- package/dist/model/EstimateContractCallFeeParams.js +4 -6
- package/dist/model/EstimateTransferFeeParams.js +4 -8
- package/dist/model/EstimateUnstakeFee.js +20 -0
- package/dist/model/EstimatedEvmEip1559FeeSlow.js +3 -5
- package/dist/model/EstimatedEvmLegacyFeeSlow.js +3 -5
- package/dist/model/EthStakeEstimatedFee.js +112 -0
- package/dist/model/EthStakeExtra.js +131 -0
- package/dist/model/EthStakingExtra.js +131 -0
- package/dist/model/EthUnstakeExtra.js +131 -0
- package/dist/model/FeeGasLimit.js +1 -2
- package/dist/model/GetApiKeyInfo200Response.js +251 -0
- package/dist/model/GetStakingEstimationFee201Response.js +144 -43
- package/dist/model/GetStakingEstimationFeeRequest.js +2 -2
- package/dist/model/{GetToken200Response.js → GetToken2XXResponse.js} +21 -21
- package/dist/model/GetToken4XXResponse.js +12 -10
- package/dist/model/MPCDelegate.js +1 -1
- package/dist/model/MpcTransferSource.js +2 -2
- package/dist/model/{RefreshToken201Response.js → RefreshToken2XXResponse.js} +21 -21
- package/dist/model/RoleScopes.js +128 -0
- package/dist/model/Scopes.js +142 -0
- package/dist/model/SmartContractWalletInfo.js +1 -1
- package/dist/model/StakingPoolType.js +5 -0
- package/dist/model/StakingsExtra.js +36 -8
- package/dist/model/TransactionEvmEip1559Fee.js +2 -4
- package/dist/model/TransactionEvmLegacyFee.js +2 -4
- package/dist/model/TransactionFee.js +1 -2
- package/dist/model/TransactionRbfSource.js +1 -1
- package/dist/model/TransactionRequestEvmEip1559Fee.js +1 -2
- package/dist/model/TransactionRequestEvmLegacyFee.js +1 -2
- package/dist/model/TransactionRequestFee.js +1 -2
- package/dist/model/TransactionSource.js +1 -1
- package/dist/model/TransactionTransferToAddressDestinationUtxoOutputsInner.js +0 -13
- package/dist/model/TransferDestination.js +2 -2
- package/docs/AddressTransferDestination.md +2 -2
- package/docs/AddressTransferDestinationUtxoOutputsInner.md +1 -2
- package/docs/BabylonStakeEstimatedFee.md +12 -0
- package/docs/BabylonValidator.md +2 -0
- package/docs/CheckAddressChainsValidity200ResponseInner.md +10 -0
- package/docs/CreateStakeActivityExtra.md +1 -0
- package/docs/CreateUnstakeActivity.md +1 -0
- package/docs/CreateUnstakeActivityExtra.md +10 -0
- package/docs/CreateUnstakeActivityRequest.md +1 -0
- package/docs/DevelopersApi.md +55 -0
- package/docs/EstimateContractCallFeeParams.md +1 -1
- package/docs/EstimateFeeParams.md +1 -1
- package/docs/EstimateTransferFeeParams.md +2 -2
- package/docs/EstimateUnstakeFee.md +1 -0
- package/docs/EstimatedEvmEip1559FeeSlow.md +1 -1
- package/docs/EstimatedEvmLegacyFeeSlow.md +1 -1
- package/docs/EthStakeEstimatedFee.md +11 -0
- package/docs/EthStakeExtra.md +10 -0
- package/docs/EthStakingExtra.md +10 -0
- package/docs/EthUnstakeExtra.md +10 -0
- package/docs/FeeGasLimit.md +1 -1
- package/docs/GetApiKeyInfo200Response.md +30 -0
- package/docs/GetStakingEstimationFee201Response.md +3 -0
- package/docs/GetStakingEstimationFeeRequest.md +1 -1
- package/docs/{GetToken200Response.md → GetToken2XXResponse.md} +1 -1
- package/docs/GetToken4XXResponse.md +1 -1
- package/docs/MpcTransferSource.md +1 -1
- package/docs/OAuthApi.md +4 -4
- package/docs/PoolDetailsAllOfValidatorsInfo.md +2 -0
- package/docs/{RefreshToken201Response.md → RefreshToken2XXResponse.md} +1 -1
- package/docs/RoleScopes.md +10 -0
- package/docs/Scopes.md +13 -0
- package/docs/StakingPoolType.md +2 -0
- package/docs/TransactionEvmEip1559Fee.md +1 -1
- package/docs/TransactionEvmLegacyFee.md +1 -1
- package/docs/TransactionFee.md +1 -1
- package/docs/TransactionRbfSource.md +1 -1
- package/docs/TransactionRequestEvmEip1559Fee.md +1 -1
- package/docs/TransactionRequestEvmLegacyFee.md +1 -1
- package/docs/TransactionRequestFee.md +1 -1
- package/docs/TransactionTransferToAddressDestinationUtxoOutputsInner.md +0 -1
- package/docs/TransferDestination.md +2 -2
- package/docs/WalletsApi.md +54 -54
- package/package.json +2 -1
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**staking_id** | **String** | The ID of the corresponding staking position. |
|
|
9
9
|
**amount** | **String** | The amount to unstake. For the Babylon protocol, this property is ignored. | [optional]
|
|
10
10
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
|
|
11
|
+
**extra** | [**CreateUnstakeActivityExtra**](CreateUnstakeActivityExtra.md) | | [optional]
|
|
11
12
|
**app_initiator** | **String** | The initiator of the staking activity. If you do not specify this property, the WaaS service will automatically designate the API key as the initiator. | [optional]
|
|
12
13
|
|
|
13
14
|
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# CoboWaas2.DevelopersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.dev.cobo.com/v2*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**getApiKeyInfo**](DevelopersApi.md#getApiKeyInfo) | **GET** /developers/api_key_info | Get API key information
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## getApiKeyInfo
|
|
12
|
+
|
|
13
|
+
> GetApiKeyInfo200Response getApiKeyInfo()
|
|
14
|
+
|
|
15
|
+
Get API key information
|
|
16
|
+
|
|
17
|
+
This operation retrieves the details of the API key that you are using.
|
|
18
|
+
|
|
19
|
+
### Example
|
|
20
|
+
|
|
21
|
+
```javascript
|
|
22
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
23
|
+
// Initialize the API client
|
|
24
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
25
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
26
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
27
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
28
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
29
|
+
// Call the API
|
|
30
|
+
const apiInstance = new CoboWaas2.DevelopersApi();
|
|
31
|
+
apiInstance.getApiKeyInfo().then((data) => {
|
|
32
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
33
|
+
}, (error) => {
|
|
34
|
+
console.error(error);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Parameters
|
|
40
|
+
|
|
41
|
+
This endpoint does not need any parameter.
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
[**GetApiKeyInfo200Response**](GetApiKeyInfo200Response.md)
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[CoboAuth](../README.md#CoboAuth)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: Not defined
|
|
54
|
+
- **Accept**: application/json
|
|
55
|
+
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. |
|
|
7
|
+
**request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. | [optional]
|
|
8
8
|
**request_type** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
|
|
9
9
|
**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](/v2/api-references/wallets/list-enabled-chains). |
|
|
10
10
|
**source** | [**ContractCallSource**](ContractCallSource.md) | |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. |
|
|
7
|
+
**request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. | [optional]
|
|
8
8
|
**request_type** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
|
|
9
9
|
**source** | [**ContractCallSource**](ContractCallSource.md) | |
|
|
10
10
|
**token_id** | **String** | The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). |
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. |
|
|
7
|
+
**request_id** | **String** | The request ID that is used to track a transaction request. The request ID is provided by you and must be unique within your organization. It is recommended to use the same request ID as the transaction for which you want to estimate the transaction fee. | [optional]
|
|
8
8
|
**request_type** | [**EstimateFeeRequestType**](EstimateFeeRequestType.md) | |
|
|
9
9
|
**source** | [**TransferSource**](TransferSource.md) | |
|
|
10
10
|
**token_id** | **String** | The token ID of the transferred token. You can retrieve the IDs of all the tokens you can use by calling [List enabled tokens](/v2/api-references/wallets/list-enabled-tokens). |
|
|
11
|
-
**destination** | [**TransferDestination**](TransferDestination.md) | |
|
|
11
|
+
**destination** | [**TransferDestination**](TransferDestination.md) | | [optional]
|
|
12
12
|
**fee_type** | [**FeeType**](FeeType.md) | | [optional]
|
|
13
13
|
|
|
14
14
|
|
|
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**staking_id** | **String** | The ID of the corresponding staking position. |
|
|
10
10
|
**amount** | **String** | The amount to unstake. For the Babylon protocol, this property is ignored. | [optional]
|
|
11
11
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | | [optional]
|
|
12
|
+
**extra** | [**CreateUnstakeActivityExtra**](CreateUnstakeActivityExtra.md) | | [optional]
|
|
12
13
|
|
|
13
14
|
|
|
@@ -6,6 +6,6 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**max_fee_per_gas** | **String** | The maximum gas fee per gas unit used on the chain, in wei. |
|
|
8
8
|
**max_priority_fee_per_gas** | **String** | The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction. |
|
|
9
|
-
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. |
|
|
9
|
+
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. |
|
|
10
10
|
|
|
11
11
|
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**gas_price** | **String** | The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used. |
|
|
8
|
-
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. |
|
|
8
|
+
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. |
|
|
9
9
|
|
|
10
10
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# CoboWaas2.EthStakeEstimatedFee
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | | [optional]
|
|
8
|
+
**fee** | [**EstimatedFee**](EstimatedFee.md) | | [optional]
|
|
9
|
+
**validator_pubkeys** | **[String]** | A list of public keys associated with the Ethereum validators for this staking operation. | [optional]
|
|
10
|
+
|
|
11
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.EthStakeExtra
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
|
|
8
|
+
**provider_name** | **String** | The name of the provider. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.EthStakingExtra
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
|
|
8
|
+
**pos_chain** | **String** | The Proof-of-Stake (PoS) chain. |
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.EthUnstakeExtra
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | |
|
|
8
|
+
**validator_pubkeys** | **[String]** | A list of public keys identifying the validators to unstake from the Ethereum Beacon Chain. |
|
|
9
|
+
|
|
10
|
+
|
package/docs/FeeGasLimit.md
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
-
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
|
|
7
|
+
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
|
|
8
8
|
|
|
9
9
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# CoboWaas2.GetApiKeyInfo200Response
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**name** | **String** | The API key name. |
|
|
8
|
+
**curve_type** | **String** | The curve type used for the API key, which determines the cryptographic algorithm for key generation and signing. Possible values include: - `ED25519`: Ed25519 - `SECP256K1`: Secp256k1 |
|
|
9
|
+
**key** | **String** | The API key value. |
|
|
10
|
+
**callback_url** | **String** | The URL of the callback endpoint that receives callback messages triggered by this API key. | [optional]
|
|
11
|
+
**valid_ips** | **[String]** | (Applicable to permanent API keys only) The list of IP addresses that are allowed to use this API key. | [optional]
|
|
12
|
+
**created_timestamp** | **Number** | The time when the API key was registered, in Unix timestamp format, measured in milliseconds. |
|
|
13
|
+
**updated_timestamp** | **Number** | The time when the API key information was last updated, in Unix timestamp format, measured in milliseconds. |
|
|
14
|
+
**expired_timestamp** | **Number** | The time when the API key expires, in Unix timestamp format, measured in milliseconds. For permanent API keys, this property value is `null`. | [optional]
|
|
15
|
+
**role_scopes** | [**[RoleScopes]**](RoleScopes.md) | The list of user roles and wallet scopes associated with the API key. | [optional]
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
## Enum: CurveTypeEnum
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
* `ED25519` (value: `"ED25519"`)
|
|
23
|
+
|
|
24
|
+
* `SECP256K1` (value: `"SECP256K1"`)
|
|
25
|
+
|
|
26
|
+
* `unknown_default_open_api` (value: `"unknown_default_open_api"`)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**pool_type** | [**StakingPoolType**](StakingPoolType.md) | | [optional]
|
|
8
|
+
**fee** | [**EstimatedFee**](EstimatedFee.md) | | [optional]
|
|
9
|
+
**validator_pubkeys** | **[String]** | A list of public keys associated with the Ethereum validators for this staking operation. | [optional]
|
|
7
10
|
**fee_type** | [**FeeType**](FeeType.md) | | [optional]
|
|
8
11
|
**fee_amount** | **String** | The amount of the estimated fee. | [optional]
|
|
9
12
|
**token_id** | **String** | The token ID of the staking fee. | [optional]
|
|
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**pool_id** | **String** | The ID of the staking pool. |
|
|
11
11
|
**amount** | **String** | The amount to withdraw. |
|
|
12
12
|
**fee** | [**TransactionRequestFee**](TransactionRequestFee.md) | |
|
|
13
|
-
**extra** | [**
|
|
13
|
+
**extra** | [**CreateUnstakeActivityExtra**](CreateUnstakeActivityExtra.md) | |
|
|
14
14
|
**staking_id** | **String** | The ID of the corresponding staking position. |
|
|
15
15
|
**address** | **String** | The withdrawal address. |
|
|
16
16
|
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**error** | **String** | The error name. |
|
|
8
|
-
**
|
|
8
|
+
**error_description** | **String** | The error description. |
|
|
9
9
|
|
|
10
10
|
|
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**source_type** | [**WalletSubtype**](WalletSubtype.md) | |
|
|
8
8
|
**wallet_id** | **String** | The wallet ID. |
|
|
9
|
-
**address** | **String** | The wallet address. | [optional]
|
|
9
|
+
**address** | **String** | The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail. | [optional]
|
|
10
10
|
**included_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
|
|
11
11
|
**excluded_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
|
|
12
12
|
|
package/docs/OAuthApi.md
CHANGED
|
@@ -11,7 +11,7 @@ Method | HTTP request | Description
|
|
|
11
11
|
|
|
12
12
|
## getToken
|
|
13
13
|
|
|
14
|
-
>
|
|
14
|
+
> GetToken2XXResponse getToken(client_id, org_id, grant_type)
|
|
15
15
|
|
|
16
16
|
Get Org Access Token
|
|
17
17
|
|
|
@@ -51,7 +51,7 @@ Name | Type | Description | Notes
|
|
|
51
51
|
|
|
52
52
|
### Return type
|
|
53
53
|
|
|
54
|
-
[**
|
|
54
|
+
[**GetToken2XXResponse**](GetToken2XXResponse.md)
|
|
55
55
|
|
|
56
56
|
### Authorization
|
|
57
57
|
|
|
@@ -65,7 +65,7 @@ Name | Type | Description | Notes
|
|
|
65
65
|
|
|
66
66
|
## refreshToken
|
|
67
67
|
|
|
68
|
-
>
|
|
68
|
+
> RefreshToken2XXResponse refreshToken(RefreshTokenRequest)
|
|
69
69
|
|
|
70
70
|
Refresh Org Access Token
|
|
71
71
|
|
|
@@ -101,7 +101,7 @@ Name | Type | Description | Notes
|
|
|
101
101
|
|
|
102
102
|
### Return type
|
|
103
103
|
|
|
104
|
-
[**
|
|
104
|
+
[**RefreshToken2XXResponse**](RefreshToken2XXResponse.md)
|
|
105
105
|
|
|
106
106
|
### Authorization
|
|
107
107
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# CoboWaas2.RoleScopes
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**role_name** | **String** | The user role associated with this API key. |
|
|
8
|
+
**scopes** | [**Scopes**](Scopes.md) | |
|
|
9
|
+
|
|
10
|
+
|
package/docs/Scopes.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# CoboWaas2.Scopes
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**wallet_types** | [**[WalletType]**](WalletType.md) | The list of wallet types that this API key can access. Possible values include: - `Custodial`: [Custodial Wallets](https://manuals.cobo.com/en/portal/custodial-wallets/introduction) - `MPC`: [MPC Wallets](https://manuals.cobo.com/en/portal/mpc-wallets/introduction) - `SmartContract`: [Smart Contract Wallets](https://manuals.cobo.com/en/portal/smart-contract-wallets/introduction) - `Exchange`: [Exchange Wallets](https://manuals.cobo.com/en/portal/exchange-wallets/introduction) | [optional]
|
|
8
|
+
**wallet_subtypes** | [**[WalletSubtype]**](WalletSubtype.md) | The list of wallet sub-types that this API key can access. Possible values include: - `Asset`: Custodial Wallets (Asset Wallets). - `Org-Controlled`: MPC Wallets (Organization-Controlled Wallets). - `User-Controlled`: MPC Wallets (User-Controlled Wallets). - `Safe{Wallet}`: Smart Contract Wallets (Safe). - `Main`: Exchange Wallets (Main Account). - `Sub`: Exchange Wallets (Sub Account). | [optional]
|
|
9
|
+
**wallet_ids** | **[String]** | The list of wallet IDs that this API key can access. | [optional]
|
|
10
|
+
**vault_ids** | **[String]** | (Applicable to MPC Wallets only) The list of vault IDs that this API key can access. | [optional]
|
|
11
|
+
**project_ids** | **[String]** | (Applicable to MPC Wallets only) The list of project IDs that this API key can access. | [optional]
|
|
12
|
+
|
|
13
|
+
|
package/docs/StakingPoolType.md
CHANGED
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**max_fee_per_gas** | **String** | The maximum gas fee per gas unit used on the chain, in wei. | [optional]
|
|
8
8
|
**max_priority_fee_per_gas** | **String** | The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction. | [optional]
|
|
9
|
-
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
|
|
9
|
+
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
|
|
10
10
|
**fee_type** | [**FeeType**](FeeType.md) | |
|
|
11
11
|
**token_id** | **String** | The token ID of the transaction fee. | [optional]
|
|
12
12
|
**effective_gas_price** | **String** | The gas price (gas fee per gas unit) on the chain, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions. | [optional]
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**gas_price** | **String** | The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used. | [optional]
|
|
8
|
-
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
|
|
8
|
+
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
|
|
9
9
|
**fee_type** | [**FeeType**](FeeType.md) | |
|
|
10
10
|
**token_id** | **String** | The token ID of the transaction fee. | [optional]
|
|
11
11
|
**fee_used** | **String** | The transaction fee. | [optional]
|
package/docs/TransactionFee.md
CHANGED
|
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**gas_used** | **String** | The gas units used in the transaction. | [optional]
|
|
12
12
|
**max_fee_per_gas** | **String** | The maximum gas fee per gas unit used on the chain, in wei. | [optional]
|
|
13
13
|
**max_priority_fee_per_gas** | **String** | The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction. | [optional]
|
|
14
|
-
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
|
|
14
|
+
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
|
|
15
15
|
**gas_price** | **String** | The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used. | [optional]
|
|
16
16
|
**max_fee_amount** | **String** | The maximum fee that you are willing to pay for the transaction. The transaction will fail if the transaction fee exceeds the maximum fee. | [optional]
|
|
17
17
|
**fee_rate** | **String** | The fee rate in sat/vByte. The fee rate represents the satoshis you are willing to pay for each byte of data that your transaction will consume on the blockchain. | [optional]
|
|
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**source_type** | [**WalletSubtype**](WalletSubtype.md) | |
|
|
8
8
|
**wallet_id** | **String** | The wallet ID. |
|
|
9
|
-
**address** | **String** | The wallet address. | [optional]
|
|
9
|
+
**address** | **String** | The wallet address. If you want to specify the UTXOs to be used, please provide the `included_utxos` property. If you specify both the `address` and `included_utxos` properties, the specified included UTXOs must belong to the address. You need to provide either the `address` or `included_utxos` property. If neither property is provided, the transfer will fail. | [optional]
|
|
10
10
|
**included_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
|
|
11
11
|
**excluded_utxos** | [**[TransactionUtxo]**](TransactionUtxo.md) | | [optional]
|
|
12
12
|
|
|
@@ -8,6 +8,6 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**max_priority_fee_per_gas** | **String** | The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction. |
|
|
9
9
|
**fee_type** | [**FeeType**](FeeType.md) | |
|
|
10
10
|
**token_id** | **String** | The token ID of the transaction fee. |
|
|
11
|
-
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
|
|
11
|
+
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
|
|
12
12
|
|
|
13
13
|
|
|
@@ -7,6 +7,6 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**gas_price** | **String** | The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used. |
|
|
8
8
|
**fee_type** | [**FeeType**](FeeType.md) | |
|
|
9
9
|
**token_id** | **String** | The token ID of the transaction fee. |
|
|
10
|
-
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
|
|
10
|
+
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
|
|
11
11
|
|
|
12
12
|
|
|
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
|
|
|
7
7
|
**fee_type** | [**FeeType**](FeeType.md) | |
|
|
8
8
|
**token_id** | **String** | The token ID of the transaction fee. |
|
|
9
9
|
**max_fee_amount** | **String** | The maximum fee that you are willing to pay for the transaction. The transaction will fail if the transaction fee exceeds the maximum fee. | [optional]
|
|
10
|
-
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
|
|
10
|
+
**gas_limit** | **String** | The gas limit. It represents the maximum number of gas units that you are willing to pay for the execution of a transaction or Ethereum Virtual Machine (EVM) operation. The gas unit cost of each operation varies. | [optional]
|
|
11
11
|
**max_fee_per_gas** | **String** | The maximum gas fee per gas unit used on the chain, in wei. |
|
|
12
12
|
**max_priority_fee_per_gas** | **String** | The maximum priority fee per gas unit used, in wei. The maximum priority fee represents the highest amount of miner tips that you are willing to pay for your transaction. |
|
|
13
13
|
**gas_price** | **String** | The gas price, in wei. The gas price represents the amount of ETH that must be paid to validators for processing transactions per gas unit used. |
|
|
@@ -6,6 +6,5 @@ Name | Type | Description | Notes
|
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**address** | **String** | The destination address. | [optional]
|
|
8
8
|
**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. | [optional]
|
|
9
|
-
**script** | **String** | The script of the output. It is a programmable code fragment that defines the conditions under which the UTXO can be spent. | [optional]
|
|
10
9
|
|
|
11
10
|
|
|
@@ -8,8 +8,8 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**account_output** | [**AddressTransferDestinationAccountOutput**](AddressTransferDestinationAccountOutput.md) | | [optional]
|
|
9
9
|
**utxo_outputs** | [**[AddressTransferDestinationUtxoOutputsInner]**](AddressTransferDestinationUtxoOutputsInner.md) | | [optional]
|
|
10
10
|
**change_address** | **String** | The address used to receive the remaining funds or change from the transaction. | [optional]
|
|
11
|
-
**force_internal** | **Boolean** | Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `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 `
|
|
12
|
-
**force_external** | **Boolean** | Whether the transaction request must not be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `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 `
|
|
11
|
+
**force_internal** | **Boolean** | Whether the transaction request must be executed as a [Cobo Loop](https://manuals.cobo.com/en/portal/custodial-wallets/cobo-loop) transfer. - `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
|
+
**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
13
|
**wallet_id** | **String** | The wallet ID. |
|
|
14
14
|
**trading_account_type** | **String** | The trading account type. |
|
|
15
15
|
**amount** | **String** | The transfer amount. For example, if you trade 1.5 BTC, then the value is `1.5`. |
|
package/docs/WalletsApi.md
CHANGED
|
@@ -4,12 +4,12 @@ All URIs are relative to *https://api.dev.cobo.com/v2*
|
|
|
4
4
|
|
|
5
5
|
Method | HTTP request | Description
|
|
6
6
|
------------- | ------------- | -------------
|
|
7
|
+
[**checkAddressChainsValidity**](WalletsApi.md#checkAddressChainsValidity) | **GET** /wallets/check_address_chains_validity | Check address validity across chains
|
|
7
8
|
[**checkAddressValidity**](WalletsApi.md#checkAddressValidity) | **GET** /wallets/check_address_validity | Check address validity
|
|
8
9
|
[**checkAddressesValidity**](WalletsApi.md#checkAddressesValidity) | **GET** /wallets/check_addresses_validity | Check addresses validity
|
|
9
10
|
[**createAddress**](WalletsApi.md#createAddress) | **POST** /wallets/{wallet_id}/addresses | Create addresses in wallet
|
|
10
11
|
[**createWallet**](WalletsApi.md#createWallet) | **POST** /wallets | Create wallet
|
|
11
12
|
[**deleteWalletById**](WalletsApi.md#deleteWalletById) | **POST** /wallets/{wallet_id}/delete | Delete wallet
|
|
12
|
-
[**getAddress**](WalletsApi.md#getAddress) | **GET** /wallets/{wallet_id}/addresses/{address} | Get address information
|
|
13
13
|
[**getChainById**](WalletsApi.md#getChainById) | **GET** /wallets/chains/{chain_id} | Get chain information
|
|
14
14
|
[**getMaxTransferableValue**](WalletsApi.md#getMaxTransferableValue) | **GET** /wallets/{wallet_id}/max_transferable_value | Get maximum transferable value
|
|
15
15
|
[**getTokenById**](WalletsApi.md#getTokenById) | **GET** /wallets/tokens/{token_id} | Get token information
|
|
@@ -29,6 +29,58 @@ Method | HTTP request | Description
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
+
## checkAddressChainsValidity
|
|
33
|
+
|
|
34
|
+
> [CheckAddressChainsValidity200ResponseInner] checkAddressChainsValidity(address, chain_ids)
|
|
35
|
+
|
|
36
|
+
Check address validity across chains
|
|
37
|
+
|
|
38
|
+
This operation verifies if a given address is valid for a list of chains.
|
|
39
|
+
|
|
40
|
+
### Example
|
|
41
|
+
|
|
42
|
+
```javascript
|
|
43
|
+
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
44
|
+
// Initialize the API client
|
|
45
|
+
const apiClient = CoboWaas2.ApiClient.instance
|
|
46
|
+
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
47
|
+
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
48
|
+
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
49
|
+
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
50
|
+
// Call the API
|
|
51
|
+
const apiInstance = new CoboWaas2.WalletsApi();
|
|
52
|
+
const address = "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045";
|
|
53
|
+
const chain_ids = "BTC,ETH";
|
|
54
|
+
apiInstance.checkAddressChainsValidity(address, chain_ids).then((data) => {
|
|
55
|
+
console.log('API called successfully. Returned data: ' + data);
|
|
56
|
+
}, (error) => {
|
|
57
|
+
console.error(error);
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Parameters
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
Name | Type | Description | Notes
|
|
66
|
+
------------- | ------------- | ------------- | -------------
|
|
67
|
+
**address** | **String**| The wallet address. |
|
|
68
|
+
**chain_ids** | **String**| A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). |
|
|
69
|
+
|
|
70
|
+
### Return type
|
|
71
|
+
|
|
72
|
+
[**[CheckAddressChainsValidity200ResponseInner]**](CheckAddressChainsValidity200ResponseInner.md)
|
|
73
|
+
|
|
74
|
+
### Authorization
|
|
75
|
+
|
|
76
|
+
[CoboAuth](../README.md#CoboAuth)
|
|
77
|
+
|
|
78
|
+
### HTTP request headers
|
|
79
|
+
|
|
80
|
+
- **Content-Type**: Not defined
|
|
81
|
+
- **Accept**: application/json
|
|
82
|
+
|
|
83
|
+
|
|
32
84
|
## checkAddressValidity
|
|
33
85
|
|
|
34
86
|
> CheckAddressValidity200Response checkAddressValidity(chain_id, address)
|
|
@@ -289,58 +341,6 @@ Name | Type | Description | Notes
|
|
|
289
341
|
- **Accept**: application/json
|
|
290
342
|
|
|
291
343
|
|
|
292
|
-
## getAddress
|
|
293
|
-
|
|
294
|
-
> [AddressInfo] getAddress(wallet_id, address)
|
|
295
|
-
|
|
296
|
-
Get address information
|
|
297
|
-
|
|
298
|
-
This operation retrieves the detailed information about a specified address within a wallet.
|
|
299
|
-
|
|
300
|
-
### Example
|
|
301
|
-
|
|
302
|
-
```javascript
|
|
303
|
-
const CoboWaas2 = require('@cobo/cobo-waas2');
|
|
304
|
-
// Initialize the API client
|
|
305
|
-
const apiClient = CoboWaas2.ApiClient.instance
|
|
306
|
-
// Select the development environment. To use the production environment, replace `Env.DEV` with `Env.PROD`
|
|
307
|
-
apiClient.setEnv(CoboWaas2.Env.DEV);
|
|
308
|
-
// Replace `<YOUR_PRIVATE_KEY>` with your private key
|
|
309
|
-
apiClient.setPrivateKey("<YOUR_PRIVATE_KEY>");
|
|
310
|
-
// Call the API
|
|
311
|
-
const apiInstance = new CoboWaas2.WalletsApi();
|
|
312
|
-
const wallet_id = "f47ac10b-58cc-4372-a567-0e02b2c3d479";
|
|
313
|
-
const address = "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045";
|
|
314
|
-
apiInstance.getAddress(wallet_id, address).then((data) => {
|
|
315
|
-
console.log('API called successfully. Returned data: ' + data);
|
|
316
|
-
}, (error) => {
|
|
317
|
-
console.error(error);
|
|
318
|
-
});
|
|
319
|
-
|
|
320
|
-
```
|
|
321
|
-
|
|
322
|
-
### Parameters
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
Name | Type | Description | Notes
|
|
326
|
-
------------- | ------------- | ------------- | -------------
|
|
327
|
-
**wallet_id** | **String**| The wallet ID. |
|
|
328
|
-
**address** | **String**| The wallet address. |
|
|
329
|
-
|
|
330
|
-
### Return type
|
|
331
|
-
|
|
332
|
-
[**[AddressInfo]**](AddressInfo.md)
|
|
333
|
-
|
|
334
|
-
### Authorization
|
|
335
|
-
|
|
336
|
-
[CoboAuth](../README.md#CoboAuth)
|
|
337
|
-
|
|
338
|
-
### HTTP request headers
|
|
339
|
-
|
|
340
|
-
- **Content-Type**: Not defined
|
|
341
|
-
- **Accept**: application/json
|
|
342
|
-
|
|
343
|
-
|
|
344
344
|
## getChainById
|
|
345
345
|
|
|
346
346
|
> ChainInfo getChainById(chain_id)
|
|
@@ -594,7 +594,7 @@ Name | Type | Description | Notes
|
|
|
594
594
|
------------- | ------------- | ------------- | -------------
|
|
595
595
|
**wallet_id** | **String**| The wallet ID. |
|
|
596
596
|
**chain_ids** | **String**| A list of chain IDs, separated by comma. The chain ID is the unique identifier of a blockchain. You can retrieve the IDs of all the chains you can use by calling [List enabled chains](/v2/api-references/wallets/list-enabled-chains). | [optional]
|
|
597
|
-
**addresses** | **String**| A list of wallet addresses, separated by comma. | [optional]
|
|
597
|
+
**addresses** | **String**| A list of wallet addresses, separated by comma. For addresses requiring a memo, append the memo after the address using the '|' separator (e.g., \"address|memo\"). | [optional]
|
|
598
598
|
**limit** | **Number**| The maximum number of objects to return. For most operations, the value range is [1, 50]. | [optional] [default to 10]
|
|
599
599
|
**before** | **String**| An object ID that serves as a starting point for retrieving data in reverse chronological order. For example, if you specify `before` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`, the request will retrieve a list of data objects that end before the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGmk1`. You can set this parameter to the value of `pagination.before` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. - If you set `before` to `infinity`, the last page of data is returned. | [optional]
|
|
600
600
|
**after** | **String**| An object ID that acts as a starting point for retrieving data in chronological order. For example, if you specify `after` as `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`, the request will retrieve a list of data objects that start after the object with the object ID `RqeEoTkgKG5rpzqYzg2Hd3szmPoj2cE7w5jWwShz3C1vyGSAk`. You can set this parameter to the value of `pagination.after` in the response of the previous request. - If you set both `after` and `before`, an error will occur. - If you leave both `before` and `after` empty, the first page of data is returned. | [optional]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobo/cobo-waas2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.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](/v2/guides/overview/introduction). ",
|
|
5
5
|
"license": "GPL 2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@babel/cli": "^7.0.0",
|
|
17
17
|
"crypto-js": "^4.2.0",
|
|
18
|
+
"express": "^4.21.1",
|
|
18
19
|
"superagent": "^5.3.0",
|
|
19
20
|
"tweetnacl": "^1.0.3"
|
|
20
21
|
},
|