@avalabs/glacier-sdk 2.8.0-canary.a804ed2.0 → 2.8.0-canary.a900438.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/LICENSE.md +9 -0
- package/dist/index.d.ts +747 -476
- package/dist/index.js +1 -2123
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +1 -71
- package/esm/generated/core/ApiError.js +1 -18
- package/esm/generated/core/BaseHttpRequest.js +1 -7
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +1 -91
- package/esm/generated/core/FetchHttpRequest.js +1 -13
- package/esm/generated/core/OpenAPI.js +1 -13
- package/esm/generated/core/request.js +1 -227
- package/esm/generated/models/ActiveDelegatorDetails.js +1 -8
- package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
- package/esm/generated/models/ActiveValidatorDetails.js +1 -8
- package/esm/generated/models/AddressActivityMetadata.d.ts +2 -2
- package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +2 -4
- package/esm/generated/models/BlockchainId.js +1 -13
- package/esm/generated/models/BlockchainIds.js +1 -10
- package/esm/generated/models/BlsCredentials.d.ts +6 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainExportTransaction.js +1 -8
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.js +1 -8
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +1 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/ChainStatus.js +1 -7
- package/esm/generated/models/CompletedDelegatorDetails.js +1 -8
- package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
- package/esm/generated/models/CompletedValidatorDetails.js +1 -8
- package/esm/generated/models/ContractSubmissionErc1155.js +1 -8
- package/esm/generated/models/ContractSubmissionErc20.js +1 -8
- package/esm/generated/models/ContractSubmissionErc721.js +1 -8
- package/esm/generated/models/ContractSubmissionUnknown.js +1 -8
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreateWebhookRequest.d.ts +21 -0
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/CurrencyCode.js +1 -19
- package/esm/generated/models/DelegationStatusType.js +1 -8
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +7 -2
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +1 -8
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +7 -2
- package/esm/generated/models/DeliveredTeleporterMessage.js +1 -8
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +1 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155Contract.js +1 -8
- package/esm/generated/models/Erc1155Token.js +1 -8
- package/esm/generated/models/Erc1155TokenBalance.js +1 -8
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc20Contract.js +1 -8
- package/esm/generated/models/Erc20Token.js +1 -8
- package/esm/generated/models/Erc20TokenBalance.js +1 -8
- package/esm/generated/models/Erc721Contract.js +1 -8
- package/esm/generated/models/Erc721Token.js +1 -8
- package/esm/generated/models/Erc721TokenBalance.js +1 -8
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/EventType.js +1 -6
- package/esm/generated/models/GetChainResponse.d.ts +1 -3
- package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
- package/esm/generated/models/GlacierApiFeature.js +1 -0
- package/esm/generated/models/InternalTransactionOpCall.js +1 -12
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/Network.js +1 -7
- package/esm/generated/models/NetworkType.js +1 -7
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/NftTokenMetadataStatus.js +1 -16
- package/esm/generated/models/OperationStatus.js +1 -9
- package/esm/generated/models/OperationStatusCode.js +1 -8
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +1 -7
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainId.js +1 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
- package/esm/generated/models/PChainTransaction.d.ts +17 -7
- package/esm/generated/models/PChainTransactionType.d.ts +2 -0
- package/esm/generated/models/PChainTransactionType.js +1 -19
- package/esm/generated/models/PChainUtxo.d.ts +2 -2
- package/esm/generated/models/PendingDelegatorDetails.js +1 -8
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +7 -2
- package/esm/generated/models/PendingTeleporterMessage.js +1 -8
- package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingValidatorDetails.js +1 -8
- package/esm/generated/models/PrimaryNetwork.js +1 -7
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +1 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +1 -0
- package/esm/generated/models/PrimaryNetworkChainName.js +1 -8
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +1 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -22
- package/esm/generated/models/RemovedValidatorDetails.d.ts +6 -0
- package/esm/generated/models/RemovedValidatorDetails.js +1 -8
- package/esm/generated/models/ResourceLinkType.js +1 -23
- package/esm/generated/models/RewardType.js +1 -8
- package/esm/generated/models/RpcErrorDto.d.ts +7 -0
- package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
- package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
- package/esm/generated/models/SortByOption.d.ts +9 -0
- package/esm/generated/models/SortByOption.js +1 -0
- package/esm/generated/models/SortOrder.js +1 -7
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.js +1 -8
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/TransactionMethodType.js +1 -8
- package/esm/generated/models/TransactionStatus.js +1 -7
- package/esm/generated/models/UnknownContract.js +1 -8
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +2 -2
- package/esm/generated/models/UtxoType.js +1 -7
- package/esm/generated/models/ValidationStatusType.js +1 -9
- package/esm/generated/models/VmName.js +1 -8
- package/esm/generated/models/WebhookResponse.d.ts +10 -0
- package/esm/generated/models/WebhookStatus.js +1 -7
- package/esm/generated/models/WebhookStatusType.js +1 -7
- package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainId.js +1 -8
- package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainLinearTransaction.js +1 -9
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainNonLinearTransaction.js +1 -9
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +3 -0
- package/esm/generated/models/XChainTransactionType.js +1 -11
- package/esm/generated/services/DefaultService.d.ts +0 -53
- package/esm/generated/services/DefaultService.js +1 -55
- package/esm/generated/services/EvmBalancesService.d.ts +27 -23
- package/esm/generated/services/EvmBalancesService.js +1 -116
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +1 -37
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +1 -29
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmContractsService.js +1 -36
- package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
- package/esm/generated/services/EvmTransactionsService.js +1 -251
- package/esm/generated/services/HealthCheckService.js +1 -16
- package/esm/generated/services/NfTsService.d.ts +8 -8
- package/esm/generated/services/NfTsService.js +1 -56
- package/esm/generated/services/OperationsService.js +1 -28
- package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -26
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -62
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +12 -12
- package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -55
- package/esm/generated/services/PrimaryNetworkService.d.ts +51 -36
- package/esm/generated/services/PrimaryNetworkService.js +1 -171
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -107
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -34
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -64
- package/esm/generated/services/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +22 -25
- package/esm/generated/services/TeleporterService.js +1 -43
- package/esm/generated/services/WebhooksService.d.ts +143 -0
- package/esm/generated/services/WebhooksService.js +1 -0
- package/esm/index.d.ts +22 -3
- package/esm/index.js +1 -83
- package/package.json +3 -3
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
- package/esm/generated/models/RegisterWebhookRequest.d.ts +0 -14
package/dist/index.d.ts
CHANGED
|
@@ -23,15 +23,9 @@ interface OnCancel {
|
|
|
23
23
|
(cancelHandler: () => void): void;
|
|
24
24
|
}
|
|
25
25
|
declare class CancelablePromise<T> implements Promise<T> {
|
|
26
|
-
|
|
27
|
-
private _isResolved;
|
|
28
|
-
private _isRejected;
|
|
29
|
-
private _isCancelled;
|
|
30
|
-
private readonly _cancelHandlers;
|
|
31
|
-
private readonly _promise;
|
|
32
|
-
private _resolve?;
|
|
33
|
-
private _reject?;
|
|
26
|
+
#private;
|
|
34
27
|
constructor(executor: (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void, onCancel: OnCancel) => void);
|
|
28
|
+
get [Symbol.toStringTag](): string;
|
|
35
29
|
then<TResult1 = T, TResult2 = never>(onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
|
|
36
30
|
catch<TResult = never>(onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
|
|
37
31
|
finally(onFinally?: (() => void) | null): Promise<T>;
|
|
@@ -60,63 +54,6 @@ declare abstract class BaseHttpRequest {
|
|
|
60
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
55
|
}
|
|
62
56
|
|
|
63
|
-
type AddressActivityMetadata = {
|
|
64
|
-
/**
|
|
65
|
-
* Ethereum address for the address_activity event type
|
|
66
|
-
*/
|
|
67
|
-
address: string;
|
|
68
|
-
/**
|
|
69
|
-
* Array of hexadecimal strings of the event signatures.
|
|
70
|
-
*/
|
|
71
|
-
eventSignatures?: Array<string>;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
declare enum EventType {
|
|
75
|
-
ADDRESS_ACTIVITY = "address_activity"
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
declare enum WebhookStatusType {
|
|
79
|
-
ACTIVE = "active",
|
|
80
|
-
INACTIVE = "inactive"
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
type WebhookResponse = {
|
|
84
|
-
id: string;
|
|
85
|
-
eventType: EventType;
|
|
86
|
-
metadata: AddressActivityMetadata;
|
|
87
|
-
url: string;
|
|
88
|
-
chainId: string;
|
|
89
|
-
status: WebhookStatusType;
|
|
90
|
-
createdAt: number;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
type ListWebhooksResponse = {
|
|
94
|
-
/**
|
|
95
|
-
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
96
|
-
*/
|
|
97
|
-
nextPageToken?: string;
|
|
98
|
-
webhooks: Array<WebhookResponse>;
|
|
99
|
-
};
|
|
100
|
-
|
|
101
|
-
type RegisterWebhookRequest = {
|
|
102
|
-
url: string;
|
|
103
|
-
chainId: string;
|
|
104
|
-
/**
|
|
105
|
-
* The type of event for the webhook
|
|
106
|
-
*/
|
|
107
|
-
eventType: EventType;
|
|
108
|
-
metadata: AddressActivityMetadata;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
type SharedSecretsResponse = {
|
|
112
|
-
secret: string;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
declare enum WebhookStatus {
|
|
116
|
-
ACTIVE = "active",
|
|
117
|
-
INACTIVE = "inactive"
|
|
118
|
-
}
|
|
119
|
-
|
|
120
57
|
declare class DefaultService {
|
|
121
58
|
readonly httpRequest: BaseHttpRequest;
|
|
122
59
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -125,56 +62,11 @@ declare class DefaultService {
|
|
|
125
62
|
* @throws ApiError
|
|
126
63
|
*/
|
|
127
64
|
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
128
|
-
/**
|
|
129
|
-
* Register a webhook
|
|
130
|
-
* Registers a new webhook.
|
|
131
|
-
* @returns WebhookResponse
|
|
132
|
-
* @throws ApiError
|
|
133
|
-
*/
|
|
134
|
-
registerWebhook({ requestBody, }: {
|
|
135
|
-
requestBody: RegisterWebhookRequest;
|
|
136
|
-
}): CancelablePromise<WebhookResponse>;
|
|
137
|
-
/**
|
|
138
|
-
* List webhooks
|
|
139
|
-
* Lists webhooks for the user.
|
|
140
|
-
* @returns ListWebhooksResponse
|
|
141
|
-
* @throws ApiError
|
|
142
|
-
*/
|
|
143
|
-
listWebhooks({ pageSize, pageToken, status, }: {
|
|
144
|
-
/**
|
|
145
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
146
|
-
*/
|
|
147
|
-
pageSize?: number;
|
|
148
|
-
/**
|
|
149
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
150
|
-
*/
|
|
151
|
-
pageToken?: string;
|
|
152
|
-
/**
|
|
153
|
-
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
154
|
-
*/
|
|
155
|
-
status?: WebhookStatus;
|
|
156
|
-
}): CancelablePromise<ListWebhooksResponse>;
|
|
157
|
-
/**
|
|
158
|
-
* Deactivate a webhook
|
|
159
|
-
* Deactivates a webhook by ID.
|
|
160
|
-
* @returns WebhookResponse
|
|
161
|
-
* @throws ApiError
|
|
162
|
-
*/
|
|
163
|
-
deactivateWebhook({ id, }: {
|
|
164
|
-
/**
|
|
165
|
-
* The webhook identifier.
|
|
166
|
-
*/
|
|
167
|
-
id: string;
|
|
168
|
-
}): CancelablePromise<WebhookResponse>;
|
|
169
|
-
/**
|
|
170
|
-
* Generate a shared secret
|
|
171
|
-
* Generates a new shared secret.
|
|
172
|
-
* @returns SharedSecretsResponse
|
|
173
|
-
* @throws ApiError
|
|
174
|
-
*/
|
|
175
|
-
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
176
65
|
}
|
|
177
66
|
|
|
67
|
+
/**
|
|
68
|
+
* ISO 4217 currency code.
|
|
69
|
+
*/
|
|
178
70
|
declare enum CurrencyCode {
|
|
179
71
|
USD = "usd",
|
|
180
72
|
EUR = "eur",
|
|
@@ -193,9 +85,6 @@ declare enum CurrencyCode {
|
|
|
193
85
|
}
|
|
194
86
|
|
|
195
87
|
type Money = {
|
|
196
|
-
/**
|
|
197
|
-
* ISO 4217 currency code.
|
|
198
|
-
*/
|
|
199
88
|
currencyCode: CurrencyCode;
|
|
200
89
|
/**
|
|
201
90
|
* Monetary value in base 10 decimals.
|
|
@@ -245,6 +134,9 @@ type GetNativeBalanceResponse = {
|
|
|
245
134
|
nativeTokenBalance: NativeTokenBalance;
|
|
246
135
|
};
|
|
247
136
|
|
|
137
|
+
/**
|
|
138
|
+
* The metadata indexing status of the nft.
|
|
139
|
+
*/
|
|
248
140
|
declare enum NftTokenMetadataStatus {
|
|
249
141
|
UNKNOWN = "UNKNOWN",
|
|
250
142
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -260,9 +152,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
260
152
|
}
|
|
261
153
|
|
|
262
154
|
type Erc1155TokenMetadata = {
|
|
263
|
-
/**
|
|
264
|
-
* The metadata indexing status of the nft.
|
|
265
|
-
*/
|
|
266
155
|
indexStatus: NftTokenMetadataStatus;
|
|
267
156
|
metadataLastUpdatedTimestamp?: number;
|
|
268
157
|
name?: string;
|
|
@@ -301,9 +190,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
301
190
|
}
|
|
302
191
|
|
|
303
192
|
type Erc721TokenMetadata = {
|
|
304
|
-
/**
|
|
305
|
-
* The metadata indexing status of the nft.
|
|
306
|
-
*/
|
|
307
193
|
indexStatus: NftTokenMetadataStatus;
|
|
308
194
|
metadataLastUpdatedTimestamp?: number;
|
|
309
195
|
name?: string;
|
|
@@ -450,7 +336,7 @@ declare class EvmBalancesService {
|
|
|
450
336
|
*/
|
|
451
337
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
452
338
|
/**
|
|
453
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
339
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
454
340
|
*/
|
|
455
341
|
chainId: string;
|
|
456
342
|
/**
|
|
@@ -476,9 +362,9 @@ declare class EvmBalancesService {
|
|
|
476
362
|
* @returns ListErc20BalancesResponse
|
|
477
363
|
* @throws ApiError
|
|
478
364
|
*/
|
|
479
|
-
listErc20Balances({ chainId, address, blockNumber, pageSize,
|
|
365
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
480
366
|
/**
|
|
481
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
367
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
482
368
|
*/
|
|
483
369
|
chainId: string;
|
|
484
370
|
/**
|
|
@@ -489,14 +375,18 @@ declare class EvmBalancesService {
|
|
|
489
375
|
* The block number, if not defined the block number will be the latest block.
|
|
490
376
|
*/
|
|
491
377
|
blockNumber?: string;
|
|
378
|
+
/**
|
|
379
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
380
|
+
*/
|
|
381
|
+
pageToken?: string;
|
|
492
382
|
/**
|
|
493
383
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
494
384
|
*/
|
|
495
385
|
pageSize?: number;
|
|
496
386
|
/**
|
|
497
|
-
*
|
|
387
|
+
* whether to filter out spam tokens from the response. Default is true.
|
|
498
388
|
*/
|
|
499
|
-
|
|
389
|
+
filterSpamTokens?: boolean;
|
|
500
390
|
/**
|
|
501
391
|
* A comma separated list of contract addresses to filter by.
|
|
502
392
|
*/
|
|
@@ -514,23 +404,23 @@ declare class EvmBalancesService {
|
|
|
514
404
|
* @returns ListErc721BalancesResponse
|
|
515
405
|
* @throws ApiError
|
|
516
406
|
*/
|
|
517
|
-
listErc721Balances({ chainId, address,
|
|
407
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
518
408
|
/**
|
|
519
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
409
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
520
410
|
*/
|
|
521
411
|
chainId: string;
|
|
522
412
|
/**
|
|
523
413
|
* A wallet address.
|
|
524
414
|
*/
|
|
525
415
|
address: string;
|
|
526
|
-
/**
|
|
527
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
528
|
-
*/
|
|
529
|
-
pageSize?: number;
|
|
530
416
|
/**
|
|
531
417
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
532
418
|
*/
|
|
533
419
|
pageToken?: string;
|
|
420
|
+
/**
|
|
421
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
422
|
+
*/
|
|
423
|
+
pageSize?: number;
|
|
534
424
|
/**
|
|
535
425
|
* A contract addresses to filter by.
|
|
536
426
|
*/
|
|
@@ -546,9 +436,9 @@ declare class EvmBalancesService {
|
|
|
546
436
|
* @returns ListErc1155BalancesResponse
|
|
547
437
|
* @throws ApiError
|
|
548
438
|
*/
|
|
549
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
439
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
550
440
|
/**
|
|
551
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
441
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
552
442
|
*/
|
|
553
443
|
chainId: string;
|
|
554
444
|
/**
|
|
@@ -559,14 +449,14 @@ declare class EvmBalancesService {
|
|
|
559
449
|
* The block number, if not defined the block number will be the latest block.
|
|
560
450
|
*/
|
|
561
451
|
blockNumber?: string;
|
|
562
|
-
/**
|
|
563
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
564
|
-
*/
|
|
565
|
-
pageSize?: number;
|
|
566
452
|
/**
|
|
567
453
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
568
454
|
*/
|
|
569
455
|
pageToken?: string;
|
|
456
|
+
/**
|
|
457
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
458
|
+
*/
|
|
459
|
+
pageSize?: number;
|
|
570
460
|
/**
|
|
571
461
|
* A contract addresses to filter by.
|
|
572
462
|
*/
|
|
@@ -580,23 +470,23 @@ declare class EvmBalancesService {
|
|
|
580
470
|
* @returns ListCollectibleBalancesResponse
|
|
581
471
|
* @throws ApiError
|
|
582
472
|
*/
|
|
583
|
-
listCollectibleBalances({ chainId, address,
|
|
473
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
584
474
|
/**
|
|
585
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
475
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
586
476
|
*/
|
|
587
477
|
chainId: string;
|
|
588
478
|
/**
|
|
589
479
|
* A wallet address.
|
|
590
480
|
*/
|
|
591
481
|
address: string;
|
|
592
|
-
/**
|
|
593
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
594
|
-
*/
|
|
595
|
-
pageSize?: number;
|
|
596
482
|
/**
|
|
597
483
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
598
484
|
*/
|
|
599
485
|
pageToken?: string;
|
|
486
|
+
/**
|
|
487
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
488
|
+
*/
|
|
489
|
+
pageSize?: number;
|
|
600
490
|
/**
|
|
601
491
|
* A contract addresses to filter by.
|
|
602
492
|
*/
|
|
@@ -709,19 +599,19 @@ declare class EvmBlocksService {
|
|
|
709
599
|
* @returns ListEvmBlocksResponse
|
|
710
600
|
* @throws ApiError
|
|
711
601
|
*/
|
|
712
|
-
getLatestBlocks({ chainId,
|
|
602
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
713
603
|
/**
|
|
714
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
604
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
715
605
|
*/
|
|
716
606
|
chainId: string;
|
|
717
|
-
/**
|
|
718
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
719
|
-
*/
|
|
720
|
-
pageSize?: number;
|
|
721
607
|
/**
|
|
722
608
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
723
609
|
*/
|
|
724
610
|
pageToken?: string;
|
|
611
|
+
/**
|
|
612
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
613
|
+
*/
|
|
614
|
+
pageSize?: number;
|
|
725
615
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
726
616
|
/**
|
|
727
617
|
* Get block
|
|
@@ -731,7 +621,7 @@ declare class EvmBlocksService {
|
|
|
731
621
|
*/
|
|
732
622
|
getBlock({ chainId, blockId, }: {
|
|
733
623
|
/**
|
|
734
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
624
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
735
625
|
*/
|
|
736
626
|
chainId: string;
|
|
737
627
|
/**
|
|
@@ -741,6 +631,9 @@ declare class EvmBlocksService {
|
|
|
741
631
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
742
632
|
}
|
|
743
633
|
|
|
634
|
+
/**
|
|
635
|
+
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
636
|
+
*/
|
|
744
637
|
declare enum ChainStatus {
|
|
745
638
|
OK = "OK",
|
|
746
639
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -778,9 +671,6 @@ declare enum VmName {
|
|
|
778
671
|
|
|
779
672
|
type GetChainResponse = {
|
|
780
673
|
chainId: string;
|
|
781
|
-
/**
|
|
782
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
783
|
-
*/
|
|
784
674
|
status: ChainStatus;
|
|
785
675
|
chainName: string;
|
|
786
676
|
description: string;
|
|
@@ -796,13 +686,16 @@ type GetChainResponse = {
|
|
|
796
686
|
networkToken: NetworkToken;
|
|
797
687
|
chainLogoUri?: string;
|
|
798
688
|
private?: boolean;
|
|
689
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
799
690
|
};
|
|
800
691
|
|
|
692
|
+
declare enum GlacierApiFeature {
|
|
693
|
+
NFT_INDEXING = "nftIndexing",
|
|
694
|
+
WEBHOOKS = "webhooks"
|
|
695
|
+
}
|
|
696
|
+
|
|
801
697
|
type ChainInfo = {
|
|
802
698
|
chainId: string;
|
|
803
|
-
/**
|
|
804
|
-
* Status of chain nodes. Chain nodes can become temporarily `UNAVAILABLE` for several reasons, such as validator stake falling below threshold. If chain nodes are `UNAVAILABLE`, requests that rely on data from the chain nodes may return 503 errors.
|
|
805
|
-
*/
|
|
806
699
|
status: ChainStatus;
|
|
807
700
|
chainName: string;
|
|
808
701
|
description: string;
|
|
@@ -818,6 +711,7 @@ type ChainInfo = {
|
|
|
818
711
|
networkToken: NetworkToken;
|
|
819
712
|
chainLogoUri?: string;
|
|
820
713
|
private?: boolean;
|
|
714
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
821
715
|
};
|
|
822
716
|
|
|
823
717
|
type ListChainsResponse = {
|
|
@@ -838,11 +732,15 @@ declare class EvmChainsService {
|
|
|
838
732
|
* @returns ListChainsResponse
|
|
839
733
|
* @throws ApiError
|
|
840
734
|
*/
|
|
841
|
-
supportedChains({ network, }: {
|
|
735
|
+
supportedChains({ network, feature, }: {
|
|
842
736
|
/**
|
|
843
737
|
* mainnet or testnet.
|
|
844
738
|
*/
|
|
845
739
|
network?: NetworkType;
|
|
740
|
+
/**
|
|
741
|
+
* Filter by feature.
|
|
742
|
+
*/
|
|
743
|
+
feature?: GlacierApiFeature;
|
|
846
744
|
}): CancelablePromise<ListChainsResponse>;
|
|
847
745
|
/**
|
|
848
746
|
* Get chain information
|
|
@@ -852,7 +750,7 @@ declare class EvmChainsService {
|
|
|
852
750
|
*/
|
|
853
751
|
getChainInfo({ chainId, }: {
|
|
854
752
|
/**
|
|
855
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
753
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
856
754
|
*/
|
|
857
755
|
chainId: string;
|
|
858
756
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1147,7 +1045,7 @@ declare class EvmContractsService {
|
|
|
1147
1045
|
*/
|
|
1148
1046
|
getContractMetadata({ chainId, address, }: {
|
|
1149
1047
|
/**
|
|
1150
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1048
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1151
1049
|
*/
|
|
1152
1050
|
chainId: string;
|
|
1153
1051
|
/**
|
|
@@ -1163,7 +1061,7 @@ declare class EvmContractsService {
|
|
|
1163
1061
|
*/
|
|
1164
1062
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1165
1063
|
/**
|
|
1166
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1064
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1167
1065
|
*/
|
|
1168
1066
|
chainId: string;
|
|
1169
1067
|
/**
|
|
@@ -1297,6 +1195,9 @@ type Erc721TransferDetails = {
|
|
|
1297
1195
|
erc721Token: Erc721Token;
|
|
1298
1196
|
};
|
|
1299
1197
|
|
|
1198
|
+
/**
|
|
1199
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1200
|
+
*/
|
|
1300
1201
|
declare enum TransactionMethodType {
|
|
1301
1202
|
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1302
1203
|
CONTRACT_CALL = "CONTRACT_CALL",
|
|
@@ -1304,9 +1205,6 @@ declare enum TransactionMethodType {
|
|
|
1304
1205
|
}
|
|
1305
1206
|
|
|
1306
1207
|
type Method = {
|
|
1307
|
-
/**
|
|
1308
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1309
|
-
*/
|
|
1310
1208
|
callType: TransactionMethodType;
|
|
1311
1209
|
/**
|
|
1312
1210
|
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
@@ -1667,7 +1565,7 @@ type ListTransfersResponse = {
|
|
|
1667
1565
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
1668
1566
|
*/
|
|
1669
1567
|
nextPageToken?: string;
|
|
1670
|
-
transfers:
|
|
1568
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1671
1569
|
};
|
|
1672
1570
|
|
|
1673
1571
|
declare enum SortOrder {
|
|
@@ -1691,7 +1589,7 @@ declare class EvmTransactionsService {
|
|
|
1691
1589
|
*/
|
|
1692
1590
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1693
1591
|
/**
|
|
1694
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1592
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1695
1593
|
*/
|
|
1696
1594
|
chainId: string;
|
|
1697
1595
|
/**
|
|
@@ -1709,23 +1607,23 @@ declare class EvmTransactionsService {
|
|
|
1709
1607
|
* @returns ListContractsResponse
|
|
1710
1608
|
* @throws ApiError
|
|
1711
1609
|
*/
|
|
1712
|
-
listContractDeployments({ chainId, address,
|
|
1610
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1713
1611
|
/**
|
|
1714
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1612
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1715
1613
|
*/
|
|
1716
1614
|
chainId: string;
|
|
1717
1615
|
/**
|
|
1718
1616
|
* A wallet address.
|
|
1719
1617
|
*/
|
|
1720
1618
|
address: string;
|
|
1721
|
-
/**
|
|
1722
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1723
|
-
*/
|
|
1724
|
-
pageSize?: number;
|
|
1725
1619
|
/**
|
|
1726
1620
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1727
1621
|
*/
|
|
1728
1622
|
pageToken?: string;
|
|
1623
|
+
/**
|
|
1624
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1625
|
+
*/
|
|
1626
|
+
pageSize?: number;
|
|
1729
1627
|
}): CancelablePromise<ListContractsResponse>;
|
|
1730
1628
|
/**
|
|
1731
1629
|
* List ERC transfers
|
|
@@ -1733,9 +1631,9 @@ declare class EvmTransactionsService {
|
|
|
1733
1631
|
* @returns ListTransfersResponse
|
|
1734
1632
|
* @throws ApiError
|
|
1735
1633
|
*/
|
|
1736
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1634
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1737
1635
|
/**
|
|
1738
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1636
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1739
1637
|
*/
|
|
1740
1638
|
chainId: string;
|
|
1741
1639
|
/**
|
|
@@ -1750,14 +1648,14 @@ declare class EvmTransactionsService {
|
|
|
1750
1648
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1751
1649
|
*/
|
|
1752
1650
|
endBlock?: number;
|
|
1753
|
-
/**
|
|
1754
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1755
|
-
*/
|
|
1756
|
-
pageSize?: number;
|
|
1757
1651
|
/**
|
|
1758
1652
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1759
1653
|
*/
|
|
1760
1654
|
pageToken?: string;
|
|
1655
|
+
/**
|
|
1656
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1657
|
+
*/
|
|
1658
|
+
pageSize?: number;
|
|
1761
1659
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1762
1660
|
/**
|
|
1763
1661
|
* List transactions
|
|
@@ -1767,23 +1665,23 @@ declare class EvmTransactionsService {
|
|
|
1767
1665
|
* @returns ListTransactionDetailsResponse
|
|
1768
1666
|
* @throws ApiError
|
|
1769
1667
|
*/
|
|
1770
|
-
listTransactions({ chainId, address,
|
|
1668
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1771
1669
|
/**
|
|
1772
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1670
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1773
1671
|
*/
|
|
1774
1672
|
chainId: string;
|
|
1775
1673
|
/**
|
|
1776
1674
|
* A wallet address.
|
|
1777
1675
|
*/
|
|
1778
1676
|
address: string;
|
|
1779
|
-
/**
|
|
1780
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1781
|
-
*/
|
|
1782
|
-
pageSize?: number;
|
|
1783
1677
|
/**
|
|
1784
1678
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1785
1679
|
*/
|
|
1786
1680
|
pageToken?: string;
|
|
1681
|
+
/**
|
|
1682
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1683
|
+
*/
|
|
1684
|
+
pageSize?: number;
|
|
1787
1685
|
/**
|
|
1788
1686
|
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1789
1687
|
*/
|
|
@@ -1803,9 +1701,9 @@ declare class EvmTransactionsService {
|
|
|
1803
1701
|
* @returns ListNativeTransactionsResponse
|
|
1804
1702
|
* @throws ApiError
|
|
1805
1703
|
*/
|
|
1806
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1704
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1807
1705
|
/**
|
|
1808
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1706
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1809
1707
|
*/
|
|
1810
1708
|
chainId: string;
|
|
1811
1709
|
/**
|
|
@@ -1820,14 +1718,14 @@ declare class EvmTransactionsService {
|
|
|
1820
1718
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1821
1719
|
*/
|
|
1822
1720
|
endBlock?: number;
|
|
1823
|
-
/**
|
|
1824
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1825
|
-
*/
|
|
1826
|
-
pageSize?: number;
|
|
1827
1721
|
/**
|
|
1828
1722
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1829
1723
|
*/
|
|
1830
1724
|
pageToken?: string;
|
|
1725
|
+
/**
|
|
1726
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1727
|
+
*/
|
|
1728
|
+
pageSize?: number;
|
|
1831
1729
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1832
1730
|
/**
|
|
1833
1731
|
* List ERC-20 transfers
|
|
@@ -1835,9 +1733,9 @@ declare class EvmTransactionsService {
|
|
|
1835
1733
|
* @returns ListErc20TransactionsResponse
|
|
1836
1734
|
* @throws ApiError
|
|
1837
1735
|
*/
|
|
1838
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1736
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1839
1737
|
/**
|
|
1840
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1738
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1841
1739
|
*/
|
|
1842
1740
|
chainId: string;
|
|
1843
1741
|
/**
|
|
@@ -1852,14 +1750,14 @@ declare class EvmTransactionsService {
|
|
|
1852
1750
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1853
1751
|
*/
|
|
1854
1752
|
endBlock?: number;
|
|
1855
|
-
/**
|
|
1856
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1857
|
-
*/
|
|
1858
|
-
pageSize?: number;
|
|
1859
1753
|
/**
|
|
1860
1754
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1861
1755
|
*/
|
|
1862
1756
|
pageToken?: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1759
|
+
*/
|
|
1760
|
+
pageSize?: number;
|
|
1863
1761
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1864
1762
|
/**
|
|
1865
1763
|
* List ERC-721 transfers
|
|
@@ -1867,9 +1765,9 @@ declare class EvmTransactionsService {
|
|
|
1867
1765
|
* @returns ListErc721TransactionsResponse
|
|
1868
1766
|
* @throws ApiError
|
|
1869
1767
|
*/
|
|
1870
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1768
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1871
1769
|
/**
|
|
1872
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1770
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1873
1771
|
*/
|
|
1874
1772
|
chainId: string;
|
|
1875
1773
|
/**
|
|
@@ -1884,14 +1782,14 @@ declare class EvmTransactionsService {
|
|
|
1884
1782
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1885
1783
|
*/
|
|
1886
1784
|
endBlock?: number;
|
|
1887
|
-
/**
|
|
1888
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1889
|
-
*/
|
|
1890
|
-
pageSize?: number;
|
|
1891
1785
|
/**
|
|
1892
1786
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1893
1787
|
*/
|
|
1894
1788
|
pageToken?: string;
|
|
1789
|
+
/**
|
|
1790
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1791
|
+
*/
|
|
1792
|
+
pageSize?: number;
|
|
1895
1793
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1896
1794
|
/**
|
|
1897
1795
|
* List ERC-1155 transfers
|
|
@@ -1899,9 +1797,9 @@ declare class EvmTransactionsService {
|
|
|
1899
1797
|
* @returns ListErc1155TransactionsResponse
|
|
1900
1798
|
* @throws ApiError
|
|
1901
1799
|
*/
|
|
1902
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1800
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1903
1801
|
/**
|
|
1904
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1802
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1905
1803
|
*/
|
|
1906
1804
|
chainId: string;
|
|
1907
1805
|
/**
|
|
@@ -1916,14 +1814,14 @@ declare class EvmTransactionsService {
|
|
|
1916
1814
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1917
1815
|
*/
|
|
1918
1816
|
endBlock?: number;
|
|
1919
|
-
/**
|
|
1920
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1921
|
-
*/
|
|
1922
|
-
pageSize?: number;
|
|
1923
1817
|
/**
|
|
1924
1818
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1925
1819
|
*/
|
|
1926
1820
|
pageToken?: string;
|
|
1821
|
+
/**
|
|
1822
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1823
|
+
*/
|
|
1824
|
+
pageSize?: number;
|
|
1927
1825
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1928
1826
|
/**
|
|
1929
1827
|
* List internal transactions
|
|
@@ -1933,9 +1831,9 @@ declare class EvmTransactionsService {
|
|
|
1933
1831
|
* @returns ListInternalTransactionsResponse
|
|
1934
1832
|
* @throws ApiError
|
|
1935
1833
|
*/
|
|
1936
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1834
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1937
1835
|
/**
|
|
1938
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1836
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1939
1837
|
*/
|
|
1940
1838
|
chainId: string;
|
|
1941
1839
|
/**
|
|
@@ -1950,14 +1848,14 @@ declare class EvmTransactionsService {
|
|
|
1950
1848
|
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1951
1849
|
*/
|
|
1952
1850
|
endBlock?: number;
|
|
1953
|
-
/**
|
|
1954
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1955
|
-
*/
|
|
1956
|
-
pageSize?: number;
|
|
1957
1851
|
/**
|
|
1958
1852
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1959
1853
|
*/
|
|
1960
1854
|
pageToken?: string;
|
|
1855
|
+
/**
|
|
1856
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1857
|
+
*/
|
|
1858
|
+
pageSize?: number;
|
|
1961
1859
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1962
1860
|
/**
|
|
1963
1861
|
* Get transaction
|
|
@@ -1967,7 +1865,7 @@ declare class EvmTransactionsService {
|
|
|
1967
1865
|
*/
|
|
1968
1866
|
getTransaction({ chainId, txHash, }: {
|
|
1969
1867
|
/**
|
|
1970
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1868
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1971
1869
|
*/
|
|
1972
1870
|
chainId: string;
|
|
1973
1871
|
/**
|
|
@@ -1983,7 +1881,7 @@ declare class EvmTransactionsService {
|
|
|
1983
1881
|
*/
|
|
1984
1882
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1985
1883
|
/**
|
|
1986
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1884
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1987
1885
|
*/
|
|
1988
1886
|
chainId: string;
|
|
1989
1887
|
/**
|
|
@@ -1997,19 +1895,19 @@ declare class EvmTransactionsService {
|
|
|
1997
1895
|
* @returns ListNativeTransactionsResponse
|
|
1998
1896
|
* @throws ApiError
|
|
1999
1897
|
*/
|
|
2000
|
-
listLatestTransactions({ chainId,
|
|
1898
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
2001
1899
|
/**
|
|
2002
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1900
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2003
1901
|
*/
|
|
2004
1902
|
chainId: string;
|
|
2005
|
-
/**
|
|
2006
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2007
|
-
*/
|
|
2008
|
-
pageSize?: number;
|
|
2009
1903
|
/**
|
|
2010
1904
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2011
1905
|
*/
|
|
2012
1906
|
pageToken?: string;
|
|
1907
|
+
/**
|
|
1908
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1909
|
+
*/
|
|
1910
|
+
pageSize?: number;
|
|
2013
1911
|
/**
|
|
2014
1912
|
* A status filter for listed transactions.
|
|
2015
1913
|
*/
|
|
@@ -2038,7 +1936,7 @@ type ListNftTokens = {
|
|
|
2038
1936
|
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2039
1937
|
*/
|
|
2040
1938
|
nextPageToken?: string;
|
|
2041
|
-
tokens:
|
|
1939
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
2042
1940
|
};
|
|
2043
1941
|
|
|
2044
1942
|
declare class NfTsService {
|
|
@@ -2052,7 +1950,7 @@ declare class NfTsService {
|
|
|
2052
1950
|
*/
|
|
2053
1951
|
reindexNft({ chainId, address, tokenId, }: {
|
|
2054
1952
|
/**
|
|
2055
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1953
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2056
1954
|
*/
|
|
2057
1955
|
chainId: string;
|
|
2058
1956
|
/**
|
|
@@ -2070,23 +1968,23 @@ declare class NfTsService {
|
|
|
2070
1968
|
* @returns ListNftTokens
|
|
2071
1969
|
* @throws ApiError
|
|
2072
1970
|
*/
|
|
2073
|
-
listTokens({ chainId, address,
|
|
1971
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
2074
1972
|
/**
|
|
2075
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1973
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2076
1974
|
*/
|
|
2077
1975
|
chainId: string;
|
|
2078
1976
|
/**
|
|
2079
1977
|
* Contract address on the relevant chain.
|
|
2080
1978
|
*/
|
|
2081
1979
|
address: string;
|
|
2082
|
-
/**
|
|
2083
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2084
|
-
*/
|
|
2085
|
-
pageSize?: number;
|
|
2086
1980
|
/**
|
|
2087
1981
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2088
1982
|
*/
|
|
2089
1983
|
pageToken?: string;
|
|
1984
|
+
/**
|
|
1985
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1986
|
+
*/
|
|
1987
|
+
pageSize?: number;
|
|
2090
1988
|
}): CancelablePromise<ListNftTokens>;
|
|
2091
1989
|
/**
|
|
2092
1990
|
* Get token details
|
|
@@ -2096,7 +1994,7 @@ declare class NfTsService {
|
|
|
2096
1994
|
*/
|
|
2097
1995
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2098
1996
|
/**
|
|
2099
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1997
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2100
1998
|
*/
|
|
2101
1999
|
chainId: string;
|
|
2102
2000
|
/**
|
|
@@ -2115,8 +2013,12 @@ type EvmNetworkOptions = {
|
|
|
2115
2013
|
includeChains: Array<string>;
|
|
2116
2014
|
};
|
|
2117
2015
|
|
|
2016
|
+
declare enum EVMOperationType {
|
|
2017
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2118
2020
|
type CreateEvmTransactionExportRequest = {
|
|
2119
|
-
type:
|
|
2021
|
+
type: EVMOperationType;
|
|
2120
2022
|
firstDate: string;
|
|
2121
2023
|
lastDate: string;
|
|
2122
2024
|
/**
|
|
@@ -2129,20 +2031,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
2129
2031
|
endDate: string;
|
|
2130
2032
|
options: EvmNetworkOptions;
|
|
2131
2033
|
};
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2034
|
+
|
|
2035
|
+
declare enum PrimaryNetworkOperationType {
|
|
2036
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2037
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2038
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
2136
2039
|
}
|
|
2137
2040
|
|
|
2138
2041
|
type PrimaryNetworkOptions = {
|
|
2139
|
-
addresses
|
|
2042
|
+
addresses?: Array<string>;
|
|
2140
2043
|
cChainEvmAddresses?: Array<string>;
|
|
2141
2044
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
2142
2045
|
};
|
|
2143
2046
|
|
|
2144
2047
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
2145
|
-
type:
|
|
2048
|
+
type: PrimaryNetworkOperationType;
|
|
2146
2049
|
firstDate: string;
|
|
2147
2050
|
lastDate: string;
|
|
2148
2051
|
/**
|
|
@@ -2155,11 +2058,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
2155
2058
|
endDate: string;
|
|
2156
2059
|
options: PrimaryNetworkOptions;
|
|
2157
2060
|
};
|
|
2158
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
2159
|
-
enum type {
|
|
2160
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
2161
|
-
}
|
|
2162
|
-
}
|
|
2163
2061
|
|
|
2164
2062
|
declare enum OperationStatus {
|
|
2165
2063
|
RUNNING = "RUNNING",
|
|
@@ -2169,8 +2067,10 @@ declare enum OperationStatus {
|
|
|
2169
2067
|
}
|
|
2170
2068
|
|
|
2171
2069
|
declare enum OperationType {
|
|
2172
|
-
|
|
2173
|
-
|
|
2070
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2071
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2072
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2073
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2174
2074
|
}
|
|
2175
2075
|
|
|
2176
2076
|
declare enum OperationStatusCode {
|
|
@@ -2362,13 +2262,44 @@ type BlockchainInfo = {
|
|
|
2362
2262
|
blockchainId: string;
|
|
2363
2263
|
};
|
|
2364
2264
|
|
|
2265
|
+
type SubnetOwnershipInfo = {
|
|
2266
|
+
/**
|
|
2267
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2268
|
+
*/
|
|
2269
|
+
locktime: number;
|
|
2270
|
+
/**
|
|
2271
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2272
|
+
*/
|
|
2273
|
+
threshold: number;
|
|
2274
|
+
/**
|
|
2275
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2276
|
+
*/
|
|
2277
|
+
addresses: Array<string>;
|
|
2278
|
+
};
|
|
2279
|
+
|
|
2365
2280
|
type Subnet = {
|
|
2366
2281
|
createBlockTimestamp: number;
|
|
2367
2282
|
createBlockIndex: string;
|
|
2368
2283
|
subnetId: string;
|
|
2284
|
+
/**
|
|
2285
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2286
|
+
* @deprecated
|
|
2287
|
+
*/
|
|
2369
2288
|
ownerAddresses: Array<string>;
|
|
2289
|
+
/**
|
|
2290
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2291
|
+
* @deprecated
|
|
2292
|
+
*/
|
|
2370
2293
|
threshold: number;
|
|
2371
|
-
|
|
2294
|
+
/**
|
|
2295
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2296
|
+
* @deprecated
|
|
2297
|
+
*/
|
|
2298
|
+
locktime: number;
|
|
2299
|
+
/**
|
|
2300
|
+
* Latest subnet owner details for this Subnet.
|
|
2301
|
+
*/
|
|
2302
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2372
2303
|
blockchains: Array<BlockchainInfo>;
|
|
2373
2304
|
};
|
|
2374
2305
|
|
|
@@ -2380,6 +2311,11 @@ type ListSubnetsResponse = {
|
|
|
2380
2311
|
subnets: Array<Subnet>;
|
|
2381
2312
|
};
|
|
2382
2313
|
|
|
2314
|
+
type BlsCredentials = {
|
|
2315
|
+
publicKey: string;
|
|
2316
|
+
proofOfPossession: string;
|
|
2317
|
+
};
|
|
2318
|
+
|
|
2383
2319
|
type Rewards = {
|
|
2384
2320
|
validationRewardAmount: string;
|
|
2385
2321
|
delegationRewardAmount: string;
|
|
@@ -2414,6 +2350,10 @@ type ActiveValidatorDetails = {
|
|
|
2414
2350
|
delegationFee?: string;
|
|
2415
2351
|
startTimestamp: number;
|
|
2416
2352
|
endTimestamp: number;
|
|
2353
|
+
/**
|
|
2354
|
+
* Present for AddPermissionlessValidatorTx
|
|
2355
|
+
*/
|
|
2356
|
+
blsCredentials?: BlsCredentials;
|
|
2417
2357
|
stakePercentage: number;
|
|
2418
2358
|
delegatorCount: number;
|
|
2419
2359
|
amountDelegated?: string;
|
|
@@ -2438,6 +2378,10 @@ type CompletedValidatorDetails = {
|
|
|
2438
2378
|
delegationFee?: string;
|
|
2439
2379
|
startTimestamp: number;
|
|
2440
2380
|
endTimestamp: number;
|
|
2381
|
+
/**
|
|
2382
|
+
* Present for AddPermissionlessValidatorTx
|
|
2383
|
+
*/
|
|
2384
|
+
blsCredentials?: BlsCredentials;
|
|
2441
2385
|
delegatorCount: number;
|
|
2442
2386
|
rewards: Rewards;
|
|
2443
2387
|
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
@@ -2456,6 +2400,10 @@ type PendingValidatorDetails = {
|
|
|
2456
2400
|
delegationFee?: string;
|
|
2457
2401
|
startTimestamp: number;
|
|
2458
2402
|
endTimestamp: number;
|
|
2403
|
+
/**
|
|
2404
|
+
* Present for AddPermissionlessValidatorTx
|
|
2405
|
+
*/
|
|
2406
|
+
blsCredentials?: BlsCredentials;
|
|
2459
2407
|
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2460
2408
|
};
|
|
2461
2409
|
declare namespace PendingValidatorDetails {
|
|
@@ -2472,6 +2420,10 @@ type RemovedValidatorDetails = {
|
|
|
2472
2420
|
delegationFee?: string;
|
|
2473
2421
|
startTimestamp: number;
|
|
2474
2422
|
endTimestamp: number;
|
|
2423
|
+
/**
|
|
2424
|
+
* Present for AddPermissionlessValidatorTx
|
|
2425
|
+
*/
|
|
2426
|
+
blsCredentials?: BlsCredentials;
|
|
2475
2427
|
removeTxHash: string;
|
|
2476
2428
|
removeTimestamp: number;
|
|
2477
2429
|
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
@@ -2498,6 +2450,14 @@ declare enum Network {
|
|
|
2498
2450
|
FUJI = "fuji"
|
|
2499
2451
|
}
|
|
2500
2452
|
|
|
2453
|
+
declare enum SortByOption {
|
|
2454
|
+
BLOCK_INDEX = "blockIndex",
|
|
2455
|
+
DELEGATION_CAPACITY = "delegationCapacity",
|
|
2456
|
+
TIME_REMAINING = "timeRemaining",
|
|
2457
|
+
DELEGATION_FEE = "delegationFee",
|
|
2458
|
+
UPTIME_PERFORMANCE = "uptimePerformance"
|
|
2459
|
+
}
|
|
2460
|
+
|
|
2501
2461
|
declare enum ValidationStatusType {
|
|
2502
2462
|
COMPLETED = "completed",
|
|
2503
2463
|
ACTIVE = "active",
|
|
@@ -2505,6 +2465,22 @@ declare enum ValidationStatusType {
|
|
|
2505
2465
|
REMOVED = "removed"
|
|
2506
2466
|
}
|
|
2507
2467
|
|
|
2468
|
+
/**
|
|
2469
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2470
|
+
*/
|
|
2471
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2472
|
+
FIXED = "fixed",
|
|
2473
|
+
VARIABLE = "variable"
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
/**
|
|
2477
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2478
|
+
*/
|
|
2479
|
+
declare enum PrimaryNetworkAssetType {
|
|
2480
|
+
SECP256K1 = "secp256k1",
|
|
2481
|
+
NFT = "nft"
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2508
2484
|
type XChainAssetDetails = {
|
|
2509
2485
|
/**
|
|
2510
2486
|
* Unique ID for an asset.
|
|
@@ -2522,18 +2498,12 @@ type XChainAssetDetails = {
|
|
|
2522
2498
|
* Denomination of this asset to represent fungibility.
|
|
2523
2499
|
*/
|
|
2524
2500
|
denomination: number;
|
|
2525
|
-
|
|
2526
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2527
|
-
*/
|
|
2528
|
-
type: string;
|
|
2501
|
+
type: PrimaryNetworkAssetType;
|
|
2529
2502
|
/**
|
|
2530
2503
|
* Timestamp in seconds this asset was created on.
|
|
2531
2504
|
*/
|
|
2532
2505
|
createdAtTimestamp: number;
|
|
2533
|
-
|
|
2534
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2535
|
-
*/
|
|
2536
|
-
cap: string;
|
|
2506
|
+
cap: PrimaryNetworkAssetCap;
|
|
2537
2507
|
};
|
|
2538
2508
|
|
|
2539
2509
|
declare enum XChainId {
|
|
@@ -2599,19 +2569,19 @@ declare class PrimaryNetworkService {
|
|
|
2599
2569
|
* @returns ListBlockchainsResponse
|
|
2600
2570
|
* @throws ApiError
|
|
2601
2571
|
*/
|
|
2602
|
-
listBlockchains({ network,
|
|
2572
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2603
2573
|
/**
|
|
2604
2574
|
* Either mainnet or a testnet.
|
|
2605
2575
|
*/
|
|
2606
2576
|
network: Network;
|
|
2607
|
-
/**
|
|
2608
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2609
|
-
*/
|
|
2610
|
-
pageSize?: number;
|
|
2611
2577
|
/**
|
|
2612
2578
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2613
2579
|
*/
|
|
2614
2580
|
pageToken?: string;
|
|
2581
|
+
/**
|
|
2582
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2583
|
+
*/
|
|
2584
|
+
pageSize?: number;
|
|
2615
2585
|
/**
|
|
2616
2586
|
* 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.
|
|
2617
2587
|
*/
|
|
@@ -2623,19 +2593,19 @@ declare class PrimaryNetworkService {
|
|
|
2623
2593
|
* @returns ListSubnetsResponse
|
|
2624
2594
|
* @throws ApiError
|
|
2625
2595
|
*/
|
|
2626
|
-
listSubnets({ network,
|
|
2596
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2627
2597
|
/**
|
|
2628
2598
|
* Either mainnet or a testnet.
|
|
2629
2599
|
*/
|
|
2630
2600
|
network: Network;
|
|
2631
|
-
/**
|
|
2632
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2633
|
-
*/
|
|
2634
|
-
pageSize?: number;
|
|
2635
2601
|
/**
|
|
2636
2602
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2637
2603
|
*/
|
|
2638
2604
|
pageToken?: string;
|
|
2605
|
+
/**
|
|
2606
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2607
|
+
*/
|
|
2608
|
+
pageSize?: number;
|
|
2639
2609
|
/**
|
|
2640
2610
|
* 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.
|
|
2641
2611
|
*/
|
|
@@ -2647,23 +2617,29 @@ declare class PrimaryNetworkService {
|
|
|
2647
2617
|
* @returns ListValidatorDetailsResponse
|
|
2648
2618
|
* @throws ApiError
|
|
2649
2619
|
*/
|
|
2650
|
-
listValidators({ network,
|
|
2620
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortBy, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, minUptimePerformance, maxUptimePerformance, subnetId, }: {
|
|
2651
2621
|
/**
|
|
2652
2622
|
* Either mainnet or a testnet.
|
|
2653
2623
|
*/
|
|
2654
2624
|
network: Network;
|
|
2655
|
-
/**
|
|
2656
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2657
|
-
*/
|
|
2658
|
-
pageSize?: number;
|
|
2659
2625
|
/**
|
|
2660
2626
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2661
2627
|
*/
|
|
2662
2628
|
pageToken?: string;
|
|
2629
|
+
/**
|
|
2630
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2631
|
+
*/
|
|
2632
|
+
pageSize?: number;
|
|
2663
2633
|
/**
|
|
2664
2634
|
* A comma separated list of node ids to filter by.
|
|
2665
2635
|
*/
|
|
2666
2636
|
nodeIds?: string;
|
|
2637
|
+
/**
|
|
2638
|
+
* Which property to sort by, in conjunction with sortOrder.
|
|
2639
|
+
*
|
|
2640
|
+
* Note: Delegation fee is only available for mainnet validators. Set `subnetId` to `11111111111111111111111111111111LpoYY` to use this option.
|
|
2641
|
+
*/
|
|
2642
|
+
sortBy?: SortByOption;
|
|
2667
2643
|
/**
|
|
2668
2644
|
* 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.
|
|
2669
2645
|
*/
|
|
@@ -2675,31 +2651,39 @@ declare class PrimaryNetworkService {
|
|
|
2675
2651
|
/**
|
|
2676
2652
|
* The minimum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000
|
|
2677
2653
|
*/
|
|
2678
|
-
minDelegationCapacity?:
|
|
2654
|
+
minDelegationCapacity?: string;
|
|
2679
2655
|
/**
|
|
2680
2656
|
* The maximum delegation capacity, in nAVAX, used to filter the set of nodes being returned. Accepts values between 0 and 720,000,000,000,000,000.
|
|
2681
2657
|
*/
|
|
2682
|
-
maxDelegationCapacity?:
|
|
2658
|
+
maxDelegationCapacity?: string;
|
|
2683
2659
|
/**
|
|
2684
2660
|
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2685
2661
|
*/
|
|
2686
|
-
minTimeRemaining?:
|
|
2662
|
+
minTimeRemaining?: number;
|
|
2687
2663
|
/**
|
|
2688
2664
|
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2689
2665
|
*/
|
|
2690
|
-
maxTimeRemaining?:
|
|
2666
|
+
maxTimeRemaining?: number;
|
|
2691
2667
|
/**
|
|
2692
|
-
* The minimum fee percentage, used to filter the set of nodes being returned.If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2, as per the Avalanche spec.
|
|
2668
|
+
* The minimum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 2.0, as per the Avalanche spec.
|
|
2693
2669
|
*/
|
|
2694
|
-
minFeePercentage?:
|
|
2670
|
+
minFeePercentage?: number;
|
|
2695
2671
|
/**
|
|
2696
|
-
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.
|
|
2672
|
+
* The maximum fee percentage, used to filter the set of nodes being returned. If this field is populated no subnet validations will be returned, as their fee percentage is null, since subnet delegations are not supported. Default is 100.0.
|
|
2697
2673
|
*/
|
|
2698
|
-
maxFeePercentage?:
|
|
2674
|
+
maxFeePercentage?: number;
|
|
2675
|
+
/**
|
|
2676
|
+
* The minimum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned Default is 90.
|
|
2677
|
+
*/
|
|
2678
|
+
minUptimePerformance?: number;
|
|
2679
|
+
/**
|
|
2680
|
+
* The maximum node uptime performance percentage, which represents node health, used to filter the set of nodes being returned. Default is 100.
|
|
2681
|
+
*/
|
|
2682
|
+
maxUptimePerformance?: number;
|
|
2699
2683
|
/**
|
|
2700
2684
|
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2701
2685
|
*/
|
|
2702
|
-
subnetId?:
|
|
2686
|
+
subnetId?: any;
|
|
2703
2687
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2704
2688
|
/**
|
|
2705
2689
|
* Get single validator details
|
|
@@ -2707,7 +2691,7 @@ declare class PrimaryNetworkService {
|
|
|
2707
2691
|
* @returns ListValidatorDetailsResponse
|
|
2708
2692
|
* @throws ApiError
|
|
2709
2693
|
*/
|
|
2710
|
-
getSingleValidatorDetails({ network, nodeId, pageSize,
|
|
2694
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, validationStatus, sortOrder, }: {
|
|
2711
2695
|
/**
|
|
2712
2696
|
* Either mainnet or a testnet.
|
|
2713
2697
|
*/
|
|
@@ -2716,22 +2700,22 @@ declare class PrimaryNetworkService {
|
|
|
2716
2700
|
* A primary network (P or X chain) nodeId.
|
|
2717
2701
|
*/
|
|
2718
2702
|
nodeId: string;
|
|
2719
|
-
/**
|
|
2720
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2721
|
-
*/
|
|
2722
|
-
pageSize?: number;
|
|
2723
2703
|
/**
|
|
2724
2704
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2725
2705
|
*/
|
|
2726
2706
|
pageToken?: string;
|
|
2727
2707
|
/**
|
|
2728
|
-
* The
|
|
2708
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2729
2709
|
*/
|
|
2730
|
-
|
|
2710
|
+
pageSize?: number;
|
|
2731
2711
|
/**
|
|
2732
2712
|
* Validation status of the node.
|
|
2733
2713
|
*/
|
|
2734
2714
|
validationStatus?: ValidationStatusType;
|
|
2715
|
+
/**
|
|
2716
|
+
* 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.
|
|
2717
|
+
*/
|
|
2718
|
+
sortOrder?: SortOrder;
|
|
2735
2719
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2736
2720
|
/**
|
|
2737
2721
|
* List delegators
|
|
@@ -2739,19 +2723,19 @@ declare class PrimaryNetworkService {
|
|
|
2739
2723
|
* @returns ListDelegatorDetailsResponse
|
|
2740
2724
|
* @throws ApiError
|
|
2741
2725
|
*/
|
|
2742
|
-
listDelegators({ network,
|
|
2726
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2743
2727
|
/**
|
|
2744
2728
|
* Either mainnet or a testnet.
|
|
2745
2729
|
*/
|
|
2746
2730
|
network: Network;
|
|
2747
|
-
/**
|
|
2748
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2749
|
-
*/
|
|
2750
|
-
pageSize?: number;
|
|
2751
2731
|
/**
|
|
2752
2732
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2753
2733
|
*/
|
|
2754
2734
|
pageToken?: string;
|
|
2735
|
+
/**
|
|
2736
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2737
|
+
*/
|
|
2738
|
+
pageSize?: number;
|
|
2755
2739
|
/**
|
|
2756
2740
|
* A comma separated list of reward addresses to filter by.
|
|
2757
2741
|
*/
|
|
@@ -2799,10 +2783,7 @@ type CChainSharedAssetBalance = {
|
|
|
2799
2783
|
* Denomination of this asset to represent fungibility.
|
|
2800
2784
|
*/
|
|
2801
2785
|
denomination: number;
|
|
2802
|
-
|
|
2803
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2804
|
-
*/
|
|
2805
|
-
type: string;
|
|
2786
|
+
type: PrimaryNetworkAssetType;
|
|
2806
2787
|
/**
|
|
2807
2788
|
* Amount of the asset.
|
|
2808
2789
|
*/
|
|
@@ -2837,7 +2818,7 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2837
2818
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2838
2819
|
};
|
|
2839
2820
|
|
|
2840
|
-
type
|
|
2821
|
+
type AggregatedAssetAmount = {
|
|
2841
2822
|
/**
|
|
2842
2823
|
* Unique ID for an asset.
|
|
2843
2824
|
*/
|
|
@@ -2854,14 +2835,12 @@ type Asset = {
|
|
|
2854
2835
|
* Denomination of this asset to represent fungibility.
|
|
2855
2836
|
*/
|
|
2856
2837
|
denomination: number;
|
|
2857
|
-
|
|
2858
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2859
|
-
*/
|
|
2860
|
-
type: string;
|
|
2838
|
+
type: PrimaryNetworkAssetType;
|
|
2861
2839
|
/**
|
|
2862
2840
|
* Amount of the asset.
|
|
2863
2841
|
*/
|
|
2864
2842
|
amount: string;
|
|
2843
|
+
utxoCount: number;
|
|
2865
2844
|
};
|
|
2866
2845
|
|
|
2867
2846
|
type PChainSharedAsset = {
|
|
@@ -2881,49 +2860,47 @@ type PChainSharedAsset = {
|
|
|
2881
2860
|
* Denomination of this asset to represent fungibility.
|
|
2882
2861
|
*/
|
|
2883
2862
|
denomination: number;
|
|
2884
|
-
|
|
2885
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2886
|
-
*/
|
|
2887
|
-
type: string;
|
|
2863
|
+
type: PrimaryNetworkAssetType;
|
|
2888
2864
|
/**
|
|
2889
2865
|
* Amount of the asset.
|
|
2890
2866
|
*/
|
|
2891
2867
|
amount: string;
|
|
2868
|
+
utxoCount: number;
|
|
2892
2869
|
sharedWithChainId: string;
|
|
2893
2870
|
status: string;
|
|
2894
2871
|
};
|
|
2895
2872
|
|
|
2896
2873
|
type PChainBalance = {
|
|
2897
2874
|
/**
|
|
2898
|
-
* A list of objects containing P-chain Asset
|
|
2875
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2899
2876
|
*/
|
|
2900
|
-
unlockedUnstaked: Array<
|
|
2877
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2901
2878
|
/**
|
|
2902
|
-
* A list of objects containing P-chain Asset
|
|
2879
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2903
2880
|
*/
|
|
2904
|
-
unlockedStaked: Array<
|
|
2881
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2905
2882
|
/**
|
|
2906
|
-
* A list of objects containing P-chain Asset
|
|
2883
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and not consumable by any transaction at the current time.
|
|
2907
2884
|
*/
|
|
2908
|
-
lockedPlatform: Array<
|
|
2885
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2909
2886
|
/**
|
|
2910
|
-
* A list of objects containing P-chain Asset
|
|
2887
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2911
2888
|
*/
|
|
2912
|
-
lockedStakeable: Array<
|
|
2889
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2913
2890
|
/**
|
|
2914
|
-
* A list of objects containing P-chain Asset
|
|
2891
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2915
2892
|
*/
|
|
2916
|
-
lockedStaked: Array<
|
|
2893
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2917
2894
|
/**
|
|
2918
|
-
* A list of objects containing P-chain Asset
|
|
2895
|
+
* A list of objects containing P-chain Asset basic info, amount, and utxo count of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
2919
2896
|
*/
|
|
2920
|
-
pendingStaked: Array<
|
|
2897
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2921
2898
|
/**
|
|
2922
|
-
* A list of objects containing P-chain Asset
|
|
2899
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
2923
2900
|
*/
|
|
2924
2901
|
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2925
2902
|
/**
|
|
2926
|
-
* A list of objects containing P-chain Asset
|
|
2903
|
+
* A list of objects containing P-chain Asset basic info, amount and utxo count of that Asset ID. Denotes the amount of locked Avax in the atomic memory between P-Chain and other chain.
|
|
2927
2904
|
*/
|
|
2928
2905
|
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2929
2906
|
};
|
|
@@ -2933,34 +2910,6 @@ type ListPChainBalancesResponse = {
|
|
|
2933
2910
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2934
2911
|
};
|
|
2935
2912
|
|
|
2936
|
-
type XChainAssetBalance = {
|
|
2937
|
-
/**
|
|
2938
|
-
* Unique ID for an asset.
|
|
2939
|
-
*/
|
|
2940
|
-
assetId: string;
|
|
2941
|
-
/**
|
|
2942
|
-
* Name of this asset.
|
|
2943
|
-
*/
|
|
2944
|
-
name: string;
|
|
2945
|
-
/**
|
|
2946
|
-
* Symbol for this asset (max 4 characters).
|
|
2947
|
-
*/
|
|
2948
|
-
symbol: string;
|
|
2949
|
-
/**
|
|
2950
|
-
* Denomination of this asset to represent fungibility.
|
|
2951
|
-
*/
|
|
2952
|
-
denomination: number;
|
|
2953
|
-
/**
|
|
2954
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2955
|
-
*/
|
|
2956
|
-
type: string;
|
|
2957
|
-
/**
|
|
2958
|
-
* Amount of the asset.
|
|
2959
|
-
*/
|
|
2960
|
-
amount: string;
|
|
2961
|
-
utxoCount: number;
|
|
2962
|
-
};
|
|
2963
|
-
|
|
2964
2913
|
type XChainSharedAssetBalance = {
|
|
2965
2914
|
/**
|
|
2966
2915
|
* Unique ID for an asset.
|
|
@@ -2978,10 +2927,7 @@ type XChainSharedAssetBalance = {
|
|
|
2978
2927
|
* Denomination of this asset to represent fungibility.
|
|
2979
2928
|
*/
|
|
2980
2929
|
denomination: number;
|
|
2981
|
-
|
|
2982
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2983
|
-
*/
|
|
2984
|
-
type: string;
|
|
2930
|
+
type: PrimaryNetworkAssetType;
|
|
2985
2931
|
/**
|
|
2986
2932
|
* Amount of the asset.
|
|
2987
2933
|
*/
|
|
@@ -2994,11 +2940,11 @@ type XChainBalances = {
|
|
|
2994
2940
|
/**
|
|
2995
2941
|
* A list of objects containing X-chain Asset balance information.
|
|
2996
2942
|
*/
|
|
2997
|
-
locked: Array<
|
|
2943
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2998
2944
|
/**
|
|
2999
2945
|
* A list of objects containing X-chain Asset balance information.
|
|
3000
2946
|
*/
|
|
3001
|
-
unlocked: Array<
|
|
2947
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
3002
2948
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
3003
2949
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
3004
2950
|
};
|
|
@@ -3111,7 +3057,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3111
3057
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3112
3058
|
* @throws ApiError
|
|
3113
3059
|
*/
|
|
3114
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3060
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
3115
3061
|
/**
|
|
3116
3062
|
* A primary network blockchain id or alias.
|
|
3117
3063
|
*/
|
|
@@ -3124,14 +3070,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3124
3070
|
* A primary network (P or X chain) nodeId.
|
|
3125
3071
|
*/
|
|
3126
3072
|
nodeId: string;
|
|
3127
|
-
/**
|
|
3128
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3129
|
-
*/
|
|
3130
|
-
pageSize?: number;
|
|
3131
3073
|
/**
|
|
3132
3074
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3133
3075
|
*/
|
|
3134
3076
|
pageToken?: string;
|
|
3077
|
+
/**
|
|
3078
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3079
|
+
*/
|
|
3080
|
+
pageSize?: number;
|
|
3135
3081
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3136
3082
|
/**
|
|
3137
3083
|
* List latest blocks
|
|
@@ -3139,7 +3085,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3139
3085
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
3140
3086
|
* @throws ApiError
|
|
3141
3087
|
*/
|
|
3142
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3088
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
3143
3089
|
/**
|
|
3144
3090
|
* A primary network blockchain id or alias.
|
|
3145
3091
|
*/
|
|
@@ -3148,14 +3094,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
3148
3094
|
* Either mainnet or a testnet.
|
|
3149
3095
|
*/
|
|
3150
3096
|
network: Network;
|
|
3151
|
-
/**
|
|
3152
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3153
|
-
*/
|
|
3154
|
-
pageSize?: number;
|
|
3155
3097
|
/**
|
|
3156
3098
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3157
3099
|
*/
|
|
3158
3100
|
pageToken?: string;
|
|
3101
|
+
/**
|
|
3102
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3103
|
+
*/
|
|
3104
|
+
pageSize?: number;
|
|
3159
3105
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
3160
3106
|
}
|
|
3161
3107
|
|
|
@@ -3176,10 +3122,7 @@ type AssetWithPriceInfo = {
|
|
|
3176
3122
|
* Denomination of this asset to represent fungibility.
|
|
3177
3123
|
*/
|
|
3178
3124
|
denomination: number;
|
|
3179
|
-
|
|
3180
|
-
* Type of asset like SECP256K1 or NFT.
|
|
3181
|
-
*/
|
|
3182
|
-
type: string;
|
|
3125
|
+
type: PrimaryNetworkAssetType;
|
|
3183
3126
|
/**
|
|
3184
3127
|
* Amount of the asset.
|
|
3185
3128
|
*/
|
|
@@ -3221,6 +3164,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
3221
3164
|
historicalRewards: Array<HistoricalReward>;
|
|
3222
3165
|
};
|
|
3223
3166
|
|
|
3167
|
+
type AssetAmount = {
|
|
3168
|
+
/**
|
|
3169
|
+
* Unique ID for an asset.
|
|
3170
|
+
*/
|
|
3171
|
+
assetId: string;
|
|
3172
|
+
/**
|
|
3173
|
+
* Name of this asset.
|
|
3174
|
+
*/
|
|
3175
|
+
name: string;
|
|
3176
|
+
/**
|
|
3177
|
+
* Symbol for this asset (max 4 characters).
|
|
3178
|
+
*/
|
|
3179
|
+
symbol: string;
|
|
3180
|
+
/**
|
|
3181
|
+
* Denomination of this asset to represent fungibility.
|
|
3182
|
+
*/
|
|
3183
|
+
denomination: number;
|
|
3184
|
+
type: PrimaryNetworkAssetType;
|
|
3185
|
+
/**
|
|
3186
|
+
* Amount of the asset.
|
|
3187
|
+
*/
|
|
3188
|
+
amount: string;
|
|
3189
|
+
};
|
|
3190
|
+
|
|
3224
3191
|
type PendingReward = {
|
|
3225
3192
|
/**
|
|
3226
3193
|
* An array of P-Chain wallet addresses.
|
|
@@ -3234,9 +3201,9 @@ type PendingReward = {
|
|
|
3234
3201
|
rewardType: RewardType;
|
|
3235
3202
|
progress: number;
|
|
3236
3203
|
/**
|
|
3237
|
-
* An object containing P-chain Asset
|
|
3204
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3238
3205
|
*/
|
|
3239
|
-
estimatedReward:
|
|
3206
|
+
estimatedReward: AssetAmount;
|
|
3240
3207
|
};
|
|
3241
3208
|
|
|
3242
3209
|
type ListPendingRewardsResponse = {
|
|
@@ -3256,25 +3223,25 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3256
3223
|
* @returns ListPendingRewardsResponse
|
|
3257
3224
|
* @throws ApiError
|
|
3258
3225
|
*/
|
|
3259
|
-
listPendingPrimaryNetworkRewards({ network, addresses,
|
|
3226
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
3260
3227
|
/**
|
|
3261
3228
|
* Either mainnet or a testnet.
|
|
3262
3229
|
*/
|
|
3263
3230
|
network: Network;
|
|
3264
3231
|
/**
|
|
3265
|
-
* 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".
|
|
3232
|
+
* 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". One of addresses or nodeIds is required.
|
|
3266
3233
|
*/
|
|
3267
3234
|
addresses?: string;
|
|
3268
|
-
/**
|
|
3269
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3270
|
-
*/
|
|
3271
|
-
pageSize?: number;
|
|
3272
3235
|
/**
|
|
3273
3236
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3274
3237
|
*/
|
|
3275
3238
|
pageToken?: string;
|
|
3276
3239
|
/**
|
|
3277
|
-
*
|
|
3240
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3241
|
+
*/
|
|
3242
|
+
pageSize?: number;
|
|
3243
|
+
/**
|
|
3244
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
3278
3245
|
*/
|
|
3279
3246
|
nodeIds?: string;
|
|
3280
3247
|
/**
|
|
@@ -3288,7 +3255,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3288
3255
|
* @returns ListHistoricalRewardsResponse
|
|
3289
3256
|
* @throws ApiError
|
|
3290
3257
|
*/
|
|
3291
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses,
|
|
3258
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
3292
3259
|
/**
|
|
3293
3260
|
* Either mainnet or a testnet.
|
|
3294
3261
|
*/
|
|
@@ -3297,14 +3264,14 @@ declare class PrimaryNetworkRewardsService {
|
|
|
3297
3264
|
* 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". Optional, but at least one of addresses or nodeIds is required.
|
|
3298
3265
|
*/
|
|
3299
3266
|
addresses?: string;
|
|
3300
|
-
/**
|
|
3301
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3302
|
-
*/
|
|
3303
|
-
pageSize?: number;
|
|
3304
3267
|
/**
|
|
3305
3268
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3306
3269
|
*/
|
|
3307
3270
|
pageToken?: string;
|
|
3271
|
+
/**
|
|
3272
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3273
|
+
*/
|
|
3274
|
+
pageSize?: number;
|
|
3308
3275
|
/**
|
|
3309
3276
|
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3310
3277
|
*/
|
|
@@ -3337,9 +3304,9 @@ type EVMInput = {
|
|
|
3337
3304
|
*/
|
|
3338
3305
|
fromAddress: string;
|
|
3339
3306
|
/**
|
|
3340
|
-
*
|
|
3307
|
+
* AssetAmount details for the asset being transferred.
|
|
3341
3308
|
*/
|
|
3342
|
-
asset:
|
|
3309
|
+
asset: AssetAmount;
|
|
3343
3310
|
/**
|
|
3344
3311
|
* Credentials that signed this transaction.
|
|
3345
3312
|
*/
|
|
@@ -3351,7 +3318,7 @@ type Utxo = {
|
|
|
3351
3318
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3352
3319
|
*/
|
|
3353
3320
|
addresses: Array<string>;
|
|
3354
|
-
asset:
|
|
3321
|
+
asset: AssetAmount;
|
|
3355
3322
|
/**
|
|
3356
3323
|
* Blockchain ID on which this output is consumed on.
|
|
3357
3324
|
*/
|
|
@@ -3434,11 +3401,11 @@ type CChainExportTransaction = {
|
|
|
3434
3401
|
/**
|
|
3435
3402
|
* Assets unlocked by inputs of this transaction.
|
|
3436
3403
|
*/
|
|
3437
|
-
amountUnlocked: Array<
|
|
3404
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3438
3405
|
/**
|
|
3439
3406
|
* Assets created by outputs of this transaction.
|
|
3440
3407
|
*/
|
|
3441
|
-
amountCreated: Array<
|
|
3408
|
+
amountCreated: Array<AssetAmount>;
|
|
3442
3409
|
/**
|
|
3443
3410
|
* Source chain for an atomic transaction.
|
|
3444
3411
|
*/
|
|
@@ -3469,9 +3436,9 @@ type EVMOutput = {
|
|
|
3469
3436
|
*/
|
|
3470
3437
|
toAddress: string;
|
|
3471
3438
|
/**
|
|
3472
|
-
*
|
|
3439
|
+
* AssetAmount details for the asset being transferred.
|
|
3473
3440
|
*/
|
|
3474
|
-
asset:
|
|
3441
|
+
asset: AssetAmount;
|
|
3475
3442
|
};
|
|
3476
3443
|
|
|
3477
3444
|
type CChainImportTransaction = {
|
|
@@ -3498,11 +3465,11 @@ type CChainImportTransaction = {
|
|
|
3498
3465
|
/**
|
|
3499
3466
|
* Assets unlocked by inputs of this transaction.
|
|
3500
3467
|
*/
|
|
3501
|
-
amountUnlocked: Array<
|
|
3468
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3502
3469
|
/**
|
|
3503
3470
|
* Assets created by outputs of this transaction.
|
|
3504
3471
|
*/
|
|
3505
|
-
amountCreated: Array<
|
|
3472
|
+
amountCreated: Array<AssetAmount>;
|
|
3506
3473
|
/**
|
|
3507
3474
|
* Source chain for an atomic transaction.
|
|
3508
3475
|
*/
|
|
@@ -3550,6 +3517,8 @@ declare enum PChainTransactionType {
|
|
|
3550
3517
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3551
3518
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3552
3519
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3520
|
+
BASE_TX = "BaseTx",
|
|
3521
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3553
3522
|
UNKNOWN = "UNKNOWN"
|
|
3554
3523
|
}
|
|
3555
3524
|
|
|
@@ -3563,7 +3532,7 @@ type PChainUtxo = {
|
|
|
3563
3532
|
* Addresses that are eligible to sign the consumption of this output.
|
|
3564
3533
|
*/
|
|
3565
3534
|
addresses: Array<string>;
|
|
3566
|
-
asset:
|
|
3535
|
+
asset: AssetAmount;
|
|
3567
3536
|
/**
|
|
3568
3537
|
* Blockchain ID on which this output is consumed on.
|
|
3569
3538
|
*/
|
|
@@ -3627,17 +3596,17 @@ type PChainTransaction = {
|
|
|
3627
3596
|
*/
|
|
3628
3597
|
destinationChain?: string;
|
|
3629
3598
|
/**
|
|
3630
|
-
* A list of objects containing P-chain Asset
|
|
3599
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3631
3600
|
*/
|
|
3632
|
-
value: Array<
|
|
3601
|
+
value: Array<AssetAmount>;
|
|
3633
3602
|
/**
|
|
3634
|
-
* A list of objects containing P-chain Asset
|
|
3603
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3635
3604
|
*/
|
|
3636
|
-
amountBurned: Array<
|
|
3605
|
+
amountBurned: Array<AssetAmount>;
|
|
3637
3606
|
/**
|
|
3638
|
-
* A list of objects containing P-chain Asset
|
|
3607
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3639
3608
|
*/
|
|
3640
|
-
amountStaked: Array<
|
|
3609
|
+
amountStaked: Array<AssetAmount>;
|
|
3641
3610
|
/**
|
|
3642
3611
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3643
3612
|
*/
|
|
@@ -3669,6 +3638,14 @@ type PChainTransaction = {
|
|
|
3669
3638
|
* Present for RewardValidatorTx
|
|
3670
3639
|
*/
|
|
3671
3640
|
stakingTxHash?: string;
|
|
3641
|
+
/**
|
|
3642
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3643
|
+
*/
|
|
3644
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3645
|
+
/**
|
|
3646
|
+
* Present for AddPermissionlessValidatorTx
|
|
3647
|
+
*/
|
|
3648
|
+
blsCredentials?: BlsCredentials;
|
|
3672
3649
|
};
|
|
3673
3650
|
|
|
3674
3651
|
type ListPChainTransactionsResponse = {
|
|
@@ -3680,6 +3657,9 @@ type ListPChainTransactionsResponse = {
|
|
|
3680
3657
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3681
3658
|
};
|
|
3682
3659
|
|
|
3660
|
+
/**
|
|
3661
|
+
* Type of transaction.
|
|
3662
|
+
*/
|
|
3683
3663
|
declare enum XChainTransactionType {
|
|
3684
3664
|
BASE_TX = "BaseTx",
|
|
3685
3665
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3702,9 +3682,6 @@ type XChainLinearTransaction = {
|
|
|
3702
3682
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3703
3683
|
*/
|
|
3704
3684
|
timestamp: number;
|
|
3705
|
-
/**
|
|
3706
|
-
* Type of transaction.
|
|
3707
|
-
*/
|
|
3708
3685
|
txType: XChainTransactionType;
|
|
3709
3686
|
/**
|
|
3710
3687
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3715,11 +3692,11 @@ type XChainLinearTransaction = {
|
|
|
3715
3692
|
/**
|
|
3716
3693
|
* Assets unlocked by inputs of this transaction.
|
|
3717
3694
|
*/
|
|
3718
|
-
amountUnlocked: Array<
|
|
3695
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3719
3696
|
/**
|
|
3720
3697
|
* Assets created by outputs of this transaction.
|
|
3721
3698
|
*/
|
|
3722
|
-
amountCreated: Array<
|
|
3699
|
+
amountCreated: Array<AssetAmount>;
|
|
3723
3700
|
/**
|
|
3724
3701
|
* Source chain for an atomic transaction.
|
|
3725
3702
|
*/
|
|
@@ -3729,7 +3706,7 @@ type XChainLinearTransaction = {
|
|
|
3729
3706
|
*/
|
|
3730
3707
|
destinationChain?: string;
|
|
3731
3708
|
/**
|
|
3732
|
-
*
|
|
3709
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3733
3710
|
*/
|
|
3734
3711
|
assetCreated?: XChainAssetDetails;
|
|
3735
3712
|
/**
|
|
@@ -3779,9 +3756,6 @@ type XChainNonLinearTransaction = {
|
|
|
3779
3756
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3780
3757
|
*/
|
|
3781
3758
|
timestamp: number;
|
|
3782
|
-
/**
|
|
3783
|
-
* Type of transaction.
|
|
3784
|
-
*/
|
|
3785
3759
|
txType: XChainTransactionType;
|
|
3786
3760
|
/**
|
|
3787
3761
|
* Hex encoded memo bytes for this transaction.
|
|
@@ -3792,11 +3766,11 @@ type XChainNonLinearTransaction = {
|
|
|
3792
3766
|
/**
|
|
3793
3767
|
* Assets unlocked by inputs of this transaction.
|
|
3794
3768
|
*/
|
|
3795
|
-
amountUnlocked: Array<
|
|
3769
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3796
3770
|
/**
|
|
3797
3771
|
* Assets created by outputs of this transaction.
|
|
3798
3772
|
*/
|
|
3799
|
-
amountCreated: Array<
|
|
3773
|
+
amountCreated: Array<AssetAmount>;
|
|
3800
3774
|
/**
|
|
3801
3775
|
* Source chain for an atomic transaction.
|
|
3802
3776
|
*/
|
|
@@ -3806,7 +3780,7 @@ type XChainNonLinearTransaction = {
|
|
|
3806
3780
|
*/
|
|
3807
3781
|
destinationChain?: string;
|
|
3808
3782
|
/**
|
|
3809
|
-
*
|
|
3783
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3810
3784
|
*/
|
|
3811
3785
|
assetCreated?: XChainAssetDetails;
|
|
3812
3786
|
/**
|
|
@@ -3852,8 +3826,9 @@ declare enum PrimaryNetworkTxType {
|
|
|
3852
3826
|
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3853
3827
|
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3854
3828
|
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3855
|
-
UNKNOWN = "UNKNOWN",
|
|
3856
3829
|
BASE_TX = "BaseTx",
|
|
3830
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3831
|
+
UNKNOWN = "UNKNOWN",
|
|
3857
3832
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3858
3833
|
OPERATION_TX = "OperationTx"
|
|
3859
3834
|
}
|
|
@@ -3885,13 +3860,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3885
3860
|
* List latest transactions
|
|
3886
3861
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3887
3862
|
*
|
|
3888
|
-
* Transactions are filterable by addresses.
|
|
3863
|
+
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
3889
3864
|
*
|
|
3890
3865
|
* 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.
|
|
3891
3866
|
* @returns any
|
|
3892
3867
|
* @throws ApiError
|
|
3893
3868
|
*/
|
|
3894
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3869
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3895
3870
|
/**
|
|
3896
3871
|
* A primary network blockchain id or alias.
|
|
3897
3872
|
*/
|
|
@@ -3916,14 +3891,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3916
3891
|
* Query param for retrieving items before a specific timestamp.
|
|
3917
3892
|
*/
|
|
3918
3893
|
endTimestamp?: number;
|
|
3919
|
-
/**
|
|
3920
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3921
|
-
*/
|
|
3922
|
-
pageSize?: number;
|
|
3923
3894
|
/**
|
|
3924
3895
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3925
3896
|
*/
|
|
3926
3897
|
pageToken?: string;
|
|
3898
|
+
/**
|
|
3899
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3900
|
+
*/
|
|
3901
|
+
pageSize?: number;
|
|
3927
3902
|
/**
|
|
3928
3903
|
* 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.
|
|
3929
3904
|
*/
|
|
@@ -3935,7 +3910,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3935
3910
|
* @returns ListPChainTransactionsResponse
|
|
3936
3911
|
* @throws ApiError
|
|
3937
3912
|
*/
|
|
3938
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3913
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3939
3914
|
/**
|
|
3940
3915
|
* A primary network blockchain id or alias.
|
|
3941
3916
|
*/
|
|
@@ -3960,14 +3935,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3960
3935
|
* Query param for retrieving items before a specific timestamp.
|
|
3961
3936
|
*/
|
|
3962
3937
|
endTimestamp?: number;
|
|
3963
|
-
/**
|
|
3964
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3965
|
-
*/
|
|
3966
|
-
pageSize?: number;
|
|
3967
3938
|
/**
|
|
3968
3939
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3969
3940
|
*/
|
|
3970
3941
|
pageToken?: string;
|
|
3942
|
+
/**
|
|
3943
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3944
|
+
*/
|
|
3945
|
+
pageSize?: number;
|
|
3971
3946
|
/**
|
|
3972
3947
|
* 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.
|
|
3973
3948
|
*/
|
|
@@ -3979,7 +3954,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3979
3954
|
* @returns ListXChainTransactionsResponse
|
|
3980
3955
|
* @throws ApiError
|
|
3981
3956
|
*/
|
|
3982
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3957
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3983
3958
|
/**
|
|
3984
3959
|
* A primary network blockchain id or alias.
|
|
3985
3960
|
*/
|
|
@@ -4004,14 +3979,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
4004
3979
|
* Query param for retrieving items before a specific timestamp.
|
|
4005
3980
|
*/
|
|
4006
3981
|
endTimestamp?: number;
|
|
4007
|
-
/**
|
|
4008
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4009
|
-
*/
|
|
4010
|
-
pageSize?: number;
|
|
4011
3982
|
/**
|
|
4012
3983
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4013
3984
|
*/
|
|
4014
3985
|
pageToken?: string;
|
|
3986
|
+
/**
|
|
3987
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3988
|
+
*/
|
|
3989
|
+
pageSize?: number;
|
|
4015
3990
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
4016
3991
|
}
|
|
4017
3992
|
|
|
@@ -4042,7 +4017,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4042
4017
|
* @returns any
|
|
4043
4018
|
* @throws ApiError
|
|
4044
4019
|
*/
|
|
4045
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4020
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
4046
4021
|
/**
|
|
4047
4022
|
* A primary network blockchain id or alias.
|
|
4048
4023
|
*/
|
|
@@ -4055,14 +4030,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
4055
4030
|
* 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".
|
|
4056
4031
|
*/
|
|
4057
4032
|
addresses?: string;
|
|
4058
|
-
/**
|
|
4059
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4060
|
-
*/
|
|
4061
|
-
pageSize?: number;
|
|
4062
4033
|
/**
|
|
4063
4034
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4064
4035
|
*/
|
|
4065
4036
|
pageToken?: string;
|
|
4037
|
+
/**
|
|
4038
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4039
|
+
*/
|
|
4040
|
+
pageSize?: number;
|
|
4066
4041
|
/**
|
|
4067
4042
|
* Asset ID for any asset (only applicable X-Chain)
|
|
4068
4043
|
*/
|
|
@@ -4107,7 +4082,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4107
4082
|
* @returns ListXChainVerticesResponse
|
|
4108
4083
|
* @throws ApiError
|
|
4109
4084
|
*/
|
|
4110
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4085
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
4111
4086
|
/**
|
|
4112
4087
|
* A primary network blockchain id or alias.
|
|
4113
4088
|
*/
|
|
@@ -4116,14 +4091,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4116
4091
|
* Either mainnet or a testnet.
|
|
4117
4092
|
*/
|
|
4118
4093
|
network: Network;
|
|
4119
|
-
/**
|
|
4120
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4121
|
-
*/
|
|
4122
|
-
pageSize?: number;
|
|
4123
4094
|
/**
|
|
4124
4095
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4125
4096
|
*/
|
|
4126
4097
|
pageToken?: string;
|
|
4098
|
+
/**
|
|
4099
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4100
|
+
*/
|
|
4101
|
+
pageSize?: number;
|
|
4127
4102
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4128
4103
|
/**
|
|
4129
4104
|
* Get vertex
|
|
@@ -4151,7 +4126,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4151
4126
|
* @returns ListXChainVerticesResponse
|
|
4152
4127
|
* @throws ApiError
|
|
4153
4128
|
*/
|
|
4154
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4129
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
4155
4130
|
/**
|
|
4156
4131
|
* The height of a vertex.
|
|
4157
4132
|
*/
|
|
@@ -4164,14 +4139,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4164
4139
|
* Either mainnet or a testnet.
|
|
4165
4140
|
*/
|
|
4166
4141
|
network: Network;
|
|
4167
|
-
/**
|
|
4168
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4169
|
-
*/
|
|
4170
|
-
pageSize?: number;
|
|
4171
4142
|
/**
|
|
4172
4143
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4173
4144
|
*/
|
|
4174
4145
|
pageToken?: string;
|
|
4146
|
+
/**
|
|
4147
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4148
|
+
*/
|
|
4149
|
+
pageSize?: number;
|
|
4175
4150
|
/**
|
|
4176
4151
|
* 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.
|
|
4177
4152
|
*/
|
|
@@ -4179,6 +4154,49 @@ declare class PrimaryNetworkVerticesService {
|
|
|
4179
4154
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4180
4155
|
}
|
|
4181
4156
|
|
|
4157
|
+
type RpcErrorDto = {
|
|
4158
|
+
code: number;
|
|
4159
|
+
message: string;
|
|
4160
|
+
data?: Record<string, any>;
|
|
4161
|
+
};
|
|
4162
|
+
|
|
4163
|
+
type RpcErrorResponseDto = {
|
|
4164
|
+
jsonrpc: string;
|
|
4165
|
+
id?: (string | number);
|
|
4166
|
+
error: RpcErrorDto;
|
|
4167
|
+
};
|
|
4168
|
+
|
|
4169
|
+
type RpcRequestBodyDto = {
|
|
4170
|
+
method: string;
|
|
4171
|
+
params?: Record<string, any>;
|
|
4172
|
+
id?: (string | number);
|
|
4173
|
+
jsonrpc?: string;
|
|
4174
|
+
};
|
|
4175
|
+
|
|
4176
|
+
type RpcSuccessResponseDto = {
|
|
4177
|
+
jsonrpc: string;
|
|
4178
|
+
id?: (string | number);
|
|
4179
|
+
result: Record<string, any>;
|
|
4180
|
+
};
|
|
4181
|
+
|
|
4182
|
+
declare class RpcService {
|
|
4183
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4184
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4185
|
+
/**
|
|
4186
|
+
* Calls JSON-RPC method
|
|
4187
|
+
* Calls JSON-RPC method.
|
|
4188
|
+
* @returns any
|
|
4189
|
+
* @throws ApiError
|
|
4190
|
+
*/
|
|
4191
|
+
rpc({ chainId, requestBody, }: {
|
|
4192
|
+
/**
|
|
4193
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4194
|
+
*/
|
|
4195
|
+
chainId: string;
|
|
4196
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4197
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4182
4200
|
type TeleporterDestinationTransaction = {
|
|
4183
4201
|
txHash: string;
|
|
4184
4202
|
timestamp: number;
|
|
@@ -4187,6 +4205,11 @@ type TeleporterDestinationTransaction = {
|
|
|
4187
4205
|
delivererAddress: string;
|
|
4188
4206
|
};
|
|
4189
4207
|
|
|
4208
|
+
type TeleporterReceipt = {
|
|
4209
|
+
receivedMessageNonce: string;
|
|
4210
|
+
relayerRewardAddress: string;
|
|
4211
|
+
};
|
|
4212
|
+
|
|
4190
4213
|
type TeleporterRewardDetails = {
|
|
4191
4214
|
/**
|
|
4192
4215
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
@@ -4222,14 +4245,18 @@ declare namespace TeleporterRewardDetails {
|
|
|
4222
4245
|
}
|
|
4223
4246
|
|
|
4224
4247
|
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4248
|
+
messageId: string;
|
|
4249
|
+
teleporterContractAddress: string;
|
|
4225
4250
|
sourceBlockchainId: string;
|
|
4226
4251
|
destinationBlockchainId: string;
|
|
4227
|
-
|
|
4252
|
+
sourceEvmChainId: string;
|
|
4253
|
+
destinationEvmChainId: string;
|
|
4254
|
+
messageNonce: string;
|
|
4228
4255
|
from: string;
|
|
4229
4256
|
to: string;
|
|
4230
4257
|
data?: string;
|
|
4231
4258
|
messageExecuted: boolean;
|
|
4232
|
-
receipts: Array<
|
|
4259
|
+
receipts: Array<TeleporterReceipt>;
|
|
4233
4260
|
receiptDelivered: boolean;
|
|
4234
4261
|
rewardDetails: TeleporterRewardDetails;
|
|
4235
4262
|
destinationTransaction: TeleporterDestinationTransaction;
|
|
@@ -4248,14 +4275,18 @@ type TeleporterSourceTransaction = {
|
|
|
4248
4275
|
};
|
|
4249
4276
|
|
|
4250
4277
|
type DeliveredTeleporterMessage = {
|
|
4278
|
+
messageId: string;
|
|
4279
|
+
teleporterContractAddress: string;
|
|
4251
4280
|
sourceBlockchainId: string;
|
|
4252
4281
|
destinationBlockchainId: string;
|
|
4253
|
-
|
|
4282
|
+
sourceEvmChainId: string;
|
|
4283
|
+
destinationEvmChainId: string;
|
|
4284
|
+
messageNonce: string;
|
|
4254
4285
|
from: string;
|
|
4255
4286
|
to: string;
|
|
4256
4287
|
data?: string;
|
|
4257
4288
|
messageExecuted: boolean;
|
|
4258
|
-
receipts: Array<
|
|
4289
|
+
receipts: Array<TeleporterReceipt>;
|
|
4259
4290
|
receiptDelivered: boolean;
|
|
4260
4291
|
rewardDetails: TeleporterRewardDetails;
|
|
4261
4292
|
sourceTransaction: TeleporterSourceTransaction;
|
|
@@ -4268,22 +4299,19 @@ declare namespace DeliveredTeleporterMessage {
|
|
|
4268
4299
|
}
|
|
4269
4300
|
}
|
|
4270
4301
|
|
|
4271
|
-
type NextPageToken = {
|
|
4272
|
-
/**
|
|
4273
|
-
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4274
|
-
*/
|
|
4275
|
-
nextPageToken?: string;
|
|
4276
|
-
};
|
|
4277
|
-
|
|
4278
4302
|
type PendingTeleporterMessage = {
|
|
4303
|
+
messageId: string;
|
|
4304
|
+
teleporterContractAddress: string;
|
|
4279
4305
|
sourceBlockchainId: string;
|
|
4280
4306
|
destinationBlockchainId: string;
|
|
4281
|
-
|
|
4307
|
+
sourceEvmChainId: string;
|
|
4308
|
+
destinationEvmChainId: string;
|
|
4309
|
+
messageNonce: string;
|
|
4282
4310
|
from: string;
|
|
4283
4311
|
to: string;
|
|
4284
4312
|
data?: string;
|
|
4285
4313
|
messageExecuted: boolean;
|
|
4286
|
-
receipts: Array<
|
|
4314
|
+
receipts: Array<TeleporterReceipt>;
|
|
4287
4315
|
receiptDelivered: boolean;
|
|
4288
4316
|
rewardDetails: TeleporterRewardDetails;
|
|
4289
4317
|
sourceTransaction: TeleporterSourceTransaction;
|
|
@@ -4295,61 +4323,295 @@ declare namespace PendingTeleporterMessage {
|
|
|
4295
4323
|
}
|
|
4296
4324
|
}
|
|
4297
4325
|
|
|
4326
|
+
type ListTeleporterMessagesResponse = {
|
|
4327
|
+
/**
|
|
4328
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4329
|
+
*/
|
|
4330
|
+
nextPageToken?: string;
|
|
4331
|
+
messages: Array<(PendingTeleporterMessage | DeliveredTeleporterMessage)>;
|
|
4332
|
+
};
|
|
4333
|
+
|
|
4298
4334
|
declare class TeleporterService {
|
|
4299
4335
|
readonly httpRequest: BaseHttpRequest;
|
|
4300
4336
|
constructor(httpRequest: BaseHttpRequest);
|
|
4301
4337
|
/**
|
|
4302
4338
|
* Get a teleporter message
|
|
4303
|
-
* Gets a teleporter message by
|
|
4339
|
+
* Gets a teleporter message by message ID.
|
|
4304
4340
|
* @returns any
|
|
4305
4341
|
* @throws ApiError
|
|
4306
4342
|
*/
|
|
4307
|
-
getTeleporterMessage({
|
|
4308
|
-
/**
|
|
4309
|
-
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
4310
|
-
*/
|
|
4311
|
-
sourceBlockchainId: any;
|
|
4312
|
-
/**
|
|
4313
|
-
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
4314
|
-
*/
|
|
4315
|
-
destinationBlockchainId: any;
|
|
4343
|
+
getTeleporterMessage({ messageId, }: {
|
|
4316
4344
|
/**
|
|
4317
4345
|
* The message ID of the teleporter message.
|
|
4318
4346
|
*/
|
|
4319
|
-
messageId:
|
|
4347
|
+
messageId: string;
|
|
4320
4348
|
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4321
4349
|
/**
|
|
4322
4350
|
* List teleporter messages
|
|
4323
4351
|
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4324
|
-
* @returns
|
|
4352
|
+
* @returns ListTeleporterMessagesResponse
|
|
4325
4353
|
* @throws ApiError
|
|
4326
4354
|
*/
|
|
4327
|
-
listTeleporterMessages({
|
|
4355
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, network, }: {
|
|
4356
|
+
/**
|
|
4357
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4358
|
+
*/
|
|
4359
|
+
pageToken?: string;
|
|
4328
4360
|
/**
|
|
4329
4361
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4330
4362
|
*/
|
|
4331
4363
|
pageSize?: number;
|
|
4364
|
+
/**
|
|
4365
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4366
|
+
*/
|
|
4367
|
+
sourceBlockchainId?: string;
|
|
4368
|
+
/**
|
|
4369
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4370
|
+
*/
|
|
4371
|
+
destinationBlockchainId?: string;
|
|
4372
|
+
/**
|
|
4373
|
+
* The address of the recipient of the teleporter message.
|
|
4374
|
+
*/
|
|
4375
|
+
to?: string;
|
|
4376
|
+
/**
|
|
4377
|
+
* The address of the sender of the teleporter message.
|
|
4378
|
+
*/
|
|
4379
|
+
from?: string;
|
|
4380
|
+
/**
|
|
4381
|
+
* mainnet or testnet.
|
|
4382
|
+
*/
|
|
4383
|
+
network?: NetworkType;
|
|
4384
|
+
}): CancelablePromise<ListTeleporterMessagesResponse>;
|
|
4385
|
+
}
|
|
4386
|
+
|
|
4387
|
+
type AddressesChangeRequest = {
|
|
4388
|
+
/**
|
|
4389
|
+
* Ethereum address(es) for the address_activity event type
|
|
4390
|
+
*/
|
|
4391
|
+
addresses: Array<any[]>;
|
|
4392
|
+
};
|
|
4393
|
+
|
|
4394
|
+
type AddressActivityMetadata = {
|
|
4395
|
+
/**
|
|
4396
|
+
* Ethereum address(es) for the address_activity event type
|
|
4397
|
+
*/
|
|
4398
|
+
addresses: Array<string>;
|
|
4399
|
+
/**
|
|
4400
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4401
|
+
*/
|
|
4402
|
+
eventSignatures?: Array<string>;
|
|
4403
|
+
};
|
|
4404
|
+
|
|
4405
|
+
declare enum EventType {
|
|
4406
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4407
|
+
}
|
|
4408
|
+
|
|
4409
|
+
type CreateWebhookRequest = {
|
|
4410
|
+
url: string;
|
|
4411
|
+
chainId: string;
|
|
4412
|
+
eventType: EventType;
|
|
4413
|
+
metadata: AddressActivityMetadata;
|
|
4414
|
+
name?: string;
|
|
4415
|
+
description?: string;
|
|
4416
|
+
/**
|
|
4417
|
+
* Whether to include traces in the webhook payload.
|
|
4418
|
+
*/
|
|
4419
|
+
includeInternalTxs?: boolean;
|
|
4420
|
+
/**
|
|
4421
|
+
* Whether to include logs in the webhook payload.
|
|
4422
|
+
*/
|
|
4423
|
+
includeLogs?: boolean;
|
|
4424
|
+
};
|
|
4425
|
+
|
|
4426
|
+
type ListWebhookAddressesResponse = {
|
|
4427
|
+
/**
|
|
4428
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4429
|
+
*/
|
|
4430
|
+
nextPageToken?: string;
|
|
4431
|
+
addresses: Array<string>;
|
|
4432
|
+
totalAddresses: number;
|
|
4433
|
+
};
|
|
4434
|
+
|
|
4435
|
+
declare enum WebhookStatusType {
|
|
4436
|
+
ACTIVE = "active",
|
|
4437
|
+
INACTIVE = "inactive"
|
|
4438
|
+
}
|
|
4439
|
+
|
|
4440
|
+
type WebhookResponse = {
|
|
4441
|
+
id: string;
|
|
4442
|
+
eventType: EventType;
|
|
4443
|
+
metadata: AddressActivityMetadata;
|
|
4444
|
+
/**
|
|
4445
|
+
* Whether to include traces in the webhook payload.
|
|
4446
|
+
*/
|
|
4447
|
+
includeInternalTxs?: boolean;
|
|
4448
|
+
/**
|
|
4449
|
+
* Whether to include logs in the webhook payload.
|
|
4450
|
+
*/
|
|
4451
|
+
includeLogs?: boolean;
|
|
4452
|
+
url: string;
|
|
4453
|
+
chainId: string;
|
|
4454
|
+
status: WebhookStatusType;
|
|
4455
|
+
createdAt: number;
|
|
4456
|
+
name: string;
|
|
4457
|
+
description: string;
|
|
4458
|
+
};
|
|
4459
|
+
|
|
4460
|
+
type ListWebhooksResponse = {
|
|
4461
|
+
/**
|
|
4462
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4463
|
+
*/
|
|
4464
|
+
nextPageToken?: string;
|
|
4465
|
+
webhooks: Array<WebhookResponse>;
|
|
4466
|
+
};
|
|
4467
|
+
|
|
4468
|
+
type SharedSecretsResponse = {
|
|
4469
|
+
secret: string;
|
|
4470
|
+
};
|
|
4471
|
+
|
|
4472
|
+
type UpdateWebhookRequest = {
|
|
4473
|
+
name?: string;
|
|
4474
|
+
description?: string;
|
|
4475
|
+
url?: string;
|
|
4476
|
+
status?: WebhookStatusType;
|
|
4477
|
+
includeInternalTxs?: boolean;
|
|
4478
|
+
includeLogs?: boolean;
|
|
4479
|
+
};
|
|
4480
|
+
|
|
4481
|
+
declare enum WebhookStatus {
|
|
4482
|
+
ACTIVE = "active",
|
|
4483
|
+
INACTIVE = "inactive"
|
|
4484
|
+
}
|
|
4485
|
+
|
|
4486
|
+
declare class WebhooksService {
|
|
4487
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4488
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4489
|
+
/**
|
|
4490
|
+
* Create a webhook
|
|
4491
|
+
* Create a new webhook.
|
|
4492
|
+
* @returns WebhookResponse
|
|
4493
|
+
* @throws ApiError
|
|
4494
|
+
*/
|
|
4495
|
+
createWebhook({ requestBody, }: {
|
|
4496
|
+
requestBody: CreateWebhookRequest;
|
|
4497
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4498
|
+
/**
|
|
4499
|
+
* List webhooks
|
|
4500
|
+
* Lists webhooks for the user.
|
|
4501
|
+
* @returns ListWebhooksResponse
|
|
4502
|
+
* @throws ApiError
|
|
4503
|
+
*/
|
|
4504
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
4332
4505
|
/**
|
|
4333
4506
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4334
4507
|
*/
|
|
4335
4508
|
pageToken?: string;
|
|
4336
4509
|
/**
|
|
4337
|
-
* The
|
|
4510
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4338
4511
|
*/
|
|
4339
|
-
|
|
4512
|
+
pageSize?: number;
|
|
4340
4513
|
/**
|
|
4341
|
-
*
|
|
4514
|
+
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
4342
4515
|
*/
|
|
4343
|
-
|
|
4516
|
+
status?: WebhookStatus;
|
|
4517
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4518
|
+
/**
|
|
4519
|
+
* Get a webhook by ID
|
|
4520
|
+
* Retrieves a webhook by ID.
|
|
4521
|
+
* @returns WebhookResponse
|
|
4522
|
+
* @throws ApiError
|
|
4523
|
+
*/
|
|
4524
|
+
getWebhook({ id, }: {
|
|
4344
4525
|
/**
|
|
4345
|
-
* The
|
|
4526
|
+
* The webhook identifier.
|
|
4346
4527
|
*/
|
|
4347
|
-
|
|
4528
|
+
id: string;
|
|
4529
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4530
|
+
/**
|
|
4531
|
+
* Deactivate a webhook
|
|
4532
|
+
* Deactivates a webhook by ID.
|
|
4533
|
+
* @returns WebhookResponse
|
|
4534
|
+
* @throws ApiError
|
|
4535
|
+
*/
|
|
4536
|
+
deactivateWebhook({ id, }: {
|
|
4348
4537
|
/**
|
|
4349
|
-
* The
|
|
4538
|
+
* The webhook identifier.
|
|
4350
4539
|
*/
|
|
4351
|
-
|
|
4352
|
-
}): CancelablePromise<
|
|
4540
|
+
id: string;
|
|
4541
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4542
|
+
/**
|
|
4543
|
+
* Update a webhook
|
|
4544
|
+
* Updates an existing webhook.
|
|
4545
|
+
* @returns WebhookResponse
|
|
4546
|
+
* @throws ApiError
|
|
4547
|
+
*/
|
|
4548
|
+
updateWebhook({ id, requestBody, }: {
|
|
4549
|
+
/**
|
|
4550
|
+
* The webhook identifier.
|
|
4551
|
+
*/
|
|
4552
|
+
id: string;
|
|
4553
|
+
requestBody: UpdateWebhookRequest;
|
|
4554
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4555
|
+
/**
|
|
4556
|
+
* Generate a shared secret
|
|
4557
|
+
* Generates a new shared secret.
|
|
4558
|
+
* @returns SharedSecretsResponse
|
|
4559
|
+
* @throws ApiError
|
|
4560
|
+
*/
|
|
4561
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4562
|
+
/**
|
|
4563
|
+
* Get a shared secret
|
|
4564
|
+
* Get a previously generated shared secret.
|
|
4565
|
+
* @returns SharedSecretsResponse
|
|
4566
|
+
* @throws ApiError
|
|
4567
|
+
*/
|
|
4568
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4569
|
+
/**
|
|
4570
|
+
* Add addresses to webhook
|
|
4571
|
+
* Add addresses to webhook.
|
|
4572
|
+
* @returns WebhookResponse
|
|
4573
|
+
* @throws ApiError
|
|
4574
|
+
*/
|
|
4575
|
+
addAddressesToWebhook({ id, requestBody, }: {
|
|
4576
|
+
/**
|
|
4577
|
+
* The webhook identifier.
|
|
4578
|
+
*/
|
|
4579
|
+
id: string;
|
|
4580
|
+
requestBody: AddressesChangeRequest;
|
|
4581
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4582
|
+
/**
|
|
4583
|
+
* Remove addresses from webhook
|
|
4584
|
+
* Remove addresses from webhook.
|
|
4585
|
+
* @returns WebhookResponse
|
|
4586
|
+
* @throws ApiError
|
|
4587
|
+
*/
|
|
4588
|
+
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
4589
|
+
/**
|
|
4590
|
+
* The webhook identifier.
|
|
4591
|
+
*/
|
|
4592
|
+
id: string;
|
|
4593
|
+
requestBody: AddressesChangeRequest;
|
|
4594
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4595
|
+
/**
|
|
4596
|
+
* List adresses by webhook
|
|
4597
|
+
* List adresses by webhook.
|
|
4598
|
+
* @returns ListWebhookAddressesResponse
|
|
4599
|
+
* @throws ApiError
|
|
4600
|
+
*/
|
|
4601
|
+
getAddressesFromWebhook({ id, pageToken, pageSize, }: {
|
|
4602
|
+
/**
|
|
4603
|
+
* The webhook identifier.
|
|
4604
|
+
*/
|
|
4605
|
+
id: string;
|
|
4606
|
+
/**
|
|
4607
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4608
|
+
*/
|
|
4609
|
+
pageToken?: string;
|
|
4610
|
+
/**
|
|
4611
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4612
|
+
*/
|
|
4613
|
+
pageSize?: number;
|
|
4614
|
+
}): CancelablePromise<ListWebhookAddressesResponse>;
|
|
4353
4615
|
}
|
|
4354
4616
|
|
|
4355
4617
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
@@ -4370,7 +4632,9 @@ declare class Glacier {
|
|
|
4370
4632
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
4371
4633
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
4372
4634
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4635
|
+
readonly rpc: RpcService;
|
|
4373
4636
|
readonly teleporter: TeleporterService;
|
|
4637
|
+
readonly webhooks: WebhooksService;
|
|
4374
4638
|
readonly request: BaseHttpRequest;
|
|
4375
4639
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
4376
4640
|
}
|
|
@@ -4392,4 +4656,11 @@ declare class ApiError extends Error {
|
|
|
4392
4656
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
4393
4657
|
}
|
|
4394
4658
|
|
|
4395
|
-
|
|
4659
|
+
type NextPageToken = {
|
|
4660
|
+
/**
|
|
4661
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
4662
|
+
*/
|
|
4663
|
+
nextPageToken?: string;
|
|
4664
|
+
};
|
|
4665
|
+
|
|
4666
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, BlsCredentials, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CreateWebhookRequest, CurrencyCode, DefaultService, DelegationStatusType, DelegatorsDetails, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, EVMInput, EVMOperationType, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EventType, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmContractsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, GlacierApiFeature, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListNftTokens, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTeleporterMessagesResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListWebhookAddressesResponse, ListWebhooksResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOperationType, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, SortByOption, SortOrder, StakingDistribution, Subnet, SubnetOwnershipInfo, TeleporterDestinationTransaction, TeleporterReceipt, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UpdateWebhookRequest, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, WebhooksService, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|