@avalabs/glacier-sdk 2.8.0-alpha.99 → 2.8.0-canary.122008d.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/dist/index.d.ts +2418 -1684
- package/dist/index.js +749 -317
- package/esm/generated/Glacier.d.ts +26 -2
- package/esm/generated/Glacier.js +52 -12
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.js +11 -6
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/core/request.js +14 -31
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +19 -0
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +27 -0
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/Blockchain.d.ts +10 -0
- package/esm/generated/models/BlockchainId.d.ts +6 -3
- package/esm/generated/models/BlockchainId.js +5 -2
- 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/ChainAddressChainIdMap.d.ts +2 -2
- package/esm/generated/models/ChainInfo.d.ts +2 -4
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +19 -0
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +20 -0
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -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/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 +5 -0
- package/esm/generated/models/Erc1155Contract.d.ts +37 -0
- package/esm/generated/models/Erc1155Contract.js +8 -0
- package/esm/generated/models/Erc1155TokenBalance.d.ts +1 -2
- package/esm/generated/models/Erc1155Transfer.d.ts +1 -0
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -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 +1 -3
- package/esm/generated/models/Erc20TokenBalance.d.ts +2 -5
- package/esm/generated/models/Erc20Transfer.d.ts +1 -0
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -0
- package/esm/generated/models/Erc721Contract.d.ts +35 -0
- package/esm/generated/models/Erc721Contract.js +8 -0
- package/esm/generated/models/Erc721Transfer.d.ts +1 -0
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -0
- package/esm/generated/models/{GetBlockResponse.d.ts → EvmBlock.d.ts} +2 -6
- package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
- package/esm/generated/models/GetChainResponse.d.ts +2 -4
- package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -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 +1 -7
- package/esm/generated/models/HistoricalReward.d.ts +24 -0
- package/esm/generated/models/ImageAsset.d.ts +9 -0
- package/esm/generated/models/{ListListingsResponse.d.ts → ListBlockchainsResponse.d.ts} +4 -4
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -2
- package/esm/generated/models/ListContractsResponse.d.ts +14 -0
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +2 -0
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
- package/esm/generated/models/{ListBlocksResponse.d.ts → ListSubnetsResponse.d.ts} +4 -4
- package/esm/generated/models/ListUtxosResponse.d.ts +2 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +2 -0
- package/esm/generated/models/Method.d.ts +1 -7
- package/esm/generated/models/NativeTokenBalance.d.ts +2 -5
- package/esm/generated/models/NetworkToken.d.ts +1 -3
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -3
- package/esm/generated/models/NetworkType.d.ts +6 -0
- package/esm/generated/models/NetworkType.js +7 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
- package/esm/generated/models/OperationType.d.ts +2 -1
- package/esm/generated/models/OperationType.js +2 -1
- package/esm/generated/models/PChainBalance.d.ts +16 -7
- package/esm/generated/models/PChainId.d.ts +2 -2
- package/esm/generated/models/PChainId.js +1 -1
- package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
- package/esm/generated/models/PChainTransaction.d.ts +10 -15
- package/esm/generated/models/PChainTransactionType.d.ts +17 -0
- package/esm/generated/models/PChainTransactionType.js +18 -0
- package/esm/generated/models/PChainUtxo.d.ts +10 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +19 -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 +16 -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/{Block.d.ts → PrimaryNetworkBlock.d.ts} +3 -3
- 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 +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +20 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +21 -0
- package/esm/generated/models/RewardType.d.ts +7 -0
- package/esm/generated/models/RewardType.js +8 -0
- package/esm/generated/models/Rewards.d.ts +8 -0
- package/esm/generated/models/RichAddress.d.ts +1 -3
- 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 +1 -7
- package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
- package/esm/generated/models/UnknownContract.d.ts +31 -0
- package/esm/generated/models/UnknownContract.js +8 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/Utxo.d.ts +9 -1
- 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/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
- package/esm/generated/models/XChainBalances.d.ts +2 -2
- package/esm/generated/models/XChainId.d.ts +3 -2
- package/esm/generated/models/XChainId.js +2 -1
- package/esm/generated/models/XChainLinearTransaction.d.ts +4 -4
- package/esm/generated/models/XChainLinearTransaction.js +1 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -4
- package/esm/generated/models/XChainNonLinearTransaction.js +1 -1
- package/esm/generated/services/DefaultService.d.ts +14 -0
- package/esm/generated/services/DefaultService.js +13 -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 +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +311 -0
- package/esm/generated/services/EvmTransactionsService.js +251 -0
- package/esm/generated/services/HealthCheckService.d.ts +1 -1
- package/esm/generated/services/NfTsService.d.ts +51 -0
- package/esm/generated/services/NfTsService.js +37 -0
- package/esm/generated/services/OperationsService.d.ts +8 -3
- 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 +77 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.js +53 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +103 -245
- package/esm/generated/services/PrimaryNetworkService.js +65 -167
- 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 +71 -31
- package/esm/index.js +39 -9
- package/package.json +2 -5
- package/esm/generated/models/Address.d.ts +0 -8
- package/esm/generated/models/CancelListingEventResponse.d.ts +0 -5
- package/esm/generated/models/CloseAuctionEventResponse.d.ts +0 -6
- package/esm/generated/models/CollectionMetrics.d.ts +0 -40
- package/esm/generated/models/CollectionSortByOption.d.ts +0 -8
- package/esm/generated/models/CollectionSortByOption.js +0 -9
- package/esm/generated/models/CreateTransactionExportRequest.d.ts +0 -11
- package/esm/generated/models/ErcType.d.ts +0 -8
- package/esm/generated/models/ErcType.js +0 -9
- package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
- package/esm/generated/models/ListingCurrencyType.d.ts +0 -6
- package/esm/generated/models/ListingCurrencyType.js +0 -7
- package/esm/generated/models/ListingEventType.d.ts +0 -8
- package/esm/generated/models/ListingEventType.js +0 -9
- package/esm/generated/models/ListingResponse.d.ts +0 -19
- package/esm/generated/models/ListingType.d.ts +0 -6
- package/esm/generated/models/ListingType.js +0 -7
- package/esm/generated/models/ListingsSortByOption.d.ts +0 -5
- package/esm/generated/models/ListingsSortByOption.js +0 -6
- package/esm/generated/models/NftCollection.d.ts +0 -24
- package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
- package/esm/generated/models/NftFilterOptionsProperty.d.ts +0 -10
- package/esm/generated/models/NftSearchBody.d.ts +0 -10
- package/esm/generated/models/NftSearchResultTypeOption.d.ts +0 -6
- package/esm/generated/models/NftSearchResultTypeOption.js +0 -7
- package/esm/generated/models/OpenListingEventResponse.d.ts +0 -17
- package/esm/generated/models/OperationTransactionExportMetadata.d.ts +0 -18
- package/esm/generated/models/PChainConsumedUtxo.d.ts +0 -11
- package/esm/generated/models/PChainEmittedUtxo.d.ts +0 -19
- package/esm/generated/models/PaginationParams.d.ts +0 -13
- package/esm/generated/models/PurchaseListingEventResponse.d.ts +0 -17
- package/esm/generated/models/TokenWithPrice.d.ts +0 -28
- package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
- package/esm/generated/models/TrendingTimeframe.js +0 -8
- package/esm/generated/services/EvmService.d.ts +0 -724
- package/esm/generated/services/EvmService.js +0 -509
|
@@ -2,269 +2,167 @@ class PrimaryNetworkService {
|
|
|
2
2
|
constructor(httpRequest) {
|
|
3
3
|
this.httpRequest = httpRequest;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
getAssetDetails({
|
|
6
6
|
blockchainId,
|
|
7
7
|
network,
|
|
8
|
-
|
|
8
|
+
assetId
|
|
9
9
|
}) {
|
|
10
10
|
return this.httpRequest.request({
|
|
11
11
|
method: "GET",
|
|
12
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/
|
|
12
|
+
url: "/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",
|
|
13
13
|
path: {
|
|
14
14
|
"blockchainId": blockchainId,
|
|
15
15
|
"network": network,
|
|
16
|
-
"
|
|
16
|
+
"assetId": assetId
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
blockchainId,
|
|
22
|
-
network,
|
|
20
|
+
getChainIdsForAddresses({
|
|
23
21
|
addresses,
|
|
24
|
-
|
|
25
|
-
pageToken,
|
|
26
|
-
sortOrder
|
|
22
|
+
network
|
|
27
23
|
}) {
|
|
28
24
|
return this.httpRequest.request({
|
|
29
25
|
method: "GET",
|
|
30
|
-
url: "/v1/networks/{network}/
|
|
26
|
+
url: "/v1/networks/{network}/addresses:listChainIds",
|
|
31
27
|
path: {
|
|
32
|
-
"blockchainId": blockchainId,
|
|
33
28
|
"network": network
|
|
34
29
|
},
|
|
35
30
|
query: {
|
|
36
|
-
"addresses": addresses
|
|
37
|
-
"pageSize": pageSize,
|
|
38
|
-
"pageToken": pageToken,
|
|
39
|
-
"sortOrder": sortOrder
|
|
31
|
+
"addresses": addresses
|
|
40
32
|
}
|
|
41
33
|
});
|
|
42
34
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
network,
|
|
46
|
-
addresses,
|
|
47
|
-
pageSize = 10,
|
|
48
|
-
pageToken,
|
|
49
|
-
sortOrder
|
|
35
|
+
getNetworkDetails({
|
|
36
|
+
network
|
|
50
37
|
}) {
|
|
51
38
|
return this.httpRequest.request({
|
|
52
39
|
method: "GET",
|
|
53
|
-
url: "/v1/networks/{network}
|
|
40
|
+
url: "/v1/networks/{network}",
|
|
54
41
|
path: {
|
|
55
|
-
"blockchainId": blockchainId,
|
|
56
42
|
"network": network
|
|
57
|
-
},
|
|
58
|
-
query: {
|
|
59
|
-
"addresses": addresses,
|
|
60
|
-
"pageSize": pageSize,
|
|
61
|
-
"pageToken": pageToken,
|
|
62
|
-
"sortOrder": sortOrder
|
|
63
43
|
}
|
|
64
44
|
});
|
|
65
45
|
}
|
|
66
|
-
|
|
67
|
-
blockchainId,
|
|
46
|
+
listBlockchains({
|
|
68
47
|
network,
|
|
69
|
-
addresses,
|
|
70
48
|
pageSize = 10,
|
|
71
49
|
pageToken,
|
|
72
|
-
assetId,
|
|
73
50
|
sortOrder
|
|
74
51
|
}) {
|
|
75
52
|
return this.httpRequest.request({
|
|
76
53
|
method: "GET",
|
|
77
|
-
url: "/v1/networks/{network}/blockchains
|
|
54
|
+
url: "/v1/networks/{network}/blockchains",
|
|
78
55
|
path: {
|
|
79
|
-
"blockchainId": blockchainId,
|
|
80
56
|
"network": network
|
|
81
57
|
},
|
|
82
58
|
query: {
|
|
83
|
-
"addresses": addresses,
|
|
84
59
|
"pageSize": pageSize,
|
|
85
60
|
"pageToken": pageToken,
|
|
86
|
-
"assetId": assetId,
|
|
87
61
|
"sortOrder": sortOrder
|
|
88
62
|
}
|
|
89
63
|
});
|
|
90
64
|
}
|
|
91
|
-
|
|
92
|
-
blockchainId,
|
|
93
|
-
network,
|
|
94
|
-
addresses
|
|
95
|
-
}) {
|
|
96
|
-
return this.httpRequest.request({
|
|
97
|
-
method: "GET",
|
|
98
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/balances",
|
|
99
|
-
path: {
|
|
100
|
-
"blockchainId": blockchainId,
|
|
101
|
-
"network": network
|
|
102
|
-
},
|
|
103
|
-
query: {
|
|
104
|
-
"addresses": addresses
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
getBlockById({
|
|
109
|
-
blockchainId,
|
|
65
|
+
listSubnets({
|
|
110
66
|
network,
|
|
111
|
-
blockId
|
|
112
|
-
}) {
|
|
113
|
-
return this.httpRequest.request({
|
|
114
|
-
method: "GET",
|
|
115
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/blocks/{blockId}",
|
|
116
|
-
path: {
|
|
117
|
-
"blockchainId": blockchainId,
|
|
118
|
-
"network": network,
|
|
119
|
-
"blockId": blockId
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
listPrimaryNetworkBlocksByNodeId({
|
|
124
|
-
blockchainId,
|
|
125
|
-
network,
|
|
126
|
-
nodeId,
|
|
127
67
|
pageSize = 10,
|
|
128
|
-
pageToken
|
|
129
|
-
|
|
130
|
-
return this.httpRequest.request({
|
|
131
|
-
method: "GET",
|
|
132
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/nodes/{nodeId}/blocks",
|
|
133
|
-
path: {
|
|
134
|
-
"blockchainId": blockchainId,
|
|
135
|
-
"network": network,
|
|
136
|
-
"nodeId": nodeId
|
|
137
|
-
},
|
|
138
|
-
query: {
|
|
139
|
-
"pageSize": pageSize,
|
|
140
|
-
"pageToken": pageToken
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
listLatestPrimaryNetworkBlocks({
|
|
145
|
-
blockchainId,
|
|
146
|
-
network,
|
|
147
|
-
pageSize = 10,
|
|
148
|
-
pageToken
|
|
68
|
+
pageToken,
|
|
69
|
+
sortOrder
|
|
149
70
|
}) {
|
|
150
71
|
return this.httpRequest.request({
|
|
151
72
|
method: "GET",
|
|
152
|
-
url: "/v1/networks/{network}/
|
|
73
|
+
url: "/v1/networks/{network}/subnets",
|
|
153
74
|
path: {
|
|
154
|
-
"blockchainId": blockchainId,
|
|
155
75
|
"network": network
|
|
156
76
|
},
|
|
157
77
|
query: {
|
|
158
78
|
"pageSize": pageSize,
|
|
159
|
-
"pageToken": pageToken
|
|
79
|
+
"pageToken": pageToken,
|
|
80
|
+
"sortOrder": sortOrder
|
|
160
81
|
}
|
|
161
82
|
});
|
|
162
83
|
}
|
|
163
|
-
|
|
164
|
-
blockchainId,
|
|
84
|
+
listValidators({
|
|
165
85
|
network,
|
|
166
86
|
pageSize = 10,
|
|
167
|
-
pageToken
|
|
87
|
+
pageToken,
|
|
88
|
+
minTimeRemaining,
|
|
89
|
+
maxTimeRemaining,
|
|
90
|
+
minDelegationCapacity,
|
|
91
|
+
maxDelegationCapacity,
|
|
92
|
+
minFeePercentage,
|
|
93
|
+
maxFeePercentage,
|
|
94
|
+
nodeIds,
|
|
95
|
+
sortOrder,
|
|
96
|
+
validationStatus,
|
|
97
|
+
subnetId
|
|
168
98
|
}) {
|
|
169
99
|
return this.httpRequest.request({
|
|
170
100
|
method: "GET",
|
|
171
|
-
url: "/v1/networks/{network}/
|
|
101
|
+
url: "/v1/networks/{network}/validators",
|
|
172
102
|
path: {
|
|
173
|
-
"blockchainId": blockchainId,
|
|
174
103
|
"network": network
|
|
175
104
|
},
|
|
176
105
|
query: {
|
|
177
106
|
"pageSize": pageSize,
|
|
178
|
-
"pageToken": pageToken
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/vertices/{vertexHash}",
|
|
190
|
-
path: {
|
|
191
|
-
"vertexHash": vertexHash,
|
|
192
|
-
"blockchainId": blockchainId,
|
|
193
|
-
"network": network
|
|
107
|
+
"pageToken": pageToken,
|
|
108
|
+
"minTimeRemaining": minTimeRemaining,
|
|
109
|
+
"maxTimeRemaining": maxTimeRemaining,
|
|
110
|
+
"minDelegationCapacity": minDelegationCapacity,
|
|
111
|
+
"maxDelegationCapacity": maxDelegationCapacity,
|
|
112
|
+
"minFeePercentage": minFeePercentage,
|
|
113
|
+
"maxFeePercentage": maxFeePercentage,
|
|
114
|
+
"nodeIds": nodeIds,
|
|
115
|
+
"sortOrder": sortOrder,
|
|
116
|
+
"validationStatus": validationStatus,
|
|
117
|
+
"subnetId": subnetId
|
|
194
118
|
}
|
|
195
119
|
});
|
|
196
120
|
}
|
|
197
|
-
|
|
198
|
-
vertexHeight,
|
|
199
|
-
blockchainId,
|
|
121
|
+
getSingleValidatorDetails({
|
|
200
122
|
network,
|
|
123
|
+
nodeId,
|
|
201
124
|
pageSize = 10,
|
|
202
125
|
pageToken,
|
|
203
|
-
sortOrder
|
|
126
|
+
sortOrder,
|
|
127
|
+
validationStatus
|
|
204
128
|
}) {
|
|
205
129
|
return this.httpRequest.request({
|
|
206
130
|
method: "GET",
|
|
207
|
-
url: "/v1/networks/{network}/
|
|
131
|
+
url: "/v1/networks/{network}/validators/{nodeId}",
|
|
208
132
|
path: {
|
|
209
|
-
"
|
|
210
|
-
"
|
|
133
|
+
"network": network,
|
|
134
|
+
"nodeId": nodeId
|
|
211
135
|
},
|
|
212
136
|
query: {
|
|
213
|
-
"vertexHeight": vertexHeight,
|
|
214
137
|
"pageSize": pageSize,
|
|
215
138
|
"pageToken": pageToken,
|
|
216
|
-
"sortOrder": sortOrder
|
|
139
|
+
"sortOrder": sortOrder,
|
|
140
|
+
"validationStatus": validationStatus
|
|
217
141
|
}
|
|
218
142
|
});
|
|
219
143
|
}
|
|
220
|
-
|
|
221
|
-
blockchainId,
|
|
144
|
+
listDelegators({
|
|
222
145
|
network,
|
|
223
|
-
assetId
|
|
224
|
-
}) {
|
|
225
|
-
return this.httpRequest.request({
|
|
226
|
-
method: "GET",
|
|
227
|
-
url: "/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}",
|
|
228
|
-
path: {
|
|
229
|
-
"blockchainId": blockchainId,
|
|
230
|
-
"network": network,
|
|
231
|
-
"assetId": assetId
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
getAssetTransactions({
|
|
236
|
-
blockchainId,
|
|
237
|
-
network,
|
|
238
|
-
assetId,
|
|
239
146
|
pageSize = 10,
|
|
240
|
-
pageToken
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
path: {
|
|
246
|
-
"blockchainId": blockchainId,
|
|
247
|
-
"network": network,
|
|
248
|
-
"assetId": assetId
|
|
249
|
-
},
|
|
250
|
-
query: {
|
|
251
|
-
"pageSize": pageSize,
|
|
252
|
-
"pageToken": pageToken
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
getChainAddresses({
|
|
257
|
-
addresses,
|
|
258
|
-
network
|
|
147
|
+
pageToken,
|
|
148
|
+
rewardAddresses,
|
|
149
|
+
sortOrder,
|
|
150
|
+
delegationStatus,
|
|
151
|
+
nodeIds
|
|
259
152
|
}) {
|
|
260
153
|
return this.httpRequest.request({
|
|
261
154
|
method: "GET",
|
|
262
|
-
url: "/v1/networks/{network}/
|
|
155
|
+
url: "/v1/networks/{network}/delegators",
|
|
263
156
|
path: {
|
|
264
157
|
"network": network
|
|
265
158
|
},
|
|
266
159
|
query: {
|
|
267
|
-
"
|
|
160
|
+
"pageSize": pageSize,
|
|
161
|
+
"pageToken": pageToken,
|
|
162
|
+
"rewardAddresses": rewardAddresses,
|
|
163
|
+
"sortOrder": sortOrder,
|
|
164
|
+
"delegationStatus": delegationStatus,
|
|
165
|
+
"nodeIds": nodeIds
|
|
268
166
|
}
|
|
269
167
|
});
|
|
270
168
|
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { BlockchainId } from '../models/BlockchainId.js';
|
|
2
|
+
import { CChainExportTransaction } from '../models/CChainExportTransaction.js';
|
|
3
|
+
import { CChainImportTransaction } from '../models/CChainImportTransaction.js';
|
|
4
|
+
import { ListCChainAtomicTransactionsResponse } from '../models/ListCChainAtomicTransactionsResponse.js';
|
|
5
|
+
import { ListPChainTransactionsResponse } from '../models/ListPChainTransactionsResponse.js';
|
|
6
|
+
import { ListXChainTransactionsResponse } from '../models/ListXChainTransactionsResponse.js';
|
|
7
|
+
import { Network } from '../models/Network.js';
|
|
8
|
+
import { PChainId } from '../models/PChainId.js';
|
|
9
|
+
import { PChainTransaction } from '../models/PChainTransaction.js';
|
|
10
|
+
import { PrimaryNetworkTxType } from '../models/PrimaryNetworkTxType.js';
|
|
11
|
+
import { SortOrder } from '../models/SortOrder.js';
|
|
12
|
+
import { XChainId } from '../models/XChainId.js';
|
|
13
|
+
import { XChainLinearTransaction } from '../models/XChainLinearTransaction.js';
|
|
14
|
+
import { XChainNonLinearTransaction } from '../models/XChainNonLinearTransaction.js';
|
|
15
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
16
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
17
|
+
|
|
18
|
+
declare class PrimaryNetworkTransactionsService {
|
|
19
|
+
readonly httpRequest: BaseHttpRequest;
|
|
20
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
21
|
+
/**
|
|
22
|
+
* Get transaction
|
|
23
|
+
* Gets the details of a single transaction on one of the Primary Network chains.
|
|
24
|
+
* @returns any
|
|
25
|
+
* @throws ApiError
|
|
26
|
+
*/
|
|
27
|
+
getTxByHash({ blockchainId, network, txHash, }: {
|
|
28
|
+
/**
|
|
29
|
+
* A primary network blockchain id or alias.
|
|
30
|
+
*/
|
|
31
|
+
blockchainId: BlockchainId;
|
|
32
|
+
/**
|
|
33
|
+
* Either mainnet or a testnet.
|
|
34
|
+
*/
|
|
35
|
+
network: Network;
|
|
36
|
+
/**
|
|
37
|
+
* A primary network (P or X chain) transaction hash.
|
|
38
|
+
*/
|
|
39
|
+
txHash: string;
|
|
40
|
+
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
41
|
+
/**
|
|
42
|
+
* List latest transactions
|
|
43
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
44
|
+
*
|
|
45
|
+
* Transactions are filterable by addresses.
|
|
46
|
+
*
|
|
47
|
+
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
48
|
+
* @returns any
|
|
49
|
+
* @throws ApiError
|
|
50
|
+
*/
|
|
51
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
|
|
52
|
+
/**
|
|
53
|
+
* A primary network blockchain id or alias.
|
|
54
|
+
*/
|
|
55
|
+
blockchainId: BlockchainId;
|
|
56
|
+
/**
|
|
57
|
+
* Either mainnet or a testnet.
|
|
58
|
+
*/
|
|
59
|
+
network: Network;
|
|
60
|
+
/**
|
|
61
|
+
* 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".
|
|
62
|
+
*/
|
|
63
|
+
addresses?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Query param for filtering items based on transaction types.
|
|
66
|
+
*/
|
|
67
|
+
txTypes?: Array<PrimaryNetworkTxType>;
|
|
68
|
+
/**
|
|
69
|
+
* Query param for retrieving items after a specific timestamp.
|
|
70
|
+
*/
|
|
71
|
+
startTimestamp?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Query param for retrieving items before a specific timestamp.
|
|
74
|
+
*/
|
|
75
|
+
endTimestamp?: number;
|
|
76
|
+
/**
|
|
77
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
78
|
+
*/
|
|
79
|
+
pageSize?: number;
|
|
80
|
+
/**
|
|
81
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
82
|
+
*/
|
|
83
|
+
pageToken?: string;
|
|
84
|
+
/**
|
|
85
|
+
* 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.
|
|
86
|
+
*/
|
|
87
|
+
sortOrder?: SortOrder;
|
|
88
|
+
}): CancelablePromise<(ListPChainTransactionsResponse | ListXChainTransactionsResponse | ListCChainAtomicTransactionsResponse)>;
|
|
89
|
+
/**
|
|
90
|
+
* List staking transactions
|
|
91
|
+
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
92
|
+
* @returns ListPChainTransactionsResponse
|
|
93
|
+
* @throws ApiError
|
|
94
|
+
*/
|
|
95
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
|
|
96
|
+
/**
|
|
97
|
+
* A primary network blockchain id or alias.
|
|
98
|
+
*/
|
|
99
|
+
blockchainId: PChainId;
|
|
100
|
+
/**
|
|
101
|
+
* Either mainnet or a testnet.
|
|
102
|
+
*/
|
|
103
|
+
network: Network;
|
|
104
|
+
/**
|
|
105
|
+
* 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".
|
|
106
|
+
*/
|
|
107
|
+
addresses?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Query param for filtering items based on transaction types.
|
|
110
|
+
*/
|
|
111
|
+
txTypes?: Array<PrimaryNetworkTxType>;
|
|
112
|
+
/**
|
|
113
|
+
* Query param for retrieving items after a specific timestamp.
|
|
114
|
+
*/
|
|
115
|
+
startTimestamp?: number;
|
|
116
|
+
/**
|
|
117
|
+
* Query param for retrieving items before a specific timestamp.
|
|
118
|
+
*/
|
|
119
|
+
endTimestamp?: number;
|
|
120
|
+
/**
|
|
121
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
122
|
+
*/
|
|
123
|
+
pageSize?: number;
|
|
124
|
+
/**
|
|
125
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
126
|
+
*/
|
|
127
|
+
pageToken?: string;
|
|
128
|
+
/**
|
|
129
|
+
* 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.
|
|
130
|
+
*/
|
|
131
|
+
sortOrder?: SortOrder;
|
|
132
|
+
}): CancelablePromise<ListPChainTransactionsResponse>;
|
|
133
|
+
/**
|
|
134
|
+
* List asset transactions
|
|
135
|
+
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
136
|
+
* @returns ListXChainTransactionsResponse
|
|
137
|
+
* @throws ApiError
|
|
138
|
+
*/
|
|
139
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
|
|
140
|
+
/**
|
|
141
|
+
* A primary network blockchain id or alias.
|
|
142
|
+
*/
|
|
143
|
+
blockchainId: XChainId;
|
|
144
|
+
/**
|
|
145
|
+
* Either mainnet or a testnet.
|
|
146
|
+
*/
|
|
147
|
+
network: Network;
|
|
148
|
+
/**
|
|
149
|
+
* Asset ID for any asset on X-Chain
|
|
150
|
+
*/
|
|
151
|
+
assetId: string;
|
|
152
|
+
/**
|
|
153
|
+
* Query param for filtering items based on transaction types.
|
|
154
|
+
*/
|
|
155
|
+
txTypes?: Array<PrimaryNetworkTxType>;
|
|
156
|
+
/**
|
|
157
|
+
* Query param for retrieving items after a specific timestamp.
|
|
158
|
+
*/
|
|
159
|
+
startTimestamp?: number;
|
|
160
|
+
/**
|
|
161
|
+
* Query param for retrieving items before a specific timestamp.
|
|
162
|
+
*/
|
|
163
|
+
endTimestamp?: number;
|
|
164
|
+
/**
|
|
165
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
166
|
+
*/
|
|
167
|
+
pageSize?: number;
|
|
168
|
+
/**
|
|
169
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
170
|
+
*/
|
|
171
|
+
pageToken?: string;
|
|
172
|
+
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export { PrimaryNetworkTransactionsService };
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
class PrimaryNetworkTransactionsService {
|
|
2
|
+
constructor(httpRequest) {
|
|
3
|
+
this.httpRequest = httpRequest;
|
|
4
|
+
}
|
|
5
|
+
getTxByHash({
|
|
6
|
+
blockchainId,
|
|
7
|
+
network,
|
|
8
|
+
txHash
|
|
9
|
+
}) {
|
|
10
|
+
return this.httpRequest.request({
|
|
11
|
+
method: "GET",
|
|
12
|
+
url: "/v1/networks/{network}/blockchains/{blockchainId}/transactions/{txHash}",
|
|
13
|
+
path: {
|
|
14
|
+
"blockchainId": blockchainId,
|
|
15
|
+
"network": network,
|
|
16
|
+
"txHash": txHash
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
listLatestPrimaryNetworkTransactions({
|
|
21
|
+
blockchainId,
|
|
22
|
+
network,
|
|
23
|
+
addresses,
|
|
24
|
+
txTypes,
|
|
25
|
+
startTimestamp,
|
|
26
|
+
endTimestamp,
|
|
27
|
+
pageSize = 10,
|
|
28
|
+
pageToken,
|
|
29
|
+
sortOrder
|
|
30
|
+
}) {
|
|
31
|
+
return this.httpRequest.request({
|
|
32
|
+
method: "GET",
|
|
33
|
+
url: "/v1/networks/{network}/blockchains/{blockchainId}/transactions",
|
|
34
|
+
path: {
|
|
35
|
+
"blockchainId": blockchainId,
|
|
36
|
+
"network": network
|
|
37
|
+
},
|
|
38
|
+
query: {
|
|
39
|
+
"addresses": addresses,
|
|
40
|
+
"txTypes": txTypes,
|
|
41
|
+
"startTimestamp": startTimestamp,
|
|
42
|
+
"endTimestamp": endTimestamp,
|
|
43
|
+
"pageSize": pageSize,
|
|
44
|
+
"pageToken": pageToken,
|
|
45
|
+
"sortOrder": sortOrder
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
listActivePrimaryNetworkStakingTransactions({
|
|
50
|
+
blockchainId,
|
|
51
|
+
network,
|
|
52
|
+
addresses,
|
|
53
|
+
txTypes,
|
|
54
|
+
startTimestamp,
|
|
55
|
+
endTimestamp,
|
|
56
|
+
pageSize = 10,
|
|
57
|
+
pageToken,
|
|
58
|
+
sortOrder
|
|
59
|
+
}) {
|
|
60
|
+
return this.httpRequest.request({
|
|
61
|
+
method: "GET",
|
|
62
|
+
url: "/v1/networks/{network}/blockchains/{blockchainId}/transactions:listStaking",
|
|
63
|
+
path: {
|
|
64
|
+
"blockchainId": blockchainId,
|
|
65
|
+
"network": network
|
|
66
|
+
},
|
|
67
|
+
query: {
|
|
68
|
+
"addresses": addresses,
|
|
69
|
+
"txTypes": txTypes,
|
|
70
|
+
"startTimestamp": startTimestamp,
|
|
71
|
+
"endTimestamp": endTimestamp,
|
|
72
|
+
"pageSize": pageSize,
|
|
73
|
+
"pageToken": pageToken,
|
|
74
|
+
"sortOrder": sortOrder
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
listAssetTransactions({
|
|
79
|
+
blockchainId,
|
|
80
|
+
network,
|
|
81
|
+
assetId,
|
|
82
|
+
txTypes,
|
|
83
|
+
startTimestamp,
|
|
84
|
+
endTimestamp,
|
|
85
|
+
pageSize = 10,
|
|
86
|
+
pageToken
|
|
87
|
+
}) {
|
|
88
|
+
return this.httpRequest.request({
|
|
89
|
+
method: "GET",
|
|
90
|
+
url: "/v1/networks/{network}/blockchains/{blockchainId}/assets/{assetId}/transactions",
|
|
91
|
+
path: {
|
|
92
|
+
"blockchainId": blockchainId,
|
|
93
|
+
"network": network,
|
|
94
|
+
"assetId": assetId
|
|
95
|
+
},
|
|
96
|
+
query: {
|
|
97
|
+
"txTypes": txTypes,
|
|
98
|
+
"startTimestamp": startTimestamp,
|
|
99
|
+
"endTimestamp": endTimestamp,
|
|
100
|
+
"pageSize": pageSize,
|
|
101
|
+
"pageToken": pageToken
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export { PrimaryNetworkTransactionsService };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { BlockchainId } from '../models/BlockchainId.js';
|
|
2
|
+
import { ListPChainUtxosResponse } from '../models/ListPChainUtxosResponse.js';
|
|
3
|
+
import { ListUtxosResponse } from '../models/ListUtxosResponse.js';
|
|
4
|
+
import { Network } from '../models/Network.js';
|
|
5
|
+
import { SortOrder } from '../models/SortOrder.js';
|
|
6
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
7
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
8
|
+
|
|
9
|
+
declare class PrimaryNetworkUtxOsService {
|
|
10
|
+
readonly httpRequest: BaseHttpRequest;
|
|
11
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
12
|
+
/**
|
|
13
|
+
* List UTXOs
|
|
14
|
+
* Lists UTXOs on one of the Primary Network chains for the supplied addresses.
|
|
15
|
+
* @returns any
|
|
16
|
+
* @throws ApiError
|
|
17
|
+
*/
|
|
18
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, includeSpent, sortOrder, }: {
|
|
19
|
+
/**
|
|
20
|
+
* A primary network blockchain id or alias.
|
|
21
|
+
*/
|
|
22
|
+
blockchainId: BlockchainId;
|
|
23
|
+
/**
|
|
24
|
+
* Either mainnet or a testnet.
|
|
25
|
+
*/
|
|
26
|
+
network: Network;
|
|
27
|
+
/**
|
|
28
|
+
* 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".
|
|
29
|
+
*/
|
|
30
|
+
addresses?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
33
|
+
*/
|
|
34
|
+
pageSize?: number;
|
|
35
|
+
/**
|
|
36
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
37
|
+
*/
|
|
38
|
+
pageToken?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Asset ID for any asset (only applicable X-Chain)
|
|
41
|
+
*/
|
|
42
|
+
assetId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Boolean filter to include spent UTXOs.
|
|
45
|
+
*/
|
|
46
|
+
includeSpent?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 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.
|
|
49
|
+
*/
|
|
50
|
+
sortOrder?: SortOrder;
|
|
51
|
+
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { PrimaryNetworkUtxOsService };
|