@avalabs/glacier-sdk 2.8.0-alpha.121 → 2.8.0-alpha.123
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 +2244 -2021
- package/dist/index.js +355 -198
- package/esm/generated/Glacier.d.ts +24 -2
- package/esm/generated/Glacier.js +25 -3
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +15 -0
- package/esm/generated/models/Contract.d.ts +37 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
- package/esm/generated/models/DelegationStatusType.d.ts +5 -0
- package/esm/generated/models/DelegationStatusType.js +6 -0
- package/esm/generated/models/ListContractsResponse.d.ts +11 -0
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +11 -0
- package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
- package/esm/generated/models/PrimaryNetwork.js +7 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +5 -2
- package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
- package/esm/generated/models/StakingDistribution.d.ts +1 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +1 -0
- package/esm/generated/services/DefaultService.d.ts +52 -0
- package/esm/generated/services/DefaultService.js +34 -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/{EvmService.d.ts → EvmTransactionsService.d.ts} +9 -314
- package/esm/generated/services/{EvmService.js → EvmTransactionsService.js} +7 -219
- package/esm/generated/services/NfTsService.d.ts +108 -0
- package/esm/generated/services/NfTsService.js +77 -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 +0 -436
- package/esm/generated/services/PrimaryNetworkService.js +0 -298
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +171 -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 +20 -1
- package/esm/index.js +15 -1
- package/package.json +2 -2
|
@@ -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 };
|
|
@@ -1,414 +1,18 @@
|
|
|
1
|
-
import { BlockchainId } from '../models/BlockchainId.js';
|
|
2
|
-
import { CChainExportTransaction } from '../models/CChainExportTransaction.js';
|
|
3
|
-
import { CChainImportTransaction } from '../models/CChainImportTransaction.js';
|
|
4
1
|
import { ChainAddressChainIdMapListResponse } from '../models/ChainAddressChainIdMapListResponse.js';
|
|
5
2
|
import { GetNetworkDetailsResponse } from '../models/GetNetworkDetailsResponse.js';
|
|
6
|
-
import { GetPrimaryNetworkBlockResponse } from '../models/GetPrimaryNetworkBlockResponse.js';
|
|
7
3
|
import { ListBlockchainsResponse } from '../models/ListBlockchainsResponse.js';
|
|
8
|
-
import { ListCChainAtomicBalancesResponse } from '../models/ListCChainAtomicBalancesResponse.js';
|
|
9
|
-
import { ListCChainAtomicTransactionsResponse } from '../models/ListCChainAtomicTransactionsResponse.js';
|
|
10
|
-
import { ListHistoricalRewardsResponse } from '../models/ListHistoricalRewardsResponse.js';
|
|
11
|
-
import { ListPChainBalancesResponse } from '../models/ListPChainBalancesResponse.js';
|
|
12
|
-
import { ListPChainTransactionsResponse } from '../models/ListPChainTransactionsResponse.js';
|
|
13
|
-
import { ListPChainUtxosResponse } from '../models/ListPChainUtxosResponse.js';
|
|
14
|
-
import { ListPendingRewardsResponse } from '../models/ListPendingRewardsResponse.js';
|
|
15
|
-
import { ListPrimaryNetworkBlocksResponse } from '../models/ListPrimaryNetworkBlocksResponse.js';
|
|
16
4
|
import { ListSubnetsResponse } from '../models/ListSubnetsResponse.js';
|
|
17
|
-
import { ListUtxosResponse } from '../models/ListUtxosResponse.js';
|
|
18
5
|
import { ListValidatorDetailsResponse } from '../models/ListValidatorDetailsResponse.js';
|
|
19
|
-
import { ListXChainBalancesResponse } from '../models/ListXChainBalancesResponse.js';
|
|
20
|
-
import { ListXChainTransactionsResponse } from '../models/ListXChainTransactionsResponse.js';
|
|
21
|
-
import { ListXChainVerticesResponse } from '../models/ListXChainVerticesResponse.js';
|
|
22
6
|
import { Network } from '../models/Network.js';
|
|
23
|
-
import { PChainId } from '../models/PChainId.js';
|
|
24
|
-
import { PChainTransaction } from '../models/PChainTransaction.js';
|
|
25
|
-
import { PrimaryNetworkTxType } from '../models/PrimaryNetworkTxType.js';
|
|
26
7
|
import { SortOrder } from '../models/SortOrder.js';
|
|
27
8
|
import { XChainAssetDetails } from '../models/XChainAssetDetails.js';
|
|
28
9
|
import { XChainId } from '../models/XChainId.js';
|
|
29
|
-
import { XChainLinearTransaction } from '../models/XChainLinearTransaction.js';
|
|
30
|
-
import { XChainNonLinearTransaction } from '../models/XChainNonLinearTransaction.js';
|
|
31
|
-
import { XChainVertex } from '../models/XChainVertex.js';
|
|
32
10
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
33
11
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
34
12
|
|
|
35
13
|
declare class PrimaryNetworkService {
|
|
36
14
|
readonly httpRequest: BaseHttpRequest;
|
|
37
15
|
constructor(httpRequest: BaseHttpRequest);
|
|
38
|
-
/**
|
|
39
|
-
* Get transaction
|
|
40
|
-
* Gets the details of a single transaction on one of the Primary Network chains.
|
|
41
|
-
* @returns any
|
|
42
|
-
* @throws ApiError
|
|
43
|
-
*/
|
|
44
|
-
getTxByHash({ blockchainId, network, txHash, }: {
|
|
45
|
-
/**
|
|
46
|
-
* A primary network blockchain id or alias.
|
|
47
|
-
*/
|
|
48
|
-
blockchainId: BlockchainId;
|
|
49
|
-
/**
|
|
50
|
-
* Either mainnet or a testnet.
|
|
51
|
-
*/
|
|
52
|
-
network: Network;
|
|
53
|
-
/**
|
|
54
|
-
* A primary network (P or X chain) transaction hash.
|
|
55
|
-
*/
|
|
56
|
-
txHash: string;
|
|
57
|
-
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
58
|
-
/**
|
|
59
|
-
* List latest transactions
|
|
60
|
-
* Lists the latest transactions on one of the Primary Network chains. Transactions are filterable by addresses.
|
|
61
|
-
* @returns any
|
|
62
|
-
* @throws ApiError
|
|
63
|
-
*/
|
|
64
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
|
|
65
|
-
/**
|
|
66
|
-
* A primary network blockchain id or alias.
|
|
67
|
-
*/
|
|
68
|
-
blockchainId: BlockchainId;
|
|
69
|
-
/**
|
|
70
|
-
* Either mainnet or a testnet.
|
|
71
|
-
*/
|
|
72
|
-
network: Network;
|
|
73
|
-
/**
|
|
74
|
-
* 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".
|
|
75
|
-
*/
|
|
76
|
-
addresses?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Query param for filtering items based on transaction types.
|
|
79
|
-
*/
|
|
80
|
-
txTypes?: Array<PrimaryNetworkTxType>;
|
|
81
|
-
/**
|
|
82
|
-
* Query param for retrieving items after a specific timestamp.
|
|
83
|
-
*/
|
|
84
|
-
startTimestamp?: number;
|
|
85
|
-
/**
|
|
86
|
-
* Query param for retrieving items before a specific timestamp.
|
|
87
|
-
*/
|
|
88
|
-
endTimestamp?: number;
|
|
89
|
-
/**
|
|
90
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
91
|
-
*/
|
|
92
|
-
pageSize?: number;
|
|
93
|
-
/**
|
|
94
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
95
|
-
*/
|
|
96
|
-
pageToken?: string;
|
|
97
|
-
/**
|
|
98
|
-
* 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.
|
|
99
|
-
*/
|
|
100
|
-
sortOrder?: SortOrder;
|
|
101
|
-
}): CancelablePromise<(ListPChainTransactionsResponse | ListXChainTransactionsResponse | ListCChainAtomicTransactionsResponse)>;
|
|
102
|
-
/**
|
|
103
|
-
* List staking transactions
|
|
104
|
-
* Lists active staking transactions on the P-Chain for the supplied addresses.
|
|
105
|
-
* @returns ListPChainTransactionsResponse
|
|
106
|
-
* @throws ApiError
|
|
107
|
-
*/
|
|
108
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, sortOrder, }: {
|
|
109
|
-
/**
|
|
110
|
-
* A primary network blockchain id or alias.
|
|
111
|
-
*/
|
|
112
|
-
blockchainId: PChainId;
|
|
113
|
-
/**
|
|
114
|
-
* Either mainnet or a testnet.
|
|
115
|
-
*/
|
|
116
|
-
network: Network;
|
|
117
|
-
/**
|
|
118
|
-
* 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".
|
|
119
|
-
*/
|
|
120
|
-
addresses?: string;
|
|
121
|
-
/**
|
|
122
|
-
* Query param for filtering items based on transaction types.
|
|
123
|
-
*/
|
|
124
|
-
txTypes?: Array<PrimaryNetworkTxType>;
|
|
125
|
-
/**
|
|
126
|
-
* Query param for retrieving items after a specific timestamp.
|
|
127
|
-
*/
|
|
128
|
-
startTimestamp?: number;
|
|
129
|
-
/**
|
|
130
|
-
* Query param for retrieving items before a specific timestamp.
|
|
131
|
-
*/
|
|
132
|
-
endTimestamp?: number;
|
|
133
|
-
/**
|
|
134
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
135
|
-
*/
|
|
136
|
-
pageSize?: number;
|
|
137
|
-
/**
|
|
138
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
139
|
-
*/
|
|
140
|
-
pageToken?: string;
|
|
141
|
-
/**
|
|
142
|
-
* 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.
|
|
143
|
-
*/
|
|
144
|
-
sortOrder?: SortOrder;
|
|
145
|
-
}): CancelablePromise<ListPChainTransactionsResponse>;
|
|
146
|
-
/**
|
|
147
|
-
* List pending rewards
|
|
148
|
-
* Lists pending rewards on the Primary Network for the supplied addresses.
|
|
149
|
-
* @returns ListPendingRewardsResponse
|
|
150
|
-
* @throws ApiError
|
|
151
|
-
*/
|
|
152
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
153
|
-
/**
|
|
154
|
-
* Either mainnet or a testnet.
|
|
155
|
-
*/
|
|
156
|
-
network: Network;
|
|
157
|
-
/**
|
|
158
|
-
* 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".
|
|
159
|
-
*/
|
|
160
|
-
addresses?: string;
|
|
161
|
-
/**
|
|
162
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
163
|
-
*/
|
|
164
|
-
pageSize?: number;
|
|
165
|
-
/**
|
|
166
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
167
|
-
*/
|
|
168
|
-
pageToken?: string;
|
|
169
|
-
/**
|
|
170
|
-
* 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.
|
|
171
|
-
*/
|
|
172
|
-
sortOrder?: SortOrder;
|
|
173
|
-
}): CancelablePromise<ListPendingRewardsResponse>;
|
|
174
|
-
/**
|
|
175
|
-
* List historical rewards
|
|
176
|
-
* Lists historical rewards on the Primary Network for the supplied addresses.
|
|
177
|
-
* @returns ListHistoricalRewardsResponse
|
|
178
|
-
* @throws ApiError
|
|
179
|
-
*/
|
|
180
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
181
|
-
/**
|
|
182
|
-
* Either mainnet or a testnet.
|
|
183
|
-
*/
|
|
184
|
-
network: Network;
|
|
185
|
-
/**
|
|
186
|
-
* 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".
|
|
187
|
-
*/
|
|
188
|
-
addresses?: string;
|
|
189
|
-
/**
|
|
190
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
191
|
-
*/
|
|
192
|
-
pageSize?: number;
|
|
193
|
-
/**
|
|
194
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
195
|
-
*/
|
|
196
|
-
pageToken?: string;
|
|
197
|
-
/**
|
|
198
|
-
* 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.
|
|
199
|
-
*/
|
|
200
|
-
sortOrder?: SortOrder;
|
|
201
|
-
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
202
|
-
/**
|
|
203
|
-
* List UTXOs
|
|
204
|
-
* Lists UTXOs on one of the Primary Network chains for the supplied addresses.
|
|
205
|
-
* @returns any
|
|
206
|
-
* @throws ApiError
|
|
207
|
-
*/
|
|
208
|
-
getUtxosByAddresses({ blockchainId, network, addresses, pageSize, pageToken, assetId, sortOrder, }: {
|
|
209
|
-
/**
|
|
210
|
-
* A primary network blockchain id or alias.
|
|
211
|
-
*/
|
|
212
|
-
blockchainId: BlockchainId;
|
|
213
|
-
/**
|
|
214
|
-
* Either mainnet or a testnet.
|
|
215
|
-
*/
|
|
216
|
-
network: Network;
|
|
217
|
-
/**
|
|
218
|
-
* 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".
|
|
219
|
-
*/
|
|
220
|
-
addresses?: string;
|
|
221
|
-
/**
|
|
222
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
223
|
-
*/
|
|
224
|
-
pageSize?: number;
|
|
225
|
-
/**
|
|
226
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
227
|
-
*/
|
|
228
|
-
pageToken?: string;
|
|
229
|
-
/**
|
|
230
|
-
* Asset ID for any asset (only applicable X-Chain)
|
|
231
|
-
*/
|
|
232
|
-
assetId?: string;
|
|
233
|
-
/**
|
|
234
|
-
* 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.
|
|
235
|
-
*/
|
|
236
|
-
sortOrder?: SortOrder;
|
|
237
|
-
}): CancelablePromise<(ListPChainUtxosResponse | ListUtxosResponse)>;
|
|
238
|
-
/**
|
|
239
|
-
* Get balances
|
|
240
|
-
* Gets primary network balances for one of the Primary Network chains for the supplied addresses.
|
|
241
|
-
*
|
|
242
|
-
* C-Chain balances returned are only the shared atomic memory balance. For EVM balance, use the `/v1/chains/:chainId/addresses/:addressId/balances:getNative` endpoint.
|
|
243
|
-
* @returns any
|
|
244
|
-
* @throws ApiError
|
|
245
|
-
*/
|
|
246
|
-
getBalancesByAddresses({ blockchainId, network, blockTimestamp, addresses, }: {
|
|
247
|
-
/**
|
|
248
|
-
* A primary network blockchain id or alias.
|
|
249
|
-
*/
|
|
250
|
-
blockchainId: BlockchainId;
|
|
251
|
-
/**
|
|
252
|
-
* Either mainnet or a testnet.
|
|
253
|
-
*/
|
|
254
|
-
network: Network;
|
|
255
|
-
/**
|
|
256
|
-
* An epoch timestamp in seconds. Balance will be calculated at this timestamp.
|
|
257
|
-
*/
|
|
258
|
-
blockTimestamp?: number;
|
|
259
|
-
/**
|
|
260
|
-
* 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".
|
|
261
|
-
*/
|
|
262
|
-
addresses?: string;
|
|
263
|
-
}): CancelablePromise<(ListPChainBalancesResponse | ListXChainBalancesResponse | ListCChainAtomicBalancesResponse)>;
|
|
264
|
-
/**
|
|
265
|
-
* Get block
|
|
266
|
-
* Gets a block by block height or block hash on one of the Primary Network chains.
|
|
267
|
-
* @returns GetPrimaryNetworkBlockResponse
|
|
268
|
-
* @throws ApiError
|
|
269
|
-
*/
|
|
270
|
-
getBlockById({ blockchainId, network, blockId, }: {
|
|
271
|
-
/**
|
|
272
|
-
* A primary network blockchain id or alias.
|
|
273
|
-
*/
|
|
274
|
-
blockchainId: BlockchainId;
|
|
275
|
-
/**
|
|
276
|
-
* Either mainnet or a testnet.
|
|
277
|
-
*/
|
|
278
|
-
network: Network;
|
|
279
|
-
/**
|
|
280
|
-
* A block identifier which is either a block number or the block hash.
|
|
281
|
-
*/
|
|
282
|
-
blockId: string;
|
|
283
|
-
}): CancelablePromise<GetPrimaryNetworkBlockResponse>;
|
|
284
|
-
/**
|
|
285
|
-
* List blocks proposed by node
|
|
286
|
-
* Lists the latest blocks proposed by a given NodeID on one of the Primary Network chains.
|
|
287
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
288
|
-
* @throws ApiError
|
|
289
|
-
*/
|
|
290
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageSize, pageToken, }: {
|
|
291
|
-
/**
|
|
292
|
-
* A primary network blockchain id or alias.
|
|
293
|
-
*/
|
|
294
|
-
blockchainId: BlockchainId;
|
|
295
|
-
/**
|
|
296
|
-
* Either mainnet or a testnet.
|
|
297
|
-
*/
|
|
298
|
-
network: Network;
|
|
299
|
-
/**
|
|
300
|
-
* A primary network (P or X chain) nodeId.
|
|
301
|
-
*/
|
|
302
|
-
nodeId: string;
|
|
303
|
-
/**
|
|
304
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
305
|
-
*/
|
|
306
|
-
pageSize?: number;
|
|
307
|
-
/**
|
|
308
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
309
|
-
*/
|
|
310
|
-
pageToken?: string;
|
|
311
|
-
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
312
|
-
/**
|
|
313
|
-
* List latest blocks
|
|
314
|
-
* Lists latest blocks on one of the Primary Network chains.
|
|
315
|
-
* @returns ListPrimaryNetworkBlocksResponse
|
|
316
|
-
* @throws ApiError
|
|
317
|
-
*/
|
|
318
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageSize, pageToken, }: {
|
|
319
|
-
/**
|
|
320
|
-
* A primary network blockchain id or alias.
|
|
321
|
-
*/
|
|
322
|
-
blockchainId: BlockchainId;
|
|
323
|
-
/**
|
|
324
|
-
* Either mainnet or a testnet.
|
|
325
|
-
*/
|
|
326
|
-
network: Network;
|
|
327
|
-
/**
|
|
328
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
329
|
-
*/
|
|
330
|
-
pageSize?: number;
|
|
331
|
-
/**
|
|
332
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
333
|
-
*/
|
|
334
|
-
pageToken?: string;
|
|
335
|
-
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
336
|
-
/**
|
|
337
|
-
* List vertices
|
|
338
|
-
* Lists latest vertices on the X-Chain.
|
|
339
|
-
* @returns ListXChainVerticesResponse
|
|
340
|
-
* @throws ApiError
|
|
341
|
-
*/
|
|
342
|
-
listLatestXChainVertices({ blockchainId, network, pageSize, pageToken, }: {
|
|
343
|
-
/**
|
|
344
|
-
* A primary network blockchain id or alias.
|
|
345
|
-
*/
|
|
346
|
-
blockchainId: XChainId;
|
|
347
|
-
/**
|
|
348
|
-
* Either mainnet or a testnet.
|
|
349
|
-
*/
|
|
350
|
-
network: Network;
|
|
351
|
-
/**
|
|
352
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
353
|
-
*/
|
|
354
|
-
pageSize?: number;
|
|
355
|
-
/**
|
|
356
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
357
|
-
*/
|
|
358
|
-
pageToken?: string;
|
|
359
|
-
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
360
|
-
/**
|
|
361
|
-
* Get vertex
|
|
362
|
-
* Gets a single vertex on the X-Chain.
|
|
363
|
-
* @returns XChainVertex
|
|
364
|
-
* @throws ApiError
|
|
365
|
-
*/
|
|
366
|
-
getVertexByHash({ vertexHash, blockchainId, network, }: {
|
|
367
|
-
/**
|
|
368
|
-
* A vertex hash string.
|
|
369
|
-
*/
|
|
370
|
-
vertexHash: string;
|
|
371
|
-
/**
|
|
372
|
-
* A primary network blockchain id or alias.
|
|
373
|
-
*/
|
|
374
|
-
blockchainId: XChainId;
|
|
375
|
-
/**
|
|
376
|
-
* Either mainnet or a testnet.
|
|
377
|
-
*/
|
|
378
|
-
network: Network;
|
|
379
|
-
}): CancelablePromise<XChainVertex>;
|
|
380
|
-
/**
|
|
381
|
-
* List vertices by height
|
|
382
|
-
* Lists vertices at the given vertex height on the X-Chain.
|
|
383
|
-
* @returns ListXChainVerticesResponse
|
|
384
|
-
* @throws ApiError
|
|
385
|
-
*/
|
|
386
|
-
getVertexByHeight({ vertexHeight, blockchainId, network, pageSize, pageToken, sortOrder, }: {
|
|
387
|
-
/**
|
|
388
|
-
* The height of a vertex.
|
|
389
|
-
*/
|
|
390
|
-
vertexHeight: number;
|
|
391
|
-
/**
|
|
392
|
-
* A primary network blockchain id or alias.
|
|
393
|
-
*/
|
|
394
|
-
blockchainId: XChainId;
|
|
395
|
-
/**
|
|
396
|
-
* Either mainnet or a testnet.
|
|
397
|
-
*/
|
|
398
|
-
network: Network;
|
|
399
|
-
/**
|
|
400
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
401
|
-
*/
|
|
402
|
-
pageSize?: number;
|
|
403
|
-
/**
|
|
404
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
405
|
-
*/
|
|
406
|
-
pageToken?: string;
|
|
407
|
-
/**
|
|
408
|
-
* 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.
|
|
409
|
-
*/
|
|
410
|
-
sortOrder?: SortOrder;
|
|
411
|
-
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
412
16
|
/**
|
|
413
17
|
* Get asset details
|
|
414
18
|
* Gets asset details corresponding to the given asset id on the X-Chain.
|
|
@@ -429,46 +33,6 @@ declare class PrimaryNetworkService {
|
|
|
429
33
|
*/
|
|
430
34
|
assetId: string;
|
|
431
35
|
}): CancelablePromise<XChainAssetDetails>;
|
|
432
|
-
/**
|
|
433
|
-
* List asset transactions
|
|
434
|
-
* Lists asset transactions corresponding to the given asset id on the X-Chain.
|
|
435
|
-
* @returns ListXChainTransactionsResponse
|
|
436
|
-
* @throws ApiError
|
|
437
|
-
*/
|
|
438
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageSize, pageToken, }: {
|
|
439
|
-
/**
|
|
440
|
-
* A primary network blockchain id or alias.
|
|
441
|
-
*/
|
|
442
|
-
blockchainId: XChainId;
|
|
443
|
-
/**
|
|
444
|
-
* Either mainnet or a testnet.
|
|
445
|
-
*/
|
|
446
|
-
network: Network;
|
|
447
|
-
/**
|
|
448
|
-
* Asset ID for any asset on X-Chain
|
|
449
|
-
*/
|
|
450
|
-
assetId: string;
|
|
451
|
-
/**
|
|
452
|
-
* Query param for filtering items based on transaction types.
|
|
453
|
-
*/
|
|
454
|
-
txTypes?: Array<PrimaryNetworkTxType>;
|
|
455
|
-
/**
|
|
456
|
-
* Query param for retrieving items after a specific timestamp.
|
|
457
|
-
*/
|
|
458
|
-
startTimestamp?: number;
|
|
459
|
-
/**
|
|
460
|
-
* Query param for retrieving items before a specific timestamp.
|
|
461
|
-
*/
|
|
462
|
-
endTimestamp?: number;
|
|
463
|
-
/**
|
|
464
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
465
|
-
*/
|
|
466
|
-
pageSize?: number;
|
|
467
|
-
/**
|
|
468
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
469
|
-
*/
|
|
470
|
-
pageToken?: string;
|
|
471
|
-
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
472
36
|
/**
|
|
473
37
|
* Get chain interactions for addresses
|
|
474
38
|
* 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.
|