@avalabs/glacier-sdk 2.8.0-canary.a18b4e4.0 → 2.8.0-canary.a212479.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1566 -703
- package/dist/index.js +640 -206
- package/esm/generated/Glacier.d.ts +10 -0
- package/esm/generated/Glacier.js +39 -10
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +38 -31
- package/esm/generated/core/request.js +17 -33
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- 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 +32 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +2 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +9 -3
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +8 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +6 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +2 -3
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
- package/esm/generated/models/GlacierApiFeature.js +7 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/ListContractsResponse.d.ts +1 -1
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +3 -2
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +3 -1
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainSharedAsset.d.ts +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +13 -7
- package/esm/generated/models/PChainTransactionType.d.ts +8 -4
- package/esm/generated/models/PChainTransactionType.js +8 -4
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +27 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +8 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +8 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +8 -5
- package/esm/generated/models/RegisterWebhookRequest.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -0
- 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/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +30 -30
- package/esm/generated/models/UtxoCredential.d.ts +2 -2
- package/esm/generated/models/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/WebhookResponse.d.ts +25 -0
- package/esm/generated/models/WebhookStatus.d.ts +6 -0
- package/esm/generated/models/WebhookStatus.js +7 -0
- package/esm/generated/models/WebhookStatusType.d.ts +6 -0
- package/esm/generated/models/WebhookStatusType.js +7 -0
- package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +6 -8
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +13 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +14 -0
- package/esm/generated/services/DefaultService.js +13 -0
- package/esm/generated/services/EvmBalancesService.d.ts +25 -25
- package/esm/generated/services/EvmBalancesService.js +8 -8
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +4 -4
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +4 -2
- package/esm/generated/services/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +91 -49
- package/esm/generated/services/EvmTransactionsService.js +33 -33
- package/esm/generated/services/NfTsService.d.ts +23 -16
- package/esm/generated/services/NfTsService.js +15 -9
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +8 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +21 -8
- package/esm/generated/services/PrimaryNetworkRewardsService.js +12 -6
- package/esm/generated/services/PrimaryNetworkService.d.ts +53 -29
- package/esm/generated/services/PrimaryNetworkService.js +26 -14
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/generated/services/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +24 -0
- package/esm/generated/services/TeleporterService.d.ts +57 -0
- package/esm/generated/services/TeleporterService.js +39 -0
- package/esm/generated/services/WebhooksService.d.ts +122 -0
- package/esm/generated/services/WebhooksService.js +108 -0
- package/esm/index.d.ts +46 -3
- package/esm/index.js +29 -2
- 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/PChainAsset.d.ts +0 -6
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,6 +54,19 @@ declare abstract class BaseHttpRequest {
|
|
|
60
54
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
55
|
}
|
|
62
56
|
|
|
57
|
+
declare class DefaultService {
|
|
58
|
+
readonly httpRequest: BaseHttpRequest;
|
|
59
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
60
|
+
/**
|
|
61
|
+
* @returns any
|
|
62
|
+
* @throws ApiError
|
|
63
|
+
*/
|
|
64
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* ISO 4217 currency code.
|
|
69
|
+
*/
|
|
63
70
|
declare enum CurrencyCode {
|
|
64
71
|
USD = "usd",
|
|
65
72
|
EUR = "eur",
|
|
@@ -78,9 +85,6 @@ declare enum CurrencyCode {
|
|
|
78
85
|
}
|
|
79
86
|
|
|
80
87
|
type Money = {
|
|
81
|
-
/**
|
|
82
|
-
* ISO 4217 currency code.
|
|
83
|
-
*/
|
|
84
88
|
currencyCode: CurrencyCode;
|
|
85
89
|
/**
|
|
86
90
|
* Monetary value in base 10 decimals.
|
|
@@ -130,6 +134,9 @@ type GetNativeBalanceResponse = {
|
|
|
130
134
|
nativeTokenBalance: NativeTokenBalance;
|
|
131
135
|
};
|
|
132
136
|
|
|
137
|
+
/**
|
|
138
|
+
* The metadata indexing status of the nft.
|
|
139
|
+
*/
|
|
133
140
|
declare enum NftTokenMetadataStatus {
|
|
134
141
|
UNKNOWN = "UNKNOWN",
|
|
135
142
|
MISSING_TOKEN = "MISSING_TOKEN",
|
|
@@ -145,9 +152,6 @@ declare enum NftTokenMetadataStatus {
|
|
|
145
152
|
}
|
|
146
153
|
|
|
147
154
|
type Erc1155TokenMetadata = {
|
|
148
|
-
/**
|
|
149
|
-
* The metadata indexing status of the nft.
|
|
150
|
-
*/
|
|
151
155
|
indexStatus: NftTokenMetadataStatus;
|
|
152
156
|
metadataLastUpdatedTimestamp?: number;
|
|
153
157
|
name?: string;
|
|
@@ -186,9 +190,6 @@ declare namespace Erc1155TokenBalance {
|
|
|
186
190
|
}
|
|
187
191
|
|
|
188
192
|
type Erc721TokenMetadata = {
|
|
189
|
-
/**
|
|
190
|
-
* The metadata indexing status of the nft.
|
|
191
|
-
*/
|
|
192
193
|
indexStatus: NftTokenMetadataStatus;
|
|
193
194
|
metadataLastUpdatedTimestamp?: number;
|
|
194
195
|
name?: string;
|
|
@@ -335,7 +336,7 @@ declare class EvmBalancesService {
|
|
|
335
336
|
*/
|
|
336
337
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
337
338
|
/**
|
|
338
|
-
* 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.
|
|
339
340
|
*/
|
|
340
341
|
chainId: string;
|
|
341
342
|
/**
|
|
@@ -361,9 +362,9 @@ declare class EvmBalancesService {
|
|
|
361
362
|
* @returns ListErc20BalancesResponse
|
|
362
363
|
* @throws ApiError
|
|
363
364
|
*/
|
|
364
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
365
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
365
366
|
/**
|
|
366
|
-
* 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.
|
|
367
368
|
*/
|
|
368
369
|
chainId: string;
|
|
369
370
|
/**
|
|
@@ -374,14 +375,14 @@ declare class EvmBalancesService {
|
|
|
374
375
|
* The block number, if not defined the block number will be the latest block.
|
|
375
376
|
*/
|
|
376
377
|
blockNumber?: string;
|
|
377
|
-
/**
|
|
378
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
379
|
-
*/
|
|
380
|
-
pageSize?: number;
|
|
381
378
|
/**
|
|
382
379
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
383
380
|
*/
|
|
384
381
|
pageToken?: string;
|
|
382
|
+
/**
|
|
383
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
384
|
+
*/
|
|
385
|
+
pageSize?: number;
|
|
385
386
|
/**
|
|
386
387
|
* A comma separated list of contract addresses to filter by.
|
|
387
388
|
*/
|
|
@@ -399,23 +400,23 @@ declare class EvmBalancesService {
|
|
|
399
400
|
* @returns ListErc721BalancesResponse
|
|
400
401
|
* @throws ApiError
|
|
401
402
|
*/
|
|
402
|
-
listErc721Balances({ chainId, address,
|
|
403
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
403
404
|
/**
|
|
404
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
405
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
405
406
|
*/
|
|
406
407
|
chainId: string;
|
|
407
408
|
/**
|
|
408
409
|
* A wallet address.
|
|
409
410
|
*/
|
|
410
411
|
address: string;
|
|
411
|
-
/**
|
|
412
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
413
|
-
*/
|
|
414
|
-
pageSize?: number;
|
|
415
412
|
/**
|
|
416
413
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
417
414
|
*/
|
|
418
415
|
pageToken?: string;
|
|
416
|
+
/**
|
|
417
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
418
|
+
*/
|
|
419
|
+
pageSize?: number;
|
|
419
420
|
/**
|
|
420
421
|
* A contract addresses to filter by.
|
|
421
422
|
*/
|
|
@@ -431,9 +432,9 @@ declare class EvmBalancesService {
|
|
|
431
432
|
* @returns ListErc1155BalancesResponse
|
|
432
433
|
* @throws ApiError
|
|
433
434
|
*/
|
|
434
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
435
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
435
436
|
/**
|
|
436
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
438
|
*/
|
|
438
439
|
chainId: string;
|
|
439
440
|
/**
|
|
@@ -444,14 +445,14 @@ declare class EvmBalancesService {
|
|
|
444
445
|
* The block number, if not defined the block number will be the latest block.
|
|
445
446
|
*/
|
|
446
447
|
blockNumber?: string;
|
|
447
|
-
/**
|
|
448
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
449
|
-
*/
|
|
450
|
-
pageSize?: number;
|
|
451
448
|
/**
|
|
452
449
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
453
450
|
*/
|
|
454
451
|
pageToken?: string;
|
|
452
|
+
/**
|
|
453
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
454
|
+
*/
|
|
455
|
+
pageSize?: number;
|
|
455
456
|
/**
|
|
456
457
|
* A contract addresses to filter by.
|
|
457
458
|
*/
|
|
@@ -465,23 +466,23 @@ declare class EvmBalancesService {
|
|
|
465
466
|
* @returns ListCollectibleBalancesResponse
|
|
466
467
|
* @throws ApiError
|
|
467
468
|
*/
|
|
468
|
-
listCollectibleBalances({ chainId, address,
|
|
469
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
469
470
|
/**
|
|
470
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
472
|
*/
|
|
472
473
|
chainId: string;
|
|
473
474
|
/**
|
|
474
475
|
* A wallet address.
|
|
475
476
|
*/
|
|
476
477
|
address: string;
|
|
477
|
-
/**
|
|
478
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
479
|
-
*/
|
|
480
|
-
pageSize?: number;
|
|
481
478
|
/**
|
|
482
479
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
483
480
|
*/
|
|
484
481
|
pageToken?: string;
|
|
482
|
+
/**
|
|
483
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
484
|
+
*/
|
|
485
|
+
pageSize?: number;
|
|
485
486
|
/**
|
|
486
487
|
* A contract addresses to filter by.
|
|
487
488
|
*/
|
|
@@ -594,19 +595,19 @@ declare class EvmBlocksService {
|
|
|
594
595
|
* @returns ListEvmBlocksResponse
|
|
595
596
|
* @throws ApiError
|
|
596
597
|
*/
|
|
597
|
-
getLatestBlocks({ chainId,
|
|
598
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
598
599
|
/**
|
|
599
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
601
|
*/
|
|
601
602
|
chainId: string;
|
|
602
|
-
/**
|
|
603
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
604
|
-
*/
|
|
605
|
-
pageSize?: number;
|
|
606
603
|
/**
|
|
607
604
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
608
605
|
*/
|
|
609
606
|
pageToken?: string;
|
|
607
|
+
/**
|
|
608
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
609
|
+
*/
|
|
610
|
+
pageSize?: number;
|
|
610
611
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
611
612
|
/**
|
|
612
613
|
* Get block
|
|
@@ -616,7 +617,7 @@ declare class EvmBlocksService {
|
|
|
616
617
|
*/
|
|
617
618
|
getBlock({ chainId, blockId, }: {
|
|
618
619
|
/**
|
|
619
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
621
|
*/
|
|
621
622
|
chainId: string;
|
|
622
623
|
/**
|
|
@@ -626,6 +627,9 @@ declare class EvmBlocksService {
|
|
|
626
627
|
}): CancelablePromise<GetEvmBlockResponse>;
|
|
627
628
|
}
|
|
628
629
|
|
|
630
|
+
/**
|
|
631
|
+
* 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.
|
|
632
|
+
*/
|
|
629
633
|
declare enum ChainStatus {
|
|
630
634
|
OK = "OK",
|
|
631
635
|
UNAVAILABLE = "UNAVAILABLE"
|
|
@@ -663,9 +667,6 @@ declare enum VmName {
|
|
|
663
667
|
|
|
664
668
|
type GetChainResponse = {
|
|
665
669
|
chainId: string;
|
|
666
|
-
/**
|
|
667
|
-
* 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.
|
|
668
|
-
*/
|
|
669
670
|
status: ChainStatus;
|
|
670
671
|
chainName: string;
|
|
671
672
|
description: string;
|
|
@@ -680,13 +681,17 @@ type GetChainResponse = {
|
|
|
680
681
|
utilityAddresses?: UtilityAddresses;
|
|
681
682
|
networkToken: NetworkToken;
|
|
682
683
|
chainLogoUri?: string;
|
|
684
|
+
private?: boolean;
|
|
685
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
683
686
|
};
|
|
684
687
|
|
|
688
|
+
declare enum GlacierApiFeature {
|
|
689
|
+
NFT_INDEXING = "nftIndexing",
|
|
690
|
+
WEBHOOKS = "webhooks"
|
|
691
|
+
}
|
|
692
|
+
|
|
685
693
|
type ChainInfo = {
|
|
686
694
|
chainId: string;
|
|
687
|
-
/**
|
|
688
|
-
* 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.
|
|
689
|
-
*/
|
|
690
695
|
status: ChainStatus;
|
|
691
696
|
chainName: string;
|
|
692
697
|
description: string;
|
|
@@ -701,6 +706,8 @@ type ChainInfo = {
|
|
|
701
706
|
utilityAddresses?: UtilityAddresses;
|
|
702
707
|
networkToken: NetworkToken;
|
|
703
708
|
chainLogoUri?: string;
|
|
709
|
+
private?: boolean;
|
|
710
|
+
enabledFeatures?: Array<'nftIndexing' | 'webhooks'>;
|
|
704
711
|
};
|
|
705
712
|
|
|
706
713
|
type ListChainsResponse = {
|
|
@@ -721,11 +728,15 @@ declare class EvmChainsService {
|
|
|
721
728
|
* @returns ListChainsResponse
|
|
722
729
|
* @throws ApiError
|
|
723
730
|
*/
|
|
724
|
-
supportedChains({ network, }: {
|
|
731
|
+
supportedChains({ network, feature, }: {
|
|
725
732
|
/**
|
|
726
733
|
* mainnet or testnet.
|
|
727
734
|
*/
|
|
728
735
|
network?: NetworkType;
|
|
736
|
+
/**
|
|
737
|
+
* Filter by feature.
|
|
738
|
+
*/
|
|
739
|
+
feature?: GlacierApiFeature;
|
|
729
740
|
}): CancelablePromise<ListChainsResponse>;
|
|
730
741
|
/**
|
|
731
742
|
* Get chain information
|
|
@@ -735,169 +746,485 @@ declare class EvmChainsService {
|
|
|
735
746
|
*/
|
|
736
747
|
getChainInfo({ chainId, }: {
|
|
737
748
|
/**
|
|
738
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
749
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
739
750
|
*/
|
|
740
751
|
chainId: string;
|
|
741
752
|
}): CancelablePromise<GetChainResponse>;
|
|
742
753
|
}
|
|
743
754
|
|
|
744
|
-
type
|
|
755
|
+
type ImageAsset = {
|
|
756
|
+
assetId?: string;
|
|
745
757
|
/**
|
|
746
|
-
*
|
|
758
|
+
* OUTPUT ONLY
|
|
747
759
|
*/
|
|
748
|
-
|
|
749
|
-
ercType: Erc1155Token.ercType;
|
|
750
|
-
tokenId: string;
|
|
751
|
-
tokenUri: string;
|
|
752
|
-
metadata: Erc1155TokenMetadata;
|
|
760
|
+
imageUri?: string;
|
|
753
761
|
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
762
|
+
|
|
763
|
+
type PricingProviders = {
|
|
764
|
+
coingeckoCoinId?: string;
|
|
765
|
+
};
|
|
766
|
+
|
|
767
|
+
declare enum ResourceLinkType {
|
|
768
|
+
BLOG = "Blog",
|
|
769
|
+
COIN_GECKO = "CoinGecko",
|
|
770
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
771
|
+
DISCORD = "Discord",
|
|
772
|
+
DOCUMENTATION = "Documentation",
|
|
773
|
+
FACEBOOK = "Facebook",
|
|
774
|
+
GITHUB = "Github",
|
|
775
|
+
INSTAGRAM = "Instagram",
|
|
776
|
+
LINKED_IN = "LinkedIn",
|
|
777
|
+
MEDIUM = "Medium",
|
|
778
|
+
REDDIT = "Reddit",
|
|
779
|
+
SUPPORT = "Support",
|
|
780
|
+
TELEGRAM = "Telegram",
|
|
781
|
+
TIK_TOK = "TikTok",
|
|
782
|
+
TWITTER = "Twitter",
|
|
783
|
+
WEBSITE = "Website",
|
|
784
|
+
WHITEPAPER = "Whitepaper",
|
|
785
|
+
YOUTUBE = "Youtube"
|
|
758
786
|
}
|
|
759
787
|
|
|
760
|
-
type
|
|
788
|
+
type ResourceLink = {
|
|
789
|
+
type: ResourceLinkType;
|
|
790
|
+
url: string;
|
|
791
|
+
};
|
|
792
|
+
|
|
793
|
+
type ContractSubmissionErc1155 = {
|
|
794
|
+
description?: string;
|
|
795
|
+
officialSite?: string;
|
|
796
|
+
email?: string;
|
|
797
|
+
logoAsset?: ImageAsset;
|
|
798
|
+
bannerAsset?: ImageAsset;
|
|
799
|
+
color?: string;
|
|
800
|
+
resourceLinks?: Array<ResourceLink>;
|
|
801
|
+
tags?: Array<string>;
|
|
761
802
|
/**
|
|
762
803
|
* The contract name.
|
|
763
804
|
*/
|
|
764
|
-
name
|
|
805
|
+
name: string;
|
|
806
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
765
807
|
/**
|
|
766
808
|
* The contract symbol.
|
|
767
809
|
*/
|
|
768
|
-
symbol
|
|
769
|
-
|
|
770
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
771
|
-
*/
|
|
772
|
-
decimals?: number;
|
|
773
|
-
/**
|
|
774
|
-
* The logo uri for the address.
|
|
775
|
-
*/
|
|
776
|
-
logoUri?: string;
|
|
777
|
-
/**
|
|
778
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
779
|
-
*/
|
|
780
|
-
address: string;
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
type Erc1155TransferDetails = {
|
|
784
|
-
from: RichAddress;
|
|
785
|
-
to: RichAddress;
|
|
786
|
-
logIndex: number;
|
|
787
|
-
value: string;
|
|
788
|
-
erc1155Token: Erc1155Token;
|
|
810
|
+
symbol: string;
|
|
811
|
+
pricingProviders?: PricingProviders;
|
|
789
812
|
};
|
|
813
|
+
declare namespace ContractSubmissionErc1155 {
|
|
814
|
+
enum ercType {
|
|
815
|
+
ERC_1155 = "ERC-1155"
|
|
816
|
+
}
|
|
817
|
+
}
|
|
790
818
|
|
|
791
|
-
type
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
819
|
+
type ContractSubmissionErc20 = {
|
|
820
|
+
description?: string;
|
|
821
|
+
officialSite?: string;
|
|
822
|
+
email?: string;
|
|
823
|
+
logoAsset?: ImageAsset;
|
|
824
|
+
bannerAsset?: ImageAsset;
|
|
825
|
+
color?: string;
|
|
826
|
+
resourceLinks?: Array<ResourceLink>;
|
|
827
|
+
tags?: Array<string>;
|
|
796
828
|
/**
|
|
797
829
|
* The contract name.
|
|
798
830
|
*/
|
|
799
831
|
name: string;
|
|
832
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
800
833
|
/**
|
|
801
834
|
* The contract symbol.
|
|
802
835
|
*/
|
|
803
836
|
symbol: string;
|
|
804
|
-
|
|
805
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
806
|
-
*/
|
|
807
|
-
decimals: number;
|
|
808
|
-
/**
|
|
809
|
-
* The logo uri for the address.
|
|
810
|
-
*/
|
|
811
|
-
logoUri?: string;
|
|
812
|
-
ercType: Erc20Token.ercType;
|
|
813
|
-
/**
|
|
814
|
-
* The token price, if available.
|
|
815
|
-
*/
|
|
816
|
-
price?: Money;
|
|
837
|
+
pricingProviders?: PricingProviders;
|
|
817
838
|
};
|
|
818
|
-
declare namespace
|
|
839
|
+
declare namespace ContractSubmissionErc20 {
|
|
819
840
|
enum ercType {
|
|
820
841
|
ERC_20 = "ERC-20"
|
|
821
842
|
}
|
|
822
843
|
}
|
|
823
844
|
|
|
824
|
-
type
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
835
|
-
*/
|
|
836
|
-
address: string;
|
|
845
|
+
type ContractSubmissionErc721 = {
|
|
846
|
+
description?: string;
|
|
847
|
+
officialSite?: string;
|
|
848
|
+
email?: string;
|
|
849
|
+
logoAsset?: ImageAsset;
|
|
850
|
+
bannerAsset?: ImageAsset;
|
|
851
|
+
color?: string;
|
|
852
|
+
resourceLinks?: Array<ResourceLink>;
|
|
853
|
+
tags?: Array<string>;
|
|
837
854
|
/**
|
|
838
855
|
* The contract name.
|
|
839
856
|
*/
|
|
840
857
|
name: string;
|
|
858
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
841
859
|
/**
|
|
842
860
|
* The contract symbol.
|
|
843
861
|
*/
|
|
844
862
|
symbol: string;
|
|
845
|
-
ercType: Erc721Token.ercType;
|
|
846
|
-
tokenId: string;
|
|
847
|
-
tokenUri: string;
|
|
848
|
-
metadata: Erc721TokenMetadata;
|
|
849
|
-
/**
|
|
850
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
851
|
-
*/
|
|
852
|
-
ownerAddress?: string;
|
|
853
863
|
};
|
|
854
|
-
declare namespace
|
|
864
|
+
declare namespace ContractSubmissionErc721 {
|
|
855
865
|
enum ercType {
|
|
856
866
|
ERC_721 = "ERC-721"
|
|
857
867
|
}
|
|
858
868
|
}
|
|
859
869
|
|
|
860
|
-
type
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
870
|
+
type ContractSubmissionUnknown = {
|
|
871
|
+
description?: string;
|
|
872
|
+
officialSite?: string;
|
|
873
|
+
email?: string;
|
|
874
|
+
logoAsset?: ImageAsset;
|
|
875
|
+
bannerAsset?: ImageAsset;
|
|
876
|
+
color?: string;
|
|
877
|
+
resourceLinks?: Array<ResourceLink>;
|
|
878
|
+
tags?: Array<string>;
|
|
879
|
+
/**
|
|
880
|
+
* The contract name.
|
|
881
|
+
*/
|
|
882
|
+
name: string;
|
|
883
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
865
884
|
};
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
885
|
+
declare namespace ContractSubmissionUnknown {
|
|
886
|
+
enum ercType {
|
|
887
|
+
UNKNOWN = "UNKNOWN"
|
|
888
|
+
}
|
|
871
889
|
}
|
|
872
890
|
|
|
873
|
-
type
|
|
874
|
-
|
|
875
|
-
* 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.
|
|
876
|
-
*/
|
|
877
|
-
callType: TransactionMethodType;
|
|
878
|
-
/**
|
|
879
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
880
|
-
*/
|
|
881
|
-
methodHash: string;
|
|
882
|
-
/**
|
|
883
|
-
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
884
|
-
*/
|
|
885
|
-
methodName?: string;
|
|
891
|
+
type ContractSubmissionBody = {
|
|
892
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
886
893
|
};
|
|
887
894
|
|
|
888
|
-
type
|
|
895
|
+
type ContractDeploymentDetails = {
|
|
896
|
+
txHash: string;
|
|
889
897
|
/**
|
|
890
|
-
* The
|
|
898
|
+
* The address that initiated the transaction which deployed this contract.
|
|
891
899
|
*/
|
|
892
|
-
|
|
900
|
+
deployerAddress: string;
|
|
893
901
|
/**
|
|
894
|
-
* The
|
|
902
|
+
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
895
903
|
*/
|
|
896
|
-
|
|
904
|
+
deployerContractAddress?: string;
|
|
905
|
+
};
|
|
906
|
+
|
|
907
|
+
type Erc1155Contract = {
|
|
897
908
|
/**
|
|
898
|
-
* The
|
|
909
|
+
* The contract name.
|
|
899
910
|
*/
|
|
900
|
-
|
|
911
|
+
name?: string;
|
|
912
|
+
description?: string;
|
|
913
|
+
officialSite?: string;
|
|
914
|
+
email?: string;
|
|
915
|
+
logoAsset?: ImageAsset;
|
|
916
|
+
bannerAsset?: ImageAsset;
|
|
917
|
+
color?: string;
|
|
918
|
+
resourceLinks?: Array<ResourceLink>;
|
|
919
|
+
tags?: Array<string>;
|
|
920
|
+
/**
|
|
921
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
922
|
+
*/
|
|
923
|
+
address: string;
|
|
924
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
925
|
+
ercType: Erc1155Contract.ercType;
|
|
926
|
+
/**
|
|
927
|
+
* The contract symbol.
|
|
928
|
+
*/
|
|
929
|
+
symbol?: string;
|
|
930
|
+
pricingProviders?: PricingProviders;
|
|
931
|
+
};
|
|
932
|
+
declare namespace Erc1155Contract {
|
|
933
|
+
enum ercType {
|
|
934
|
+
ERC_1155 = "ERC-1155"
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
type Erc20Contract = {
|
|
939
|
+
/**
|
|
940
|
+
* The contract name.
|
|
941
|
+
*/
|
|
942
|
+
name?: string;
|
|
943
|
+
description?: string;
|
|
944
|
+
officialSite?: string;
|
|
945
|
+
email?: string;
|
|
946
|
+
logoAsset?: ImageAsset;
|
|
947
|
+
bannerAsset?: ImageAsset;
|
|
948
|
+
color?: string;
|
|
949
|
+
resourceLinks?: Array<ResourceLink>;
|
|
950
|
+
tags?: Array<string>;
|
|
951
|
+
/**
|
|
952
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
953
|
+
*/
|
|
954
|
+
address: string;
|
|
955
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
956
|
+
ercType: Erc20Contract.ercType;
|
|
957
|
+
/**
|
|
958
|
+
* The contract symbol.
|
|
959
|
+
*/
|
|
960
|
+
symbol?: string;
|
|
961
|
+
/**
|
|
962
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
963
|
+
*/
|
|
964
|
+
decimals: number;
|
|
965
|
+
pricingProviders?: PricingProviders;
|
|
966
|
+
};
|
|
967
|
+
declare namespace Erc20Contract {
|
|
968
|
+
enum ercType {
|
|
969
|
+
ERC_20 = "ERC-20"
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
type Erc721Contract = {
|
|
974
|
+
/**
|
|
975
|
+
* The contract name.
|
|
976
|
+
*/
|
|
977
|
+
name?: string;
|
|
978
|
+
description?: string;
|
|
979
|
+
officialSite?: string;
|
|
980
|
+
email?: string;
|
|
981
|
+
logoAsset?: ImageAsset;
|
|
982
|
+
bannerAsset?: ImageAsset;
|
|
983
|
+
color?: string;
|
|
984
|
+
resourceLinks?: Array<ResourceLink>;
|
|
985
|
+
tags?: Array<string>;
|
|
986
|
+
/**
|
|
987
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
988
|
+
*/
|
|
989
|
+
address: string;
|
|
990
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
991
|
+
ercType: Erc721Contract.ercType;
|
|
992
|
+
/**
|
|
993
|
+
* The contract symbol.
|
|
994
|
+
*/
|
|
995
|
+
symbol?: string;
|
|
996
|
+
};
|
|
997
|
+
declare namespace Erc721Contract {
|
|
998
|
+
enum ercType {
|
|
999
|
+
ERC_721 = "ERC-721"
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
type UnknownContract = {
|
|
1004
|
+
/**
|
|
1005
|
+
* The contract name.
|
|
1006
|
+
*/
|
|
1007
|
+
name?: string;
|
|
1008
|
+
description?: string;
|
|
1009
|
+
officialSite?: string;
|
|
1010
|
+
email?: string;
|
|
1011
|
+
logoAsset?: ImageAsset;
|
|
1012
|
+
bannerAsset?: ImageAsset;
|
|
1013
|
+
color?: string;
|
|
1014
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1015
|
+
tags?: Array<string>;
|
|
1016
|
+
/**
|
|
1017
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1018
|
+
*/
|
|
1019
|
+
address: string;
|
|
1020
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1021
|
+
ercType: UnknownContract.ercType;
|
|
1022
|
+
};
|
|
1023
|
+
declare namespace UnknownContract {
|
|
1024
|
+
enum ercType {
|
|
1025
|
+
UNKNOWN = "UNKNOWN"
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
type UpdateContractResponse = {
|
|
1030
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
declare class EvmContractsService {
|
|
1034
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1035
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1036
|
+
/**
|
|
1037
|
+
* Get contract metadata
|
|
1038
|
+
* Gets metadata about the contract at the given address.
|
|
1039
|
+
* @returns any
|
|
1040
|
+
* @throws ApiError
|
|
1041
|
+
*/
|
|
1042
|
+
getContractMetadata({ chainId, address, }: {
|
|
1043
|
+
/**
|
|
1044
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1045
|
+
*/
|
|
1046
|
+
chainId: string;
|
|
1047
|
+
/**
|
|
1048
|
+
* Contract address on the relevant chain.
|
|
1049
|
+
*/
|
|
1050
|
+
address: string;
|
|
1051
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1052
|
+
/**
|
|
1053
|
+
* Update contract information
|
|
1054
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1055
|
+
* @returns UpdateContractResponse
|
|
1056
|
+
* @throws ApiError
|
|
1057
|
+
*/
|
|
1058
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1059
|
+
/**
|
|
1060
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1061
|
+
*/
|
|
1062
|
+
chainId: string;
|
|
1063
|
+
/**
|
|
1064
|
+
* Contract address on the relevant chain.
|
|
1065
|
+
*/
|
|
1066
|
+
address: string;
|
|
1067
|
+
requestBody: ContractSubmissionBody;
|
|
1068
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
type Erc1155Token = {
|
|
1072
|
+
/**
|
|
1073
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1074
|
+
*/
|
|
1075
|
+
address: string;
|
|
1076
|
+
ercType: Erc1155Token.ercType;
|
|
1077
|
+
tokenId: string;
|
|
1078
|
+
tokenUri: string;
|
|
1079
|
+
metadata: Erc1155TokenMetadata;
|
|
1080
|
+
};
|
|
1081
|
+
declare namespace Erc1155Token {
|
|
1082
|
+
enum ercType {
|
|
1083
|
+
ERC_1155 = "ERC-1155"
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
type RichAddress = {
|
|
1088
|
+
/**
|
|
1089
|
+
* The contract name.
|
|
1090
|
+
*/
|
|
1091
|
+
name?: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* The contract symbol.
|
|
1094
|
+
*/
|
|
1095
|
+
symbol?: string;
|
|
1096
|
+
/**
|
|
1097
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1098
|
+
*/
|
|
1099
|
+
decimals?: number;
|
|
1100
|
+
/**
|
|
1101
|
+
* The logo uri for the address.
|
|
1102
|
+
*/
|
|
1103
|
+
logoUri?: string;
|
|
1104
|
+
/**
|
|
1105
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1106
|
+
*/
|
|
1107
|
+
address: string;
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
type Erc1155TransferDetails = {
|
|
1111
|
+
from: RichAddress;
|
|
1112
|
+
to: RichAddress;
|
|
1113
|
+
logIndex: number;
|
|
1114
|
+
value: string;
|
|
1115
|
+
erc1155Token: Erc1155Token;
|
|
1116
|
+
};
|
|
1117
|
+
|
|
1118
|
+
type Erc20Token = {
|
|
1119
|
+
/**
|
|
1120
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1121
|
+
*/
|
|
1122
|
+
address: string;
|
|
1123
|
+
/**
|
|
1124
|
+
* The contract name.
|
|
1125
|
+
*/
|
|
1126
|
+
name: string;
|
|
1127
|
+
/**
|
|
1128
|
+
* The contract symbol.
|
|
1129
|
+
*/
|
|
1130
|
+
symbol: string;
|
|
1131
|
+
/**
|
|
1132
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1133
|
+
*/
|
|
1134
|
+
decimals: number;
|
|
1135
|
+
/**
|
|
1136
|
+
* The logo uri for the address.
|
|
1137
|
+
*/
|
|
1138
|
+
logoUri?: string;
|
|
1139
|
+
ercType: Erc20Token.ercType;
|
|
1140
|
+
/**
|
|
1141
|
+
* The token price, if available.
|
|
1142
|
+
*/
|
|
1143
|
+
price?: Money;
|
|
1144
|
+
};
|
|
1145
|
+
declare namespace Erc20Token {
|
|
1146
|
+
enum ercType {
|
|
1147
|
+
ERC_20 = "ERC-20"
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
type Erc20TransferDetails = {
|
|
1152
|
+
from: RichAddress;
|
|
1153
|
+
to: RichAddress;
|
|
1154
|
+
logIndex: number;
|
|
1155
|
+
value: string;
|
|
1156
|
+
erc20Token: Erc20Token;
|
|
1157
|
+
};
|
|
1158
|
+
|
|
1159
|
+
type Erc721Token = {
|
|
1160
|
+
/**
|
|
1161
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1162
|
+
*/
|
|
1163
|
+
address: string;
|
|
1164
|
+
/**
|
|
1165
|
+
* The contract name.
|
|
1166
|
+
*/
|
|
1167
|
+
name: string;
|
|
1168
|
+
/**
|
|
1169
|
+
* The contract symbol.
|
|
1170
|
+
*/
|
|
1171
|
+
symbol: string;
|
|
1172
|
+
ercType: Erc721Token.ercType;
|
|
1173
|
+
tokenId: string;
|
|
1174
|
+
tokenUri: string;
|
|
1175
|
+
metadata: Erc721TokenMetadata;
|
|
1176
|
+
/**
|
|
1177
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1178
|
+
*/
|
|
1179
|
+
ownerAddress?: string;
|
|
1180
|
+
};
|
|
1181
|
+
declare namespace Erc721Token {
|
|
1182
|
+
enum ercType {
|
|
1183
|
+
ERC_721 = "ERC-721"
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
type Erc721TransferDetails = {
|
|
1188
|
+
from: RichAddress;
|
|
1189
|
+
to: RichAddress;
|
|
1190
|
+
logIndex: number;
|
|
1191
|
+
erc721Token: Erc721Token;
|
|
1192
|
+
};
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* 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.
|
|
1196
|
+
*/
|
|
1197
|
+
declare enum TransactionMethodType {
|
|
1198
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1199
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1200
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
type Method = {
|
|
1204
|
+
callType: TransactionMethodType;
|
|
1205
|
+
/**
|
|
1206
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1207
|
+
*/
|
|
1208
|
+
methodHash: string;
|
|
1209
|
+
/**
|
|
1210
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1211
|
+
*/
|
|
1212
|
+
methodName?: string;
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
type FullNativeTransactionDetails = {
|
|
1216
|
+
/**
|
|
1217
|
+
* The block number on the chain.
|
|
1218
|
+
*/
|
|
1219
|
+
blockNumber: string;
|
|
1220
|
+
/**
|
|
1221
|
+
* The block finality timestamp.
|
|
1222
|
+
*/
|
|
1223
|
+
blockTimestamp: number;
|
|
1224
|
+
/**
|
|
1225
|
+
* The block hash identifier.
|
|
1226
|
+
*/
|
|
1227
|
+
blockHash: string;
|
|
901
1228
|
/**
|
|
902
1229
|
* The index at which the transaction occured in the block (0-indexed).
|
|
903
1230
|
*/
|
|
@@ -999,184 +1326,12 @@ type GetTransactionResponse = {
|
|
|
999
1326
|
nativeTransaction: FullNativeTransactionDetails;
|
|
1000
1327
|
};
|
|
1001
1328
|
|
|
1002
|
-
type ContractDeploymentDetails = {
|
|
1003
|
-
txHash: string;
|
|
1004
|
-
/**
|
|
1005
|
-
* The address that initiated the transaction which deployed this contract.
|
|
1006
|
-
*/
|
|
1007
|
-
deployerAddress: string;
|
|
1008
|
-
/**
|
|
1009
|
-
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
1010
|
-
*/
|
|
1011
|
-
deployerContractAddress?: string;
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
|
-
type ImageAsset = {
|
|
1015
|
-
assetId?: string;
|
|
1016
|
-
/**
|
|
1017
|
-
* OUTPUT ONLY
|
|
1018
|
-
*/
|
|
1019
|
-
imageUri?: string;
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
type PricingProviders = {
|
|
1023
|
-
coingeckoCoinId?: string;
|
|
1024
|
-
};
|
|
1025
|
-
|
|
1026
|
-
declare enum ResourceLinkType {
|
|
1027
|
-
BLOG = "Blog",
|
|
1028
|
-
COIN_GECKO = "CoinGecko",
|
|
1029
|
-
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1030
|
-
DISCORD = "Discord",
|
|
1031
|
-
DOCUMENTATION = "Documentation",
|
|
1032
|
-
FACEBOOK = "Facebook",
|
|
1033
|
-
GITHUB = "Github",
|
|
1034
|
-
INSTAGRAM = "Instagram",
|
|
1035
|
-
LINKED_IN = "LinkedIn",
|
|
1036
|
-
MEDIUM = "Medium",
|
|
1037
|
-
REDDIT = "Reddit",
|
|
1038
|
-
SUPPORT = "Support",
|
|
1039
|
-
TELEGRAM = "Telegram",
|
|
1040
|
-
TIK_TOK = "TikTok",
|
|
1041
|
-
TWITTER = "Twitter",
|
|
1042
|
-
WEBSITE = "Website",
|
|
1043
|
-
WHITEPAPER = "Whitepaper",
|
|
1044
|
-
YOUTUBE = "Youtube"
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
type ResourceLink = {
|
|
1048
|
-
type: ResourceLinkType;
|
|
1049
|
-
url: string;
|
|
1050
|
-
};
|
|
1051
|
-
|
|
1052
|
-
type Erc1155Contract = {
|
|
1053
|
-
/**
|
|
1054
|
-
* The contract name.
|
|
1055
|
-
*/
|
|
1056
|
-
name?: string;
|
|
1057
|
-
description?: string;
|
|
1058
|
-
officialSite?: string;
|
|
1059
|
-
email?: string;
|
|
1060
|
-
logoAsset?: ImageAsset;
|
|
1061
|
-
bannerAsset?: ImageAsset;
|
|
1062
|
-
color?: string;
|
|
1063
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1064
|
-
tags?: Array<string>;
|
|
1065
|
-
/**
|
|
1066
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1067
|
-
*/
|
|
1068
|
-
address: string;
|
|
1069
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1070
|
-
ercType: Erc1155Contract.ercType;
|
|
1071
|
-
/**
|
|
1072
|
-
* The contract symbol.
|
|
1073
|
-
*/
|
|
1074
|
-
symbol?: string;
|
|
1075
|
-
pricingProviders?: PricingProviders;
|
|
1076
|
-
};
|
|
1077
|
-
declare namespace Erc1155Contract {
|
|
1078
|
-
enum ercType {
|
|
1079
|
-
ERC_1155 = "ERC-1155"
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
type Erc20Contract = {
|
|
1084
|
-
/**
|
|
1085
|
-
* The contract name.
|
|
1086
|
-
*/
|
|
1087
|
-
name?: string;
|
|
1088
|
-
description?: string;
|
|
1089
|
-
officialSite?: string;
|
|
1090
|
-
email?: string;
|
|
1091
|
-
logoAsset?: ImageAsset;
|
|
1092
|
-
bannerAsset?: ImageAsset;
|
|
1093
|
-
color?: string;
|
|
1094
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1095
|
-
tags?: Array<string>;
|
|
1096
|
-
/**
|
|
1097
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1098
|
-
*/
|
|
1099
|
-
address: string;
|
|
1100
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1101
|
-
ercType: Erc20Contract.ercType;
|
|
1102
|
-
/**
|
|
1103
|
-
* The contract symbol.
|
|
1104
|
-
*/
|
|
1105
|
-
symbol?: string;
|
|
1106
|
-
/**
|
|
1107
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1108
|
-
*/
|
|
1109
|
-
decimals: number;
|
|
1110
|
-
pricingProviders: PricingProviders;
|
|
1111
|
-
};
|
|
1112
|
-
declare namespace Erc20Contract {
|
|
1113
|
-
enum ercType {
|
|
1114
|
-
ERC_20 = "ERC-20"
|
|
1115
|
-
}
|
|
1116
|
-
}
|
|
1117
|
-
|
|
1118
|
-
type Erc721Contract = {
|
|
1119
|
-
/**
|
|
1120
|
-
* The contract name.
|
|
1121
|
-
*/
|
|
1122
|
-
name?: string;
|
|
1123
|
-
description?: string;
|
|
1124
|
-
officialSite?: string;
|
|
1125
|
-
email?: string;
|
|
1126
|
-
logoAsset?: ImageAsset;
|
|
1127
|
-
bannerAsset?: ImageAsset;
|
|
1128
|
-
color?: string;
|
|
1129
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1130
|
-
tags?: Array<string>;
|
|
1131
|
-
/**
|
|
1132
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1133
|
-
*/
|
|
1134
|
-
address: string;
|
|
1135
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1136
|
-
ercType: Erc721Contract.ercType;
|
|
1137
|
-
/**
|
|
1138
|
-
* The contract symbol.
|
|
1139
|
-
*/
|
|
1140
|
-
symbol?: string;
|
|
1141
|
-
};
|
|
1142
|
-
declare namespace Erc721Contract {
|
|
1143
|
-
enum ercType {
|
|
1144
|
-
ERC_721 = "ERC-721"
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
type UnknownContract = {
|
|
1149
|
-
/**
|
|
1150
|
-
* The contract name.
|
|
1151
|
-
*/
|
|
1152
|
-
name?: string;
|
|
1153
|
-
description?: string;
|
|
1154
|
-
officialSite?: string;
|
|
1155
|
-
email?: string;
|
|
1156
|
-
logoAsset?: ImageAsset;
|
|
1157
|
-
bannerAsset?: ImageAsset;
|
|
1158
|
-
color?: string;
|
|
1159
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1160
|
-
tags?: Array<string>;
|
|
1161
|
-
/**
|
|
1162
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1163
|
-
*/
|
|
1164
|
-
address: string;
|
|
1165
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1166
|
-
ercType: UnknownContract.ercType;
|
|
1167
|
-
};
|
|
1168
|
-
declare namespace UnknownContract {
|
|
1169
|
-
enum ercType {
|
|
1170
|
-
UNKNOWN = "UNKNOWN"
|
|
1171
|
-
}
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
1329
|
type ListContractsResponse = {
|
|
1175
1330
|
/**
|
|
1176
1331
|
* 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.
|
|
1177
1332
|
*/
|
|
1178
1333
|
nextPageToken?: string;
|
|
1179
|
-
contracts: Array<(
|
|
1334
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1180
1335
|
};
|
|
1181
1336
|
|
|
1182
1337
|
type Erc1155Transfer = {
|
|
@@ -1406,7 +1561,7 @@ type ListTransfersResponse = {
|
|
|
1406
1561
|
* 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.
|
|
1407
1562
|
*/
|
|
1408
1563
|
nextPageToken?: string;
|
|
1409
|
-
transfers:
|
|
1564
|
+
transfers: Array<(Erc20Transfer | Erc721Transfer | Erc1155Transfer)>;
|
|
1410
1565
|
};
|
|
1411
1566
|
|
|
1412
1567
|
declare enum SortOrder {
|
|
@@ -1430,7 +1585,7 @@ declare class EvmTransactionsService {
|
|
|
1430
1585
|
*/
|
|
1431
1586
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1432
1587
|
/**
|
|
1433
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1588
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1434
1589
|
*/
|
|
1435
1590
|
chainId: string;
|
|
1436
1591
|
/**
|
|
@@ -1448,23 +1603,23 @@ declare class EvmTransactionsService {
|
|
|
1448
1603
|
* @returns ListContractsResponse
|
|
1449
1604
|
* @throws ApiError
|
|
1450
1605
|
*/
|
|
1451
|
-
listContractDeployments({ chainId, address,
|
|
1606
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1452
1607
|
/**
|
|
1453
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1608
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1454
1609
|
*/
|
|
1455
1610
|
chainId: string;
|
|
1456
1611
|
/**
|
|
1457
1612
|
* A wallet address.
|
|
1458
1613
|
*/
|
|
1459
1614
|
address: string;
|
|
1460
|
-
/**
|
|
1461
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1462
|
-
*/
|
|
1463
|
-
pageSize?: number;
|
|
1464
1615
|
/**
|
|
1465
1616
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1466
1617
|
*/
|
|
1467
1618
|
pageToken?: string;
|
|
1619
|
+
/**
|
|
1620
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1621
|
+
*/
|
|
1622
|
+
pageSize?: number;
|
|
1468
1623
|
}): CancelablePromise<ListContractsResponse>;
|
|
1469
1624
|
/**
|
|
1470
1625
|
* List ERC transfers
|
|
@@ -1472,25 +1627,31 @@ declare class EvmTransactionsService {
|
|
|
1472
1627
|
* @returns ListTransfersResponse
|
|
1473
1628
|
* @throws ApiError
|
|
1474
1629
|
*/
|
|
1475
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1630
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1476
1631
|
/**
|
|
1477
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1632
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1478
1633
|
*/
|
|
1479
1634
|
chainId: string;
|
|
1480
1635
|
/**
|
|
1481
1636
|
* A wallet address.
|
|
1482
1637
|
*/
|
|
1483
1638
|
address: string;
|
|
1639
|
+
/**
|
|
1640
|
+
* 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.
|
|
1641
|
+
*/
|
|
1484
1642
|
startBlock?: number;
|
|
1485
|
-
endBlock?: number;
|
|
1486
1643
|
/**
|
|
1487
|
-
* The
|
|
1644
|
+
* 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.
|
|
1488
1645
|
*/
|
|
1489
|
-
|
|
1646
|
+
endBlock?: number;
|
|
1490
1647
|
/**
|
|
1491
1648
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1492
1649
|
*/
|
|
1493
1650
|
pageToken?: string;
|
|
1651
|
+
/**
|
|
1652
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1653
|
+
*/
|
|
1654
|
+
pageSize?: number;
|
|
1494
1655
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1495
1656
|
/**
|
|
1496
1657
|
* List transactions
|
|
@@ -1500,24 +1661,30 @@ declare class EvmTransactionsService {
|
|
|
1500
1661
|
* @returns ListTransactionDetailsResponse
|
|
1501
1662
|
* @throws ApiError
|
|
1502
1663
|
*/
|
|
1503
|
-
listTransactions({ chainId, address,
|
|
1664
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1504
1665
|
/**
|
|
1505
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1666
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1506
1667
|
*/
|
|
1507
1668
|
chainId: string;
|
|
1508
1669
|
/**
|
|
1509
1670
|
* A wallet address.
|
|
1510
1671
|
*/
|
|
1511
1672
|
address: string;
|
|
1673
|
+
/**
|
|
1674
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1675
|
+
*/
|
|
1676
|
+
pageToken?: string;
|
|
1512
1677
|
/**
|
|
1513
1678
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1514
1679
|
*/
|
|
1515
1680
|
pageSize?: number;
|
|
1516
1681
|
/**
|
|
1517
|
-
*
|
|
1682
|
+
* 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.
|
|
1518
1683
|
*/
|
|
1519
|
-
pageToken?: string;
|
|
1520
1684
|
startBlock?: number;
|
|
1685
|
+
/**
|
|
1686
|
+
* 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.
|
|
1687
|
+
*/
|
|
1521
1688
|
endBlock?: number;
|
|
1522
1689
|
/**
|
|
1523
1690
|
* 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.
|
|
@@ -1530,25 +1697,31 @@ declare class EvmTransactionsService {
|
|
|
1530
1697
|
* @returns ListNativeTransactionsResponse
|
|
1531
1698
|
* @throws ApiError
|
|
1532
1699
|
*/
|
|
1533
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1700
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1534
1701
|
/**
|
|
1535
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1702
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1536
1703
|
*/
|
|
1537
1704
|
chainId: string;
|
|
1538
1705
|
/**
|
|
1539
1706
|
* A wallet address.
|
|
1540
1707
|
*/
|
|
1541
1708
|
address: string;
|
|
1709
|
+
/**
|
|
1710
|
+
* 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.
|
|
1711
|
+
*/
|
|
1542
1712
|
startBlock?: number;
|
|
1543
|
-
endBlock?: number;
|
|
1544
1713
|
/**
|
|
1545
|
-
* The
|
|
1714
|
+
* 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.
|
|
1546
1715
|
*/
|
|
1547
|
-
|
|
1716
|
+
endBlock?: number;
|
|
1548
1717
|
/**
|
|
1549
1718
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1550
1719
|
*/
|
|
1551
1720
|
pageToken?: 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;
|
|
1552
1725
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1553
1726
|
/**
|
|
1554
1727
|
* List ERC-20 transfers
|
|
@@ -1556,25 +1729,31 @@ declare class EvmTransactionsService {
|
|
|
1556
1729
|
* @returns ListErc20TransactionsResponse
|
|
1557
1730
|
* @throws ApiError
|
|
1558
1731
|
*/
|
|
1559
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1732
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1560
1733
|
/**
|
|
1561
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1734
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1562
1735
|
*/
|
|
1563
1736
|
chainId: string;
|
|
1564
1737
|
/**
|
|
1565
1738
|
* A wallet address.
|
|
1566
1739
|
*/
|
|
1567
1740
|
address: string;
|
|
1741
|
+
/**
|
|
1742
|
+
* 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.
|
|
1743
|
+
*/
|
|
1568
1744
|
startBlock?: number;
|
|
1569
|
-
endBlock?: number;
|
|
1570
1745
|
/**
|
|
1571
|
-
* The
|
|
1746
|
+
* 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.
|
|
1572
1747
|
*/
|
|
1573
|
-
|
|
1748
|
+
endBlock?: number;
|
|
1574
1749
|
/**
|
|
1575
1750
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1576
1751
|
*/
|
|
1577
1752
|
pageToken?: string;
|
|
1753
|
+
/**
|
|
1754
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1755
|
+
*/
|
|
1756
|
+
pageSize?: number;
|
|
1578
1757
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1579
1758
|
/**
|
|
1580
1759
|
* List ERC-721 transfers
|
|
@@ -1582,25 +1761,31 @@ declare class EvmTransactionsService {
|
|
|
1582
1761
|
* @returns ListErc721TransactionsResponse
|
|
1583
1762
|
* @throws ApiError
|
|
1584
1763
|
*/
|
|
1585
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1764
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1586
1765
|
/**
|
|
1587
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1766
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1588
1767
|
*/
|
|
1589
1768
|
chainId: string;
|
|
1590
1769
|
/**
|
|
1591
1770
|
* A wallet address.
|
|
1592
1771
|
*/
|
|
1593
1772
|
address: string;
|
|
1773
|
+
/**
|
|
1774
|
+
* 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.
|
|
1775
|
+
*/
|
|
1594
1776
|
startBlock?: number;
|
|
1595
|
-
endBlock?: number;
|
|
1596
1777
|
/**
|
|
1597
|
-
* The
|
|
1778
|
+
* 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.
|
|
1598
1779
|
*/
|
|
1599
|
-
|
|
1780
|
+
endBlock?: number;
|
|
1600
1781
|
/**
|
|
1601
1782
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1602
1783
|
*/
|
|
1603
1784
|
pageToken?: string;
|
|
1785
|
+
/**
|
|
1786
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1787
|
+
*/
|
|
1788
|
+
pageSize?: number;
|
|
1604
1789
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1605
1790
|
/**
|
|
1606
1791
|
* List ERC-1155 transfers
|
|
@@ -1608,25 +1793,31 @@ declare class EvmTransactionsService {
|
|
|
1608
1793
|
* @returns ListErc1155TransactionsResponse
|
|
1609
1794
|
* @throws ApiError
|
|
1610
1795
|
*/
|
|
1611
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1796
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1612
1797
|
/**
|
|
1613
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1798
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1614
1799
|
*/
|
|
1615
1800
|
chainId: string;
|
|
1616
1801
|
/**
|
|
1617
1802
|
* A wallet address.
|
|
1618
1803
|
*/
|
|
1619
1804
|
address: string;
|
|
1805
|
+
/**
|
|
1806
|
+
* 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.
|
|
1807
|
+
*/
|
|
1620
1808
|
startBlock?: number;
|
|
1621
|
-
endBlock?: number;
|
|
1622
1809
|
/**
|
|
1623
|
-
* The
|
|
1810
|
+
* 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.
|
|
1624
1811
|
*/
|
|
1625
|
-
|
|
1812
|
+
endBlock?: number;
|
|
1626
1813
|
/**
|
|
1627
1814
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1628
1815
|
*/
|
|
1629
1816
|
pageToken?: string;
|
|
1817
|
+
/**
|
|
1818
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1819
|
+
*/
|
|
1820
|
+
pageSize?: number;
|
|
1630
1821
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1631
1822
|
/**
|
|
1632
1823
|
* List internal transactions
|
|
@@ -1636,25 +1827,31 @@ declare class EvmTransactionsService {
|
|
|
1636
1827
|
* @returns ListInternalTransactionsResponse
|
|
1637
1828
|
* @throws ApiError
|
|
1638
1829
|
*/
|
|
1639
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1830
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1640
1831
|
/**
|
|
1641
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1832
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1642
1833
|
*/
|
|
1643
1834
|
chainId: string;
|
|
1644
1835
|
/**
|
|
1645
1836
|
* A wallet address.
|
|
1646
1837
|
*/
|
|
1647
1838
|
address: string;
|
|
1839
|
+
/**
|
|
1840
|
+
* 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.
|
|
1841
|
+
*/
|
|
1648
1842
|
startBlock?: number;
|
|
1649
|
-
endBlock?: number;
|
|
1650
1843
|
/**
|
|
1651
|
-
* The
|
|
1844
|
+
* 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.
|
|
1652
1845
|
*/
|
|
1653
|
-
|
|
1846
|
+
endBlock?: number;
|
|
1654
1847
|
/**
|
|
1655
1848
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1656
1849
|
*/
|
|
1657
1850
|
pageToken?: string;
|
|
1851
|
+
/**
|
|
1852
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1853
|
+
*/
|
|
1854
|
+
pageSize?: number;
|
|
1658
1855
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1659
1856
|
/**
|
|
1660
1857
|
* Get transaction
|
|
@@ -1664,7 +1861,7 @@ declare class EvmTransactionsService {
|
|
|
1664
1861
|
*/
|
|
1665
1862
|
getTransaction({ chainId, txHash, }: {
|
|
1666
1863
|
/**
|
|
1667
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1864
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1668
1865
|
*/
|
|
1669
1866
|
chainId: string;
|
|
1670
1867
|
/**
|
|
@@ -1680,7 +1877,7 @@ declare class EvmTransactionsService {
|
|
|
1680
1877
|
*/
|
|
1681
1878
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1682
1879
|
/**
|
|
1683
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1880
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1684
1881
|
*/
|
|
1685
1882
|
chainId: string;
|
|
1686
1883
|
/**
|
|
@@ -1694,19 +1891,19 @@ declare class EvmTransactionsService {
|
|
|
1694
1891
|
* @returns ListNativeTransactionsResponse
|
|
1695
1892
|
* @throws ApiError
|
|
1696
1893
|
*/
|
|
1697
|
-
listLatestTransactions({ chainId,
|
|
1894
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1698
1895
|
/**
|
|
1699
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1700
|
-
*/
|
|
1701
|
-
chainId: string;
|
|
1702
|
-
/**
|
|
1703
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1896
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1704
1897
|
*/
|
|
1705
|
-
|
|
1898
|
+
chainId: string;
|
|
1706
1899
|
/**
|
|
1707
1900
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1708
1901
|
*/
|
|
1709
1902
|
pageToken?: string;
|
|
1903
|
+
/**
|
|
1904
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1905
|
+
*/
|
|
1906
|
+
pageSize?: number;
|
|
1710
1907
|
/**
|
|
1711
1908
|
* A status filter for listed transactions.
|
|
1712
1909
|
*/
|
|
@@ -1730,6 +1927,14 @@ declare class HealthCheckService {
|
|
|
1730
1927
|
}>;
|
|
1731
1928
|
}
|
|
1732
1929
|
|
|
1930
|
+
type ListNftTokens = {
|
|
1931
|
+
/**
|
|
1932
|
+
* 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.
|
|
1933
|
+
*/
|
|
1934
|
+
nextPageToken?: string;
|
|
1935
|
+
tokens: Array<(Erc721Token | Erc1155Token)>;
|
|
1936
|
+
};
|
|
1937
|
+
|
|
1733
1938
|
declare class NfTsService {
|
|
1734
1939
|
readonly httpRequest: BaseHttpRequest;
|
|
1735
1940
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1741,7 +1946,7 @@ declare class NfTsService {
|
|
|
1741
1946
|
*/
|
|
1742
1947
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1743
1948
|
/**
|
|
1744
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1949
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1745
1950
|
*/
|
|
1746
1951
|
chainId: string;
|
|
1747
1952
|
/**
|
|
@@ -1754,14 +1959,14 @@ declare class NfTsService {
|
|
|
1754
1959
|
tokenId: string;
|
|
1755
1960
|
}): CancelablePromise<any>;
|
|
1756
1961
|
/**
|
|
1757
|
-
*
|
|
1758
|
-
*
|
|
1759
|
-
* @returns
|
|
1962
|
+
* List tokens
|
|
1963
|
+
* Lists tokens for an NFT contract.
|
|
1964
|
+
* @returns ListNftTokens
|
|
1760
1965
|
* @throws ApiError
|
|
1761
1966
|
*/
|
|
1762
|
-
|
|
1967
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
1763
1968
|
/**
|
|
1764
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1969
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1765
1970
|
*/
|
|
1766
1971
|
chainId: string;
|
|
1767
1972
|
/**
|
|
@@ -1769,26 +1974,34 @@ declare class NfTsService {
|
|
|
1769
1974
|
*/
|
|
1770
1975
|
address: string;
|
|
1771
1976
|
/**
|
|
1772
|
-
*
|
|
1977
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1773
1978
|
*/
|
|
1774
|
-
|
|
1775
|
-
|
|
1979
|
+
pageToken?: string;
|
|
1980
|
+
/**
|
|
1981
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1982
|
+
*/
|
|
1983
|
+
pageSize?: number;
|
|
1984
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1776
1985
|
/**
|
|
1777
|
-
* Get
|
|
1778
|
-
* Gets
|
|
1986
|
+
* Get token details
|
|
1987
|
+
* Gets token details for a specific token of an NFT contract.
|
|
1779
1988
|
* @returns any
|
|
1780
1989
|
* @throws ApiError
|
|
1781
1990
|
*/
|
|
1782
|
-
|
|
1991
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1783
1992
|
/**
|
|
1784
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1993
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1785
1994
|
*/
|
|
1786
1995
|
chainId: string;
|
|
1787
1996
|
/**
|
|
1788
1997
|
* Contract address on the relevant chain.
|
|
1789
1998
|
*/
|
|
1790
1999
|
address: string;
|
|
1791
|
-
|
|
2000
|
+
/**
|
|
2001
|
+
* TokenId on the contract
|
|
2002
|
+
*/
|
|
2003
|
+
tokenId: string;
|
|
2004
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
1792
2005
|
}
|
|
1793
2006
|
|
|
1794
2007
|
type EvmNetworkOptions = {
|
|
@@ -1796,8 +2009,12 @@ type EvmNetworkOptions = {
|
|
|
1796
2009
|
includeChains: Array<string>;
|
|
1797
2010
|
};
|
|
1798
2011
|
|
|
2012
|
+
declare enum EVMOperationType {
|
|
2013
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
2014
|
+
}
|
|
2015
|
+
|
|
1799
2016
|
type CreateEvmTransactionExportRequest = {
|
|
1800
|
-
type:
|
|
2017
|
+
type: EVMOperationType;
|
|
1801
2018
|
firstDate: string;
|
|
1802
2019
|
lastDate: string;
|
|
1803
2020
|
/**
|
|
@@ -1810,20 +2027,21 @@ type CreateEvmTransactionExportRequest = {
|
|
|
1810
2027
|
endDate: string;
|
|
1811
2028
|
options: EvmNetworkOptions;
|
|
1812
2029
|
};
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
2030
|
+
|
|
2031
|
+
declare enum PrimaryNetworkOperationType {
|
|
2032
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2033
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2034
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE"
|
|
1817
2035
|
}
|
|
1818
2036
|
|
|
1819
2037
|
type PrimaryNetworkOptions = {
|
|
1820
|
-
addresses
|
|
2038
|
+
addresses?: Array<string>;
|
|
1821
2039
|
cChainEvmAddresses?: Array<string>;
|
|
1822
2040
|
includeChains: Array<'11111111111111111111111111111111LpoYY' | '2oYMBNV4eNHyqk2fjjV5nVQLDbtmNJzq5s3qs3Lo6ftnC6FByM' | '2JVSBoinj9C2J33VntvzYtVJNZdN2NKiwwKjcumHUWEb5DbBrm' | '2q9e4r6Mu3U68nU1fYjgbR6JvwrRx36CohpAX5UQxse55x1Q5' | 'yH8D7ThNJkxmtkuv2jgBa4P1Rn3Qpr4pPr7QYNfcdoS6k6HWp' | 'p-chain' | 'x-chain' | 'c-chain'>;
|
|
1823
2041
|
};
|
|
1824
2042
|
|
|
1825
2043
|
type CreatePrimaryNetworkTransactionExportRequest = {
|
|
1826
|
-
type:
|
|
2044
|
+
type: PrimaryNetworkOperationType;
|
|
1827
2045
|
firstDate: string;
|
|
1828
2046
|
lastDate: string;
|
|
1829
2047
|
/**
|
|
@@ -1836,11 +2054,6 @@ type CreatePrimaryNetworkTransactionExportRequest = {
|
|
|
1836
2054
|
endDate: string;
|
|
1837
2055
|
options: PrimaryNetworkOptions;
|
|
1838
2056
|
};
|
|
1839
|
-
declare namespace CreatePrimaryNetworkTransactionExportRequest {
|
|
1840
|
-
enum type {
|
|
1841
|
-
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK"
|
|
1842
|
-
}
|
|
1843
|
-
}
|
|
1844
2057
|
|
|
1845
2058
|
declare enum OperationStatus {
|
|
1846
2059
|
RUNNING = "RUNNING",
|
|
@@ -1850,8 +2063,10 @@ declare enum OperationStatus {
|
|
|
1850
2063
|
}
|
|
1851
2064
|
|
|
1852
2065
|
declare enum OperationType {
|
|
1853
|
-
|
|
1854
|
-
|
|
2066
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK = "TRANSACTION_EXPORT_PRIMARY_NETWORK",
|
|
2067
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING = "TRANSACTION_EXPORT_PRIMARY_NETWORK_STAKING",
|
|
2068
|
+
TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE = "TRANSACTION_EXPORT_PRIMARY_NETWORK_SIMPLE",
|
|
2069
|
+
TRANSACTION_EXPORT_EVM = "TRANSACTION_EXPORT_EVM"
|
|
1855
2070
|
}
|
|
1856
2071
|
|
|
1857
2072
|
declare enum OperationStatusCode {
|
|
@@ -1885,17 +2100,6 @@ type OperationStatusResponse = {
|
|
|
1885
2100
|
declare class OperationsService {
|
|
1886
2101
|
readonly httpRequest: BaseHttpRequest;
|
|
1887
2102
|
constructor(httpRequest: BaseHttpRequest);
|
|
1888
|
-
/**
|
|
1889
|
-
* Create transaction export operation
|
|
1890
|
-
* Trigger a transaction export operation with given parameters.
|
|
1891
|
-
*
|
|
1892
|
-
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
1893
|
-
* @returns OperationStatusResponse
|
|
1894
|
-
* @throws ApiError
|
|
1895
|
-
*/
|
|
1896
|
-
postTransactionExportJob({ requestBody, }: {
|
|
1897
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
1898
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
1899
2103
|
/**
|
|
1900
2104
|
* Get operation
|
|
1901
2105
|
* Gets operation details for the given operation id.
|
|
@@ -1908,6 +2112,17 @@ declare class OperationsService {
|
|
|
1908
2112
|
*/
|
|
1909
2113
|
operationId: string;
|
|
1910
2114
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2115
|
+
/**
|
|
2116
|
+
* Create transaction export operation
|
|
2117
|
+
* Trigger a transaction export operation with given parameters.
|
|
2118
|
+
*
|
|
2119
|
+
* The transaction export operation runs asynchronously in the background. The status of the job can be retrieved from the `/v1/operations/:operationId` endpoint using the `operationId` returned from this endpoint.
|
|
2120
|
+
* @returns OperationStatusResponse
|
|
2121
|
+
* @throws ApiError
|
|
2122
|
+
*/
|
|
2123
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2124
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2125
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
1911
2126
|
}
|
|
1912
2127
|
|
|
1913
2128
|
declare enum BlockchainIds {
|
|
@@ -1976,39 +2191,57 @@ type ListBlockchainsResponse = {
|
|
|
1976
2191
|
|
|
1977
2192
|
type ActiveDelegatorDetails = {
|
|
1978
2193
|
txHash: string;
|
|
2194
|
+
nodeId: string;
|
|
1979
2195
|
rewardAddresses: Array<string>;
|
|
1980
2196
|
amountDelegated: string;
|
|
1981
2197
|
delegationFee: string;
|
|
1982
2198
|
startTimestamp: number;
|
|
1983
2199
|
endTimestamp: number;
|
|
1984
|
-
delegationStatus: DelegationStatusType;
|
|
1985
2200
|
estimatedGrossReward: string;
|
|
1986
2201
|
estimatedNetReward: string;
|
|
2202
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1987
2203
|
};
|
|
2204
|
+
declare namespace ActiveDelegatorDetails {
|
|
2205
|
+
enum delegationStatus {
|
|
2206
|
+
ACTIVE = "active"
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
1988
2209
|
|
|
1989
2210
|
type CompletedDelegatorDetails = {
|
|
1990
2211
|
txHash: string;
|
|
2212
|
+
nodeId: string;
|
|
1991
2213
|
rewardAddresses: Array<string>;
|
|
1992
2214
|
amountDelegated: string;
|
|
1993
2215
|
delegationFee: string;
|
|
1994
2216
|
startTimestamp: number;
|
|
1995
2217
|
endTimestamp: number;
|
|
1996
|
-
delegationStatus: DelegationStatusType;
|
|
1997
2218
|
grossReward: string;
|
|
1998
2219
|
netReward: string;
|
|
2220
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1999
2221
|
};
|
|
2222
|
+
declare namespace CompletedDelegatorDetails {
|
|
2223
|
+
enum delegationStatus {
|
|
2224
|
+
COMPLETED = "completed"
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2000
2227
|
|
|
2001
2228
|
type PendingDelegatorDetails = {
|
|
2002
2229
|
txHash: string;
|
|
2230
|
+
nodeId: string;
|
|
2003
2231
|
rewardAddresses: Array<string>;
|
|
2004
2232
|
amountDelegated: string;
|
|
2005
2233
|
delegationFee: string;
|
|
2006
2234
|
startTimestamp: number;
|
|
2007
2235
|
endTimestamp: number;
|
|
2008
|
-
delegationStatus: DelegationStatusType;
|
|
2009
2236
|
estimatedGrossReward: string;
|
|
2010
2237
|
estimatedNetReward: string;
|
|
2238
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2011
2239
|
};
|
|
2240
|
+
declare namespace PendingDelegatorDetails {
|
|
2241
|
+
enum delegationStatus {
|
|
2242
|
+
PENDING = "pending"
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2012
2245
|
|
|
2013
2246
|
type ListDelegatorDetailsResponse = {
|
|
2014
2247
|
/**
|
|
@@ -2025,13 +2258,44 @@ type BlockchainInfo = {
|
|
|
2025
2258
|
blockchainId: string;
|
|
2026
2259
|
};
|
|
2027
2260
|
|
|
2261
|
+
type SubnetOwnershipInfo = {
|
|
2262
|
+
/**
|
|
2263
|
+
* Locktime in seconds after which Subnet owners can control this Subnet.
|
|
2264
|
+
*/
|
|
2265
|
+
locktime: number;
|
|
2266
|
+
/**
|
|
2267
|
+
* Minimum number of signatures required to sign the Subnet update transactions.
|
|
2268
|
+
*/
|
|
2269
|
+
threshold: number;
|
|
2270
|
+
/**
|
|
2271
|
+
* Addresses that are eligible to sign the Subnet update transactions.
|
|
2272
|
+
*/
|
|
2273
|
+
addresses: Array<string>;
|
|
2274
|
+
};
|
|
2275
|
+
|
|
2028
2276
|
type Subnet = {
|
|
2029
2277
|
createBlockTimestamp: number;
|
|
2030
2278
|
createBlockIndex: string;
|
|
2031
2279
|
subnetId: string;
|
|
2280
|
+
/**
|
|
2281
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2282
|
+
* @deprecated
|
|
2283
|
+
*/
|
|
2032
2284
|
ownerAddresses: Array<string>;
|
|
2285
|
+
/**
|
|
2286
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2287
|
+
* @deprecated
|
|
2288
|
+
*/
|
|
2033
2289
|
threshold: number;
|
|
2290
|
+
/**
|
|
2291
|
+
* This field is deprecated. Use subnetOwnershipInfo instead.
|
|
2292
|
+
* @deprecated
|
|
2293
|
+
*/
|
|
2034
2294
|
locktime: number;
|
|
2295
|
+
/**
|
|
2296
|
+
* Latest subnet owner details for this Subnet.
|
|
2297
|
+
*/
|
|
2298
|
+
subnetOwnershipInfo: SubnetOwnershipInfo;
|
|
2035
2299
|
blockchains: Array<BlockchainInfo>;
|
|
2036
2300
|
};
|
|
2037
2301
|
|
|
@@ -2046,49 +2310,104 @@ type ListSubnetsResponse = {
|
|
|
2046
2310
|
type Rewards = {
|
|
2047
2311
|
validationRewardAmount: string;
|
|
2048
2312
|
delegationRewardAmount: string;
|
|
2313
|
+
rewardAddresses?: Array<string>;
|
|
2314
|
+
rewardTxHash?: string;
|
|
2049
2315
|
};
|
|
2050
2316
|
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2317
|
+
type ValidatorHealthDetails = {
|
|
2318
|
+
/**
|
|
2319
|
+
* Percent of requests responded to in last polling.
|
|
2320
|
+
*/
|
|
2321
|
+
reachabilityPercent: number;
|
|
2322
|
+
/**
|
|
2323
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2324
|
+
*/
|
|
2325
|
+
benchedPChainRequestsPercent: number;
|
|
2326
|
+
/**
|
|
2327
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2328
|
+
*/
|
|
2329
|
+
benchedXChainRequestsPercent: number;
|
|
2330
|
+
/**
|
|
2331
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
2332
|
+
*/
|
|
2333
|
+
benchedCChainRequestsPercent: number;
|
|
2334
|
+
};
|
|
2056
2335
|
|
|
2057
2336
|
type ActiveValidatorDetails = {
|
|
2337
|
+
txHash: string;
|
|
2058
2338
|
nodeId: string;
|
|
2339
|
+
subnetId: string;
|
|
2059
2340
|
amountStaked: string;
|
|
2060
|
-
delegationFee
|
|
2341
|
+
delegationFee?: string;
|
|
2061
2342
|
startTimestamp: number;
|
|
2062
2343
|
endTimestamp: number;
|
|
2063
|
-
validationStatus: ValidationStatusType;
|
|
2064
2344
|
stakePercentage: number;
|
|
2065
2345
|
delegatorCount: number;
|
|
2066
|
-
amountDelegated
|
|
2346
|
+
amountDelegated?: string;
|
|
2067
2347
|
uptimePerformance: number;
|
|
2068
|
-
avalancheGoVersion
|
|
2069
|
-
delegationCapacity
|
|
2348
|
+
avalancheGoVersion?: string;
|
|
2349
|
+
delegationCapacity?: string;
|
|
2070
2350
|
potentialRewards: Rewards;
|
|
2351
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2352
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2071
2353
|
};
|
|
2354
|
+
declare namespace ActiveValidatorDetails {
|
|
2355
|
+
enum validationStatus {
|
|
2356
|
+
ACTIVE = "active"
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2072
2359
|
|
|
2073
2360
|
type CompletedValidatorDetails = {
|
|
2361
|
+
txHash: string;
|
|
2074
2362
|
nodeId: string;
|
|
2363
|
+
subnetId: string;
|
|
2075
2364
|
amountStaked: string;
|
|
2076
|
-
delegationFee
|
|
2365
|
+
delegationFee?: string;
|
|
2077
2366
|
startTimestamp: number;
|
|
2078
2367
|
endTimestamp: number;
|
|
2079
|
-
validationStatus: ValidationStatusType;
|
|
2080
2368
|
delegatorCount: number;
|
|
2081
2369
|
rewards: Rewards;
|
|
2370
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2082
2371
|
};
|
|
2372
|
+
declare namespace CompletedValidatorDetails {
|
|
2373
|
+
enum validationStatus {
|
|
2374
|
+
COMPLETED = "completed"
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2083
2377
|
|
|
2084
2378
|
type PendingValidatorDetails = {
|
|
2379
|
+
txHash: string;
|
|
2085
2380
|
nodeId: string;
|
|
2381
|
+
subnetId: string;
|
|
2086
2382
|
amountStaked: string;
|
|
2087
|
-
delegationFee
|
|
2383
|
+
delegationFee?: string;
|
|
2384
|
+
startTimestamp: number;
|
|
2385
|
+
endTimestamp: number;
|
|
2386
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2387
|
+
};
|
|
2388
|
+
declare namespace PendingValidatorDetails {
|
|
2389
|
+
enum validationStatus {
|
|
2390
|
+
PENDING = "pending"
|
|
2391
|
+
}
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
type RemovedValidatorDetails = {
|
|
2395
|
+
txHash: string;
|
|
2396
|
+
nodeId: string;
|
|
2397
|
+
subnetId: string;
|
|
2398
|
+
amountStaked: string;
|
|
2399
|
+
delegationFee?: string;
|
|
2088
2400
|
startTimestamp: number;
|
|
2089
2401
|
endTimestamp: number;
|
|
2090
|
-
|
|
2402
|
+
removeTxHash: string;
|
|
2403
|
+
removeTimestamp: number;
|
|
2404
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2091
2405
|
};
|
|
2406
|
+
declare namespace RemovedValidatorDetails {
|
|
2407
|
+
enum validationStatus {
|
|
2408
|
+
REMOVED = "removed"
|
|
2409
|
+
}
|
|
2410
|
+
}
|
|
2092
2411
|
|
|
2093
2412
|
type ListValidatorDetailsResponse = {
|
|
2094
2413
|
/**
|
|
@@ -2096,9 +2415,9 @@ type ListValidatorDetailsResponse = {
|
|
|
2096
2415
|
*/
|
|
2097
2416
|
nextPageToken?: string;
|
|
2098
2417
|
/**
|
|
2099
|
-
* The list of
|
|
2418
|
+
* The list of validator Details.
|
|
2100
2419
|
*/
|
|
2101
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2420
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2102
2421
|
};
|
|
2103
2422
|
|
|
2104
2423
|
declare enum Network {
|
|
@@ -2106,6 +2425,29 @@ declare enum Network {
|
|
|
2106
2425
|
FUJI = "fuji"
|
|
2107
2426
|
}
|
|
2108
2427
|
|
|
2428
|
+
declare enum ValidationStatusType {
|
|
2429
|
+
COMPLETED = "completed",
|
|
2430
|
+
ACTIVE = "active",
|
|
2431
|
+
PENDING = "pending",
|
|
2432
|
+
REMOVED = "removed"
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2437
|
+
*/
|
|
2438
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2439
|
+
FIXED = "fixed",
|
|
2440
|
+
VARIABLE = "variable"
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
/**
|
|
2444
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2445
|
+
*/
|
|
2446
|
+
declare enum PrimaryNetworkAssetType {
|
|
2447
|
+
SECP256K1 = "secp256k1",
|
|
2448
|
+
NFT = "nft"
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2109
2451
|
type XChainAssetDetails = {
|
|
2110
2452
|
/**
|
|
2111
2453
|
* Unique ID for an asset.
|
|
@@ -2123,18 +2465,12 @@ type XChainAssetDetails = {
|
|
|
2123
2465
|
* Denomination of this asset to represent fungibility.
|
|
2124
2466
|
*/
|
|
2125
2467
|
denomination: number;
|
|
2126
|
-
|
|
2127
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2128
|
-
*/
|
|
2129
|
-
type: string;
|
|
2468
|
+
type: PrimaryNetworkAssetType;
|
|
2130
2469
|
/**
|
|
2131
2470
|
* Timestamp in seconds this asset was created on.
|
|
2132
2471
|
*/
|
|
2133
2472
|
createdAtTimestamp: number;
|
|
2134
|
-
|
|
2135
|
-
* Cap represents if an asset can be or is fixed cap.
|
|
2136
|
-
*/
|
|
2137
|
-
cap: string;
|
|
2473
|
+
cap: PrimaryNetworkAssetCap;
|
|
2138
2474
|
};
|
|
2139
2475
|
|
|
2140
2476
|
declare enum XChainId {
|
|
@@ -2200,19 +2536,19 @@ declare class PrimaryNetworkService {
|
|
|
2200
2536
|
* @returns ListBlockchainsResponse
|
|
2201
2537
|
* @throws ApiError
|
|
2202
2538
|
*/
|
|
2203
|
-
listBlockchains({ network,
|
|
2539
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2204
2540
|
/**
|
|
2205
2541
|
* Either mainnet or a testnet.
|
|
2206
2542
|
*/
|
|
2207
2543
|
network: Network;
|
|
2208
|
-
/**
|
|
2209
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2210
|
-
*/
|
|
2211
|
-
pageSize?: number;
|
|
2212
2544
|
/**
|
|
2213
2545
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2214
2546
|
*/
|
|
2215
2547
|
pageToken?: string;
|
|
2548
|
+
/**
|
|
2549
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2550
|
+
*/
|
|
2551
|
+
pageSize?: number;
|
|
2216
2552
|
/**
|
|
2217
2553
|
* 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.
|
|
2218
2554
|
*/
|
|
@@ -2224,19 +2560,19 @@ declare class PrimaryNetworkService {
|
|
|
2224
2560
|
* @returns ListSubnetsResponse
|
|
2225
2561
|
* @throws ApiError
|
|
2226
2562
|
*/
|
|
2227
|
-
listSubnets({ network,
|
|
2563
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2228
2564
|
/**
|
|
2229
2565
|
* Either mainnet or a testnet.
|
|
2230
2566
|
*/
|
|
2231
2567
|
network: Network;
|
|
2232
|
-
/**
|
|
2233
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2234
|
-
*/
|
|
2235
|
-
pageSize?: number;
|
|
2236
2568
|
/**
|
|
2237
2569
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2238
2570
|
*/
|
|
2239
2571
|
pageToken?: string;
|
|
2572
|
+
/**
|
|
2573
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2574
|
+
*/
|
|
2575
|
+
pageSize?: number;
|
|
2240
2576
|
/**
|
|
2241
2577
|
* 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.
|
|
2242
2578
|
*/
|
|
@@ -2248,19 +2584,19 @@ declare class PrimaryNetworkService {
|
|
|
2248
2584
|
* @returns ListValidatorDetailsResponse
|
|
2249
2585
|
* @throws ApiError
|
|
2250
2586
|
*/
|
|
2251
|
-
listValidators({ network,
|
|
2587
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2252
2588
|
/**
|
|
2253
2589
|
* Either mainnet or a testnet.
|
|
2254
2590
|
*/
|
|
2255
2591
|
network: Network;
|
|
2256
|
-
/**
|
|
2257
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2258
|
-
*/
|
|
2259
|
-
pageSize?: number;
|
|
2260
2592
|
/**
|
|
2261
2593
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2262
2594
|
*/
|
|
2263
2595
|
pageToken?: string;
|
|
2596
|
+
/**
|
|
2597
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2598
|
+
*/
|
|
2599
|
+
pageSize?: number;
|
|
2264
2600
|
/**
|
|
2265
2601
|
* A comma separated list of node ids to filter by.
|
|
2266
2602
|
*/
|
|
@@ -2274,9 +2610,33 @@ declare class PrimaryNetworkService {
|
|
|
2274
2610
|
*/
|
|
2275
2611
|
validationStatus?: ValidationStatusType;
|
|
2276
2612
|
/**
|
|
2277
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned
|
|
2613
|
+
* 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
|
|
2614
|
+
*/
|
|
2615
|
+
minDelegationCapacity?: string;
|
|
2616
|
+
/**
|
|
2617
|
+
* 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.
|
|
2618
|
+
*/
|
|
2619
|
+
maxDelegationCapacity?: string;
|
|
2620
|
+
/**
|
|
2621
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2622
|
+
*/
|
|
2623
|
+
minTimeRemaining?: number;
|
|
2624
|
+
/**
|
|
2625
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2626
|
+
*/
|
|
2627
|
+
maxTimeRemaining?: number;
|
|
2628
|
+
/**
|
|
2629
|
+
* 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.
|
|
2630
|
+
*/
|
|
2631
|
+
minFeePercentage?: number;
|
|
2632
|
+
/**
|
|
2633
|
+
* 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.
|
|
2634
|
+
*/
|
|
2635
|
+
maxFeePercentage?: number;
|
|
2636
|
+
/**
|
|
2637
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2278
2638
|
*/
|
|
2279
|
-
|
|
2639
|
+
subnetId?: any;
|
|
2280
2640
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2281
2641
|
/**
|
|
2282
2642
|
* Get single validator details
|
|
@@ -2284,7 +2644,7 @@ declare class PrimaryNetworkService {
|
|
|
2284
2644
|
* @returns ListValidatorDetailsResponse
|
|
2285
2645
|
* @throws ApiError
|
|
2286
2646
|
*/
|
|
2287
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2647
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2288
2648
|
/**
|
|
2289
2649
|
* Either mainnet or a testnet.
|
|
2290
2650
|
*/
|
|
@@ -2293,14 +2653,14 @@ declare class PrimaryNetworkService {
|
|
|
2293
2653
|
* A primary network (P or X chain) nodeId.
|
|
2294
2654
|
*/
|
|
2295
2655
|
nodeId: string;
|
|
2296
|
-
/**
|
|
2297
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2298
|
-
*/
|
|
2299
|
-
pageSize?: number;
|
|
2300
2656
|
/**
|
|
2301
2657
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2302
2658
|
*/
|
|
2303
2659
|
pageToken?: string;
|
|
2660
|
+
/**
|
|
2661
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2662
|
+
*/
|
|
2663
|
+
pageSize?: number;
|
|
2304
2664
|
/**
|
|
2305
2665
|
* 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.
|
|
2306
2666
|
*/
|
|
@@ -2316,19 +2676,23 @@ declare class PrimaryNetworkService {
|
|
|
2316
2676
|
* @returns ListDelegatorDetailsResponse
|
|
2317
2677
|
* @throws ApiError
|
|
2318
2678
|
*/
|
|
2319
|
-
listDelegators({ network, pageSize,
|
|
2679
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2320
2680
|
/**
|
|
2321
2681
|
* Either mainnet or a testnet.
|
|
2322
2682
|
*/
|
|
2323
2683
|
network: Network;
|
|
2684
|
+
/**
|
|
2685
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2686
|
+
*/
|
|
2687
|
+
pageToken?: string;
|
|
2324
2688
|
/**
|
|
2325
2689
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2326
2690
|
*/
|
|
2327
2691
|
pageSize?: number;
|
|
2328
2692
|
/**
|
|
2329
|
-
* A
|
|
2693
|
+
* A comma separated list of reward addresses to filter by.
|
|
2330
2694
|
*/
|
|
2331
|
-
|
|
2695
|
+
rewardAddresses?: string;
|
|
2332
2696
|
/**
|
|
2333
2697
|
* 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.
|
|
2334
2698
|
*/
|
|
@@ -2337,10 +2701,6 @@ declare class PrimaryNetworkService {
|
|
|
2337
2701
|
* Delegation status of the node.
|
|
2338
2702
|
*/
|
|
2339
2703
|
delegationStatus?: DelegationStatusType;
|
|
2340
|
-
/**
|
|
2341
|
-
* A comma separated list of reward addresses to filter by.
|
|
2342
|
-
*/
|
|
2343
|
-
rewardAddresses?: string;
|
|
2344
2704
|
/**
|
|
2345
2705
|
* A comma separated list of node ids to filter by.
|
|
2346
2706
|
*/
|
|
@@ -2376,10 +2736,7 @@ type CChainSharedAssetBalance = {
|
|
|
2376
2736
|
* Denomination of this asset to represent fungibility.
|
|
2377
2737
|
*/
|
|
2378
2738
|
denomination: number;
|
|
2379
|
-
|
|
2380
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2381
|
-
*/
|
|
2382
|
-
type: string;
|
|
2739
|
+
type: PrimaryNetworkAssetType;
|
|
2383
2740
|
/**
|
|
2384
2741
|
* Amount of the asset.
|
|
2385
2742
|
*/
|
|
@@ -2414,84 +2771,96 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2414
2771
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2415
2772
|
};
|
|
2416
2773
|
|
|
2417
|
-
type
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
type PChainSharedAsset = {
|
|
2774
|
+
type AggregatedAssetAmount = {
|
|
2775
|
+
/**
|
|
2776
|
+
* Unique ID for an asset.
|
|
2777
|
+
*/
|
|
2423
2778
|
assetId: string;
|
|
2424
|
-
amount: string;
|
|
2425
|
-
sharedWithChainId: string;
|
|
2426
|
-
status: string;
|
|
2427
|
-
};
|
|
2428
|
-
|
|
2429
|
-
type PChainBalance = {
|
|
2430
2779
|
/**
|
|
2431
|
-
*
|
|
2780
|
+
* Name of this asset.
|
|
2781
|
+
*/
|
|
2782
|
+
name: string;
|
|
2783
|
+
/**
|
|
2784
|
+
* Symbol for this asset (max 4 characters).
|
|
2432
2785
|
*/
|
|
2433
|
-
|
|
2786
|
+
symbol: string;
|
|
2434
2787
|
/**
|
|
2435
|
-
*
|
|
2788
|
+
* Denomination of this asset to represent fungibility.
|
|
2436
2789
|
*/
|
|
2437
|
-
|
|
2790
|
+
denomination: number;
|
|
2791
|
+
type: PrimaryNetworkAssetType;
|
|
2438
2792
|
/**
|
|
2439
|
-
*
|
|
2793
|
+
* Amount of the asset.
|
|
2440
2794
|
*/
|
|
2441
|
-
|
|
2795
|
+
amount: string;
|
|
2796
|
+
utxoCount: number;
|
|
2797
|
+
};
|
|
2798
|
+
|
|
2799
|
+
type PChainSharedAsset = {
|
|
2442
2800
|
/**
|
|
2443
|
-
*
|
|
2801
|
+
* Unique ID for an asset.
|
|
2444
2802
|
*/
|
|
2445
|
-
|
|
2803
|
+
assetId: string;
|
|
2446
2804
|
/**
|
|
2447
|
-
*
|
|
2805
|
+
* Name of this asset.
|
|
2448
2806
|
*/
|
|
2449
|
-
|
|
2807
|
+
name: string;
|
|
2450
2808
|
/**
|
|
2451
|
-
*
|
|
2809
|
+
* Symbol for this asset (max 4 characters).
|
|
2452
2810
|
*/
|
|
2453
|
-
|
|
2811
|
+
symbol: string;
|
|
2454
2812
|
/**
|
|
2455
|
-
*
|
|
2813
|
+
* Denomination of this asset to represent fungibility.
|
|
2456
2814
|
*/
|
|
2457
|
-
|
|
2815
|
+
denomination: number;
|
|
2816
|
+
type: PrimaryNetworkAssetType;
|
|
2458
2817
|
/**
|
|
2459
|
-
*
|
|
2818
|
+
* Amount of the asset.
|
|
2460
2819
|
*/
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
balances: PChainBalance;
|
|
2466
|
-
chainInfo: PrimaryNetworkChainInfo;
|
|
2820
|
+
amount: string;
|
|
2821
|
+
utxoCount: number;
|
|
2822
|
+
sharedWithChainId: string;
|
|
2823
|
+
status: string;
|
|
2467
2824
|
};
|
|
2468
2825
|
|
|
2469
|
-
type
|
|
2826
|
+
type PChainBalance = {
|
|
2827
|
+
/**
|
|
2828
|
+
* 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.
|
|
2829
|
+
*/
|
|
2830
|
+
unlockedUnstaked: Array<AggregatedAssetAmount>;
|
|
2470
2831
|
/**
|
|
2471
|
-
*
|
|
2832
|
+
* 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.
|
|
2472
2833
|
*/
|
|
2473
|
-
|
|
2834
|
+
unlockedStaked: Array<AggregatedAssetAmount>;
|
|
2474
2835
|
/**
|
|
2475
|
-
*
|
|
2836
|
+
* 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.
|
|
2476
2837
|
*/
|
|
2477
|
-
|
|
2838
|
+
lockedPlatform: Array<AggregatedAssetAmount>;
|
|
2478
2839
|
/**
|
|
2479
|
-
*
|
|
2840
|
+
* 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.
|
|
2480
2841
|
*/
|
|
2481
|
-
|
|
2842
|
+
lockedStakeable: Array<AggregatedAssetAmount>;
|
|
2482
2843
|
/**
|
|
2483
|
-
*
|
|
2844
|
+
* 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.
|
|
2484
2845
|
*/
|
|
2485
|
-
|
|
2846
|
+
lockedStaked: Array<AggregatedAssetAmount>;
|
|
2486
2847
|
/**
|
|
2487
|
-
*
|
|
2848
|
+
* 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.
|
|
2488
2849
|
*/
|
|
2489
|
-
|
|
2850
|
+
pendingStaked: Array<AggregatedAssetAmount>;
|
|
2490
2851
|
/**
|
|
2491
|
-
*
|
|
2852
|
+
* 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.
|
|
2492
2853
|
*/
|
|
2493
|
-
|
|
2494
|
-
|
|
2854
|
+
atomicMemoryUnlocked: Array<PChainSharedAsset>;
|
|
2855
|
+
/**
|
|
2856
|
+
* 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.
|
|
2857
|
+
*/
|
|
2858
|
+
atomicMemoryLocked: Array<PChainSharedAsset>;
|
|
2859
|
+
};
|
|
2860
|
+
|
|
2861
|
+
type ListPChainBalancesResponse = {
|
|
2862
|
+
balances: PChainBalance;
|
|
2863
|
+
chainInfo: PrimaryNetworkChainInfo;
|
|
2495
2864
|
};
|
|
2496
2865
|
|
|
2497
2866
|
type XChainSharedAssetBalance = {
|
|
@@ -2511,10 +2880,7 @@ type XChainSharedAssetBalance = {
|
|
|
2511
2880
|
* Denomination of this asset to represent fungibility.
|
|
2512
2881
|
*/
|
|
2513
2882
|
denomination: number;
|
|
2514
|
-
|
|
2515
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2516
|
-
*/
|
|
2517
|
-
type: string;
|
|
2883
|
+
type: PrimaryNetworkAssetType;
|
|
2518
2884
|
/**
|
|
2519
2885
|
* Amount of the asset.
|
|
2520
2886
|
*/
|
|
@@ -2527,11 +2893,11 @@ type XChainBalances = {
|
|
|
2527
2893
|
/**
|
|
2528
2894
|
* A list of objects containing X-chain Asset balance information.
|
|
2529
2895
|
*/
|
|
2530
|
-
locked: Array<
|
|
2896
|
+
locked: Array<AggregatedAssetAmount>;
|
|
2531
2897
|
/**
|
|
2532
2898
|
* A list of objects containing X-chain Asset balance information.
|
|
2533
2899
|
*/
|
|
2534
|
-
unlocked: Array<
|
|
2900
|
+
unlocked: Array<AggregatedAssetAmount>;
|
|
2535
2901
|
atomicMemoryUnlocked: Array<XChainSharedAssetBalance>;
|
|
2536
2902
|
atomicMemoryLocked: Array<XChainSharedAssetBalance>;
|
|
2537
2903
|
};
|
|
@@ -2589,6 +2955,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2589
2955
|
txCount: number;
|
|
2590
2956
|
transactions: Array<string>;
|
|
2591
2957
|
blockSizeBytes: number;
|
|
2958
|
+
currentSupply?: string;
|
|
2592
2959
|
proposerDetails?: ProposerDetails;
|
|
2593
2960
|
};
|
|
2594
2961
|
|
|
@@ -2601,6 +2968,7 @@ type PrimaryNetworkBlock = {
|
|
|
2601
2968
|
txCount: number;
|
|
2602
2969
|
transactions: Array<string>;
|
|
2603
2970
|
blockSizeBytes: number;
|
|
2971
|
+
currentSupply?: string;
|
|
2604
2972
|
proposerDetails?: ProposerDetails;
|
|
2605
2973
|
};
|
|
2606
2974
|
|
|
@@ -2642,7 +3010,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2642
3010
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2643
3011
|
* @throws ApiError
|
|
2644
3012
|
*/
|
|
2645
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3013
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2646
3014
|
/**
|
|
2647
3015
|
* A primary network blockchain id or alias.
|
|
2648
3016
|
*/
|
|
@@ -2655,14 +3023,14 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2655
3023
|
* A primary network (P or X chain) nodeId.
|
|
2656
3024
|
*/
|
|
2657
3025
|
nodeId: string;
|
|
2658
|
-
/**
|
|
2659
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2660
|
-
*/
|
|
2661
|
-
pageSize?: number;
|
|
2662
3026
|
/**
|
|
2663
3027
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2664
3028
|
*/
|
|
2665
3029
|
pageToken?: string;
|
|
3030
|
+
/**
|
|
3031
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3032
|
+
*/
|
|
3033
|
+
pageSize?: number;
|
|
2666
3034
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2667
3035
|
/**
|
|
2668
3036
|
* List latest blocks
|
|
@@ -2670,7 +3038,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2670
3038
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2671
3039
|
* @throws ApiError
|
|
2672
3040
|
*/
|
|
2673
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3041
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2674
3042
|
/**
|
|
2675
3043
|
* A primary network blockchain id or alias.
|
|
2676
3044
|
*/
|
|
@@ -2679,20 +3047,49 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2679
3047
|
* Either mainnet or a testnet.
|
|
2680
3048
|
*/
|
|
2681
3049
|
network: Network;
|
|
2682
|
-
/**
|
|
2683
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2684
|
-
*/
|
|
2685
|
-
pageSize?: number;
|
|
2686
3050
|
/**
|
|
2687
3051
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2688
3052
|
*/
|
|
2689
3053
|
pageToken?: string;
|
|
3054
|
+
/**
|
|
3055
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3056
|
+
*/
|
|
3057
|
+
pageSize?: number;
|
|
2690
3058
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2691
3059
|
}
|
|
2692
3060
|
|
|
3061
|
+
type AssetWithPriceInfo = {
|
|
3062
|
+
/**
|
|
3063
|
+
* Unique ID for an asset.
|
|
3064
|
+
*/
|
|
3065
|
+
assetId: string;
|
|
3066
|
+
/**
|
|
3067
|
+
* Name of this asset.
|
|
3068
|
+
*/
|
|
3069
|
+
name: string;
|
|
3070
|
+
/**
|
|
3071
|
+
* Symbol for this asset (max 4 characters).
|
|
3072
|
+
*/
|
|
3073
|
+
symbol: string;
|
|
3074
|
+
/**
|
|
3075
|
+
* Denomination of this asset to represent fungibility.
|
|
3076
|
+
*/
|
|
3077
|
+
denomination: number;
|
|
3078
|
+
type: PrimaryNetworkAssetType;
|
|
3079
|
+
/**
|
|
3080
|
+
* Amount of the asset.
|
|
3081
|
+
*/
|
|
3082
|
+
amount: string;
|
|
3083
|
+
/**
|
|
3084
|
+
* The historical asset price at the time the reward was granted, if available. Note, this is only provided if the reward occured more than 24 hours ago.
|
|
3085
|
+
*/
|
|
3086
|
+
historicalPrice?: Money;
|
|
3087
|
+
};
|
|
3088
|
+
|
|
2693
3089
|
declare enum RewardType {
|
|
2694
3090
|
VALIDATOR = "VALIDATOR",
|
|
2695
|
-
DELEGATOR = "DELEGATOR"
|
|
3091
|
+
DELEGATOR = "DELEGATOR",
|
|
3092
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2696
3093
|
}
|
|
2697
3094
|
|
|
2698
3095
|
type HistoricalReward = {
|
|
@@ -2708,10 +3105,7 @@ type HistoricalReward = {
|
|
|
2708
3105
|
rewardType: RewardType;
|
|
2709
3106
|
utxoId: string;
|
|
2710
3107
|
outputIndex: number;
|
|
2711
|
-
|
|
2712
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2713
|
-
*/
|
|
2714
|
-
reward: PChainAsset;
|
|
3108
|
+
reward: AssetWithPriceInfo;
|
|
2715
3109
|
rewardTxHash: string;
|
|
2716
3110
|
};
|
|
2717
3111
|
|
|
@@ -2723,6 +3117,30 @@ type ListHistoricalRewardsResponse = {
|
|
|
2723
3117
|
historicalRewards: Array<HistoricalReward>;
|
|
2724
3118
|
};
|
|
2725
3119
|
|
|
3120
|
+
type AssetAmount = {
|
|
3121
|
+
/**
|
|
3122
|
+
* Unique ID for an asset.
|
|
3123
|
+
*/
|
|
3124
|
+
assetId: string;
|
|
3125
|
+
/**
|
|
3126
|
+
* Name of this asset.
|
|
3127
|
+
*/
|
|
3128
|
+
name: string;
|
|
3129
|
+
/**
|
|
3130
|
+
* Symbol for this asset (max 4 characters).
|
|
3131
|
+
*/
|
|
3132
|
+
symbol: string;
|
|
3133
|
+
/**
|
|
3134
|
+
* Denomination of this asset to represent fungibility.
|
|
3135
|
+
*/
|
|
3136
|
+
denomination: number;
|
|
3137
|
+
type: PrimaryNetworkAssetType;
|
|
3138
|
+
/**
|
|
3139
|
+
* Amount of the asset.
|
|
3140
|
+
*/
|
|
3141
|
+
amount: string;
|
|
3142
|
+
};
|
|
3143
|
+
|
|
2726
3144
|
type PendingReward = {
|
|
2727
3145
|
/**
|
|
2728
3146
|
* An array of P-Chain wallet addresses.
|
|
@@ -2736,9 +3154,9 @@ type PendingReward = {
|
|
|
2736
3154
|
rewardType: RewardType;
|
|
2737
3155
|
progress: number;
|
|
2738
3156
|
/**
|
|
2739
|
-
* An object containing P-chain Asset
|
|
3157
|
+
* An object containing P-chain Asset basic info and the amount of that Asset ID.
|
|
2740
3158
|
*/
|
|
2741
|
-
estimatedReward:
|
|
3159
|
+
estimatedReward: AssetAmount;
|
|
2742
3160
|
};
|
|
2743
3161
|
|
|
2744
3162
|
type ListPendingRewardsResponse = {
|
|
@@ -2758,23 +3176,27 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2758
3176
|
* @returns ListPendingRewardsResponse
|
|
2759
3177
|
* @throws ApiError
|
|
2760
3178
|
*/
|
|
2761
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3179
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2762
3180
|
/**
|
|
2763
3181
|
* Either mainnet or a testnet.
|
|
2764
3182
|
*/
|
|
2765
3183
|
network: Network;
|
|
2766
3184
|
/**
|
|
2767
|
-
* 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".
|
|
3185
|
+
* 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.
|
|
2768
3186
|
*/
|
|
2769
3187
|
addresses?: string;
|
|
3188
|
+
/**
|
|
3189
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3190
|
+
*/
|
|
3191
|
+
pageToken?: string;
|
|
2770
3192
|
/**
|
|
2771
3193
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2772
3194
|
*/
|
|
2773
3195
|
pageSize?: number;
|
|
2774
3196
|
/**
|
|
2775
|
-
* A
|
|
3197
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
2776
3198
|
*/
|
|
2777
|
-
|
|
3199
|
+
nodeIds?: string;
|
|
2778
3200
|
/**
|
|
2779
3201
|
* 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.
|
|
2780
3202
|
*/
|
|
@@ -2786,64 +3208,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2786
3208
|
* @returns ListHistoricalRewardsResponse
|
|
2787
3209
|
* @throws ApiError
|
|
2788
3210
|
*/
|
|
2789
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3211
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
2790
3212
|
/**
|
|
2791
3213
|
* Either mainnet or a testnet.
|
|
2792
3214
|
*/
|
|
2793
3215
|
network: Network;
|
|
2794
3216
|
/**
|
|
2795
|
-
* 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".
|
|
3217
|
+
* 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.
|
|
2796
3218
|
*/
|
|
2797
3219
|
addresses?: string;
|
|
3220
|
+
/**
|
|
3221
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3222
|
+
*/
|
|
3223
|
+
pageToken?: string;
|
|
2798
3224
|
/**
|
|
2799
3225
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2800
3226
|
*/
|
|
2801
3227
|
pageSize?: number;
|
|
2802
3228
|
/**
|
|
2803
|
-
* A
|
|
3229
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
2804
3230
|
*/
|
|
2805
|
-
|
|
3231
|
+
nodeIds?: string;
|
|
2806
3232
|
/**
|
|
2807
3233
|
* 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.
|
|
2808
3234
|
*/
|
|
2809
3235
|
sortOrder?: SortOrder;
|
|
3236
|
+
/**
|
|
3237
|
+
* The currency that return values should use. Defaults to USD.
|
|
3238
|
+
*/
|
|
3239
|
+
currency?: CurrencyCode;
|
|
2810
3240
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2811
3241
|
}
|
|
2812
3242
|
|
|
2813
|
-
type Asset = {
|
|
2814
|
-
/**
|
|
2815
|
-
* Unique ID for an asset.
|
|
2816
|
-
*/
|
|
2817
|
-
assetId: string;
|
|
2818
|
-
/**
|
|
2819
|
-
* Name of this asset.
|
|
2820
|
-
*/
|
|
2821
|
-
name: string;
|
|
2822
|
-
/**
|
|
2823
|
-
* Symbol for this asset (max 4 characters).
|
|
2824
|
-
*/
|
|
2825
|
-
symbol: string;
|
|
2826
|
-
/**
|
|
2827
|
-
* Denomination of this asset to represent fungibility.
|
|
2828
|
-
*/
|
|
2829
|
-
denomination: number;
|
|
2830
|
-
/**
|
|
2831
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2832
|
-
*/
|
|
2833
|
-
type: string;
|
|
2834
|
-
/**
|
|
2835
|
-
* Amount of the asset.
|
|
2836
|
-
*/
|
|
2837
|
-
amount: string;
|
|
2838
|
-
};
|
|
2839
|
-
|
|
2840
3243
|
type UtxoCredential = {
|
|
2841
3244
|
/**
|
|
2842
|
-
* Signature provided to consume the output
|
|
3245
|
+
* Signature provided to consume the output.
|
|
2843
3246
|
*/
|
|
2844
3247
|
signature?: string;
|
|
2845
3248
|
/**
|
|
2846
|
-
* Public key associated with the signature
|
|
3249
|
+
* Public key associated with the signature.
|
|
2847
3250
|
*/
|
|
2848
3251
|
publicKey?: string;
|
|
2849
3252
|
};
|
|
@@ -2854,9 +3257,9 @@ type EVMInput = {
|
|
|
2854
3257
|
*/
|
|
2855
3258
|
fromAddress: string;
|
|
2856
3259
|
/**
|
|
2857
|
-
*
|
|
3260
|
+
* AssetAmount details for the asset being transferred.
|
|
2858
3261
|
*/
|
|
2859
|
-
asset:
|
|
3262
|
+
asset: AssetAmount;
|
|
2860
3263
|
/**
|
|
2861
3264
|
* Credentials that signed this transaction.
|
|
2862
3265
|
*/
|
|
@@ -2865,66 +3268,66 @@ type EVMInput = {
|
|
|
2865
3268
|
|
|
2866
3269
|
type Utxo = {
|
|
2867
3270
|
/**
|
|
2868
|
-
*
|
|
3271
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2869
3272
|
*/
|
|
2870
|
-
|
|
2871
|
-
asset:
|
|
3273
|
+
addresses: Array<string>;
|
|
3274
|
+
asset: AssetAmount;
|
|
2872
3275
|
/**
|
|
2873
|
-
*
|
|
3276
|
+
* Blockchain ID on which this output is consumed on.
|
|
2874
3277
|
*/
|
|
2875
|
-
|
|
3278
|
+
consumedOnChainId: string;
|
|
2876
3279
|
/**
|
|
2877
|
-
*
|
|
3280
|
+
* Transaction ID that consumed this output.
|
|
2878
3281
|
*/
|
|
2879
|
-
|
|
3282
|
+
consumingTxHash?: string;
|
|
2880
3283
|
/**
|
|
2881
|
-
* Blockchain ID on which this output is
|
|
3284
|
+
* Blockchain ID on which this output is created on.
|
|
2882
3285
|
*/
|
|
2883
|
-
|
|
3286
|
+
createdOnChainId: string;
|
|
2884
3287
|
/**
|
|
2885
|
-
*
|
|
3288
|
+
* UTXO ID for this output.
|
|
2886
3289
|
*/
|
|
2887
|
-
|
|
3290
|
+
utxoId: string;
|
|
2888
3291
|
/**
|
|
2889
|
-
*
|
|
3292
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2890
3293
|
*/
|
|
2891
|
-
|
|
3294
|
+
consumingTxTimestamp?: number;
|
|
2892
3295
|
/**
|
|
2893
|
-
*
|
|
3296
|
+
* Transaction ID that created this output.
|
|
2894
3297
|
*/
|
|
2895
|
-
|
|
3298
|
+
creationTxHash: string;
|
|
2896
3299
|
/**
|
|
2897
|
-
*
|
|
3300
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2898
3301
|
*/
|
|
2899
|
-
|
|
3302
|
+
credentials?: Array<UtxoCredential>;
|
|
2900
3303
|
/**
|
|
2901
|
-
*
|
|
3304
|
+
* Index representing the minting set for the NFT mint output.
|
|
2902
3305
|
*/
|
|
2903
|
-
|
|
3306
|
+
groupId?: number;
|
|
2904
3307
|
/**
|
|
2905
3308
|
* Locktime in seconds after which this output can be consumed.
|
|
2906
3309
|
*/
|
|
2907
3310
|
locktime: number;
|
|
2908
3311
|
/**
|
|
2909
|
-
*
|
|
3312
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
2910
3313
|
*/
|
|
2911
|
-
|
|
3314
|
+
outputIndex: string;
|
|
2912
3315
|
/**
|
|
2913
|
-
*
|
|
3316
|
+
* Hex encoded data for NFT assets.
|
|
2914
3317
|
*/
|
|
2915
|
-
|
|
3318
|
+
payload?: string;
|
|
2916
3319
|
/**
|
|
2917
|
-
*
|
|
3320
|
+
* Minimum number of signatures required to consume this output.
|
|
2918
3321
|
*/
|
|
2919
|
-
|
|
3322
|
+
threshold: number;
|
|
2920
3323
|
/**
|
|
2921
|
-
*
|
|
3324
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
2922
3325
|
*/
|
|
2923
|
-
|
|
3326
|
+
timestamp: number;
|
|
2924
3327
|
/**
|
|
2925
|
-
*
|
|
3328
|
+
* Type of output.
|
|
2926
3329
|
*/
|
|
2927
|
-
|
|
3330
|
+
utxoType: string;
|
|
2928
3331
|
};
|
|
2929
3332
|
|
|
2930
3333
|
type CChainExportTransaction = {
|
|
@@ -2951,11 +3354,11 @@ type CChainExportTransaction = {
|
|
|
2951
3354
|
/**
|
|
2952
3355
|
* Assets unlocked by inputs of this transaction.
|
|
2953
3356
|
*/
|
|
2954
|
-
amountUnlocked: Array<
|
|
3357
|
+
amountUnlocked: Array<AssetAmount>;
|
|
2955
3358
|
/**
|
|
2956
3359
|
* Assets created by outputs of this transaction.
|
|
2957
3360
|
*/
|
|
2958
|
-
amountCreated: Array<
|
|
3361
|
+
amountCreated: Array<AssetAmount>;
|
|
2959
3362
|
/**
|
|
2960
3363
|
* Source chain for an atomic transaction.
|
|
2961
3364
|
*/
|
|
@@ -2986,9 +3389,9 @@ type EVMOutput = {
|
|
|
2986
3389
|
*/
|
|
2987
3390
|
toAddress: string;
|
|
2988
3391
|
/**
|
|
2989
|
-
*
|
|
3392
|
+
* AssetAmount details for the asset being transferred.
|
|
2990
3393
|
*/
|
|
2991
|
-
asset:
|
|
3394
|
+
asset: AssetAmount;
|
|
2992
3395
|
};
|
|
2993
3396
|
|
|
2994
3397
|
type CChainImportTransaction = {
|
|
@@ -3015,11 +3418,11 @@ type CChainImportTransaction = {
|
|
|
3015
3418
|
/**
|
|
3016
3419
|
* Assets unlocked by inputs of this transaction.
|
|
3017
3420
|
*/
|
|
3018
|
-
amountUnlocked: Array<
|
|
3421
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3019
3422
|
/**
|
|
3020
3423
|
* Assets created by outputs of this transaction.
|
|
3021
3424
|
*/
|
|
3022
|
-
amountCreated: Array<
|
|
3425
|
+
amountCreated: Array<AssetAmount>;
|
|
3023
3426
|
/**
|
|
3024
3427
|
* Source chain for an atomic transaction.
|
|
3025
3428
|
*/
|
|
@@ -3055,16 +3458,20 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3055
3458
|
|
|
3056
3459
|
declare enum PChainTransactionType {
|
|
3057
3460
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3058
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3059
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3060
3461
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3061
|
-
|
|
3062
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3462
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3063
3463
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3064
3464
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3065
3465
|
IMPORT_TX = "ImportTx",
|
|
3066
3466
|
EXPORT_TX = "ExportTx",
|
|
3067
3467
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3468
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3469
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3470
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3471
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3472
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3473
|
+
BASE_TX = "BaseTx",
|
|
3474
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3068
3475
|
UNKNOWN = "UNKNOWN"
|
|
3069
3476
|
}
|
|
3070
3477
|
|
|
@@ -3075,29 +3482,48 @@ declare enum UtxoType {
|
|
|
3075
3482
|
|
|
3076
3483
|
type PChainUtxo = {
|
|
3077
3484
|
/**
|
|
3078
|
-
*
|
|
3485
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3079
3486
|
*/
|
|
3080
3487
|
addresses: Array<string>;
|
|
3488
|
+
asset: AssetAmount;
|
|
3489
|
+
/**
|
|
3490
|
+
* Blockchain ID on which this output is consumed on.
|
|
3491
|
+
*/
|
|
3492
|
+
consumedOnChainId: string;
|
|
3493
|
+
/**
|
|
3494
|
+
* Transaction ID that consumed this output.
|
|
3495
|
+
*/
|
|
3496
|
+
consumingTxHash?: string;
|
|
3497
|
+
/**
|
|
3498
|
+
* Blockchain ID on which this output is created on.
|
|
3499
|
+
*/
|
|
3500
|
+
createdOnChainId: string;
|
|
3501
|
+
/**
|
|
3502
|
+
* UTXO ID for this output.
|
|
3503
|
+
*/
|
|
3081
3504
|
utxoId: string;
|
|
3082
|
-
|
|
3083
|
-
|
|
3505
|
+
/**
|
|
3506
|
+
* @deprecated
|
|
3507
|
+
*/
|
|
3508
|
+
amount: string;
|
|
3509
|
+
/**
|
|
3510
|
+
* @deprecated
|
|
3511
|
+
*/
|
|
3512
|
+
assetId: string;
|
|
3084
3513
|
blockNumber: string;
|
|
3085
3514
|
blockTimestamp: number;
|
|
3086
|
-
consumingTxHash?: string;
|
|
3087
|
-
consumingBlockTimestamp?: number;
|
|
3088
3515
|
consumingBlockNumber?: string;
|
|
3089
|
-
|
|
3090
|
-
utxoType: UtxoType;
|
|
3091
|
-
amount: string;
|
|
3092
|
-
stakeableLocktime?: number;
|
|
3516
|
+
consumingBlockTimestamp?: number;
|
|
3093
3517
|
platformLocktime?: number;
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3518
|
+
outputIndex: number;
|
|
3519
|
+
rewardType?: RewardType;
|
|
3520
|
+
stakeableLocktime?: number;
|
|
3097
3521
|
staked?: boolean;
|
|
3098
|
-
|
|
3522
|
+
threshold?: number;
|
|
3523
|
+
txHash: string;
|
|
3099
3524
|
utxoEndTimestamp?: number;
|
|
3100
|
-
|
|
3525
|
+
utxoStartTimestamp?: number;
|
|
3526
|
+
utxoType: UtxoType;
|
|
3101
3527
|
};
|
|
3102
3528
|
|
|
3103
3529
|
type PChainTransaction = {
|
|
@@ -3123,17 +3549,17 @@ type PChainTransaction = {
|
|
|
3123
3549
|
*/
|
|
3124
3550
|
destinationChain?: string;
|
|
3125
3551
|
/**
|
|
3126
|
-
* A list of objects containing P-chain Asset
|
|
3552
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3127
3553
|
*/
|
|
3128
|
-
value: Array<
|
|
3554
|
+
value: Array<AssetAmount>;
|
|
3129
3555
|
/**
|
|
3130
|
-
* A list of objects containing P-chain Asset
|
|
3556
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID.
|
|
3131
3557
|
*/
|
|
3132
|
-
amountBurned: Array<
|
|
3558
|
+
amountBurned: Array<AssetAmount>;
|
|
3133
3559
|
/**
|
|
3134
|
-
* A list of objects containing P-chain Asset
|
|
3560
|
+
* A list of objects containing P-chain Asset basic info and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3135
3561
|
*/
|
|
3136
|
-
amountStaked: Array<
|
|
3562
|
+
amountStaked: Array<AssetAmount>;
|
|
3137
3563
|
/**
|
|
3138
3564
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3139
3565
|
*/
|
|
@@ -3159,11 +3585,16 @@ type PChainTransaction = {
|
|
|
3159
3585
|
*/
|
|
3160
3586
|
estimatedReward?: string;
|
|
3161
3587
|
rewardTxHash?: string;
|
|
3588
|
+
rewardAddresses?: Array<string>;
|
|
3162
3589
|
memo?: string;
|
|
3163
3590
|
/**
|
|
3164
3591
|
* Present for RewardValidatorTx
|
|
3165
3592
|
*/
|
|
3166
3593
|
stakingTxHash?: string;
|
|
3594
|
+
/**
|
|
3595
|
+
* Subnet owner details for the CreateSubnetTx or TransferSubnetOwnershipTx
|
|
3596
|
+
*/
|
|
3597
|
+
subnetOwnershipInfo?: SubnetOwnershipInfo;
|
|
3167
3598
|
};
|
|
3168
3599
|
|
|
3169
3600
|
type ListPChainTransactionsResponse = {
|
|
@@ -3175,6 +3606,18 @@ type ListPChainTransactionsResponse = {
|
|
|
3175
3606
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3176
3607
|
};
|
|
3177
3608
|
|
|
3609
|
+
/**
|
|
3610
|
+
* Type of transaction.
|
|
3611
|
+
*/
|
|
3612
|
+
declare enum XChainTransactionType {
|
|
3613
|
+
BASE_TX = "BaseTx",
|
|
3614
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3615
|
+
OPERATION_TX = "OperationTx",
|
|
3616
|
+
IMPORT_TX = "ImportTx",
|
|
3617
|
+
EXPORT_TX = "ExportTx",
|
|
3618
|
+
UNKNOWN = "UNKNOWN"
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3178
3621
|
type XChainLinearTransaction = {
|
|
3179
3622
|
/**
|
|
3180
3623
|
* Unique ID for this transaction.
|
|
@@ -3188,10 +3631,7 @@ type XChainLinearTransaction = {
|
|
|
3188
3631
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3189
3632
|
*/
|
|
3190
3633
|
timestamp: number;
|
|
3191
|
-
|
|
3192
|
-
* Type of transaction.
|
|
3193
|
-
*/
|
|
3194
|
-
txType: string;
|
|
3634
|
+
txType: XChainTransactionType;
|
|
3195
3635
|
/**
|
|
3196
3636
|
* Hex encoded memo bytes for this transaction.
|
|
3197
3637
|
*/
|
|
@@ -3201,11 +3641,11 @@ type XChainLinearTransaction = {
|
|
|
3201
3641
|
/**
|
|
3202
3642
|
* Assets unlocked by inputs of this transaction.
|
|
3203
3643
|
*/
|
|
3204
|
-
amountUnlocked: Array<
|
|
3644
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3205
3645
|
/**
|
|
3206
3646
|
* Assets created by outputs of this transaction.
|
|
3207
3647
|
*/
|
|
3208
|
-
amountCreated: Array<
|
|
3648
|
+
amountCreated: Array<AssetAmount>;
|
|
3209
3649
|
/**
|
|
3210
3650
|
* Source chain for an atomic transaction.
|
|
3211
3651
|
*/
|
|
@@ -3215,7 +3655,7 @@ type XChainLinearTransaction = {
|
|
|
3215
3655
|
*/
|
|
3216
3656
|
destinationChain?: string;
|
|
3217
3657
|
/**
|
|
3218
|
-
*
|
|
3658
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3219
3659
|
*/
|
|
3220
3660
|
assetCreated?: XChainAssetDetails;
|
|
3221
3661
|
/**
|
|
@@ -3265,10 +3705,7 @@ type XChainNonLinearTransaction = {
|
|
|
3265
3705
|
* Latest timestamp in seconds this transaction was accepted out of the same transaction accepted in other vertices.
|
|
3266
3706
|
*/
|
|
3267
3707
|
timestamp: number;
|
|
3268
|
-
|
|
3269
|
-
* Type of transaction.
|
|
3270
|
-
*/
|
|
3271
|
-
txType: string;
|
|
3708
|
+
txType: XChainTransactionType;
|
|
3272
3709
|
/**
|
|
3273
3710
|
* Hex encoded memo bytes for this transaction.
|
|
3274
3711
|
*/
|
|
@@ -3278,11 +3715,11 @@ type XChainNonLinearTransaction = {
|
|
|
3278
3715
|
/**
|
|
3279
3716
|
* Assets unlocked by inputs of this transaction.
|
|
3280
3717
|
*/
|
|
3281
|
-
amountUnlocked: Array<
|
|
3718
|
+
amountUnlocked: Array<AssetAmount>;
|
|
3282
3719
|
/**
|
|
3283
3720
|
* Assets created by outputs of this transaction.
|
|
3284
3721
|
*/
|
|
3285
|
-
amountCreated: Array<
|
|
3722
|
+
amountCreated: Array<AssetAmount>;
|
|
3286
3723
|
/**
|
|
3287
3724
|
* Source chain for an atomic transaction.
|
|
3288
3725
|
*/
|
|
@@ -3292,7 +3729,7 @@ type XChainNonLinearTransaction = {
|
|
|
3292
3729
|
*/
|
|
3293
3730
|
destinationChain?: string;
|
|
3294
3731
|
/**
|
|
3295
|
-
*
|
|
3732
|
+
* AssetAmount details of the asset created in CreateAssetTx
|
|
3296
3733
|
*/
|
|
3297
3734
|
assetCreated?: XChainAssetDetails;
|
|
3298
3735
|
/**
|
|
@@ -3326,18 +3763,21 @@ declare enum PChainId {
|
|
|
3326
3763
|
|
|
3327
3764
|
declare enum PrimaryNetworkTxType {
|
|
3328
3765
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3329
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3330
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3331
3766
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3332
|
-
|
|
3333
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3767
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3334
3768
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3335
3769
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3336
3770
|
IMPORT_TX = "ImportTx",
|
|
3337
3771
|
EXPORT_TX = "ExportTx",
|
|
3338
3772
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3339
|
-
|
|
3773
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3774
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3775
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3776
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3777
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3340
3778
|
BASE_TX = "BaseTx",
|
|
3779
|
+
TRANSFER_SUBNET_OWNERSHIP_TX = "TransferSubnetOwnershipTx",
|
|
3780
|
+
UNKNOWN = "UNKNOWN",
|
|
3341
3781
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3342
3782
|
OPERATION_TX = "OperationTx"
|
|
3343
3783
|
}
|
|
@@ -3369,13 +3809,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3369
3809
|
* List latest transactions
|
|
3370
3810
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3371
3811
|
*
|
|
3372
|
-
* Transactions are filterable by addresses.
|
|
3812
|
+
* 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.
|
|
3373
3813
|
*
|
|
3374
3814
|
* 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.
|
|
3375
3815
|
* @returns any
|
|
3376
3816
|
* @throws ApiError
|
|
3377
3817
|
*/
|
|
3378
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3818
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3379
3819
|
/**
|
|
3380
3820
|
* A primary network blockchain id or alias.
|
|
3381
3821
|
*/
|
|
@@ -3400,14 +3840,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3400
3840
|
* Query param for retrieving items before a specific timestamp.
|
|
3401
3841
|
*/
|
|
3402
3842
|
endTimestamp?: number;
|
|
3403
|
-
/**
|
|
3404
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3405
|
-
*/
|
|
3406
|
-
pageSize?: number;
|
|
3407
3843
|
/**
|
|
3408
3844
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3409
3845
|
*/
|
|
3410
3846
|
pageToken?: string;
|
|
3847
|
+
/**
|
|
3848
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3849
|
+
*/
|
|
3850
|
+
pageSize?: number;
|
|
3411
3851
|
/**
|
|
3412
3852
|
* 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.
|
|
3413
3853
|
*/
|
|
@@ -3419,7 +3859,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3419
3859
|
* @returns ListPChainTransactionsResponse
|
|
3420
3860
|
* @throws ApiError
|
|
3421
3861
|
*/
|
|
3422
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3862
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3423
3863
|
/**
|
|
3424
3864
|
* A primary network blockchain id or alias.
|
|
3425
3865
|
*/
|
|
@@ -3444,14 +3884,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3444
3884
|
* Query param for retrieving items before a specific timestamp.
|
|
3445
3885
|
*/
|
|
3446
3886
|
endTimestamp?: number;
|
|
3447
|
-
/**
|
|
3448
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3449
|
-
*/
|
|
3450
|
-
pageSize?: number;
|
|
3451
3887
|
/**
|
|
3452
3888
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3453
3889
|
*/
|
|
3454
3890
|
pageToken?: string;
|
|
3891
|
+
/**
|
|
3892
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3893
|
+
*/
|
|
3894
|
+
pageSize?: number;
|
|
3455
3895
|
/**
|
|
3456
3896
|
* 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.
|
|
3457
3897
|
*/
|
|
@@ -3463,7 +3903,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3463
3903
|
* @returns ListXChainTransactionsResponse
|
|
3464
3904
|
* @throws ApiError
|
|
3465
3905
|
*/
|
|
3466
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3906
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3467
3907
|
/**
|
|
3468
3908
|
* A primary network blockchain id or alias.
|
|
3469
3909
|
*/
|
|
@@ -3488,14 +3928,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3488
3928
|
* Query param for retrieving items before a specific timestamp.
|
|
3489
3929
|
*/
|
|
3490
3930
|
endTimestamp?: number;
|
|
3491
|
-
/**
|
|
3492
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3493
|
-
*/
|
|
3494
|
-
pageSize?: number;
|
|
3495
3931
|
/**
|
|
3496
3932
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3497
3933
|
*/
|
|
3498
3934
|
pageToken?: string;
|
|
3935
|
+
/**
|
|
3936
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3937
|
+
*/
|
|
3938
|
+
pageSize?: number;
|
|
3499
3939
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3500
3940
|
}
|
|
3501
3941
|
|
|
@@ -3526,7 +3966,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3526
3966
|
* @returns any
|
|
3527
3967
|
* @throws ApiError
|
|
3528
3968
|
*/
|
|
3529
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
3969
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3530
3970
|
/**
|
|
3531
3971
|
* A primary network blockchain id or alias.
|
|
3532
3972
|
*/
|
|
@@ -3539,14 +3979,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3539
3979
|
* 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".
|
|
3540
3980
|
*/
|
|
3541
3981
|
addresses?: string;
|
|
3542
|
-
/**
|
|
3543
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3544
|
-
*/
|
|
3545
|
-
pageSize?: number;
|
|
3546
3982
|
/**
|
|
3547
3983
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3548
3984
|
*/
|
|
3549
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;
|
|
3550
3990
|
/**
|
|
3551
3991
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3552
3992
|
*/
|
|
@@ -3591,7 +4031,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3591
4031
|
* @returns ListXChainVerticesResponse
|
|
3592
4032
|
* @throws ApiError
|
|
3593
4033
|
*/
|
|
3594
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4034
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3595
4035
|
/**
|
|
3596
4036
|
* A primary network blockchain id or alias.
|
|
3597
4037
|
*/
|
|
@@ -3600,14 +4040,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3600
4040
|
* Either mainnet or a testnet.
|
|
3601
4041
|
*/
|
|
3602
4042
|
network: Network;
|
|
3603
|
-
/**
|
|
3604
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3605
|
-
*/
|
|
3606
|
-
pageSize?: number;
|
|
3607
4043
|
/**
|
|
3608
4044
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3609
4045
|
*/
|
|
3610
4046
|
pageToken?: string;
|
|
4047
|
+
/**
|
|
4048
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4049
|
+
*/
|
|
4050
|
+
pageSize?: number;
|
|
3611
4051
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3612
4052
|
/**
|
|
3613
4053
|
* Get vertex
|
|
@@ -3635,7 +4075,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3635
4075
|
* @returns ListXChainVerticesResponse
|
|
3636
4076
|
* @throws ApiError
|
|
3637
4077
|
*/
|
|
3638
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4078
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3639
4079
|
/**
|
|
3640
4080
|
* The height of a vertex.
|
|
3641
4081
|
*/
|
|
@@ -3648,26 +4088,446 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3648
4088
|
* Either mainnet or a testnet.
|
|
3649
4089
|
*/
|
|
3650
4090
|
network: Network;
|
|
4091
|
+
/**
|
|
4092
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4093
|
+
*/
|
|
4094
|
+
pageToken?: string;
|
|
4095
|
+
/**
|
|
4096
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4097
|
+
*/
|
|
4098
|
+
pageSize?: number;
|
|
4099
|
+
/**
|
|
4100
|
+
* 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.
|
|
4101
|
+
*/
|
|
4102
|
+
sortOrder?: SortOrder;
|
|
4103
|
+
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
4104
|
+
}
|
|
4105
|
+
|
|
4106
|
+
type RpcErrorDto = {
|
|
4107
|
+
code: number;
|
|
4108
|
+
message: string;
|
|
4109
|
+
data?: Record<string, any>;
|
|
4110
|
+
};
|
|
4111
|
+
|
|
4112
|
+
type RpcErrorResponseDto = {
|
|
4113
|
+
jsonrpc: string;
|
|
4114
|
+
id?: (string | number);
|
|
4115
|
+
error: RpcErrorDto;
|
|
4116
|
+
};
|
|
4117
|
+
|
|
4118
|
+
type RpcRequestBodyDto = {
|
|
4119
|
+
method: string;
|
|
4120
|
+
params?: Record<string, any>;
|
|
4121
|
+
id?: (string | number);
|
|
4122
|
+
jsonrpc?: string;
|
|
4123
|
+
};
|
|
4124
|
+
|
|
4125
|
+
type RpcSuccessResponseDto = {
|
|
4126
|
+
jsonrpc: string;
|
|
4127
|
+
id?: (string | number);
|
|
4128
|
+
result: Record<string, any>;
|
|
4129
|
+
};
|
|
4130
|
+
|
|
4131
|
+
declare class RpcService {
|
|
4132
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4133
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4134
|
+
/**
|
|
4135
|
+
* Calls JSON-RPC method
|
|
4136
|
+
* Calls JSON-RPC method.
|
|
4137
|
+
* @returns any
|
|
4138
|
+
* @throws ApiError
|
|
4139
|
+
*/
|
|
4140
|
+
rpc({ chainId, requestBody, }: {
|
|
4141
|
+
/**
|
|
4142
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
4143
|
+
*/
|
|
4144
|
+
chainId: string;
|
|
4145
|
+
requestBody: (RpcRequestBodyDto | Array<RpcRequestBodyDto>);
|
|
4146
|
+
}): CancelablePromise<(RpcSuccessResponseDto | RpcErrorResponseDto)>;
|
|
4147
|
+
}
|
|
4148
|
+
|
|
4149
|
+
type TeleporterDestinationTransaction = {
|
|
4150
|
+
txHash: string;
|
|
4151
|
+
timestamp: number;
|
|
4152
|
+
gasSpent: string;
|
|
4153
|
+
rewardRedeemer: string;
|
|
4154
|
+
delivererAddress: string;
|
|
4155
|
+
};
|
|
4156
|
+
|
|
4157
|
+
type TeleporterReceipt = {
|
|
4158
|
+
receivedMessageNonce: string;
|
|
4159
|
+
relayerRewardAddress: string;
|
|
4160
|
+
};
|
|
4161
|
+
|
|
4162
|
+
type TeleporterRewardDetails = {
|
|
4163
|
+
/**
|
|
4164
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4165
|
+
*/
|
|
4166
|
+
address: string;
|
|
4167
|
+
/**
|
|
4168
|
+
* The contract name.
|
|
4169
|
+
*/
|
|
4170
|
+
name: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* The contract symbol.
|
|
4173
|
+
*/
|
|
4174
|
+
symbol: string;
|
|
4175
|
+
/**
|
|
4176
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4177
|
+
*/
|
|
4178
|
+
decimals: number;
|
|
4179
|
+
/**
|
|
4180
|
+
* The logo uri for the address.
|
|
4181
|
+
*/
|
|
4182
|
+
logoUri?: string;
|
|
4183
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4184
|
+
/**
|
|
4185
|
+
* The token price, if available.
|
|
4186
|
+
*/
|
|
4187
|
+
price?: Money;
|
|
4188
|
+
value: string;
|
|
4189
|
+
};
|
|
4190
|
+
declare namespace TeleporterRewardDetails {
|
|
4191
|
+
enum ercType {
|
|
4192
|
+
ERC_20 = "ERC-20"
|
|
4193
|
+
}
|
|
4194
|
+
}
|
|
4195
|
+
|
|
4196
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4197
|
+
messageId: string;
|
|
4198
|
+
teleporterContractAddress: string;
|
|
4199
|
+
sourceBlockchainId: string;
|
|
4200
|
+
destinationBlockchainId: string;
|
|
4201
|
+
messageNonce: string;
|
|
4202
|
+
from: string;
|
|
4203
|
+
to: string;
|
|
4204
|
+
data?: string;
|
|
4205
|
+
messageExecuted: boolean;
|
|
4206
|
+
receipts: Array<TeleporterReceipt>;
|
|
4207
|
+
receiptDelivered: boolean;
|
|
4208
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4209
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4210
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4211
|
+
};
|
|
4212
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4213
|
+
enum status {
|
|
4214
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4215
|
+
}
|
|
4216
|
+
}
|
|
4217
|
+
|
|
4218
|
+
type TeleporterSourceTransaction = {
|
|
4219
|
+
txHash: string;
|
|
4220
|
+
timestamp: number;
|
|
4221
|
+
gasSpent: string;
|
|
4222
|
+
};
|
|
4223
|
+
|
|
4224
|
+
type DeliveredTeleporterMessage = {
|
|
4225
|
+
messageId: string;
|
|
4226
|
+
teleporterContractAddress: string;
|
|
4227
|
+
sourceBlockchainId: string;
|
|
4228
|
+
destinationBlockchainId: string;
|
|
4229
|
+
messageNonce: string;
|
|
4230
|
+
from: string;
|
|
4231
|
+
to: string;
|
|
4232
|
+
data?: string;
|
|
4233
|
+
messageExecuted: boolean;
|
|
4234
|
+
receipts: Array<TeleporterReceipt>;
|
|
4235
|
+
receiptDelivered: boolean;
|
|
4236
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4237
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4238
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4239
|
+
status: DeliveredTeleporterMessage.status;
|
|
4240
|
+
};
|
|
4241
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4242
|
+
enum status {
|
|
4243
|
+
DELIVERED = "delivered"
|
|
4244
|
+
}
|
|
4245
|
+
}
|
|
4246
|
+
|
|
4247
|
+
type NextPageToken = {
|
|
4248
|
+
/**
|
|
4249
|
+
* 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.
|
|
4250
|
+
*/
|
|
4251
|
+
nextPageToken?: string;
|
|
4252
|
+
};
|
|
4253
|
+
|
|
4254
|
+
type PendingTeleporterMessage = {
|
|
4255
|
+
messageId: string;
|
|
4256
|
+
teleporterContractAddress: string;
|
|
4257
|
+
sourceBlockchainId: string;
|
|
4258
|
+
destinationBlockchainId: string;
|
|
4259
|
+
messageNonce: string;
|
|
4260
|
+
from: string;
|
|
4261
|
+
to: string;
|
|
4262
|
+
data?: string;
|
|
4263
|
+
messageExecuted: boolean;
|
|
4264
|
+
receipts: Array<TeleporterReceipt>;
|
|
4265
|
+
receiptDelivered: boolean;
|
|
4266
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4267
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4268
|
+
status: PendingTeleporterMessage.status;
|
|
4269
|
+
};
|
|
4270
|
+
declare namespace PendingTeleporterMessage {
|
|
4271
|
+
enum status {
|
|
4272
|
+
PENDING = "pending"
|
|
4273
|
+
}
|
|
4274
|
+
}
|
|
4275
|
+
|
|
4276
|
+
declare class TeleporterService {
|
|
4277
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4278
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4279
|
+
/**
|
|
4280
|
+
* Get a teleporter message
|
|
4281
|
+
* Gets a teleporter message by message ID.
|
|
4282
|
+
* @returns any
|
|
4283
|
+
* @throws ApiError
|
|
4284
|
+
*/
|
|
4285
|
+
getTeleporterMessage({ messageId, }: {
|
|
4286
|
+
/**
|
|
4287
|
+
* The message ID of the teleporter message.
|
|
4288
|
+
*/
|
|
4289
|
+
messageId: string;
|
|
4290
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4291
|
+
/**
|
|
4292
|
+
* List teleporter messages
|
|
4293
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4294
|
+
* @returns any
|
|
4295
|
+
* @throws ApiError
|
|
4296
|
+
*/
|
|
4297
|
+
listTeleporterMessages({ pageToken, pageSize, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4298
|
+
/**
|
|
4299
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4300
|
+
*/
|
|
4301
|
+
pageToken?: string;
|
|
3651
4302
|
/**
|
|
3652
4303
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3653
4304
|
*/
|
|
3654
4305
|
pageSize?: number;
|
|
4306
|
+
/**
|
|
4307
|
+
* The base58 encoded blockchain ID or evm chain ID of the source chain that the teleporter message was sent from.
|
|
4308
|
+
*/
|
|
4309
|
+
sourceBlockchainId?: string;
|
|
4310
|
+
/**
|
|
4311
|
+
* The base58 encoded blockchain ID or evm chain ID of the destination chain that the teleporter message was sent to.
|
|
4312
|
+
*/
|
|
4313
|
+
destinationBlockchainId?: string;
|
|
4314
|
+
/**
|
|
4315
|
+
* The address of the recipient of the teleporter message.
|
|
4316
|
+
*/
|
|
4317
|
+
to?: string;
|
|
4318
|
+
/**
|
|
4319
|
+
* The address of the sender of the teleporter message.
|
|
4320
|
+
*/
|
|
4321
|
+
from?: string;
|
|
4322
|
+
}): CancelablePromise<NextPageToken>;
|
|
4323
|
+
}
|
|
4324
|
+
|
|
4325
|
+
type AddressesChangeRequest = {
|
|
4326
|
+
/**
|
|
4327
|
+
* Ethereum address(es) for the address_activity event type
|
|
4328
|
+
*/
|
|
4329
|
+
addresses: Array<any[]>;
|
|
4330
|
+
};
|
|
4331
|
+
|
|
4332
|
+
type AddressActivityMetadata = {
|
|
4333
|
+
/**
|
|
4334
|
+
* Ethereum address(es) for the address_activity event type
|
|
4335
|
+
*/
|
|
4336
|
+
addresses: Array<any[]>;
|
|
4337
|
+
/**
|
|
4338
|
+
* Array of hexadecimal strings of the event signatures.
|
|
4339
|
+
*/
|
|
4340
|
+
eventSignatures?: Array<string>;
|
|
4341
|
+
};
|
|
4342
|
+
|
|
4343
|
+
declare enum EventType {
|
|
4344
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4347
|
+
declare enum WebhookStatusType {
|
|
4348
|
+
ACTIVE = "active",
|
|
4349
|
+
INACTIVE = "inactive"
|
|
4350
|
+
}
|
|
4351
|
+
|
|
4352
|
+
type WebhookResponse = {
|
|
4353
|
+
id: string;
|
|
4354
|
+
eventType: EventType;
|
|
4355
|
+
metadata: AddressActivityMetadata;
|
|
4356
|
+
/**
|
|
4357
|
+
* Whether to include traces in the webhook payload.
|
|
4358
|
+
*/
|
|
4359
|
+
includeInternalTxs?: boolean;
|
|
4360
|
+
/**
|
|
4361
|
+
* Whether to include logs in the webhook payload.
|
|
4362
|
+
*/
|
|
4363
|
+
includeLogs?: boolean;
|
|
4364
|
+
url: string;
|
|
4365
|
+
chainId: string;
|
|
4366
|
+
status: WebhookStatusType;
|
|
4367
|
+
createdAt: number;
|
|
4368
|
+
name: string;
|
|
4369
|
+
description: string;
|
|
4370
|
+
};
|
|
4371
|
+
|
|
4372
|
+
type ListWebhooksResponse = {
|
|
4373
|
+
/**
|
|
4374
|
+
* 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.
|
|
4375
|
+
*/
|
|
4376
|
+
nextPageToken?: string;
|
|
4377
|
+
webhooks: Array<WebhookResponse>;
|
|
4378
|
+
};
|
|
4379
|
+
|
|
4380
|
+
type RegisterWebhookRequest = {
|
|
4381
|
+
url: string;
|
|
4382
|
+
chainId: string;
|
|
4383
|
+
eventType: EventType;
|
|
4384
|
+
metadata: AddressActivityMetadata;
|
|
4385
|
+
/**
|
|
4386
|
+
* Whether to include traces in the webhook payload.
|
|
4387
|
+
*/
|
|
4388
|
+
includeInternalTxs?: boolean;
|
|
4389
|
+
/**
|
|
4390
|
+
* Whether to include logs in the webhook payload.
|
|
4391
|
+
*/
|
|
4392
|
+
includeLogs?: boolean;
|
|
4393
|
+
};
|
|
4394
|
+
|
|
4395
|
+
type SharedSecretsResponse = {
|
|
4396
|
+
secret: string;
|
|
4397
|
+
};
|
|
4398
|
+
|
|
4399
|
+
type UpdateWebhookRequest = {
|
|
4400
|
+
name?: string;
|
|
4401
|
+
description?: string;
|
|
4402
|
+
url?: string;
|
|
4403
|
+
status?: WebhookStatusType;
|
|
4404
|
+
includeInternalTxs?: boolean;
|
|
4405
|
+
includeLogs?: boolean;
|
|
4406
|
+
};
|
|
4407
|
+
|
|
4408
|
+
declare enum WebhookStatus {
|
|
4409
|
+
ACTIVE = "active",
|
|
4410
|
+
INACTIVE = "inactive"
|
|
4411
|
+
}
|
|
4412
|
+
|
|
4413
|
+
declare class WebhooksService {
|
|
4414
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4415
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4416
|
+
/**
|
|
4417
|
+
* Register a webhook
|
|
4418
|
+
* Registers a new webhook.
|
|
4419
|
+
* @returns WebhookResponse
|
|
4420
|
+
* @throws ApiError
|
|
4421
|
+
*/
|
|
4422
|
+
registerWebhook({ requestBody, }: {
|
|
4423
|
+
requestBody: RegisterWebhookRequest;
|
|
4424
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4425
|
+
/**
|
|
4426
|
+
* List webhooks
|
|
4427
|
+
* Lists webhooks for the user.
|
|
4428
|
+
* @returns ListWebhooksResponse
|
|
4429
|
+
* @throws ApiError
|
|
4430
|
+
*/
|
|
4431
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
3655
4432
|
/**
|
|
3656
4433
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3657
4434
|
*/
|
|
3658
4435
|
pageToken?: string;
|
|
3659
4436
|
/**
|
|
3660
|
-
* The
|
|
4437
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3661
4438
|
*/
|
|
3662
|
-
|
|
3663
|
-
|
|
4439
|
+
pageSize?: number;
|
|
4440
|
+
/**
|
|
4441
|
+
* 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.
|
|
4442
|
+
*/
|
|
4443
|
+
status?: WebhookStatus;
|
|
4444
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
4445
|
+
/**
|
|
4446
|
+
* Get a webhook by ID
|
|
4447
|
+
* Retrieves a webhook by ID.
|
|
4448
|
+
* @returns WebhookResponse
|
|
4449
|
+
* @throws ApiError
|
|
4450
|
+
*/
|
|
4451
|
+
getWebhook({ id, }: {
|
|
4452
|
+
/**
|
|
4453
|
+
* The webhook identifier.
|
|
4454
|
+
*/
|
|
4455
|
+
id: string;
|
|
4456
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4457
|
+
/**
|
|
4458
|
+
* Deactivate a webhook
|
|
4459
|
+
* Deactivates a webhook by ID.
|
|
4460
|
+
* @returns WebhookResponse
|
|
4461
|
+
* @throws ApiError
|
|
4462
|
+
*/
|
|
4463
|
+
deactivateWebhook({ id, }: {
|
|
4464
|
+
/**
|
|
4465
|
+
* The webhook identifier.
|
|
4466
|
+
*/
|
|
4467
|
+
id: string;
|
|
4468
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4469
|
+
/**
|
|
4470
|
+
* Update a webhook
|
|
4471
|
+
* Updates an existing webhook.
|
|
4472
|
+
* @returns WebhookResponse
|
|
4473
|
+
* @throws ApiError
|
|
4474
|
+
*/
|
|
4475
|
+
updateWebhook({ id, requestBody, }: {
|
|
4476
|
+
/**
|
|
4477
|
+
* The webhook identifier.
|
|
4478
|
+
*/
|
|
4479
|
+
id: string;
|
|
4480
|
+
requestBody: UpdateWebhookRequest;
|
|
4481
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4482
|
+
/**
|
|
4483
|
+
* Generate a shared secret
|
|
4484
|
+
* Generates a new shared secret.
|
|
4485
|
+
* @returns SharedSecretsResponse
|
|
4486
|
+
* @throws ApiError
|
|
4487
|
+
*/
|
|
4488
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4489
|
+
/**
|
|
4490
|
+
* Get a shared secret
|
|
4491
|
+
* Get a previously generated shared secret.
|
|
4492
|
+
* @returns SharedSecretsResponse
|
|
4493
|
+
* @throws ApiError
|
|
4494
|
+
*/
|
|
4495
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
4496
|
+
/**
|
|
4497
|
+
* Add address(es) to a webhook
|
|
4498
|
+
* Adding address(es) to a given webhook.
|
|
4499
|
+
* @returns WebhookResponse
|
|
4500
|
+
* @throws ApiError
|
|
4501
|
+
*/
|
|
4502
|
+
addAddressesToWebhook({ id, requestBody, }: {
|
|
4503
|
+
/**
|
|
4504
|
+
* The webhook identifier.
|
|
4505
|
+
*/
|
|
4506
|
+
id: string;
|
|
4507
|
+
requestBody: AddressesChangeRequest;
|
|
4508
|
+
}): CancelablePromise<WebhookResponse>;
|
|
4509
|
+
/**
|
|
4510
|
+
* Remove address(es) from a webhook
|
|
4511
|
+
* Removing address(es) from a given webhook.
|
|
4512
|
+
* @returns WebhookResponse
|
|
4513
|
+
* @throws ApiError
|
|
4514
|
+
*/
|
|
4515
|
+
removeAddressesFromWebhook({ id, requestBody, }: {
|
|
4516
|
+
/**
|
|
4517
|
+
* The webhook identifier.
|
|
4518
|
+
*/
|
|
4519
|
+
id: string;
|
|
4520
|
+
requestBody: AddressesChangeRequest;
|
|
4521
|
+
}): CancelablePromise<WebhookResponse>;
|
|
3664
4522
|
}
|
|
3665
4523
|
|
|
3666
4524
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3667
4525
|
declare class Glacier {
|
|
4526
|
+
readonly default: DefaultService;
|
|
3668
4527
|
readonly evmBalances: EvmBalancesService;
|
|
3669
4528
|
readonly evmBlocks: EvmBlocksService;
|
|
3670
4529
|
readonly evmChains: EvmChainsService;
|
|
4530
|
+
readonly evmContracts: EvmContractsService;
|
|
3671
4531
|
readonly evmTransactions: EvmTransactionsService;
|
|
3672
4532
|
readonly healthCheck: HealthCheckService;
|
|
3673
4533
|
readonly nfTs: NfTsService;
|
|
@@ -3679,6 +4539,9 @@ declare class Glacier {
|
|
|
3679
4539
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3680
4540
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3681
4541
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4542
|
+
readonly rpc: RpcService;
|
|
4543
|
+
readonly teleporter: TeleporterService;
|
|
4544
|
+
readonly webhooks: WebhooksService;
|
|
3682
4545
|
readonly request: BaseHttpRequest;
|
|
3683
4546
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3684
4547
|
}
|
|
@@ -3700,4 +4563,4 @@ declare class ApiError extends Error {
|
|
|
3700
4563
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3701
4564
|
}
|
|
3702
4565
|
|
|
3703
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError,
|
|
4566
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, AddressesChangeRequest, AggregatedAssetAmount, ApiError, AssetAmount, AssetWithPriceInfo, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, ContractSubmissionBody, ContractSubmissionErc1155, ContractSubmissionErc20, ContractSubmissionErc721, ContractSubmissionUnknown, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, 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, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, 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, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, RpcErrorDto, RpcErrorResponseDto, RpcRequestBodyDto, RpcService, RpcSuccessResponseDto, SharedSecretsResponse, 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 };
|