@avalabs/glacier-sdk 2.8.0-alpha.13 → 2.8.0-alpha.131
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 +10 -0
- package/dist/index.d.ts +3755 -3
- package/dist/index.js +1879 -155
- package/esm/generated/Glacier.d.ts +40 -0
- package/esm/generated/Glacier.js +65 -0
- package/esm/generated/core/ApiError.d.ts +13 -0
- package/esm/generated/core/ApiError.js +18 -0
- package/esm/generated/core/ApiRequestOptions.d.ts +15 -0
- package/esm/generated/core/ApiResult.d.ts +9 -0
- package/esm/generated/core/BaseHttpRequest.d.ts +11 -0
- package/esm/generated/core/BaseHttpRequest.js +7 -0
- package/esm/generated/core/CancelablePromise.d.ts +28 -0
- package/esm/generated/core/CancelablePromise.js +91 -0
- package/esm/generated/core/FetchHttpRequest.js +13 -0
- package/esm/generated/core/OpenAPI.d.ts +18 -0
- package/esm/generated/core/OpenAPI.js +13 -0
- package/esm/generated/core/request.js +227 -0
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +18 -0
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +24 -0
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/Asset.d.ts +28 -0
- package/esm/generated/models/Blockchain.d.ts +10 -0
- package/esm/generated/models/BlockchainId.d.ts +12 -0
- package/esm/generated/models/BlockchainId.js +13 -0
- package/esm/generated/models/BlockchainIds.d.ts +9 -0
- package/esm/generated/models/BlockchainIds.js +10 -0
- package/esm/generated/models/BlockchainInfo.d.ts +5 -0
- package/esm/generated/models/CChainAtomicBalances.d.ts +8 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +58 -0
- package/esm/generated/models/CChainExportTransaction.js +8 -0
- package/esm/generated/models/CChainImportTransaction.d.ts +58 -0
- package/esm/generated/models/CChainImportTransaction.js +8 -0
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +30 -0
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +8 -0
- package/esm/generated/models/ChainAddressChainIdMapListResponse.d.ts +7 -0
- package/esm/generated/models/ChainInfo.d.ts +27 -0
- package/esm/generated/models/ChainStatus.d.ts +6 -0
- package/esm/generated/models/ChainStatus.js +7 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +18 -0
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
- package/esm/generated/models/CurrencyCode.d.ts +18 -0
- package/esm/generated/models/CurrencyCode.js +19 -0
- package/esm/generated/models/DelegationStatusType.d.ts +7 -0
- package/esm/generated/models/DelegationStatusType.js +8 -0
- package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
- package/esm/generated/models/EVMInput.d.ts +19 -0
- package/esm/generated/models/EVMOutput.d.ts +14 -0
- package/esm/generated/models/Erc1155Contract.d.ts +37 -0
- package/esm/generated/models/Erc1155Contract.js +8 -0
- package/esm/generated/models/Erc1155Token.d.ts +19 -0
- package/esm/generated/models/Erc1155Token.js +8 -0
- package/esm/generated/models/Erc1155TokenBalance.d.ts +27 -0
- package/esm/generated/models/Erc1155TokenBalance.js +8 -0
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +20 -0
- package/esm/generated/models/Erc1155Transfer.d.ts +28 -0
- package/esm/generated/models/Erc1155TransferDetails.d.ts +12 -0
- package/esm/generated/models/Erc20Contract.d.ts +41 -0
- package/esm/generated/models/Erc20Contract.js +8 -0
- package/esm/generated/models/Erc20Token.d.ts +36 -0
- package/esm/generated/models/Erc20Token.js +8 -0
- package/esm/generated/models/Erc20TokenBalance.d.ts +48 -0
- package/esm/generated/models/Erc20TokenBalance.js +8 -0
- package/esm/generated/models/Erc20Transfer.d.ts +28 -0
- package/esm/generated/models/Erc20TransferDetails.d.ts +12 -0
- package/esm/generated/models/Erc721Contract.d.ts +35 -0
- package/esm/generated/models/Erc721Contract.js +8 -0
- package/esm/generated/models/Erc721Token.d.ts +31 -0
- package/esm/generated/models/Erc721Token.js +8 -0
- package/esm/generated/models/Erc721TokenBalance.d.ts +35 -0
- package/esm/generated/models/Erc721TokenBalance.js +8 -0
- package/esm/generated/models/Erc721TokenMetadata.d.ts +19 -0
- package/esm/generated/models/Erc721Transfer.d.ts +27 -0
- package/esm/generated/models/Erc721TransferDetails.d.ts +11 -0
- package/esm/generated/models/EvmBlock.d.ts +45 -0
- package/esm/generated/models/EvmNetworkOptions.d.ts +6 -0
- package/esm/generated/models/FullNativeTransactionDetails.d.ts +62 -0
- package/esm/generated/models/GetChainResponse.d.ts +27 -0
- package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
- package/esm/generated/models/GetNativeBalanceResponse.d.ts +10 -0
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +29 -0
- package/esm/generated/models/HistoricalReward.d.ts +24 -0
- package/esm/generated/models/ImageAsset.d.ts +9 -0
- package/esm/generated/models/InternalTransaction.d.ts +33 -0
- package/esm/generated/models/InternalTransactionDetails.d.ts +17 -0
- package/esm/generated/models/InternalTransactionOpCall.d.ts +11 -0
- package/esm/generated/models/InternalTransactionOpCall.js +12 -0
- package/esm/generated/models/ListBlockchainsResponse.d.ts +11 -0
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +9 -0
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +14 -0
- package/esm/generated/models/ListChainsResponse.d.ts +7 -0
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +15 -0
- package/esm/generated/models/ListContractsResponse.d.ts +14 -0
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListErc1155BalancesResponse.d.ts +14 -0
- package/esm/generated/models/ListErc1155TransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListErc20BalancesResponse.d.ts +14 -0
- package/esm/generated/models/ListErc20TransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListErc721BalancesResponse.d.ts +14 -0
- package/esm/generated/models/ListErc721TransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
- package/esm/generated/models/ListInternalTransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListNativeTransactionsResponse.d.ts +11 -0
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +9 -0
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +13 -0
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +13 -0
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
- package/esm/generated/models/ListSubnetsResponse.d.ts +11 -0
- package/esm/generated/models/ListTransactionDetailsResponse.d.ts +11 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +13 -0
- package/esm/generated/models/ListUtxosResponse.d.ts +13 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +9 -0
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +14 -0
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +13 -0
- package/esm/generated/models/Method.d.ts +18 -0
- package/esm/generated/models/Money.d.ts +14 -0
- package/esm/generated/models/NativeTokenBalance.d.ts +38 -0
- package/esm/generated/models/NativeTransaction.d.ts +55 -0
- package/esm/generated/models/Network.d.ts +6 -0
- package/esm/generated/models/Network.js +7 -0
- package/esm/generated/models/NetworkToken.d.ts +21 -0
- package/esm/generated/models/NetworkTokenDetails.d.ts +16 -0
- package/esm/generated/models/NetworkType.d.ts +6 -0
- package/esm/generated/models/NetworkType.js +7 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +15 -0
- package/esm/generated/models/NftTokenMetadataStatus.js +16 -0
- package/esm/generated/models/OperationStatus.d.ts +8 -0
- package/esm/generated/models/OperationStatus.js +9 -0
- package/esm/generated/models/OperationStatusCode.d.ts +7 -0
- package/esm/generated/models/OperationStatusCode.js +8 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +15 -0
- package/esm/generated/models/OperationType.d.ts +6 -0
- package/esm/generated/models/OperationType.js +7 -0
- package/esm/generated/models/PChainAsset.d.ts +6 -0
- package/esm/generated/models/PChainBalance.d.ts +39 -0
- package/esm/generated/models/PChainId.d.ts +6 -0
- package/esm/generated/models/PChainId.js +7 -0
- package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
- package/esm/generated/models/PChainTransaction.d.ts +71 -0
- package/esm/generated/models/PChainTransactionType.d.ts +16 -0
- package/esm/generated/models/PChainTransactionType.js +17 -0
- package/esm/generated/models/PChainUtxo.d.ts +31 -0
- package/esm/generated/models/PendingDelegatorDetails.d.ts +18 -0
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingReward.d.ts +22 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +15 -0
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
- package/esm/generated/models/PrimaryNetwork.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +15 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +19 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +20 -0
- package/esm/generated/models/ProposerDetails.d.ts +9 -0
- package/esm/generated/models/ResourceLink.d.ts +8 -0
- package/esm/generated/models/ResourceLinkType.d.ts +22 -0
- package/esm/generated/models/ResourceLinkType.js +23 -0
- package/esm/generated/models/RewardType.d.ts +6 -0
- package/esm/generated/models/RewardType.js +7 -0
- package/esm/generated/models/Rewards.d.ts +6 -0
- package/esm/generated/models/RichAddress.d.ts +24 -0
- package/esm/generated/models/SortOrder.d.ts +6 -0
- package/esm/generated/models/SortOrder.js +7 -0
- package/esm/generated/models/StakingDistribution.d.ts +7 -0
- package/esm/generated/models/Subnet.d.ts +13 -0
- package/esm/generated/models/TransactionDetails.d.ts +30 -0
- package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
- package/esm/generated/models/TransactionMethodType.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.js +8 -0
- package/esm/generated/models/TransactionStatus.d.ts +6 -0
- package/esm/generated/models/TransactionStatus.js +7 -0
- package/esm/generated/models/TransactionVertexDetail.d.ts +16 -0
- package/esm/generated/models/UnknownContract.d.ts +31 -0
- package/esm/generated/models/UnknownContract.js +8 -0
- package/esm/generated/models/UtilityAddresses.d.ts +5 -0
- package/esm/generated/models/Utxo.d.ts +68 -0
- package/esm/generated/models/UtxoCredential.d.ts +12 -0
- package/esm/generated/models/UtxoType.d.ts +6 -0
- package/esm/generated/models/UtxoType.js +7 -0
- package/esm/generated/models/ValidationStatusType.d.ts +7 -0
- package/esm/generated/models/ValidationStatusType.js +8 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
- package/esm/generated/models/VmName.d.ts +7 -0
- package/esm/generated/models/VmName.js +8 -0
- package/esm/generated/models/XChainAssetBalance.d.ts +29 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +32 -0
- package/esm/generated/models/XChainBalances.d.ts +17 -0
- package/esm/generated/models/XChainId.d.ts +7 -0
- package/esm/generated/models/XChainId.js +8 -0
- package/esm/generated/models/XChainLinearTransaction.d.ts +67 -0
- package/esm/generated/models/XChainLinearTransaction.js +9 -0
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +64 -0
- package/esm/generated/models/XChainNonLinearTransaction.js +9 -0
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +30 -0
- package/esm/generated/models/XChainVertex.d.ts +12 -0
- package/esm/generated/services/EvmBalancesService.d.ts +177 -0
- package/esm/generated/services/EvmBalancesService.js +116 -0
- package/esm/generated/services/EvmBlocksService.d.ts +47 -0
- package/esm/generated/services/EvmBlocksService.js +37 -0
- package/esm/generated/services/EvmChainsService.d.ts +36 -0
- package/esm/generated/services/EvmChainsService.js +29 -0
- package/esm/generated/services/EvmContractsService.d.ts +29 -0
- package/esm/generated/services/EvmContractsService.js +20 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +331 -0
- package/esm/generated/services/EvmTransactionsService.js +264 -0
- package/esm/generated/services/HealthCheckService.d.ts +20 -0
- package/esm/generated/services/HealthCheckService.js +16 -0
- package/esm/generated/services/NfTsService.d.ts +51 -0
- package/esm/generated/services/NfTsService.js +37 -0
- package/esm/generated/services/OperationsService.d.ts +35 -0
- package/esm/generated/services/OperationsService.js +28 -0
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
- package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +69 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.js +49 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +221 -0
- package/esm/generated/services/PrimaryNetworkService.js +159 -0
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -0
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
- package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
- package/esm/index.d.ts +166 -0
- package/esm/index.js +68 -0
- package/package.json +11 -20
- package/CHANGELOG.md +0 -240
- package/__tests__/glacier-sdk.test.js +0 -7
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/src/generated/models.d.ts +0 -385
- package/dist/src/generated/models.d.ts.map +0 -1
- package/dist/src/glacierClient.d.ts +0 -93
- package/dist/src/glacierClient.d.ts.map +0 -1
- package/dist/src/types.d.ts +0 -13
- package/dist/src/types.d.ts.map +0 -1
- package/index.ts +0 -2
- package/rollup.config.js +0 -33
- package/src/generated/models.ts +0 -460
- package/src/glacierClient.ts +0 -190
- package/src/types.ts +0 -6
- package/swagger/generateModels.js +0 -40
- package/tsconfig.json +0 -7
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
class NfTsService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
reindexNft({
|
|
6
|
+
chainId,
|
|
7
|
+
address,
|
|
8
|
+
tokenId
|
|
9
|
+
}) {
|
|
10
|
+
return this.httpRequest.request({
|
|
11
|
+
method: "POST",
|
|
12
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",
|
|
13
|
+
path: {
|
|
14
|
+
"chainId": chainId,
|
|
15
|
+
"address": address,
|
|
16
|
+
"tokenId": tokenId
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
getTokenDetails({
|
|
21
|
+
chainId,
|
|
22
|
+
address,
|
|
23
|
+
tokenId
|
|
24
|
+
}) {
|
|
25
|
+
return this.httpRequest.request({
|
|
26
|
+
method: "GET",
|
|
27
|
+
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
|
|
28
|
+
path: {
|
|
29
|
+
"chainId": chainId,
|
|
30
|
+
"address": address,
|
|
31
|
+
"tokenId": tokenId
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { NfTsService };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CreateEvmTransactionExportRequest } from '../models/CreateEvmTransactionExportRequest.js';
|
|
2
|
+
import { CreatePrimaryNetworkTransactionExportRequest } from '../models/CreatePrimaryNetworkTransactionExportRequest.js';
|
|
3
|
+
import { OperationStatusResponse } from '../models/OperationStatusResponse.js';
|
|
4
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
5
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
6
|
+
|
|
7
|
+
declare class OperationsService {
|
|
8
|
+
readonly httpRequest: BaseHttpRequest;
|
|
9
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
10
|
+
/**
|
|
11
|
+
* Create transaction export operation
|
|
12
|
+
* Trigger a transaction export operation with given parameters.
|
|
13
|
+
*
|
|
14
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
15
|
+
* @returns OperationStatusResponse
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
postTransactionExportJob({ requestBody, }: {
|
|
19
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
20
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Get operation
|
|
23
|
+
* Gets operation details for the given operation id.
|
|
24
|
+
* @returns OperationStatusResponse
|
|
25
|
+
* @throws ApiError
|
|
26
|
+
*/
|
|
27
|
+
getOperationResult({ operationId, }: {
|
|
28
|
+
/**
|
|
29
|
+
* UUID of given operation
|
|
30
|
+
*/
|
|
31
|
+
operationId: string;
|
|
32
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { OperationsService };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
class OperationsService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
postTransactionExportJob({
|
|
6
|
+
requestBody
|
|
7
|
+
}) {
|
|
8
|
+
return this.httpRequest.request({
|
|
9
|
+
method: "POST",
|
|
10
|
+
url: "/v1/operations/transactions:export",
|
|
11
|
+
body: requestBody,
|
|
12
|
+
mediaType: "application/json"
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
getOperationResult({
|
|
16
|
+
operationId
|
|
17
|
+
}) {
|
|
18
|
+
return this.httpRequest.request({
|
|
19
|
+
method: "GET",
|
|
20
|
+
url: "/v1/operations/{operationId}",
|
|
21
|
+
path: {
|
|
22
|
+
"operationId": operationId
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { OperationsService };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BlockchainId } from '../models/BlockchainId.js';
|
|
2
|
+
import { ListCChainAtomicBalancesResponse } from '../models/ListCChainAtomicBalancesResponse.js';
|
|
3
|
+
import { ListPChainBalancesResponse } from '../models/ListPChainBalancesResponse.js';
|
|
4
|
+
import { ListXChainBalancesResponse } from '../models/ListXChainBalancesResponse.js';
|
|
5
|
+
import { Network } from '../models/Network.js';
|
|
6
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
8
|
+
|
|
9
|
+
declare class PrimaryNetworkBalancesService {
|
|
10
|
+
readonly httpRequest: BaseHttpRequest;
|
|
11
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
12
|
+
/**
|
|
13
|
+
* Get balances
|
|
14
|
+
* Gets primary network balances for one of the Primary Network chains for the supplied addresses.
|
|
15
|
+
*
|
|
16
|
+
* C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
|
|
17
|
+
* @returns any
|
|
18
|
+
* @throws ApiError
|
|
19
|
+
*/
|
|
20
|
+
getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
|
|
21
|
+
/**
|
|
22
|
+
* A primary network blockchain id or alias.
|
|
23
|
+
*/
|
|
24
|
+
blockchainId: BlockchainId;
|
|
25
|
+
/**
|
|
26
|
+
* Either mainnet or a testnet.
|
|
27
|
+
*/
|
|
28
|
+
network: Network;
|
|
29
|
+
/**
|
|
30
|
+
* An epoch timestamp in seconds. Balance will be calculated at this timestamp.
|
|
31
|
+
*/
|
|
32
|
+
blockTimestamp?: number;
|
|
33
|
+
/**
|
|
34
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
35
|
+
*/
|
|
36
|
+
addresses?: string;
|
|
37
|
+
}): CancelablePromise<(ListPChainBalancesResponse | ListXChainBalancesResponse | ListCChainAtomicBalancesResponse)>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { PrimaryNetworkBalancesService };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
class PrimaryNetworkBalancesService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
getBalancesByAddresses({
|
|
6
|
+
blockchainId,
|
|
7
|
+
network,
|
|
8
|
+
blockTimestamp,
|
|
9
|
+
addresses
|
|
10
|
+
}) {
|
|
11
|
+
return this.httpRequest.request({
|
|
12
|
+
method: "GET",
|
|
13
|
+
url: "/v1/networks/{network}/blockchains/{blockchainId}/balances",
|
|
14
|
+
path: {
|
|
15
|
+
"blockchainId": blockchainId,
|
|
16
|
+
"network": network
|
|
17
|
+
},
|
|
18
|
+
query: {
|
|
19
|
+
"blockTimestamp": blockTimestamp,
|
|
20
|
+
"addresses": addresses
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { PrimaryNetworkBalancesService };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { BlockchainId } from '../models/BlockchainId.js';
|
|
2
|
+
import { GetPrimaryNetworkBlockResponse } from '../models/GetPrimaryNetworkBlockResponse.js';
|
|
3
|
+
import { ListPrimaryNetworkBlocksResponse } from '../models/ListPrimaryNetworkBlocksResponse.js';
|
|
4
|
+
import { Network } from '../models/Network.js';
|
|
5
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
7
|
+
|
|
8
|
+
declare class PrimaryNetworkBlocksService {
|
|
9
|
+
readonly httpRequest: BaseHttpRequest;
|
|
10
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
11
|
+
/**
|
|
12
|
+
* Get block
|
|
13
|
+
* Gets a block by block height or block hash on one of the Primary Network chains.
|
|
14
|
+
* @returns GetPrimaryNetworkBlockResponse
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
getBlockById({ blockchainId, network, blockId, }: {
|
|
18
|
+
/**
|
|
19
|
+
* A primary network blockchain id or alias.
|
|
20
|
+
*/
|
|
21
|
+
blockchainId: BlockchainId;
|
|
22
|
+
/**
|
|
23
|
+
* Either mainnet or a testnet.
|
|
24
|
+
*/
|
|
25
|
+
network: Network;
|
|
26
|
+
/**
|
|
27
|
+
* A block identifier which is either a block number or the block hash.
|
|
28
|
+
*/
|
|
29
|
+
blockId: string;
|
|
30
|
+
}): CancelablePromise<GetPrimaryNetworkBlockResponse>;
|
|
31
|
+
/**
|
|
32
|
+
* List blocks proposed by node
|
|
33
|
+
* Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
|
|
34
|
+
* @returns ListPrimaryNetworkBlocksResponse
|
|
35
|
+
* @throws ApiError
|
|
36
|
+
*/
|
|
37
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
|
|
38
|
+
/**
|
|
39
|
+
* A primary network blockchain id or alias.
|
|
40
|
+
*/
|
|
41
|
+
blockchainId: BlockchainId;
|
|
42
|
+
/**
|
|
43
|
+
* Either mainnet or a testnet.
|
|
44
|
+
*/
|
|
45
|
+
network: Network;
|
|
46
|
+
/**
|
|
47
|
+
* A primary network (P or X chain) nodeId.
|
|
48
|
+
*/
|
|
49
|
+
nodeId: string;
|
|
50
|
+
/**
|
|
51
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
52
|
+
*/
|
|
53
|
+
pageSize?: number;
|
|
54
|
+
/**
|
|
55
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
56
|
+
*/
|
|
57
|
+
pageToken?: string;
|
|
58
|
+
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
59
|
+
/**
|
|
60
|
+
* List latest blocks
|
|
61
|
+
* Lists latest blocks on one of the Primary Network chains.
|
|
62
|
+
* @returns ListPrimaryNetworkBlocksResponse
|
|
63
|
+
* @throws ApiError
|
|
64
|
+
*/
|
|
65
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
|
|
66
|
+
/**
|
|
67
|
+
* A primary network blockchain id or alias.
|
|
68
|
+
*/
|
|
69
|
+
blockchainId: BlockchainId;
|
|
70
|
+
/**
|
|
71
|
+
* Either mainnet or a testnet.
|
|
72
|
+
*/
|
|
73
|
+
network: Network;
|
|
74
|
+
/**
|
|
75
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
76
|
+
*/
|
|
77
|
+
pageSize?: number;
|
|
78
|
+
/**
|
|
79
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
80
|
+
*/
|
|
81
|
+
pageToken?: string;
|
|
82
|
+
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export { PrimaryNetworkBlocksService };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
class PrimaryNetworkBlocksService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
getBlockById({
|
|
6
|
+
blockchainId,
|
|
7
|
+
network,
|
|
8
|
+
blockId
|
|
9
|
+
}) {
|
|
10
|
+
return this.httpRequest.request({
|
|
11
|
+
method: "GET",
|
|
12
|
+
url: "/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",
|
|
13
|
+
path: {
|
|
14
|
+
"blockchainId": blockchainId,
|
|
15
|
+
"network": network,
|
|
16
|
+
"blockId": blockId
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
listPrimaryNetworkBlocksByNodeId({
|
|
21
|
+
blockchainId,
|
|
22
|
+
network,
|
|
23
|
+
nodeId,
|
|
24
|
+
pageSize = 10,
|
|
25
|
+
pageToken
|
|
26
|
+
}) {
|
|
27
|
+
return this.httpRequest.request({
|
|
28
|
+
method: "GET",
|
|
29
|
+
url: "/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",
|
|
30
|
+
path: {
|
|
31
|
+
"blockchainId": blockchainId,
|
|
32
|
+
"network": network,
|
|
33
|
+
"nodeId": nodeId
|
|
34
|
+
},
|
|
35
|
+
query: {
|
|
36
|
+
"pageSize": pageSize,
|
|
37
|
+
"pageToken": pageToken
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
listLatestPrimaryNetworkBlocks({
|
|
42
|
+
blockchainId,
|
|
43
|
+
network,
|
|
44
|
+
pageSize = 10,
|
|
45
|
+
pageToken
|
|
46
|
+
}) {
|
|
47
|
+
return this.httpRequest.request({
|
|
48
|
+
method: "GET",
|
|
49
|
+
url: "/v1/networks/{network}/blockchains/{blockchainId}/blocks",
|
|
50
|
+
path: {
|
|
51
|
+
"blockchainId": blockchainId,
|
|
52
|
+
"network": network
|
|
53
|
+
},
|
|
54
|
+
query: {
|
|
55
|
+
"pageSize": pageSize,
|
|
56
|
+
"pageToken": pageToken
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { PrimaryNetworkBlocksService };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ListHistoricalRewardsResponse } from '../models/ListHistoricalRewardsResponse.js';
|
|
2
|
+
import { ListPendingRewardsResponse } from '../models/ListPendingRewardsResponse.js';
|
|
3
|
+
import { Network } from '../models/Network.js';
|
|
4
|
+
import { SortOrder } from '../models/SortOrder.js';
|
|
5
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
6
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
7
|
+
|
|
8
|
+
declare class PrimaryNetworkRewardsService {
|
|
9
|
+
readonly httpRequest: BaseHttpRequest;
|
|
10
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
11
|
+
/**
|
|
12
|
+
* List pending rewards
|
|
13
|
+
* Lists pending rewards on the Primary Network for the supplied addresses.
|
|
14
|
+
* @returns ListPendingRewardsResponse
|
|
15
|
+
* @throws ApiError
|
|
16
|
+
*/
|
|
17
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
18
|
+
/**
|
|
19
|
+
* Either mainnet or a testnet.
|
|
20
|
+
*/
|
|
21
|
+
network: Network;
|
|
22
|
+
/**
|
|
23
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
24
|
+
*/
|
|
25
|
+
addresses?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
28
|
+
*/
|
|
29
|
+
pageSize?: number;
|
|
30
|
+
/**
|
|
31
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
32
|
+
*/
|
|
33
|
+
pageToken?: string;
|
|
34
|
+
/**
|
|
35
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
36
|
+
*/
|
|
37
|
+
sortOrder?: SortOrder;
|
|
38
|
+
}): CancelablePromise<ListPendingRewardsResponse>;
|
|
39
|
+
/**
|
|
40
|
+
* List historical rewards
|
|
41
|
+
* Lists historical rewards on the Primary Network for the supplied addresses.
|
|
42
|
+
* @returns ListHistoricalRewardsResponse
|
|
43
|
+
* @throws ApiError
|
|
44
|
+
*/
|
|
45
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
46
|
+
/**
|
|
47
|
+
* Either mainnet or a testnet.
|
|
48
|
+
*/
|
|
49
|
+
network: Network;
|
|
50
|
+
/**
|
|
51
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
52
|
+
*/
|
|
53
|
+
addresses?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
56
|
+
*/
|
|
57
|
+
pageSize?: number;
|
|
58
|
+
/**
|
|
59
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
60
|
+
*/
|
|
61
|
+
pageToken?: string;
|
|
62
|
+
/**
|
|
63
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
64
|
+
*/
|
|
65
|
+
sortOrder?: SortOrder;
|
|
66
|
+
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export { PrimaryNetworkRewardsService };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
class PrimaryNetworkRewardsService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
listPendingPrimaryNetworkRewards({
|
|
6
|
+
network,
|
|
7
|
+
addresses,
|
|
8
|
+
pageSize = 10,
|
|
9
|
+
pageToken,
|
|
10
|
+
sortOrder
|
|
11
|
+
}) {
|
|
12
|
+
return this.httpRequest.request({
|
|
13
|
+
method: "GET",
|
|
14
|
+
url: "/v1/networks/{network}/rewards:listPending",
|
|
15
|
+
path: {
|
|
16
|
+
"network": network
|
|
17
|
+
},
|
|
18
|
+
query: {
|
|
19
|
+
"addresses": addresses,
|
|
20
|
+
"pageSize": pageSize,
|
|
21
|
+
"pageToken": pageToken,
|
|
22
|
+
"sortOrder": sortOrder
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
listHistoricalPrimaryNetworkRewards({
|
|
27
|
+
network,
|
|
28
|
+
addresses,
|
|
29
|
+
pageSize = 10,
|
|
30
|
+
pageToken,
|
|
31
|
+
sortOrder
|
|
32
|
+
}) {
|
|
33
|
+
return this.httpRequest.request({
|
|
34
|
+
method: "GET",
|
|
35
|
+
url: "/v1/networks/{network}/rewards",
|
|
36
|
+
path: {
|
|
37
|
+
"network": network
|
|
38
|
+
},
|
|
39
|
+
query: {
|
|
40
|
+
"addresses": addresses,
|
|
41
|
+
"pageSize": pageSize,
|
|
42
|
+
"pageToken": pageToken,
|
|
43
|
+
"sortOrder": sortOrder
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { PrimaryNetworkRewardsService };
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { ChainAddressChainIdMapListResponse } from '../models/ChainAddressChainIdMapListResponse.js';
|
|
2
|
+
import { DelegationStatusType } from '../models/DelegationStatusType.js';
|
|
3
|
+
import { GetNetworkDetailsResponse } from '../models/GetNetworkDetailsResponse.js';
|
|
4
|
+
import { ListBlockchainsResponse } from '../models/ListBlockchainsResponse.js';
|
|
5
|
+
import { ListDelegatorDetailsResponse } from '../models/ListDelegatorDetailsResponse.js';
|
|
6
|
+
import { ListSubnetsResponse } from '../models/ListSubnetsResponse.js';
|
|
7
|
+
import { ListValidatorDetailsResponse } from '../models/ListValidatorDetailsResponse.js';
|
|
8
|
+
import { Network } from '../models/Network.js';
|
|
9
|
+
import { SortOrder } from '../models/SortOrder.js';
|
|
10
|
+
import { ValidationStatusType } from '../models/ValidationStatusType.js';
|
|
11
|
+
import { XChainAssetDetails } from '../models/XChainAssetDetails.js';
|
|
12
|
+
import { XChainId } from '../models/XChainId.js';
|
|
13
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
14
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
15
|
+
|
|
16
|
+
declare class PrimaryNetworkService {
|
|
17
|
+
readonly httpRequest: BaseHttpRequest;
|
|
18
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
19
|
+
/**
|
|
20
|
+
* Get asset details
|
|
21
|
+
* Gets asset details corresponding to the given asset id on the X-Chain.
|
|
22
|
+
* @returns XChainAssetDetails
|
|
23
|
+
* @throws ApiError
|
|
24
|
+
*/
|
|
25
|
+
getAssetDetails({ blockchainId, network, assetId, }: {
|
|
26
|
+
/**
|
|
27
|
+
* A primary network blockchain id or alias.
|
|
28
|
+
*/
|
|
29
|
+
blockchainId: XChainId;
|
|
30
|
+
/**
|
|
31
|
+
* Either mainnet or a testnet.
|
|
32
|
+
*/
|
|
33
|
+
network: Network;
|
|
34
|
+
/**
|
|
35
|
+
* Asset ID for any asset on X-Chain
|
|
36
|
+
*/
|
|
37
|
+
assetId: string;
|
|
38
|
+
}): CancelablePromise<XChainAssetDetails>;
|
|
39
|
+
/**
|
|
40
|
+
* Get chain interactions for addresses
|
|
41
|
+
* Returns Primary Network chains that each address has touched in the form of an address mapped array. If an address has had any on-chain interaction for a chain, that chain's chain id will be returned.
|
|
42
|
+
* @returns ChainAddressChainIdMapListResponse
|
|
43
|
+
* @throws ApiError
|
|
44
|
+
*/
|
|
45
|
+
getChainIdsForAddresses({ addresses, network, }: {
|
|
46
|
+
/**
|
|
47
|
+
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
48
|
+
*/
|
|
49
|
+
addresses: string;
|
|
50
|
+
/**
|
|
51
|
+
* Either mainnet or a testnet.
|
|
52
|
+
*/
|
|
53
|
+
network: Network;
|
|
54
|
+
}): CancelablePromise<ChainAddressChainIdMapListResponse>;
|
|
55
|
+
/**
|
|
56
|
+
* Get network details
|
|
57
|
+
* Gets network details such as validator and delegator stats.
|
|
58
|
+
* @returns GetNetworkDetailsResponse
|
|
59
|
+
* @throws ApiError
|
|
60
|
+
*/
|
|
61
|
+
getNetworkDetails({ network, }: {
|
|
62
|
+
/**
|
|
63
|
+
* Either mainnet or a testnet.
|
|
64
|
+
*/
|
|
65
|
+
network: Network;
|
|
66
|
+
}): CancelablePromise<GetNetworkDetailsResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* List blockchains
|
|
69
|
+
* Lists all blockchains registered on the network.
|
|
70
|
+
* @returns ListBlockchainsResponse
|
|
71
|
+
* @throws ApiError
|
|
72
|
+
*/
|
|
73
|
+
listBlockchains({ network, pageSize, pageToken, sortOrder, }: {
|
|
74
|
+
/**
|
|
75
|
+
* Either mainnet or a testnet.
|
|
76
|
+
*/
|
|
77
|
+
network: Network;
|
|
78
|
+
/**
|
|
79
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
80
|
+
*/
|
|
81
|
+
pageSize?: number;
|
|
82
|
+
/**
|
|
83
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
84
|
+
*/
|
|
85
|
+
pageToken?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
88
|
+
*/
|
|
89
|
+
sortOrder?: SortOrder;
|
|
90
|
+
}): CancelablePromise<ListBlockchainsResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* List subnets
|
|
93
|
+
* Lists all subnets registered on the network.
|
|
94
|
+
* @returns ListSubnetsResponse
|
|
95
|
+
* @throws ApiError
|
|
96
|
+
*/
|
|
97
|
+
listSubnets({ network, pageSize, pageToken, sortOrder, }: {
|
|
98
|
+
/**
|
|
99
|
+
* Either mainnet or a testnet.
|
|
100
|
+
*/
|
|
101
|
+
network: Network;
|
|
102
|
+
/**
|
|
103
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
104
|
+
*/
|
|
105
|
+
pageSize?: number;
|
|
106
|
+
/**
|
|
107
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
108
|
+
*/
|
|
109
|
+
pageToken?: string;
|
|
110
|
+
/**
|
|
111
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
112
|
+
*/
|
|
113
|
+
sortOrder?: SortOrder;
|
|
114
|
+
}): CancelablePromise<ListSubnetsResponse>;
|
|
115
|
+
/**
|
|
116
|
+
* List validators
|
|
117
|
+
* Lists details for validators. By default, returns details for all validators. Filterable by validator node ids and minimum delegation capacity.
|
|
118
|
+
* @returns ListValidatorDetailsResponse
|
|
119
|
+
* @throws ApiError
|
|
120
|
+
*/
|
|
121
|
+
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
|
|
122
|
+
/**
|
|
123
|
+
* Either mainnet or a testnet.
|
|
124
|
+
*/
|
|
125
|
+
network: Network;
|
|
126
|
+
/**
|
|
127
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
128
|
+
*/
|
|
129
|
+
pageSize?: number;
|
|
130
|
+
/**
|
|
131
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
132
|
+
*/
|
|
133
|
+
pageToken?: string;
|
|
134
|
+
/**
|
|
135
|
+
* A comma separated list of node ids to filter by.
|
|
136
|
+
*/
|
|
137
|
+
nodeIds?: string;
|
|
138
|
+
/**
|
|
139
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
140
|
+
*/
|
|
141
|
+
sortOrder?: SortOrder;
|
|
142
|
+
/**
|
|
143
|
+
* Validation status of the node.
|
|
144
|
+
*/
|
|
145
|
+
validationStatus?: ValidationStatusType;
|
|
146
|
+
/**
|
|
147
|
+
* The minimum delegation capacity, used to filter the set of nodes being returned (Units - nAVAX). Default is 0.
|
|
148
|
+
*/
|
|
149
|
+
minDelegationCapacity?: any;
|
|
150
|
+
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
151
|
+
/**
|
|
152
|
+
* Get single validator details
|
|
153
|
+
* List validator details for a single validator. Filterable by validation status.
|
|
154
|
+
* @returns ListValidatorDetailsResponse
|
|
155
|
+
* @throws ApiError
|
|
156
|
+
*/
|
|
157
|
+
getSingleValidatorDetails({ network, nodeId, pageSize, pageToken, sortOrder, validationStatus, }: {
|
|
158
|
+
/**
|
|
159
|
+
* Either mainnet or a testnet.
|
|
160
|
+
*/
|
|
161
|
+
network: Network;
|
|
162
|
+
/**
|
|
163
|
+
* A primary network (P or X chain) nodeId.
|
|
164
|
+
*/
|
|
165
|
+
nodeId: string;
|
|
166
|
+
/**
|
|
167
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
168
|
+
*/
|
|
169
|
+
pageSize?: number;
|
|
170
|
+
/**
|
|
171
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
172
|
+
*/
|
|
173
|
+
pageToken?: string;
|
|
174
|
+
/**
|
|
175
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
176
|
+
*/
|
|
177
|
+
sortOrder?: SortOrder;
|
|
178
|
+
/**
|
|
179
|
+
* Validation status of the node.
|
|
180
|
+
*/
|
|
181
|
+
validationStatus?: ValidationStatusType;
|
|
182
|
+
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
183
|
+
/**
|
|
184
|
+
* List delegators
|
|
185
|
+
* Lists details for delegators.
|
|
186
|
+
* @returns ListDelegatorDetailsResponse
|
|
187
|
+
* @throws ApiError
|
|
188
|
+
*/
|
|
189
|
+
listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus, rewardAddresses, nodeIds, }: {
|
|
190
|
+
/**
|
|
191
|
+
* Either mainnet or a testnet.
|
|
192
|
+
*/
|
|
193
|
+
network: Network;
|
|
194
|
+
/**
|
|
195
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
196
|
+
*/
|
|
197
|
+
pageSize?: number;
|
|
198
|
+
/**
|
|
199
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
200
|
+
*/
|
|
201
|
+
pageToken?: string;
|
|
202
|
+
/**
|
|
203
|
+
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
204
|
+
*/
|
|
205
|
+
sortOrder?: SortOrder;
|
|
206
|
+
/**
|
|
207
|
+
* Delegation status of the node.
|
|
208
|
+
*/
|
|
209
|
+
delegationStatus?: DelegationStatusType;
|
|
210
|
+
/**
|
|
211
|
+
* A comma separated list of reward addresses to filter by.
|
|
212
|
+
*/
|
|
213
|
+
rewardAddresses?: string;
|
|
214
|
+
/**
|
|
215
|
+
* A comma separated list of node ids to filter by.
|
|
216
|
+
*/
|
|
217
|
+
nodeIds?: string;
|
|
218
|
+
}): CancelablePromise<ListDelegatorDetailsResponse>;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export { PrimaryNetworkService };
|