@avalabs/glacier-sdk 2.8.0-canary.80115cd.0 → 2.8.0-canary.87da812.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 +1092 -558
- package/dist/index.js +417 -163
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +30 -10
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.js +11 -6
- package/esm/generated/core/request.js +14 -31
- 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/Asset.d.ts +3 -1
- package/esm/generated/models/AssetWithPriceInfo.d.ts +35 -0
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/models/ChainInfo.d.ts +1 -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/Erc20Contract.d.ts +1 -1
- package/esm/generated/models/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetChainResponse.d.ts +1 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -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/ListValidatorDetailsResponse.d.ts +3 -2
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/PChainBalance.d.ts +7 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +24 -0
- package/esm/generated/models/PChainTransaction.d.ts +5 -4
- package/esm/generated/models/PChainTransactionType.d.ts +6 -4
- package/esm/generated/models/PChainTransactionType.js +6 -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 +2 -2
- package/esm/generated/models/PendingValidatorDetails.d.ts +9 -4
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +7 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +6 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +7 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -4
- package/esm/generated/models/PrimaryNetworkTxType.js +6 -4
- package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -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/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/Utxo.d.ts +28 -28
- 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 +17 -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/XChainAssetBalance.d.ts +3 -1
- package/esm/generated/models/XChainAssetDetails.d.ts +6 -3
- package/esm/generated/models/XChainLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -1
- package/esm/generated/models/XChainTransactionType.d.ts +10 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +67 -0
- package/esm/generated/services/DefaultService.js +55 -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 +1 -1
- 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 +20 -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/index.d.ts +23 -1
- package/esm/index.js +19 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,123 @@ declare abstract class BaseHttpRequest {
|
|
|
60
60
|
abstract request<T>(options: ApiRequestOptions): CancelablePromise<T>;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
type AddressActivityMetadata = {
|
|
64
|
+
/**
|
|
65
|
+
* Ethereum address for the address_activity event type
|
|
66
|
+
*/
|
|
67
|
+
address: string;
|
|
68
|
+
/**
|
|
69
|
+
* Array of hexadecimal strings of the event signatures.
|
|
70
|
+
*/
|
|
71
|
+
eventSignatures?: Array<string>;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
declare enum EventType {
|
|
75
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
declare enum WebhookStatusType {
|
|
79
|
+
ACTIVE = "active",
|
|
80
|
+
INACTIVE = "inactive"
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
type WebhookResponse = {
|
|
84
|
+
id: string;
|
|
85
|
+
eventType: EventType;
|
|
86
|
+
metadata: AddressActivityMetadata;
|
|
87
|
+
url: string;
|
|
88
|
+
chainId: string;
|
|
89
|
+
status: WebhookStatusType;
|
|
90
|
+
createdAt: number;
|
|
91
|
+
name: string;
|
|
92
|
+
description: string;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
type ListWebhooksResponse = {
|
|
96
|
+
/**
|
|
97
|
+
* 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.
|
|
98
|
+
*/
|
|
99
|
+
nextPageToken?: string;
|
|
100
|
+
webhooks: Array<WebhookResponse>;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
type RegisterWebhookRequest = {
|
|
104
|
+
url: string;
|
|
105
|
+
chainId: string;
|
|
106
|
+
/**
|
|
107
|
+
* The type of event for the webhook
|
|
108
|
+
*/
|
|
109
|
+
eventType: EventType;
|
|
110
|
+
metadata: AddressActivityMetadata;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
type SharedSecretsResponse = {
|
|
114
|
+
secret: string;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
declare enum WebhookStatus {
|
|
118
|
+
ACTIVE = "active",
|
|
119
|
+
INACTIVE = "inactive"
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
declare class DefaultService {
|
|
123
|
+
readonly httpRequest: BaseHttpRequest;
|
|
124
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
125
|
+
/**
|
|
126
|
+
* @returns any
|
|
127
|
+
* @throws ApiError
|
|
128
|
+
*/
|
|
129
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
130
|
+
/**
|
|
131
|
+
* Register a webhook
|
|
132
|
+
* Registers a new webhook.
|
|
133
|
+
* @returns WebhookResponse
|
|
134
|
+
* @throws ApiError
|
|
135
|
+
*/
|
|
136
|
+
registerWebhook({ requestBody, }: {
|
|
137
|
+
requestBody: RegisterWebhookRequest;
|
|
138
|
+
}): CancelablePromise<WebhookResponse>;
|
|
139
|
+
/**
|
|
140
|
+
* List webhooks
|
|
141
|
+
* Lists webhooks for the user.
|
|
142
|
+
* @returns ListWebhooksResponse
|
|
143
|
+
* @throws ApiError
|
|
144
|
+
*/
|
|
145
|
+
listWebhooks({ pageToken, pageSize, status, }: {
|
|
146
|
+
/**
|
|
147
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
148
|
+
*/
|
|
149
|
+
pageToken?: string;
|
|
150
|
+
/**
|
|
151
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
152
|
+
*/
|
|
153
|
+
pageSize?: number;
|
|
154
|
+
/**
|
|
155
|
+
* 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.
|
|
156
|
+
*/
|
|
157
|
+
status?: WebhookStatus;
|
|
158
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
159
|
+
/**
|
|
160
|
+
* Deactivate a webhook
|
|
161
|
+
* Deactivates a webhook by ID.
|
|
162
|
+
* @returns WebhookResponse
|
|
163
|
+
* @throws ApiError
|
|
164
|
+
*/
|
|
165
|
+
deactivateWebhook({ id, }: {
|
|
166
|
+
/**
|
|
167
|
+
* The webhook identifier.
|
|
168
|
+
*/
|
|
169
|
+
id: string;
|
|
170
|
+
}): CancelablePromise<WebhookResponse>;
|
|
171
|
+
/**
|
|
172
|
+
* Generate a shared secret
|
|
173
|
+
* Generates a new shared secret.
|
|
174
|
+
* @returns SharedSecretsResponse
|
|
175
|
+
* @throws ApiError
|
|
176
|
+
*/
|
|
177
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
178
|
+
}
|
|
179
|
+
|
|
63
180
|
declare enum CurrencyCode {
|
|
64
181
|
USD = "usd",
|
|
65
182
|
EUR = "eur",
|
|
@@ -335,7 +452,7 @@ declare class EvmBalancesService {
|
|
|
335
452
|
*/
|
|
336
453
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
337
454
|
/**
|
|
338
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
455
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
339
456
|
*/
|
|
340
457
|
chainId: string;
|
|
341
458
|
/**
|
|
@@ -361,9 +478,9 @@ declare class EvmBalancesService {
|
|
|
361
478
|
* @returns ListErc20BalancesResponse
|
|
362
479
|
* @throws ApiError
|
|
363
480
|
*/
|
|
364
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
481
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
365
482
|
/**
|
|
366
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
483
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
367
484
|
*/
|
|
368
485
|
chainId: string;
|
|
369
486
|
/**
|
|
@@ -374,14 +491,14 @@ declare class EvmBalancesService {
|
|
|
374
491
|
* The block number, if not defined the block number will be the latest block.
|
|
375
492
|
*/
|
|
376
493
|
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
494
|
/**
|
|
382
495
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
383
496
|
*/
|
|
384
497
|
pageToken?: string;
|
|
498
|
+
/**
|
|
499
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
500
|
+
*/
|
|
501
|
+
pageSize?: number;
|
|
385
502
|
/**
|
|
386
503
|
* A comma separated list of contract addresses to filter by.
|
|
387
504
|
*/
|
|
@@ -399,23 +516,23 @@ declare class EvmBalancesService {
|
|
|
399
516
|
* @returns ListErc721BalancesResponse
|
|
400
517
|
* @throws ApiError
|
|
401
518
|
*/
|
|
402
|
-
listErc721Balances({ chainId, address,
|
|
519
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
403
520
|
/**
|
|
404
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
521
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
405
522
|
*/
|
|
406
523
|
chainId: string;
|
|
407
524
|
/**
|
|
408
525
|
* A wallet address.
|
|
409
526
|
*/
|
|
410
527
|
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
528
|
/**
|
|
416
529
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
417
530
|
*/
|
|
418
531
|
pageToken?: string;
|
|
532
|
+
/**
|
|
533
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
534
|
+
*/
|
|
535
|
+
pageSize?: number;
|
|
419
536
|
/**
|
|
420
537
|
* A contract addresses to filter by.
|
|
421
538
|
*/
|
|
@@ -431,9 +548,9 @@ declare class EvmBalancesService {
|
|
|
431
548
|
* @returns ListErc1155BalancesResponse
|
|
432
549
|
* @throws ApiError
|
|
433
550
|
*/
|
|
434
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
551
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
435
552
|
/**
|
|
436
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
553
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
554
|
*/
|
|
438
555
|
chainId: string;
|
|
439
556
|
/**
|
|
@@ -444,14 +561,14 @@ declare class EvmBalancesService {
|
|
|
444
561
|
* The block number, if not defined the block number will be the latest block.
|
|
445
562
|
*/
|
|
446
563
|
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
564
|
/**
|
|
452
565
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
453
566
|
*/
|
|
454
567
|
pageToken?: string;
|
|
568
|
+
/**
|
|
569
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
570
|
+
*/
|
|
571
|
+
pageSize?: number;
|
|
455
572
|
/**
|
|
456
573
|
* A contract addresses to filter by.
|
|
457
574
|
*/
|
|
@@ -465,23 +582,23 @@ declare class EvmBalancesService {
|
|
|
465
582
|
* @returns ListCollectibleBalancesResponse
|
|
466
583
|
* @throws ApiError
|
|
467
584
|
*/
|
|
468
|
-
listCollectibleBalances({ chainId, address,
|
|
585
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
469
586
|
/**
|
|
470
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
587
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
588
|
*/
|
|
472
589
|
chainId: string;
|
|
473
590
|
/**
|
|
474
591
|
* A wallet address.
|
|
475
592
|
*/
|
|
476
593
|
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
594
|
/**
|
|
482
595
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
483
596
|
*/
|
|
484
597
|
pageToken?: string;
|
|
598
|
+
/**
|
|
599
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
600
|
+
*/
|
|
601
|
+
pageSize?: number;
|
|
485
602
|
/**
|
|
486
603
|
* A contract addresses to filter by.
|
|
487
604
|
*/
|
|
@@ -594,19 +711,19 @@ declare class EvmBlocksService {
|
|
|
594
711
|
* @returns ListEvmBlocksResponse
|
|
595
712
|
* @throws ApiError
|
|
596
713
|
*/
|
|
597
|
-
getLatestBlocks({ chainId,
|
|
714
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
598
715
|
/**
|
|
599
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
716
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
717
|
*/
|
|
601
718
|
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
719
|
/**
|
|
607
720
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
608
721
|
*/
|
|
609
722
|
pageToken?: string;
|
|
723
|
+
/**
|
|
724
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
725
|
+
*/
|
|
726
|
+
pageSize?: number;
|
|
610
727
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
611
728
|
/**
|
|
612
729
|
* Get block
|
|
@@ -616,7 +733,7 @@ declare class EvmBlocksService {
|
|
|
616
733
|
*/
|
|
617
734
|
getBlock({ chainId, blockId, }: {
|
|
618
735
|
/**
|
|
619
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
736
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
737
|
*/
|
|
621
738
|
chainId: string;
|
|
622
739
|
/**
|
|
@@ -680,6 +797,7 @@ type GetChainResponse = {
|
|
|
680
797
|
utilityAddresses?: UtilityAddresses;
|
|
681
798
|
networkToken: NetworkToken;
|
|
682
799
|
chainLogoUri?: string;
|
|
800
|
+
private?: boolean;
|
|
683
801
|
};
|
|
684
802
|
|
|
685
803
|
type ChainInfo = {
|
|
@@ -701,6 +819,7 @@ type ChainInfo = {
|
|
|
701
819
|
utilityAddresses?: UtilityAddresses;
|
|
702
820
|
networkToken: NetworkToken;
|
|
703
821
|
chainLogoUri?: string;
|
|
822
|
+
private?: boolean;
|
|
704
823
|
};
|
|
705
824
|
|
|
706
825
|
type ListChainsResponse = {
|
|
@@ -735,268 +854,150 @@ declare class EvmChainsService {
|
|
|
735
854
|
*/
|
|
736
855
|
getChainInfo({ chainId, }: {
|
|
737
856
|
/**
|
|
738
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
857
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
739
858
|
*/
|
|
740
859
|
chainId: string;
|
|
741
860
|
}): CancelablePromise<GetChainResponse>;
|
|
742
861
|
}
|
|
743
862
|
|
|
744
|
-
type
|
|
863
|
+
type ImageAsset = {
|
|
864
|
+
assetId?: string;
|
|
745
865
|
/**
|
|
746
|
-
*
|
|
866
|
+
* OUTPUT ONLY
|
|
747
867
|
*/
|
|
748
|
-
|
|
749
|
-
ercType: Erc1155Token.ercType;
|
|
750
|
-
tokenId: string;
|
|
751
|
-
tokenUri: string;
|
|
752
|
-
metadata: Erc1155TokenMetadata;
|
|
868
|
+
imageUri?: string;
|
|
753
869
|
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
870
|
+
|
|
871
|
+
type PricingProviders = {
|
|
872
|
+
coingeckoCoinId?: string;
|
|
873
|
+
};
|
|
874
|
+
|
|
875
|
+
declare enum ResourceLinkType {
|
|
876
|
+
BLOG = "Blog",
|
|
877
|
+
COIN_GECKO = "CoinGecko",
|
|
878
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
879
|
+
DISCORD = "Discord",
|
|
880
|
+
DOCUMENTATION = "Documentation",
|
|
881
|
+
FACEBOOK = "Facebook",
|
|
882
|
+
GITHUB = "Github",
|
|
883
|
+
INSTAGRAM = "Instagram",
|
|
884
|
+
LINKED_IN = "LinkedIn",
|
|
885
|
+
MEDIUM = "Medium",
|
|
886
|
+
REDDIT = "Reddit",
|
|
887
|
+
SUPPORT = "Support",
|
|
888
|
+
TELEGRAM = "Telegram",
|
|
889
|
+
TIK_TOK = "TikTok",
|
|
890
|
+
TWITTER = "Twitter",
|
|
891
|
+
WEBSITE = "Website",
|
|
892
|
+
WHITEPAPER = "Whitepaper",
|
|
893
|
+
YOUTUBE = "Youtube"
|
|
758
894
|
}
|
|
759
895
|
|
|
760
|
-
type
|
|
896
|
+
type ResourceLink = {
|
|
897
|
+
type: ResourceLinkType;
|
|
898
|
+
url: string;
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
type ContractSubmissionErc1155 = {
|
|
902
|
+
description?: string;
|
|
903
|
+
officialSite?: string;
|
|
904
|
+
email?: string;
|
|
905
|
+
logoAsset?: ImageAsset;
|
|
906
|
+
bannerAsset?: ImageAsset;
|
|
907
|
+
color?: string;
|
|
908
|
+
resourceLinks?: Array<ResourceLink>;
|
|
909
|
+
tags?: Array<string>;
|
|
761
910
|
/**
|
|
762
911
|
* The contract name.
|
|
763
912
|
*/
|
|
764
|
-
name
|
|
913
|
+
name: string;
|
|
914
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
765
915
|
/**
|
|
766
916
|
* The contract symbol.
|
|
767
917
|
*/
|
|
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;
|
|
918
|
+
symbol: string;
|
|
919
|
+
pricingProviders?: PricingProviders;
|
|
789
920
|
};
|
|
921
|
+
declare namespace ContractSubmissionErc1155 {
|
|
922
|
+
enum ercType {
|
|
923
|
+
ERC_1155 = "ERC-1155"
|
|
924
|
+
}
|
|
925
|
+
}
|
|
790
926
|
|
|
791
|
-
type
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
927
|
+
type ContractSubmissionErc20 = {
|
|
928
|
+
description?: string;
|
|
929
|
+
officialSite?: string;
|
|
930
|
+
email?: string;
|
|
931
|
+
logoAsset?: ImageAsset;
|
|
932
|
+
bannerAsset?: ImageAsset;
|
|
933
|
+
color?: string;
|
|
934
|
+
resourceLinks?: Array<ResourceLink>;
|
|
935
|
+
tags?: Array<string>;
|
|
796
936
|
/**
|
|
797
937
|
* The contract name.
|
|
798
938
|
*/
|
|
799
939
|
name: string;
|
|
940
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
800
941
|
/**
|
|
801
942
|
* The contract symbol.
|
|
802
943
|
*/
|
|
803
944
|
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;
|
|
945
|
+
pricingProviders?: PricingProviders;
|
|
817
946
|
};
|
|
818
|
-
declare namespace
|
|
947
|
+
declare namespace ContractSubmissionErc20 {
|
|
819
948
|
enum ercType {
|
|
820
949
|
ERC_20 = "ERC-20"
|
|
821
950
|
}
|
|
822
951
|
}
|
|
823
952
|
|
|
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;
|
|
953
|
+
type ContractSubmissionErc721 = {
|
|
954
|
+
description?: string;
|
|
955
|
+
officialSite?: string;
|
|
956
|
+
email?: string;
|
|
957
|
+
logoAsset?: ImageAsset;
|
|
958
|
+
bannerAsset?: ImageAsset;
|
|
959
|
+
color?: string;
|
|
960
|
+
resourceLinks?: Array<ResourceLink>;
|
|
961
|
+
tags?: Array<string>;
|
|
837
962
|
/**
|
|
838
963
|
* The contract name.
|
|
839
964
|
*/
|
|
840
965
|
name: string;
|
|
966
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
841
967
|
/**
|
|
842
968
|
* The contract symbol.
|
|
843
969
|
*/
|
|
844
970
|
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
971
|
};
|
|
854
|
-
declare namespace
|
|
972
|
+
declare namespace ContractSubmissionErc721 {
|
|
855
973
|
enum ercType {
|
|
856
974
|
ERC_721 = "ERC-721"
|
|
857
975
|
}
|
|
858
976
|
}
|
|
859
977
|
|
|
860
|
-
type
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
CONTRACT_CALL = "CONTRACT_CALL",
|
|
870
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
type Method = {
|
|
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;
|
|
886
|
-
};
|
|
887
|
-
|
|
888
|
-
type FullNativeTransactionDetails = {
|
|
889
|
-
/**
|
|
890
|
-
* The block number on the chain.
|
|
891
|
-
*/
|
|
892
|
-
blockNumber: string;
|
|
893
|
-
/**
|
|
894
|
-
* The block finality timestamp.
|
|
895
|
-
*/
|
|
896
|
-
blockTimestamp: number;
|
|
897
|
-
/**
|
|
898
|
-
* The block hash identifier.
|
|
899
|
-
*/
|
|
900
|
-
blockHash: string;
|
|
901
|
-
/**
|
|
902
|
-
* The index at which the transaction occured in the block (0-indexed).
|
|
903
|
-
*/
|
|
904
|
-
blockIndex: number;
|
|
905
|
-
/**
|
|
906
|
-
* The transaction hash identifier.
|
|
907
|
-
*/
|
|
908
|
-
txHash: string;
|
|
909
|
-
/**
|
|
910
|
-
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
911
|
-
*/
|
|
912
|
-
txStatus: string;
|
|
913
|
-
/**
|
|
914
|
-
* The transaction type.
|
|
915
|
-
*/
|
|
916
|
-
txType: number;
|
|
917
|
-
/**
|
|
918
|
-
* The gas limit set for the transaction.
|
|
919
|
-
*/
|
|
920
|
-
gasLimit: string;
|
|
921
|
-
/**
|
|
922
|
-
* The amount of gas used.
|
|
923
|
-
*/
|
|
924
|
-
gasUsed: string;
|
|
925
|
-
/**
|
|
926
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
927
|
-
*/
|
|
928
|
-
gasPrice: string;
|
|
929
|
-
/**
|
|
930
|
-
* The nonce used by the sender of the transaction.
|
|
931
|
-
*/
|
|
932
|
-
nonce: string;
|
|
933
|
-
from: RichAddress;
|
|
934
|
-
to: RichAddress;
|
|
935
|
-
method?: Method;
|
|
936
|
-
value: string;
|
|
978
|
+
type ContractSubmissionUnknown = {
|
|
979
|
+
description?: string;
|
|
980
|
+
officialSite?: string;
|
|
981
|
+
email?: string;
|
|
982
|
+
logoAsset?: ImageAsset;
|
|
983
|
+
bannerAsset?: ImageAsset;
|
|
984
|
+
color?: string;
|
|
985
|
+
resourceLinks?: Array<ResourceLink>;
|
|
986
|
+
tags?: Array<string>;
|
|
937
987
|
/**
|
|
938
|
-
* The
|
|
988
|
+
* The contract name.
|
|
939
989
|
*/
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
maxFeePerGas?: string;
|
|
943
|
-
maxPriorityFeePerGas?: string;
|
|
990
|
+
name: string;
|
|
991
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
944
992
|
};
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
CREATE = "CREATE",
|
|
950
|
-
CREATE2 = "CREATE2",
|
|
951
|
-
CALLCODE = "CALLCODE",
|
|
952
|
-
DELEGATECALL = "DELEGATECALL",
|
|
953
|
-
STATICCALL = "STATICCALL"
|
|
993
|
+
declare namespace ContractSubmissionUnknown {
|
|
994
|
+
enum ercType {
|
|
995
|
+
UNKNOWN = "UNKNOWN"
|
|
996
|
+
}
|
|
954
997
|
}
|
|
955
998
|
|
|
956
|
-
type
|
|
957
|
-
|
|
958
|
-
to: RichAddress;
|
|
959
|
-
internalTxType: InternalTransactionOpCall;
|
|
960
|
-
value: string;
|
|
961
|
-
/**
|
|
962
|
-
* True if the internal transaction was reverted.
|
|
963
|
-
*/
|
|
964
|
-
isReverted: boolean;
|
|
965
|
-
gasUsed: string;
|
|
966
|
-
gasLimit: string;
|
|
967
|
-
};
|
|
968
|
-
|
|
969
|
-
type NetworkTokenDetails = {
|
|
970
|
-
networkToken: NetworkToken;
|
|
971
|
-
/**
|
|
972
|
-
* The current token price, if available.
|
|
973
|
-
*/
|
|
974
|
-
currentPrice?: Money;
|
|
975
|
-
/**
|
|
976
|
-
* The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
|
|
977
|
-
*/
|
|
978
|
-
historicalPrice?: Money;
|
|
979
|
-
};
|
|
980
|
-
|
|
981
|
-
type GetTransactionResponse = {
|
|
982
|
-
/**
|
|
983
|
-
* The list of ERC-20 transfers.
|
|
984
|
-
*/
|
|
985
|
-
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
986
|
-
/**
|
|
987
|
-
* The list of ERC-721 transfers.
|
|
988
|
-
*/
|
|
989
|
-
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
990
|
-
/**
|
|
991
|
-
* The list of ERC-1155 transfers.
|
|
992
|
-
*/
|
|
993
|
-
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
994
|
-
/**
|
|
995
|
-
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
996
|
-
*/
|
|
997
|
-
internalTransactions?: Array<InternalTransactionDetails>;
|
|
998
|
-
networkTokenDetails: NetworkTokenDetails;
|
|
999
|
-
nativeTransaction: FullNativeTransactionDetails;
|
|
999
|
+
type ContractSubmissionBody = {
|
|
1000
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
1000
1001
|
};
|
|
1001
1002
|
|
|
1002
1003
|
type ContractDeploymentDetails = {
|
|
@@ -1011,44 +1012,6 @@ type ContractDeploymentDetails = {
|
|
|
1011
1012
|
deployerContractAddress?: string;
|
|
1012
1013
|
};
|
|
1013
1014
|
|
|
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
1015
|
type Erc1155Contract = {
|
|
1053
1016
|
/**
|
|
1054
1017
|
* The contract name.
|
|
@@ -1107,7 +1070,7 @@ type Erc20Contract = {
|
|
|
1107
1070
|
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1108
1071
|
*/
|
|
1109
1072
|
decimals: number;
|
|
1110
|
-
pricingProviders
|
|
1073
|
+
pricingProviders?: PricingProviders;
|
|
1111
1074
|
};
|
|
1112
1075
|
declare namespace Erc20Contract {
|
|
1113
1076
|
enum ercType {
|
|
@@ -1171,12 +1134,312 @@ declare namespace UnknownContract {
|
|
|
1171
1134
|
}
|
|
1172
1135
|
}
|
|
1173
1136
|
|
|
1137
|
+
type UpdateContractResponse = {
|
|
1138
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1139
|
+
};
|
|
1140
|
+
|
|
1141
|
+
declare class EvmContractsService {
|
|
1142
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1143
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1144
|
+
/**
|
|
1145
|
+
* Get contract metadata
|
|
1146
|
+
* Gets metadata about the contract at the given address.
|
|
1147
|
+
* @returns any
|
|
1148
|
+
* @throws ApiError
|
|
1149
|
+
*/
|
|
1150
|
+
getContractMetadata({ chainId, address, }: {
|
|
1151
|
+
/**
|
|
1152
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1153
|
+
*/
|
|
1154
|
+
chainId: string;
|
|
1155
|
+
/**
|
|
1156
|
+
* Contract address on the relevant chain.
|
|
1157
|
+
*/
|
|
1158
|
+
address: string;
|
|
1159
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1160
|
+
/**
|
|
1161
|
+
* Update contract information
|
|
1162
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1163
|
+
* @returns UpdateContractResponse
|
|
1164
|
+
* @throws ApiError
|
|
1165
|
+
*/
|
|
1166
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1167
|
+
/**
|
|
1168
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1169
|
+
*/
|
|
1170
|
+
chainId: string;
|
|
1171
|
+
/**
|
|
1172
|
+
* Contract address on the relevant chain.
|
|
1173
|
+
*/
|
|
1174
|
+
address: string;
|
|
1175
|
+
requestBody: ContractSubmissionBody;
|
|
1176
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
type Erc1155Token = {
|
|
1180
|
+
/**
|
|
1181
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1182
|
+
*/
|
|
1183
|
+
address: string;
|
|
1184
|
+
ercType: Erc1155Token.ercType;
|
|
1185
|
+
tokenId: string;
|
|
1186
|
+
tokenUri: string;
|
|
1187
|
+
metadata: Erc1155TokenMetadata;
|
|
1188
|
+
};
|
|
1189
|
+
declare namespace Erc1155Token {
|
|
1190
|
+
enum ercType {
|
|
1191
|
+
ERC_1155 = "ERC-1155"
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
type RichAddress = {
|
|
1196
|
+
/**
|
|
1197
|
+
* The contract name.
|
|
1198
|
+
*/
|
|
1199
|
+
name?: string;
|
|
1200
|
+
/**
|
|
1201
|
+
* The contract symbol.
|
|
1202
|
+
*/
|
|
1203
|
+
symbol?: string;
|
|
1204
|
+
/**
|
|
1205
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1206
|
+
*/
|
|
1207
|
+
decimals?: number;
|
|
1208
|
+
/**
|
|
1209
|
+
* The logo uri for the address.
|
|
1210
|
+
*/
|
|
1211
|
+
logoUri?: string;
|
|
1212
|
+
/**
|
|
1213
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1214
|
+
*/
|
|
1215
|
+
address: string;
|
|
1216
|
+
};
|
|
1217
|
+
|
|
1218
|
+
type Erc1155TransferDetails = {
|
|
1219
|
+
from: RichAddress;
|
|
1220
|
+
to: RichAddress;
|
|
1221
|
+
logIndex: number;
|
|
1222
|
+
value: string;
|
|
1223
|
+
erc1155Token: Erc1155Token;
|
|
1224
|
+
};
|
|
1225
|
+
|
|
1226
|
+
type Erc20Token = {
|
|
1227
|
+
/**
|
|
1228
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1229
|
+
*/
|
|
1230
|
+
address: string;
|
|
1231
|
+
/**
|
|
1232
|
+
* The contract name.
|
|
1233
|
+
*/
|
|
1234
|
+
name: string;
|
|
1235
|
+
/**
|
|
1236
|
+
* The contract symbol.
|
|
1237
|
+
*/
|
|
1238
|
+
symbol: string;
|
|
1239
|
+
/**
|
|
1240
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1241
|
+
*/
|
|
1242
|
+
decimals: number;
|
|
1243
|
+
/**
|
|
1244
|
+
* The logo uri for the address.
|
|
1245
|
+
*/
|
|
1246
|
+
logoUri?: string;
|
|
1247
|
+
ercType: Erc20Token.ercType;
|
|
1248
|
+
/**
|
|
1249
|
+
* The token price, if available.
|
|
1250
|
+
*/
|
|
1251
|
+
price?: Money;
|
|
1252
|
+
};
|
|
1253
|
+
declare namespace Erc20Token {
|
|
1254
|
+
enum ercType {
|
|
1255
|
+
ERC_20 = "ERC-20"
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
type Erc20TransferDetails = {
|
|
1260
|
+
from: RichAddress;
|
|
1261
|
+
to: RichAddress;
|
|
1262
|
+
logIndex: number;
|
|
1263
|
+
value: string;
|
|
1264
|
+
erc20Token: Erc20Token;
|
|
1265
|
+
};
|
|
1266
|
+
|
|
1267
|
+
type Erc721Token = {
|
|
1268
|
+
/**
|
|
1269
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1270
|
+
*/
|
|
1271
|
+
address: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* The contract name.
|
|
1274
|
+
*/
|
|
1275
|
+
name: string;
|
|
1276
|
+
/**
|
|
1277
|
+
* The contract symbol.
|
|
1278
|
+
*/
|
|
1279
|
+
symbol: string;
|
|
1280
|
+
ercType: Erc721Token.ercType;
|
|
1281
|
+
tokenId: string;
|
|
1282
|
+
tokenUri: string;
|
|
1283
|
+
metadata: Erc721TokenMetadata;
|
|
1284
|
+
/**
|
|
1285
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1286
|
+
*/
|
|
1287
|
+
ownerAddress?: string;
|
|
1288
|
+
};
|
|
1289
|
+
declare namespace Erc721Token {
|
|
1290
|
+
enum ercType {
|
|
1291
|
+
ERC_721 = "ERC-721"
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
type Erc721TransferDetails = {
|
|
1296
|
+
from: RichAddress;
|
|
1297
|
+
to: RichAddress;
|
|
1298
|
+
logIndex: number;
|
|
1299
|
+
erc721Token: Erc721Token;
|
|
1300
|
+
};
|
|
1301
|
+
|
|
1302
|
+
declare enum TransactionMethodType {
|
|
1303
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1304
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1305
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
type Method = {
|
|
1309
|
+
/**
|
|
1310
|
+
* 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.
|
|
1311
|
+
*/
|
|
1312
|
+
callType: TransactionMethodType;
|
|
1313
|
+
/**
|
|
1314
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1315
|
+
*/
|
|
1316
|
+
methodHash: string;
|
|
1317
|
+
/**
|
|
1318
|
+
* 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'.
|
|
1319
|
+
*/
|
|
1320
|
+
methodName?: string;
|
|
1321
|
+
};
|
|
1322
|
+
|
|
1323
|
+
type FullNativeTransactionDetails = {
|
|
1324
|
+
/**
|
|
1325
|
+
* The block number on the chain.
|
|
1326
|
+
*/
|
|
1327
|
+
blockNumber: string;
|
|
1328
|
+
/**
|
|
1329
|
+
* The block finality timestamp.
|
|
1330
|
+
*/
|
|
1331
|
+
blockTimestamp: number;
|
|
1332
|
+
/**
|
|
1333
|
+
* The block hash identifier.
|
|
1334
|
+
*/
|
|
1335
|
+
blockHash: string;
|
|
1336
|
+
/**
|
|
1337
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1338
|
+
*/
|
|
1339
|
+
blockIndex: number;
|
|
1340
|
+
/**
|
|
1341
|
+
* The transaction hash identifier.
|
|
1342
|
+
*/
|
|
1343
|
+
txHash: string;
|
|
1344
|
+
/**
|
|
1345
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1346
|
+
*/
|
|
1347
|
+
txStatus: string;
|
|
1348
|
+
/**
|
|
1349
|
+
* The transaction type.
|
|
1350
|
+
*/
|
|
1351
|
+
txType: number;
|
|
1352
|
+
/**
|
|
1353
|
+
* The gas limit set for the transaction.
|
|
1354
|
+
*/
|
|
1355
|
+
gasLimit: string;
|
|
1356
|
+
/**
|
|
1357
|
+
* The amount of gas used.
|
|
1358
|
+
*/
|
|
1359
|
+
gasUsed: string;
|
|
1360
|
+
/**
|
|
1361
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1362
|
+
*/
|
|
1363
|
+
gasPrice: string;
|
|
1364
|
+
/**
|
|
1365
|
+
* The nonce used by the sender of the transaction.
|
|
1366
|
+
*/
|
|
1367
|
+
nonce: string;
|
|
1368
|
+
from: RichAddress;
|
|
1369
|
+
to: RichAddress;
|
|
1370
|
+
method?: Method;
|
|
1371
|
+
value: string;
|
|
1372
|
+
/**
|
|
1373
|
+
* The data sent for the transaction.
|
|
1374
|
+
*/
|
|
1375
|
+
input: string;
|
|
1376
|
+
baseFeePerGas: string;
|
|
1377
|
+
maxFeePerGas?: string;
|
|
1378
|
+
maxPriorityFeePerGas?: string;
|
|
1379
|
+
};
|
|
1380
|
+
|
|
1381
|
+
declare enum InternalTransactionOpCall {
|
|
1382
|
+
UNKNOWN = "UNKNOWN",
|
|
1383
|
+
CALL = "CALL",
|
|
1384
|
+
CREATE = "CREATE",
|
|
1385
|
+
CREATE2 = "CREATE2",
|
|
1386
|
+
CALLCODE = "CALLCODE",
|
|
1387
|
+
DELEGATECALL = "DELEGATECALL",
|
|
1388
|
+
STATICCALL = "STATICCALL"
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
type InternalTransactionDetails = {
|
|
1392
|
+
from: RichAddress;
|
|
1393
|
+
to: RichAddress;
|
|
1394
|
+
internalTxType: InternalTransactionOpCall;
|
|
1395
|
+
value: string;
|
|
1396
|
+
/**
|
|
1397
|
+
* True if the internal transaction was reverted.
|
|
1398
|
+
*/
|
|
1399
|
+
isReverted: boolean;
|
|
1400
|
+
gasUsed: string;
|
|
1401
|
+
gasLimit: string;
|
|
1402
|
+
};
|
|
1403
|
+
|
|
1404
|
+
type NetworkTokenDetails = {
|
|
1405
|
+
networkToken: NetworkToken;
|
|
1406
|
+
/**
|
|
1407
|
+
* The current token price, if available.
|
|
1408
|
+
*/
|
|
1409
|
+
currentPrice?: Money;
|
|
1410
|
+
/**
|
|
1411
|
+
* The historical token price at the time the transaction occured, if available. Note, this is only provided if the transaction occured more than 24 hours ago.
|
|
1412
|
+
*/
|
|
1413
|
+
historicalPrice?: Money;
|
|
1414
|
+
};
|
|
1415
|
+
|
|
1416
|
+
type GetTransactionResponse = {
|
|
1417
|
+
/**
|
|
1418
|
+
* The list of ERC-20 transfers.
|
|
1419
|
+
*/
|
|
1420
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1421
|
+
/**
|
|
1422
|
+
* The list of ERC-721 transfers.
|
|
1423
|
+
*/
|
|
1424
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1425
|
+
/**
|
|
1426
|
+
* The list of ERC-1155 transfers.
|
|
1427
|
+
*/
|
|
1428
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1429
|
+
/**
|
|
1430
|
+
* The list of internal transactions. Note that this list only includes CALL and CALLCODE internal transactions that had a non-zero value and CREATE/CREATE2 calls. Use a client provider to recieve a full debug trace of the transaction.
|
|
1431
|
+
*/
|
|
1432
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1433
|
+
networkTokenDetails: NetworkTokenDetails;
|
|
1434
|
+
nativeTransaction: FullNativeTransactionDetails;
|
|
1435
|
+
};
|
|
1436
|
+
|
|
1174
1437
|
type ListContractsResponse = {
|
|
1175
1438
|
/**
|
|
1176
1439
|
* 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
1440
|
*/
|
|
1178
1441
|
nextPageToken?: string;
|
|
1179
|
-
contracts: Array<(
|
|
1442
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1180
1443
|
};
|
|
1181
1444
|
|
|
1182
1445
|
type Erc1155Transfer = {
|
|
@@ -1430,7 +1693,7 @@ declare class EvmTransactionsService {
|
|
|
1430
1693
|
*/
|
|
1431
1694
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1432
1695
|
/**
|
|
1433
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1696
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1434
1697
|
*/
|
|
1435
1698
|
chainId: string;
|
|
1436
1699
|
/**
|
|
@@ -1448,23 +1711,23 @@ declare class EvmTransactionsService {
|
|
|
1448
1711
|
* @returns ListContractsResponse
|
|
1449
1712
|
* @throws ApiError
|
|
1450
1713
|
*/
|
|
1451
|
-
listContractDeployments({ chainId, address,
|
|
1714
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1452
1715
|
/**
|
|
1453
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1716
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1454
1717
|
*/
|
|
1455
1718
|
chainId: string;
|
|
1456
1719
|
/**
|
|
1457
1720
|
* A wallet address.
|
|
1458
1721
|
*/
|
|
1459
1722
|
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
1723
|
/**
|
|
1465
1724
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1466
1725
|
*/
|
|
1467
1726
|
pageToken?: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1729
|
+
*/
|
|
1730
|
+
pageSize?: number;
|
|
1468
1731
|
}): CancelablePromise<ListContractsResponse>;
|
|
1469
1732
|
/**
|
|
1470
1733
|
* List ERC transfers
|
|
@@ -1472,25 +1735,31 @@ declare class EvmTransactionsService {
|
|
|
1472
1735
|
* @returns ListTransfersResponse
|
|
1473
1736
|
* @throws ApiError
|
|
1474
1737
|
*/
|
|
1475
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1738
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1476
1739
|
/**
|
|
1477
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1740
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1478
1741
|
*/
|
|
1479
1742
|
chainId: string;
|
|
1480
1743
|
/**
|
|
1481
1744
|
* A wallet address.
|
|
1482
1745
|
*/
|
|
1483
1746
|
address: string;
|
|
1747
|
+
/**
|
|
1748
|
+
* 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.
|
|
1749
|
+
*/
|
|
1484
1750
|
startBlock?: number;
|
|
1485
|
-
endBlock?: number;
|
|
1486
1751
|
/**
|
|
1487
|
-
* The
|
|
1752
|
+
* 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
1753
|
*/
|
|
1489
|
-
|
|
1754
|
+
endBlock?: number;
|
|
1490
1755
|
/**
|
|
1491
1756
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1492
1757
|
*/
|
|
1493
1758
|
pageToken?: string;
|
|
1759
|
+
/**
|
|
1760
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1761
|
+
*/
|
|
1762
|
+
pageSize?: number;
|
|
1494
1763
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1495
1764
|
/**
|
|
1496
1765
|
* List transactions
|
|
@@ -1500,24 +1769,30 @@ declare class EvmTransactionsService {
|
|
|
1500
1769
|
* @returns ListTransactionDetailsResponse
|
|
1501
1770
|
* @throws ApiError
|
|
1502
1771
|
*/
|
|
1503
|
-
listTransactions({ chainId, address,
|
|
1772
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1504
1773
|
/**
|
|
1505
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1774
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1506
1775
|
*/
|
|
1507
1776
|
chainId: string;
|
|
1508
1777
|
/**
|
|
1509
1778
|
* A wallet address.
|
|
1510
1779
|
*/
|
|
1511
1780
|
address: string;
|
|
1781
|
+
/**
|
|
1782
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1783
|
+
*/
|
|
1784
|
+
pageToken?: string;
|
|
1512
1785
|
/**
|
|
1513
1786
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1514
1787
|
*/
|
|
1515
1788
|
pageSize?: number;
|
|
1516
1789
|
/**
|
|
1517
|
-
*
|
|
1790
|
+
* 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
1791
|
*/
|
|
1519
|
-
pageToken?: string;
|
|
1520
1792
|
startBlock?: number;
|
|
1793
|
+
/**
|
|
1794
|
+
* 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.
|
|
1795
|
+
*/
|
|
1521
1796
|
endBlock?: number;
|
|
1522
1797
|
/**
|
|
1523
1798
|
* 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 +1805,31 @@ declare class EvmTransactionsService {
|
|
|
1530
1805
|
* @returns ListNativeTransactionsResponse
|
|
1531
1806
|
* @throws ApiError
|
|
1532
1807
|
*/
|
|
1533
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1808
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1534
1809
|
/**
|
|
1535
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1810
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1536
1811
|
*/
|
|
1537
1812
|
chainId: string;
|
|
1538
1813
|
/**
|
|
1539
1814
|
* A wallet address.
|
|
1540
1815
|
*/
|
|
1541
1816
|
address: string;
|
|
1817
|
+
/**
|
|
1818
|
+
* 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.
|
|
1819
|
+
*/
|
|
1542
1820
|
startBlock?: number;
|
|
1543
|
-
endBlock?: number;
|
|
1544
1821
|
/**
|
|
1545
|
-
* The
|
|
1822
|
+
* 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
1823
|
*/
|
|
1547
|
-
|
|
1824
|
+
endBlock?: number;
|
|
1548
1825
|
/**
|
|
1549
1826
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1550
1827
|
*/
|
|
1551
1828
|
pageToken?: string;
|
|
1829
|
+
/**
|
|
1830
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1831
|
+
*/
|
|
1832
|
+
pageSize?: number;
|
|
1552
1833
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1553
1834
|
/**
|
|
1554
1835
|
* List ERC-20 transfers
|
|
@@ -1556,25 +1837,31 @@ declare class EvmTransactionsService {
|
|
|
1556
1837
|
* @returns ListErc20TransactionsResponse
|
|
1557
1838
|
* @throws ApiError
|
|
1558
1839
|
*/
|
|
1559
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1840
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1560
1841
|
/**
|
|
1561
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1842
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1562
1843
|
*/
|
|
1563
1844
|
chainId: string;
|
|
1564
1845
|
/**
|
|
1565
1846
|
* A wallet address.
|
|
1566
1847
|
*/
|
|
1567
1848
|
address: string;
|
|
1849
|
+
/**
|
|
1850
|
+
* 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.
|
|
1851
|
+
*/
|
|
1568
1852
|
startBlock?: number;
|
|
1569
|
-
endBlock?: number;
|
|
1570
1853
|
/**
|
|
1571
|
-
* The
|
|
1854
|
+
* 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
1855
|
*/
|
|
1573
|
-
|
|
1856
|
+
endBlock?: number;
|
|
1574
1857
|
/**
|
|
1575
1858
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1576
1859
|
*/
|
|
1577
1860
|
pageToken?: string;
|
|
1861
|
+
/**
|
|
1862
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1863
|
+
*/
|
|
1864
|
+
pageSize?: number;
|
|
1578
1865
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1579
1866
|
/**
|
|
1580
1867
|
* List ERC-721 transfers
|
|
@@ -1582,25 +1869,31 @@ declare class EvmTransactionsService {
|
|
|
1582
1869
|
* @returns ListErc721TransactionsResponse
|
|
1583
1870
|
* @throws ApiError
|
|
1584
1871
|
*/
|
|
1585
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1872
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1586
1873
|
/**
|
|
1587
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1874
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1588
1875
|
*/
|
|
1589
1876
|
chainId: string;
|
|
1590
1877
|
/**
|
|
1591
1878
|
* A wallet address.
|
|
1592
1879
|
*/
|
|
1593
1880
|
address: string;
|
|
1881
|
+
/**
|
|
1882
|
+
* 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.
|
|
1883
|
+
*/
|
|
1594
1884
|
startBlock?: number;
|
|
1595
|
-
endBlock?: number;
|
|
1596
1885
|
/**
|
|
1597
|
-
* The
|
|
1886
|
+
* 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
1887
|
*/
|
|
1599
|
-
|
|
1888
|
+
endBlock?: number;
|
|
1600
1889
|
/**
|
|
1601
1890
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1602
1891
|
*/
|
|
1603
1892
|
pageToken?: string;
|
|
1893
|
+
/**
|
|
1894
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1895
|
+
*/
|
|
1896
|
+
pageSize?: number;
|
|
1604
1897
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1605
1898
|
/**
|
|
1606
1899
|
* List ERC-1155 transfers
|
|
@@ -1608,25 +1901,31 @@ declare class EvmTransactionsService {
|
|
|
1608
1901
|
* @returns ListErc1155TransactionsResponse
|
|
1609
1902
|
* @throws ApiError
|
|
1610
1903
|
*/
|
|
1611
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1904
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1612
1905
|
/**
|
|
1613
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1906
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1614
1907
|
*/
|
|
1615
1908
|
chainId: string;
|
|
1616
1909
|
/**
|
|
1617
1910
|
* A wallet address.
|
|
1618
1911
|
*/
|
|
1619
1912
|
address: string;
|
|
1913
|
+
/**
|
|
1914
|
+
* 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.
|
|
1915
|
+
*/
|
|
1620
1916
|
startBlock?: number;
|
|
1621
|
-
endBlock?: number;
|
|
1622
1917
|
/**
|
|
1623
|
-
* The
|
|
1918
|
+
* 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
1919
|
*/
|
|
1625
|
-
|
|
1920
|
+
endBlock?: number;
|
|
1626
1921
|
/**
|
|
1627
1922
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1628
1923
|
*/
|
|
1629
1924
|
pageToken?: string;
|
|
1925
|
+
/**
|
|
1926
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1927
|
+
*/
|
|
1928
|
+
pageSize?: number;
|
|
1630
1929
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1631
1930
|
/**
|
|
1632
1931
|
* List internal transactions
|
|
@@ -1636,25 +1935,31 @@ declare class EvmTransactionsService {
|
|
|
1636
1935
|
* @returns ListInternalTransactionsResponse
|
|
1637
1936
|
* @throws ApiError
|
|
1638
1937
|
*/
|
|
1639
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1938
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1640
1939
|
/**
|
|
1641
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1940
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1642
1941
|
*/
|
|
1643
1942
|
chainId: string;
|
|
1644
1943
|
/**
|
|
1645
1944
|
* A wallet address.
|
|
1646
1945
|
*/
|
|
1647
1946
|
address: string;
|
|
1947
|
+
/**
|
|
1948
|
+
* 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.
|
|
1949
|
+
*/
|
|
1648
1950
|
startBlock?: number;
|
|
1649
|
-
endBlock?: number;
|
|
1650
1951
|
/**
|
|
1651
|
-
* The
|
|
1952
|
+
* 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
1953
|
*/
|
|
1653
|
-
|
|
1954
|
+
endBlock?: number;
|
|
1654
1955
|
/**
|
|
1655
1956
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1656
1957
|
*/
|
|
1657
1958
|
pageToken?: string;
|
|
1959
|
+
/**
|
|
1960
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1961
|
+
*/
|
|
1962
|
+
pageSize?: number;
|
|
1658
1963
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1659
1964
|
/**
|
|
1660
1965
|
* Get transaction
|
|
@@ -1664,7 +1969,7 @@ declare class EvmTransactionsService {
|
|
|
1664
1969
|
*/
|
|
1665
1970
|
getTransaction({ chainId, txHash, }: {
|
|
1666
1971
|
/**
|
|
1667
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1972
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1668
1973
|
*/
|
|
1669
1974
|
chainId: string;
|
|
1670
1975
|
/**
|
|
@@ -1680,7 +1985,7 @@ declare class EvmTransactionsService {
|
|
|
1680
1985
|
*/
|
|
1681
1986
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1682
1987
|
/**
|
|
1683
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1988
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1684
1989
|
*/
|
|
1685
1990
|
chainId: string;
|
|
1686
1991
|
/**
|
|
@@ -1694,19 +1999,19 @@ declare class EvmTransactionsService {
|
|
|
1694
1999
|
* @returns ListNativeTransactionsResponse
|
|
1695
2000
|
* @throws ApiError
|
|
1696
2001
|
*/
|
|
1697
|
-
listLatestTransactions({ chainId,
|
|
2002
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1698
2003
|
/**
|
|
1699
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2004
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1700
2005
|
*/
|
|
1701
2006
|
chainId: string;
|
|
1702
|
-
/**
|
|
1703
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1704
|
-
*/
|
|
1705
|
-
pageSize?: number;
|
|
1706
2007
|
/**
|
|
1707
2008
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1708
2009
|
*/
|
|
1709
2010
|
pageToken?: string;
|
|
2011
|
+
/**
|
|
2012
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2013
|
+
*/
|
|
2014
|
+
pageSize?: number;
|
|
1710
2015
|
/**
|
|
1711
2016
|
* A status filter for listed transactions.
|
|
1712
2017
|
*/
|
|
@@ -1730,6 +2035,14 @@ declare class HealthCheckService {
|
|
|
1730
2035
|
}>;
|
|
1731
2036
|
}
|
|
1732
2037
|
|
|
2038
|
+
type ListNftTokens = {
|
|
2039
|
+
/**
|
|
2040
|
+
* 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.
|
|
2041
|
+
*/
|
|
2042
|
+
nextPageToken?: string;
|
|
2043
|
+
tokens: (Array<Erc721Token> | Array<Erc1155Token>);
|
|
2044
|
+
};
|
|
2045
|
+
|
|
1733
2046
|
declare class NfTsService {
|
|
1734
2047
|
readonly httpRequest: BaseHttpRequest;
|
|
1735
2048
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1741,7 +2054,7 @@ declare class NfTsService {
|
|
|
1741
2054
|
*/
|
|
1742
2055
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1743
2056
|
/**
|
|
1744
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2057
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1745
2058
|
*/
|
|
1746
2059
|
chainId: string;
|
|
1747
2060
|
/**
|
|
@@ -1754,14 +2067,14 @@ declare class NfTsService {
|
|
|
1754
2067
|
tokenId: string;
|
|
1755
2068
|
}): CancelablePromise<any>;
|
|
1756
2069
|
/**
|
|
1757
|
-
*
|
|
1758
|
-
*
|
|
1759
|
-
* @returns
|
|
2070
|
+
* List tokens
|
|
2071
|
+
* Lists tokens for an NFT contract.
|
|
2072
|
+
* @returns ListNftTokens
|
|
1760
2073
|
* @throws ApiError
|
|
1761
2074
|
*/
|
|
1762
|
-
|
|
2075
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
1763
2076
|
/**
|
|
1764
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2077
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1765
2078
|
*/
|
|
1766
2079
|
chainId: string;
|
|
1767
2080
|
/**
|
|
@@ -1769,26 +2082,34 @@ declare class NfTsService {
|
|
|
1769
2082
|
*/
|
|
1770
2083
|
address: string;
|
|
1771
2084
|
/**
|
|
1772
|
-
*
|
|
2085
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1773
2086
|
*/
|
|
1774
|
-
|
|
1775
|
-
|
|
2087
|
+
pageToken?: string;
|
|
2088
|
+
/**
|
|
2089
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2090
|
+
*/
|
|
2091
|
+
pageSize?: number;
|
|
2092
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1776
2093
|
/**
|
|
1777
|
-
* Get
|
|
1778
|
-
* Gets
|
|
2094
|
+
* Get token details
|
|
2095
|
+
* Gets token details for a specific token of an NFT contract.
|
|
1779
2096
|
* @returns any
|
|
1780
2097
|
* @throws ApiError
|
|
1781
2098
|
*/
|
|
1782
|
-
|
|
2099
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1783
2100
|
/**
|
|
1784
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2101
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1785
2102
|
*/
|
|
1786
2103
|
chainId: string;
|
|
1787
2104
|
/**
|
|
1788
2105
|
* Contract address on the relevant chain.
|
|
1789
2106
|
*/
|
|
1790
2107
|
address: string;
|
|
1791
|
-
|
|
2108
|
+
/**
|
|
2109
|
+
* TokenId on the contract
|
|
2110
|
+
*/
|
|
2111
|
+
tokenId: string;
|
|
2112
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
1792
2113
|
}
|
|
1793
2114
|
|
|
1794
2115
|
type EvmNetworkOptions = {
|
|
@@ -1885,17 +2206,6 @@ type OperationStatusResponse = {
|
|
|
1885
2206
|
declare class OperationsService {
|
|
1886
2207
|
readonly httpRequest: BaseHttpRequest;
|
|
1887
2208
|
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
2209
|
/**
|
|
1900
2210
|
* Get operation
|
|
1901
2211
|
* Gets operation details for the given operation id.
|
|
@@ -1908,6 +2218,17 @@ declare class OperationsService {
|
|
|
1908
2218
|
*/
|
|
1909
2219
|
operationId: string;
|
|
1910
2220
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2221
|
+
/**
|
|
2222
|
+
* Create transaction export operation
|
|
2223
|
+
* Trigger a transaction export operation with given parameters.
|
|
2224
|
+
*
|
|
2225
|
+
* 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.
|
|
2226
|
+
* @returns OperationStatusResponse
|
|
2227
|
+
* @throws ApiError
|
|
2228
|
+
*/
|
|
2229
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2230
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2231
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
1911
2232
|
}
|
|
1912
2233
|
|
|
1913
2234
|
declare enum BlockchainIds {
|
|
@@ -1976,39 +2297,57 @@ type ListBlockchainsResponse = {
|
|
|
1976
2297
|
|
|
1977
2298
|
type ActiveDelegatorDetails = {
|
|
1978
2299
|
txHash: string;
|
|
2300
|
+
nodeId: string;
|
|
1979
2301
|
rewardAddresses: Array<string>;
|
|
1980
2302
|
amountDelegated: string;
|
|
1981
2303
|
delegationFee: string;
|
|
1982
2304
|
startTimestamp: number;
|
|
1983
2305
|
endTimestamp: number;
|
|
1984
|
-
delegationStatus: DelegationStatusType;
|
|
1985
2306
|
estimatedGrossReward: string;
|
|
1986
2307
|
estimatedNetReward: string;
|
|
2308
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1987
2309
|
};
|
|
2310
|
+
declare namespace ActiveDelegatorDetails {
|
|
2311
|
+
enum delegationStatus {
|
|
2312
|
+
ACTIVE = "active"
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
1988
2315
|
|
|
1989
2316
|
type CompletedDelegatorDetails = {
|
|
1990
2317
|
txHash: string;
|
|
2318
|
+
nodeId: string;
|
|
1991
2319
|
rewardAddresses: Array<string>;
|
|
1992
2320
|
amountDelegated: string;
|
|
1993
2321
|
delegationFee: string;
|
|
1994
2322
|
startTimestamp: number;
|
|
1995
2323
|
endTimestamp: number;
|
|
1996
|
-
delegationStatus: DelegationStatusType;
|
|
1997
2324
|
grossReward: string;
|
|
1998
2325
|
netReward: string;
|
|
2326
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1999
2327
|
};
|
|
2328
|
+
declare namespace CompletedDelegatorDetails {
|
|
2329
|
+
enum delegationStatus {
|
|
2330
|
+
COMPLETED = "completed"
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2000
2333
|
|
|
2001
2334
|
type PendingDelegatorDetails = {
|
|
2002
2335
|
txHash: string;
|
|
2336
|
+
nodeId: string;
|
|
2003
2337
|
rewardAddresses: Array<string>;
|
|
2004
2338
|
amountDelegated: string;
|
|
2005
2339
|
delegationFee: string;
|
|
2006
2340
|
startTimestamp: number;
|
|
2007
2341
|
endTimestamp: number;
|
|
2008
|
-
delegationStatus: DelegationStatusType;
|
|
2009
2342
|
estimatedGrossReward: string;
|
|
2010
2343
|
estimatedNetReward: string;
|
|
2344
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2011
2345
|
};
|
|
2346
|
+
declare namespace PendingDelegatorDetails {
|
|
2347
|
+
enum delegationStatus {
|
|
2348
|
+
PENDING = "pending"
|
|
2349
|
+
}
|
|
2350
|
+
}
|
|
2012
2351
|
|
|
2013
2352
|
type ListDelegatorDetailsResponse = {
|
|
2014
2353
|
/**
|
|
@@ -2046,49 +2385,104 @@ type ListSubnetsResponse = {
|
|
|
2046
2385
|
type Rewards = {
|
|
2047
2386
|
validationRewardAmount: string;
|
|
2048
2387
|
delegationRewardAmount: string;
|
|
2388
|
+
rewardAddresses?: Array<string>;
|
|
2389
|
+
rewardTxHash?: string;
|
|
2049
2390
|
};
|
|
2050
2391
|
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2392
|
+
type ValidatorHealthDetails = {
|
|
2393
|
+
/**
|
|
2394
|
+
* Percent of requests responded to in last polling.
|
|
2395
|
+
*/
|
|
2396
|
+
reachabilityPercent: number;
|
|
2397
|
+
/**
|
|
2398
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2399
|
+
*/
|
|
2400
|
+
benchedPChainRequestsPercent: number;
|
|
2401
|
+
/**
|
|
2402
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2403
|
+
*/
|
|
2404
|
+
benchedXChainRequestsPercent: number;
|
|
2405
|
+
/**
|
|
2406
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
2407
|
+
*/
|
|
2408
|
+
benchedCChainRequestsPercent: number;
|
|
2409
|
+
};
|
|
2056
2410
|
|
|
2057
2411
|
type ActiveValidatorDetails = {
|
|
2412
|
+
txHash: string;
|
|
2058
2413
|
nodeId: string;
|
|
2414
|
+
subnetId: string;
|
|
2059
2415
|
amountStaked: string;
|
|
2060
|
-
delegationFee
|
|
2416
|
+
delegationFee?: string;
|
|
2061
2417
|
startTimestamp: number;
|
|
2062
2418
|
endTimestamp: number;
|
|
2063
|
-
validationStatus: ValidationStatusType;
|
|
2064
2419
|
stakePercentage: number;
|
|
2065
2420
|
delegatorCount: number;
|
|
2066
|
-
amountDelegated
|
|
2421
|
+
amountDelegated?: string;
|
|
2067
2422
|
uptimePerformance: number;
|
|
2068
|
-
avalancheGoVersion
|
|
2069
|
-
delegationCapacity
|
|
2423
|
+
avalancheGoVersion?: string;
|
|
2424
|
+
delegationCapacity?: string;
|
|
2070
2425
|
potentialRewards: Rewards;
|
|
2426
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2427
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2071
2428
|
};
|
|
2429
|
+
declare namespace ActiveValidatorDetails {
|
|
2430
|
+
enum validationStatus {
|
|
2431
|
+
ACTIVE = "active"
|
|
2432
|
+
}
|
|
2433
|
+
}
|
|
2072
2434
|
|
|
2073
2435
|
type CompletedValidatorDetails = {
|
|
2436
|
+
txHash: string;
|
|
2074
2437
|
nodeId: string;
|
|
2438
|
+
subnetId: string;
|
|
2075
2439
|
amountStaked: string;
|
|
2076
|
-
delegationFee
|
|
2440
|
+
delegationFee?: string;
|
|
2077
2441
|
startTimestamp: number;
|
|
2078
2442
|
endTimestamp: number;
|
|
2079
|
-
validationStatus: ValidationStatusType;
|
|
2080
2443
|
delegatorCount: number;
|
|
2081
2444
|
rewards: Rewards;
|
|
2445
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2082
2446
|
};
|
|
2447
|
+
declare namespace CompletedValidatorDetails {
|
|
2448
|
+
enum validationStatus {
|
|
2449
|
+
COMPLETED = "completed"
|
|
2450
|
+
}
|
|
2451
|
+
}
|
|
2083
2452
|
|
|
2084
2453
|
type PendingValidatorDetails = {
|
|
2454
|
+
txHash: string;
|
|
2085
2455
|
nodeId: string;
|
|
2456
|
+
subnetId: string;
|
|
2086
2457
|
amountStaked: string;
|
|
2087
|
-
delegationFee
|
|
2458
|
+
delegationFee?: string;
|
|
2459
|
+
startTimestamp: number;
|
|
2460
|
+
endTimestamp: number;
|
|
2461
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2462
|
+
};
|
|
2463
|
+
declare namespace PendingValidatorDetails {
|
|
2464
|
+
enum validationStatus {
|
|
2465
|
+
PENDING = "pending"
|
|
2466
|
+
}
|
|
2467
|
+
}
|
|
2468
|
+
|
|
2469
|
+
type RemovedValidatorDetails = {
|
|
2470
|
+
txHash: string;
|
|
2471
|
+
nodeId: string;
|
|
2472
|
+
subnetId: string;
|
|
2473
|
+
amountStaked: string;
|
|
2474
|
+
delegationFee?: string;
|
|
2088
2475
|
startTimestamp: number;
|
|
2089
2476
|
endTimestamp: number;
|
|
2090
|
-
|
|
2477
|
+
removeTxHash: string;
|
|
2478
|
+
removeTimestamp: number;
|
|
2479
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2091
2480
|
};
|
|
2481
|
+
declare namespace RemovedValidatorDetails {
|
|
2482
|
+
enum validationStatus {
|
|
2483
|
+
REMOVED = "removed"
|
|
2484
|
+
}
|
|
2485
|
+
}
|
|
2092
2486
|
|
|
2093
2487
|
type ListValidatorDetailsResponse = {
|
|
2094
2488
|
/**
|
|
@@ -2096,9 +2490,9 @@ type ListValidatorDetailsResponse = {
|
|
|
2096
2490
|
*/
|
|
2097
2491
|
nextPageToken?: string;
|
|
2098
2492
|
/**
|
|
2099
|
-
* The list of
|
|
2493
|
+
* The list of validator Details.
|
|
2100
2494
|
*/
|
|
2101
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2495
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2102
2496
|
};
|
|
2103
2497
|
|
|
2104
2498
|
declare enum Network {
|
|
@@ -2106,6 +2500,23 @@ declare enum Network {
|
|
|
2106
2500
|
FUJI = "fuji"
|
|
2107
2501
|
}
|
|
2108
2502
|
|
|
2503
|
+
declare enum ValidationStatusType {
|
|
2504
|
+
COMPLETED = "completed",
|
|
2505
|
+
ACTIVE = "active",
|
|
2506
|
+
PENDING = "pending",
|
|
2507
|
+
REMOVED = "removed"
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2511
|
+
FIXED = "fixed",
|
|
2512
|
+
VARIABLE = "variable"
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
declare enum PrimaryNetworkAssetType {
|
|
2516
|
+
SECP256K1 = "secp256k1",
|
|
2517
|
+
NFT = "nft"
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2109
2520
|
type XChainAssetDetails = {
|
|
2110
2521
|
/**
|
|
2111
2522
|
* Unique ID for an asset.
|
|
@@ -2126,15 +2537,15 @@ type XChainAssetDetails = {
|
|
|
2126
2537
|
/**
|
|
2127
2538
|
* Type of asset like SECP256K1 or NFT.
|
|
2128
2539
|
*/
|
|
2129
|
-
type:
|
|
2540
|
+
type: PrimaryNetworkAssetType;
|
|
2130
2541
|
/**
|
|
2131
2542
|
* Timestamp in seconds this asset was created on.
|
|
2132
2543
|
*/
|
|
2133
2544
|
createdAtTimestamp: number;
|
|
2134
2545
|
/**
|
|
2135
|
-
* Cap represents if an asset
|
|
2546
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2136
2547
|
*/
|
|
2137
|
-
cap:
|
|
2548
|
+
cap: PrimaryNetworkAssetCap;
|
|
2138
2549
|
};
|
|
2139
2550
|
|
|
2140
2551
|
declare enum XChainId {
|
|
@@ -2200,19 +2611,19 @@ declare class PrimaryNetworkService {
|
|
|
2200
2611
|
* @returns ListBlockchainsResponse
|
|
2201
2612
|
* @throws ApiError
|
|
2202
2613
|
*/
|
|
2203
|
-
listBlockchains({ network,
|
|
2614
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2204
2615
|
/**
|
|
2205
2616
|
* Either mainnet or a testnet.
|
|
2206
2617
|
*/
|
|
2207
2618
|
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
2619
|
/**
|
|
2213
2620
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2214
2621
|
*/
|
|
2215
2622
|
pageToken?: string;
|
|
2623
|
+
/**
|
|
2624
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2625
|
+
*/
|
|
2626
|
+
pageSize?: number;
|
|
2216
2627
|
/**
|
|
2217
2628
|
* 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
2629
|
*/
|
|
@@ -2224,19 +2635,19 @@ declare class PrimaryNetworkService {
|
|
|
2224
2635
|
* @returns ListSubnetsResponse
|
|
2225
2636
|
* @throws ApiError
|
|
2226
2637
|
*/
|
|
2227
|
-
listSubnets({ network,
|
|
2638
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2228
2639
|
/**
|
|
2229
2640
|
* Either mainnet or a testnet.
|
|
2230
2641
|
*/
|
|
2231
2642
|
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
2643
|
/**
|
|
2237
2644
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2238
2645
|
*/
|
|
2239
2646
|
pageToken?: string;
|
|
2647
|
+
/**
|
|
2648
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2649
|
+
*/
|
|
2650
|
+
pageSize?: number;
|
|
2240
2651
|
/**
|
|
2241
2652
|
* 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
2653
|
*/
|
|
@@ -2248,19 +2659,19 @@ declare class PrimaryNetworkService {
|
|
|
2248
2659
|
* @returns ListValidatorDetailsResponse
|
|
2249
2660
|
* @throws ApiError
|
|
2250
2661
|
*/
|
|
2251
|
-
listValidators({ network,
|
|
2662
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2252
2663
|
/**
|
|
2253
2664
|
* Either mainnet or a testnet.
|
|
2254
2665
|
*/
|
|
2255
2666
|
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
2667
|
/**
|
|
2261
2668
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2262
2669
|
*/
|
|
2263
2670
|
pageToken?: string;
|
|
2671
|
+
/**
|
|
2672
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2673
|
+
*/
|
|
2674
|
+
pageSize?: number;
|
|
2264
2675
|
/**
|
|
2265
2676
|
* A comma separated list of node ids to filter by.
|
|
2266
2677
|
*/
|
|
@@ -2274,9 +2685,33 @@ declare class PrimaryNetworkService {
|
|
|
2274
2685
|
*/
|
|
2275
2686
|
validationStatus?: ValidationStatusType;
|
|
2276
2687
|
/**
|
|
2277
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned
|
|
2688
|
+
* 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
|
|
2278
2689
|
*/
|
|
2279
|
-
minDelegationCapacity?:
|
|
2690
|
+
minDelegationCapacity?: string;
|
|
2691
|
+
/**
|
|
2692
|
+
* 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.
|
|
2693
|
+
*/
|
|
2694
|
+
maxDelegationCapacity?: string;
|
|
2695
|
+
/**
|
|
2696
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2697
|
+
*/
|
|
2698
|
+
minTimeRemaining?: number;
|
|
2699
|
+
/**
|
|
2700
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2701
|
+
*/
|
|
2702
|
+
maxTimeRemaining?: number;
|
|
2703
|
+
/**
|
|
2704
|
+
* 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.
|
|
2705
|
+
*/
|
|
2706
|
+
minFeePercentage?: number;
|
|
2707
|
+
/**
|
|
2708
|
+
* 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.
|
|
2709
|
+
*/
|
|
2710
|
+
maxFeePercentage?: number;
|
|
2711
|
+
/**
|
|
2712
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2713
|
+
*/
|
|
2714
|
+
subnetId?: string;
|
|
2280
2715
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2281
2716
|
/**
|
|
2282
2717
|
* Get single validator details
|
|
@@ -2284,7 +2719,7 @@ declare class PrimaryNetworkService {
|
|
|
2284
2719
|
* @returns ListValidatorDetailsResponse
|
|
2285
2720
|
* @throws ApiError
|
|
2286
2721
|
*/
|
|
2287
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2722
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2288
2723
|
/**
|
|
2289
2724
|
* Either mainnet or a testnet.
|
|
2290
2725
|
*/
|
|
@@ -2293,14 +2728,14 @@ declare class PrimaryNetworkService {
|
|
|
2293
2728
|
* A primary network (P or X chain) nodeId.
|
|
2294
2729
|
*/
|
|
2295
2730
|
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
2731
|
/**
|
|
2301
2732
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2302
2733
|
*/
|
|
2303
2734
|
pageToken?: string;
|
|
2735
|
+
/**
|
|
2736
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2737
|
+
*/
|
|
2738
|
+
pageSize?: number;
|
|
2304
2739
|
/**
|
|
2305
2740
|
* 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
2741
|
*/
|
|
@@ -2316,19 +2751,23 @@ declare class PrimaryNetworkService {
|
|
|
2316
2751
|
* @returns ListDelegatorDetailsResponse
|
|
2317
2752
|
* @throws ApiError
|
|
2318
2753
|
*/
|
|
2319
|
-
listDelegators({ network, pageSize,
|
|
2754
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2320
2755
|
/**
|
|
2321
2756
|
* Either mainnet or a testnet.
|
|
2322
2757
|
*/
|
|
2323
2758
|
network: Network;
|
|
2759
|
+
/**
|
|
2760
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2761
|
+
*/
|
|
2762
|
+
pageToken?: string;
|
|
2324
2763
|
/**
|
|
2325
2764
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2326
2765
|
*/
|
|
2327
2766
|
pageSize?: number;
|
|
2328
2767
|
/**
|
|
2329
|
-
* A
|
|
2768
|
+
* A comma separated list of reward addresses to filter by.
|
|
2330
2769
|
*/
|
|
2331
|
-
|
|
2770
|
+
rewardAddresses?: string;
|
|
2332
2771
|
/**
|
|
2333
2772
|
* 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
2773
|
*/
|
|
@@ -2337,10 +2776,6 @@ declare class PrimaryNetworkService {
|
|
|
2337
2776
|
* Delegation status of the node.
|
|
2338
2777
|
*/
|
|
2339
2778
|
delegationStatus?: DelegationStatusType;
|
|
2340
|
-
/**
|
|
2341
|
-
* A comma separated list of reward addresses to filter by.
|
|
2342
|
-
*/
|
|
2343
|
-
rewardAddresses?: string;
|
|
2344
2779
|
/**
|
|
2345
2780
|
* A comma separated list of node ids to filter by.
|
|
2346
2781
|
*/
|
|
@@ -2379,7 +2814,7 @@ type CChainSharedAssetBalance = {
|
|
|
2379
2814
|
/**
|
|
2380
2815
|
* Type of asset like SECP256K1 or NFT.
|
|
2381
2816
|
*/
|
|
2382
|
-
type:
|
|
2817
|
+
type: PrimaryNetworkAssetType;
|
|
2383
2818
|
/**
|
|
2384
2819
|
* Amount of the asset.
|
|
2385
2820
|
*/
|
|
@@ -2414,13 +2849,57 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2414
2849
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2415
2850
|
};
|
|
2416
2851
|
|
|
2417
|
-
type
|
|
2852
|
+
type Asset = {
|
|
2853
|
+
/**
|
|
2854
|
+
* Unique ID for an asset.
|
|
2855
|
+
*/
|
|
2418
2856
|
assetId: string;
|
|
2857
|
+
/**
|
|
2858
|
+
* Name of this asset.
|
|
2859
|
+
*/
|
|
2860
|
+
name: string;
|
|
2861
|
+
/**
|
|
2862
|
+
* Symbol for this asset (max 4 characters).
|
|
2863
|
+
*/
|
|
2864
|
+
symbol: string;
|
|
2865
|
+
/**
|
|
2866
|
+
* Denomination of this asset to represent fungibility.
|
|
2867
|
+
*/
|
|
2868
|
+
denomination: number;
|
|
2869
|
+
/**
|
|
2870
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2871
|
+
*/
|
|
2872
|
+
type: PrimaryNetworkAssetType;
|
|
2873
|
+
/**
|
|
2874
|
+
* Amount of the asset.
|
|
2875
|
+
*/
|
|
2419
2876
|
amount: string;
|
|
2420
2877
|
};
|
|
2421
2878
|
|
|
2422
2879
|
type PChainSharedAsset = {
|
|
2880
|
+
/**
|
|
2881
|
+
* Unique ID for an asset.
|
|
2882
|
+
*/
|
|
2423
2883
|
assetId: string;
|
|
2884
|
+
/**
|
|
2885
|
+
* Name of this asset.
|
|
2886
|
+
*/
|
|
2887
|
+
name: string;
|
|
2888
|
+
/**
|
|
2889
|
+
* Symbol for this asset (max 4 characters).
|
|
2890
|
+
*/
|
|
2891
|
+
symbol: string;
|
|
2892
|
+
/**
|
|
2893
|
+
* Denomination of this asset to represent fungibility.
|
|
2894
|
+
*/
|
|
2895
|
+
denomination: number;
|
|
2896
|
+
/**
|
|
2897
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2898
|
+
*/
|
|
2899
|
+
type: PrimaryNetworkAssetType;
|
|
2900
|
+
/**
|
|
2901
|
+
* Amount of the asset.
|
|
2902
|
+
*/
|
|
2424
2903
|
amount: string;
|
|
2425
2904
|
sharedWithChainId: string;
|
|
2426
2905
|
status: string;
|
|
@@ -2430,27 +2909,27 @@ type PChainBalance = {
|
|
|
2430
2909
|
/**
|
|
2431
2910
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is consumable by any transaction.
|
|
2432
2911
|
*/
|
|
2433
|
-
unlockedUnstaked: Array<
|
|
2912
|
+
unlockedUnstaked: Array<Asset>;
|
|
2434
2913
|
/**
|
|
2435
2914
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that is consumable by any transaction when the staking period ends.
|
|
2436
2915
|
*/
|
|
2437
|
-
unlockedStaked: Array<
|
|
2916
|
+
unlockedStaked: Array<Asset>;
|
|
2438
2917
|
/**
|
|
2439
2918
|
* A list of objects containing P-chain Asset ID and the amount 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.
|
|
2440
2919
|
*/
|
|
2441
|
-
lockedPlatform: Array<
|
|
2920
|
+
lockedPlatform: Array<Asset>;
|
|
2442
2921
|
/**
|
|
2443
2922
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2444
2923
|
*/
|
|
2445
|
-
lockedStakeable: Array<
|
|
2924
|
+
lockedStakeable: Array<Asset>;
|
|
2446
2925
|
/**
|
|
2447
2926
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax that will be locked when the staking period ends.
|
|
2448
2927
|
*/
|
|
2449
|
-
lockedStaked: Array<
|
|
2928
|
+
lockedStaked: Array<Asset>;
|
|
2450
2929
|
/**
|
|
2451
2930
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of staked Avax whose staking period has not yet started.
|
|
2452
2931
|
*/
|
|
2453
|
-
pendingStaked: Array<
|
|
2932
|
+
pendingStaked: Array<Asset>;
|
|
2454
2933
|
/**
|
|
2455
2934
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unlocked Avax in the atomic memory between P-Chain and other chain.
|
|
2456
2935
|
*/
|
|
@@ -2486,7 +2965,7 @@ type XChainAssetBalance = {
|
|
|
2486
2965
|
/**
|
|
2487
2966
|
* Type of asset like SECP256K1 or NFT.
|
|
2488
2967
|
*/
|
|
2489
|
-
type:
|
|
2968
|
+
type: PrimaryNetworkAssetType;
|
|
2490
2969
|
/**
|
|
2491
2970
|
* Amount of the asset.
|
|
2492
2971
|
*/
|
|
@@ -2514,7 +2993,7 @@ type XChainSharedAssetBalance = {
|
|
|
2514
2993
|
/**
|
|
2515
2994
|
* Type of asset like SECP256K1 or NFT.
|
|
2516
2995
|
*/
|
|
2517
|
-
type:
|
|
2996
|
+
type: PrimaryNetworkAssetType;
|
|
2518
2997
|
/**
|
|
2519
2998
|
* Amount of the asset.
|
|
2520
2999
|
*/
|
|
@@ -2589,6 +3068,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2589
3068
|
txCount: number;
|
|
2590
3069
|
transactions: Array<string>;
|
|
2591
3070
|
blockSizeBytes: number;
|
|
3071
|
+
currentSupply?: string;
|
|
2592
3072
|
proposerDetails?: ProposerDetails;
|
|
2593
3073
|
};
|
|
2594
3074
|
|
|
@@ -2601,6 +3081,7 @@ type PrimaryNetworkBlock = {
|
|
|
2601
3081
|
txCount: number;
|
|
2602
3082
|
transactions: Array<string>;
|
|
2603
3083
|
blockSizeBytes: number;
|
|
3084
|
+
currentSupply?: string;
|
|
2604
3085
|
proposerDetails?: ProposerDetails;
|
|
2605
3086
|
};
|
|
2606
3087
|
|
|
@@ -2642,7 +3123,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2642
3123
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2643
3124
|
* @throws ApiError
|
|
2644
3125
|
*/
|
|
2645
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3126
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2646
3127
|
/**
|
|
2647
3128
|
* A primary network blockchain id or alias.
|
|
2648
3129
|
*/
|
|
@@ -2656,13 +3137,13 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2656
3137
|
*/
|
|
2657
3138
|
nodeId: string;
|
|
2658
3139
|
/**
|
|
2659
|
-
*
|
|
3140
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2660
3141
|
*/
|
|
2661
|
-
|
|
3142
|
+
pageToken?: string;
|
|
2662
3143
|
/**
|
|
2663
|
-
*
|
|
3144
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2664
3145
|
*/
|
|
2665
|
-
|
|
3146
|
+
pageSize?: number;
|
|
2666
3147
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2667
3148
|
/**
|
|
2668
3149
|
* List latest blocks
|
|
@@ -2670,7 +3151,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2670
3151
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2671
3152
|
* @throws ApiError
|
|
2672
3153
|
*/
|
|
2673
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3154
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2674
3155
|
/**
|
|
2675
3156
|
* A primary network blockchain id or alias.
|
|
2676
3157
|
*/
|
|
@@ -2679,20 +3160,52 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2679
3160
|
* Either mainnet or a testnet.
|
|
2680
3161
|
*/
|
|
2681
3162
|
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
3163
|
/**
|
|
2687
3164
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2688
3165
|
*/
|
|
2689
3166
|
pageToken?: string;
|
|
3167
|
+
/**
|
|
3168
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3169
|
+
*/
|
|
3170
|
+
pageSize?: number;
|
|
2690
3171
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2691
3172
|
}
|
|
2692
3173
|
|
|
3174
|
+
type AssetWithPriceInfo = {
|
|
3175
|
+
/**
|
|
3176
|
+
* Unique ID for an asset.
|
|
3177
|
+
*/
|
|
3178
|
+
assetId: string;
|
|
3179
|
+
/**
|
|
3180
|
+
* Name of this asset.
|
|
3181
|
+
*/
|
|
3182
|
+
name: string;
|
|
3183
|
+
/**
|
|
3184
|
+
* Symbol for this asset (max 4 characters).
|
|
3185
|
+
*/
|
|
3186
|
+
symbol: string;
|
|
3187
|
+
/**
|
|
3188
|
+
* Denomination of this asset to represent fungibility.
|
|
3189
|
+
*/
|
|
3190
|
+
denomination: number;
|
|
3191
|
+
/**
|
|
3192
|
+
* Type of asset like SECP256K1 or NFT.
|
|
3193
|
+
*/
|
|
3194
|
+
type: PrimaryNetworkAssetType;
|
|
3195
|
+
/**
|
|
3196
|
+
* Amount of the asset.
|
|
3197
|
+
*/
|
|
3198
|
+
amount: string;
|
|
3199
|
+
/**
|
|
3200
|
+
* 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.
|
|
3201
|
+
*/
|
|
3202
|
+
historicalPrice?: Money;
|
|
3203
|
+
};
|
|
3204
|
+
|
|
2693
3205
|
declare enum RewardType {
|
|
2694
3206
|
VALIDATOR = "VALIDATOR",
|
|
2695
|
-
DELEGATOR = "DELEGATOR"
|
|
3207
|
+
DELEGATOR = "DELEGATOR",
|
|
3208
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2696
3209
|
}
|
|
2697
3210
|
|
|
2698
3211
|
type HistoricalReward = {
|
|
@@ -2708,10 +3221,7 @@ type HistoricalReward = {
|
|
|
2708
3221
|
rewardType: RewardType;
|
|
2709
3222
|
utxoId: string;
|
|
2710
3223
|
outputIndex: number;
|
|
2711
|
-
|
|
2712
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2713
|
-
*/
|
|
2714
|
-
reward: PChainAsset;
|
|
3224
|
+
reward: AssetWithPriceInfo;
|
|
2715
3225
|
rewardTxHash: string;
|
|
2716
3226
|
};
|
|
2717
3227
|
|
|
@@ -2738,7 +3248,7 @@ type PendingReward = {
|
|
|
2738
3248
|
/**
|
|
2739
3249
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2740
3250
|
*/
|
|
2741
|
-
estimatedReward:
|
|
3251
|
+
estimatedReward: Asset;
|
|
2742
3252
|
};
|
|
2743
3253
|
|
|
2744
3254
|
type ListPendingRewardsResponse = {
|
|
@@ -2758,23 +3268,27 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2758
3268
|
* @returns ListPendingRewardsResponse
|
|
2759
3269
|
* @throws ApiError
|
|
2760
3270
|
*/
|
|
2761
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3271
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2762
3272
|
/**
|
|
2763
3273
|
* Either mainnet or a testnet.
|
|
2764
3274
|
*/
|
|
2765
3275
|
network: Network;
|
|
2766
3276
|
/**
|
|
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".
|
|
3277
|
+
* 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
3278
|
*/
|
|
2769
3279
|
addresses?: string;
|
|
3280
|
+
/**
|
|
3281
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3282
|
+
*/
|
|
3283
|
+
pageToken?: string;
|
|
2770
3284
|
/**
|
|
2771
3285
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2772
3286
|
*/
|
|
2773
3287
|
pageSize?: number;
|
|
2774
3288
|
/**
|
|
2775
|
-
* A
|
|
3289
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
2776
3290
|
*/
|
|
2777
|
-
|
|
3291
|
+
nodeIds?: string;
|
|
2778
3292
|
/**
|
|
2779
3293
|
* 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
3294
|
*/
|
|
@@ -2786,64 +3300,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2786
3300
|
* @returns ListHistoricalRewardsResponse
|
|
2787
3301
|
* @throws ApiError
|
|
2788
3302
|
*/
|
|
2789
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3303
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
2790
3304
|
/**
|
|
2791
3305
|
* Either mainnet or a testnet.
|
|
2792
3306
|
*/
|
|
2793
3307
|
network: Network;
|
|
2794
3308
|
/**
|
|
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".
|
|
3309
|
+
* 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
3310
|
*/
|
|
2797
3311
|
addresses?: string;
|
|
3312
|
+
/**
|
|
3313
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3314
|
+
*/
|
|
3315
|
+
pageToken?: string;
|
|
2798
3316
|
/**
|
|
2799
3317
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2800
3318
|
*/
|
|
2801
3319
|
pageSize?: number;
|
|
2802
3320
|
/**
|
|
2803
|
-
* A
|
|
3321
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
2804
3322
|
*/
|
|
2805
|
-
|
|
3323
|
+
nodeIds?: string;
|
|
2806
3324
|
/**
|
|
2807
3325
|
* 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
3326
|
*/
|
|
2809
3327
|
sortOrder?: SortOrder;
|
|
3328
|
+
/**
|
|
3329
|
+
* The currency that return values should use. Defaults to USD.
|
|
3330
|
+
*/
|
|
3331
|
+
currency?: CurrencyCode;
|
|
2810
3332
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2811
3333
|
}
|
|
2812
3334
|
|
|
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
3335
|
type UtxoCredential = {
|
|
2841
3336
|
/**
|
|
2842
|
-
* Signature provided to consume the output
|
|
3337
|
+
* Signature provided to consume the output.
|
|
2843
3338
|
*/
|
|
2844
3339
|
signature?: string;
|
|
2845
3340
|
/**
|
|
2846
|
-
* Public key associated with the signature
|
|
3341
|
+
* Public key associated with the signature.
|
|
2847
3342
|
*/
|
|
2848
3343
|
publicKey?: string;
|
|
2849
3344
|
};
|
|
@@ -2865,66 +3360,66 @@ type EVMInput = {
|
|
|
2865
3360
|
|
|
2866
3361
|
type Utxo = {
|
|
2867
3362
|
/**
|
|
2868
|
-
*
|
|
3363
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2869
3364
|
*/
|
|
2870
|
-
|
|
3365
|
+
addresses: Array<string>;
|
|
2871
3366
|
asset: Asset;
|
|
2872
3367
|
/**
|
|
2873
|
-
*
|
|
3368
|
+
* Blockchain ID on which this output is consumed on.
|
|
2874
3369
|
*/
|
|
2875
|
-
|
|
3370
|
+
consumedOnChainId: string;
|
|
2876
3371
|
/**
|
|
2877
|
-
*
|
|
3372
|
+
* Transaction ID that consumed this output.
|
|
2878
3373
|
*/
|
|
2879
|
-
|
|
3374
|
+
consumingTxHash?: string;
|
|
2880
3375
|
/**
|
|
2881
|
-
* Blockchain ID on which this output is
|
|
3376
|
+
* Blockchain ID on which this output is created on.
|
|
2882
3377
|
*/
|
|
2883
|
-
|
|
3378
|
+
createdOnChainId: string;
|
|
2884
3379
|
/**
|
|
2885
|
-
*
|
|
3380
|
+
* UTXO ID for this output.
|
|
2886
3381
|
*/
|
|
2887
|
-
|
|
3382
|
+
utxoId: string;
|
|
2888
3383
|
/**
|
|
2889
|
-
*
|
|
3384
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2890
3385
|
*/
|
|
2891
|
-
|
|
3386
|
+
consumingTxTimestamp?: number;
|
|
2892
3387
|
/**
|
|
2893
|
-
*
|
|
3388
|
+
* Transaction ID that created this output.
|
|
2894
3389
|
*/
|
|
2895
|
-
|
|
3390
|
+
creationTxHash: string;
|
|
2896
3391
|
/**
|
|
2897
|
-
*
|
|
3392
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2898
3393
|
*/
|
|
2899
|
-
|
|
3394
|
+
credentials?: Array<UtxoCredential>;
|
|
2900
3395
|
/**
|
|
2901
|
-
*
|
|
3396
|
+
* Index representing the minting set for the NFT mint output.
|
|
2902
3397
|
*/
|
|
2903
|
-
|
|
3398
|
+
groupId?: number;
|
|
2904
3399
|
/**
|
|
2905
3400
|
* Locktime in seconds after which this output can be consumed.
|
|
2906
3401
|
*/
|
|
2907
3402
|
locktime: number;
|
|
2908
3403
|
/**
|
|
2909
|
-
*
|
|
3404
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
2910
3405
|
*/
|
|
2911
|
-
|
|
3406
|
+
outputIndex: string;
|
|
2912
3407
|
/**
|
|
2913
|
-
*
|
|
3408
|
+
* Hex encoded data for NFT assets.
|
|
2914
3409
|
*/
|
|
2915
|
-
|
|
3410
|
+
payload?: string;
|
|
2916
3411
|
/**
|
|
2917
|
-
*
|
|
3412
|
+
* Minimum number of signatures required to consume this output.
|
|
2918
3413
|
*/
|
|
2919
|
-
|
|
3414
|
+
threshold: number;
|
|
2920
3415
|
/**
|
|
2921
|
-
*
|
|
3416
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
2922
3417
|
*/
|
|
2923
|
-
|
|
3418
|
+
timestamp: number;
|
|
2924
3419
|
/**
|
|
2925
|
-
*
|
|
3420
|
+
* Type of output.
|
|
2926
3421
|
*/
|
|
2927
|
-
|
|
3422
|
+
utxoType: string;
|
|
2928
3423
|
};
|
|
2929
3424
|
|
|
2930
3425
|
type CChainExportTransaction = {
|
|
@@ -3055,16 +3550,18 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3055
3550
|
|
|
3056
3551
|
declare enum PChainTransactionType {
|
|
3057
3552
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3058
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3059
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3060
3553
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3061
|
-
|
|
3062
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3554
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3063
3555
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3064
3556
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3065
3557
|
IMPORT_TX = "ImportTx",
|
|
3066
3558
|
EXPORT_TX = "ExportTx",
|
|
3067
3559
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3560
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3561
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3562
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3563
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3564
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3068
3565
|
UNKNOWN = "UNKNOWN"
|
|
3069
3566
|
}
|
|
3070
3567
|
|
|
@@ -3075,29 +3572,48 @@ declare enum UtxoType {
|
|
|
3075
3572
|
|
|
3076
3573
|
type PChainUtxo = {
|
|
3077
3574
|
/**
|
|
3078
|
-
*
|
|
3575
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3079
3576
|
*/
|
|
3080
3577
|
addresses: Array<string>;
|
|
3578
|
+
asset: Asset;
|
|
3579
|
+
/**
|
|
3580
|
+
* Blockchain ID on which this output is consumed on.
|
|
3581
|
+
*/
|
|
3582
|
+
consumedOnChainId: string;
|
|
3583
|
+
/**
|
|
3584
|
+
* Transaction ID that consumed this output.
|
|
3585
|
+
*/
|
|
3586
|
+
consumingTxHash?: string;
|
|
3587
|
+
/**
|
|
3588
|
+
* Blockchain ID on which this output is created on.
|
|
3589
|
+
*/
|
|
3590
|
+
createdOnChainId: string;
|
|
3591
|
+
/**
|
|
3592
|
+
* UTXO ID for this output.
|
|
3593
|
+
*/
|
|
3081
3594
|
utxoId: string;
|
|
3082
|
-
|
|
3083
|
-
|
|
3595
|
+
/**
|
|
3596
|
+
* @deprecated
|
|
3597
|
+
*/
|
|
3598
|
+
amount: string;
|
|
3599
|
+
/**
|
|
3600
|
+
* @deprecated
|
|
3601
|
+
*/
|
|
3602
|
+
assetId: string;
|
|
3084
3603
|
blockNumber: string;
|
|
3085
3604
|
blockTimestamp: number;
|
|
3086
|
-
consumingTxHash?: string;
|
|
3087
|
-
consumingBlockTimestamp?: number;
|
|
3088
3605
|
consumingBlockNumber?: string;
|
|
3089
|
-
|
|
3090
|
-
utxoType: UtxoType;
|
|
3091
|
-
amount: string;
|
|
3092
|
-
stakeableLocktime?: number;
|
|
3606
|
+
consumingBlockTimestamp?: number;
|
|
3093
3607
|
platformLocktime?: number;
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3608
|
+
outputIndex: number;
|
|
3609
|
+
rewardType?: RewardType;
|
|
3610
|
+
stakeableLocktime?: number;
|
|
3097
3611
|
staked?: boolean;
|
|
3098
|
-
|
|
3612
|
+
threshold?: number;
|
|
3613
|
+
txHash: string;
|
|
3099
3614
|
utxoEndTimestamp?: number;
|
|
3100
|
-
|
|
3615
|
+
utxoStartTimestamp?: number;
|
|
3616
|
+
utxoType: UtxoType;
|
|
3101
3617
|
};
|
|
3102
3618
|
|
|
3103
3619
|
type PChainTransaction = {
|
|
@@ -3125,15 +3641,15 @@ type PChainTransaction = {
|
|
|
3125
3641
|
/**
|
|
3126
3642
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3127
3643
|
*/
|
|
3128
|
-
value: Array<
|
|
3644
|
+
value: Array<Asset>;
|
|
3129
3645
|
/**
|
|
3130
3646
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3131
3647
|
*/
|
|
3132
|
-
amountBurned: Array<
|
|
3648
|
+
amountBurned: Array<Asset>;
|
|
3133
3649
|
/**
|
|
3134
3650
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3135
3651
|
*/
|
|
3136
|
-
amountStaked: Array<
|
|
3652
|
+
amountStaked: Array<Asset>;
|
|
3137
3653
|
/**
|
|
3138
3654
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3139
3655
|
*/
|
|
@@ -3159,6 +3675,7 @@ type PChainTransaction = {
|
|
|
3159
3675
|
*/
|
|
3160
3676
|
estimatedReward?: string;
|
|
3161
3677
|
rewardTxHash?: string;
|
|
3678
|
+
rewardAddresses?: Array<string>;
|
|
3162
3679
|
memo?: string;
|
|
3163
3680
|
/**
|
|
3164
3681
|
* Present for RewardValidatorTx
|
|
@@ -3175,6 +3692,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3175
3692
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3176
3693
|
};
|
|
3177
3694
|
|
|
3695
|
+
declare enum XChainTransactionType {
|
|
3696
|
+
BASE_TX = "BaseTx",
|
|
3697
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3698
|
+
OPERATION_TX = "OperationTx",
|
|
3699
|
+
IMPORT_TX = "ImportTx",
|
|
3700
|
+
EXPORT_TX = "ExportTx",
|
|
3701
|
+
UNKNOWN = "UNKNOWN"
|
|
3702
|
+
}
|
|
3703
|
+
|
|
3178
3704
|
type XChainLinearTransaction = {
|
|
3179
3705
|
/**
|
|
3180
3706
|
* Unique ID for this transaction.
|
|
@@ -3191,7 +3717,7 @@ type XChainLinearTransaction = {
|
|
|
3191
3717
|
/**
|
|
3192
3718
|
* Type of transaction.
|
|
3193
3719
|
*/
|
|
3194
|
-
txType:
|
|
3720
|
+
txType: XChainTransactionType;
|
|
3195
3721
|
/**
|
|
3196
3722
|
* Hex encoded memo bytes for this transaction.
|
|
3197
3723
|
*/
|
|
@@ -3268,7 +3794,7 @@ type XChainNonLinearTransaction = {
|
|
|
3268
3794
|
/**
|
|
3269
3795
|
* Type of transaction.
|
|
3270
3796
|
*/
|
|
3271
|
-
txType:
|
|
3797
|
+
txType: XChainTransactionType;
|
|
3272
3798
|
/**
|
|
3273
3799
|
* Hex encoded memo bytes for this transaction.
|
|
3274
3800
|
*/
|
|
@@ -3326,16 +3852,18 @@ declare enum PChainId {
|
|
|
3326
3852
|
|
|
3327
3853
|
declare enum PrimaryNetworkTxType {
|
|
3328
3854
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3329
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3330
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3331
3855
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3332
|
-
|
|
3333
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3856
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3334
3857
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3335
3858
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3336
3859
|
IMPORT_TX = "ImportTx",
|
|
3337
3860
|
EXPORT_TX = "ExportTx",
|
|
3338
3861
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3862
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3863
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3864
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3865
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3866
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3339
3867
|
UNKNOWN = "UNKNOWN",
|
|
3340
3868
|
BASE_TX = "BaseTx",
|
|
3341
3869
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3367,11 +3895,15 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3367
3895
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
3368
3896
|
/**
|
|
3369
3897
|
* List latest transactions
|
|
3370
|
-
* Lists the latest transactions on one of the Primary Network chains.
|
|
3898
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
3899
|
+
*
|
|
3900
|
+
* 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.
|
|
3901
|
+
*
|
|
3902
|
+
* 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.
|
|
3371
3903
|
* @returns any
|
|
3372
3904
|
* @throws ApiError
|
|
3373
3905
|
*/
|
|
3374
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3906
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3375
3907
|
/**
|
|
3376
3908
|
* A primary network blockchain id or alias.
|
|
3377
3909
|
*/
|
|
@@ -3396,14 +3928,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3396
3928
|
* Query param for retrieving items before a specific timestamp.
|
|
3397
3929
|
*/
|
|
3398
3930
|
endTimestamp?: number;
|
|
3399
|
-
/**
|
|
3400
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3401
|
-
*/
|
|
3402
|
-
pageSize?: number;
|
|
3403
3931
|
/**
|
|
3404
3932
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3405
3933
|
*/
|
|
3406
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;
|
|
3407
3939
|
/**
|
|
3408
3940
|
* 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.
|
|
3409
3941
|
*/
|
|
@@ -3415,7 +3947,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3415
3947
|
* @returns ListPChainTransactionsResponse
|
|
3416
3948
|
* @throws ApiError
|
|
3417
3949
|
*/
|
|
3418
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3950
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3419
3951
|
/**
|
|
3420
3952
|
* A primary network blockchain id or alias.
|
|
3421
3953
|
*/
|
|
@@ -3440,14 +3972,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3440
3972
|
* Query param for retrieving items before a specific timestamp.
|
|
3441
3973
|
*/
|
|
3442
3974
|
endTimestamp?: number;
|
|
3443
|
-
/**
|
|
3444
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3445
|
-
*/
|
|
3446
|
-
pageSize?: number;
|
|
3447
3975
|
/**
|
|
3448
3976
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3449
3977
|
*/
|
|
3450
3978
|
pageToken?: string;
|
|
3979
|
+
/**
|
|
3980
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3981
|
+
*/
|
|
3982
|
+
pageSize?: number;
|
|
3451
3983
|
/**
|
|
3452
3984
|
* 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.
|
|
3453
3985
|
*/
|
|
@@ -3459,7 +3991,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3459
3991
|
* @returns ListXChainTransactionsResponse
|
|
3460
3992
|
* @throws ApiError
|
|
3461
3993
|
*/
|
|
3462
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
3994
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3463
3995
|
/**
|
|
3464
3996
|
* A primary network blockchain id or alias.
|
|
3465
3997
|
*/
|
|
@@ -3484,14 +4016,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3484
4016
|
* Query param for retrieving items before a specific timestamp.
|
|
3485
4017
|
*/
|
|
3486
4018
|
endTimestamp?: number;
|
|
3487
|
-
/**
|
|
3488
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3489
|
-
*/
|
|
3490
|
-
pageSize?: number;
|
|
3491
4019
|
/**
|
|
3492
4020
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3493
4021
|
*/
|
|
3494
4022
|
pageToken?: string;
|
|
4023
|
+
/**
|
|
4024
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4025
|
+
*/
|
|
4026
|
+
pageSize?: number;
|
|
3495
4027
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3496
4028
|
}
|
|
3497
4029
|
|
|
@@ -3522,7 +4054,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3522
4054
|
* @returns any
|
|
3523
4055
|
* @throws ApiError
|
|
3524
4056
|
*/
|
|
3525
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4057
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3526
4058
|
/**
|
|
3527
4059
|
* A primary network blockchain id or alias.
|
|
3528
4060
|
*/
|
|
@@ -3535,14 +4067,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3535
4067
|
* 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".
|
|
3536
4068
|
*/
|
|
3537
4069
|
addresses?: string;
|
|
3538
|
-
/**
|
|
3539
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3540
|
-
*/
|
|
3541
|
-
pageSize?: number;
|
|
3542
4070
|
/**
|
|
3543
4071
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3544
4072
|
*/
|
|
3545
4073
|
pageToken?: string;
|
|
4074
|
+
/**
|
|
4075
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4076
|
+
*/
|
|
4077
|
+
pageSize?: number;
|
|
3546
4078
|
/**
|
|
3547
4079
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3548
4080
|
*/
|
|
@@ -3587,7 +4119,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3587
4119
|
* @returns ListXChainVerticesResponse
|
|
3588
4120
|
* @throws ApiError
|
|
3589
4121
|
*/
|
|
3590
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4122
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3591
4123
|
/**
|
|
3592
4124
|
* A primary network blockchain id or alias.
|
|
3593
4125
|
*/
|
|
@@ -3596,14 +4128,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3596
4128
|
* Either mainnet or a testnet.
|
|
3597
4129
|
*/
|
|
3598
4130
|
network: Network;
|
|
3599
|
-
/**
|
|
3600
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3601
|
-
*/
|
|
3602
|
-
pageSize?: number;
|
|
3603
4131
|
/**
|
|
3604
4132
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3605
4133
|
*/
|
|
3606
4134
|
pageToken?: string;
|
|
4135
|
+
/**
|
|
4136
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4137
|
+
*/
|
|
4138
|
+
pageSize?: number;
|
|
3607
4139
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3608
4140
|
/**
|
|
3609
4141
|
* Get vertex
|
|
@@ -3631,7 +4163,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3631
4163
|
* @returns ListXChainVerticesResponse
|
|
3632
4164
|
* @throws ApiError
|
|
3633
4165
|
*/
|
|
3634
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4166
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3635
4167
|
/**
|
|
3636
4168
|
* The height of a vertex.
|
|
3637
4169
|
*/
|
|
@@ -3644,14 +4176,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3644
4176
|
* Either mainnet or a testnet.
|
|
3645
4177
|
*/
|
|
3646
4178
|
network: Network;
|
|
3647
|
-
/**
|
|
3648
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3649
|
-
*/
|
|
3650
|
-
pageSize?: number;
|
|
3651
4179
|
/**
|
|
3652
4180
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3653
4181
|
*/
|
|
3654
4182
|
pageToken?: string;
|
|
4183
|
+
/**
|
|
4184
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4185
|
+
*/
|
|
4186
|
+
pageSize?: number;
|
|
3655
4187
|
/**
|
|
3656
4188
|
* 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.
|
|
3657
4189
|
*/
|
|
@@ -3661,9 +4193,11 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3661
4193
|
|
|
3662
4194
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3663
4195
|
declare class Glacier {
|
|
4196
|
+
readonly default: DefaultService;
|
|
3664
4197
|
readonly evmBalances: EvmBalancesService;
|
|
3665
4198
|
readonly evmBlocks: EvmBlocksService;
|
|
3666
4199
|
readonly evmChains: EvmChainsService;
|
|
4200
|
+
readonly evmContracts: EvmContractsService;
|
|
3667
4201
|
readonly evmTransactions: EvmTransactionsService;
|
|
3668
4202
|
readonly healthCheck: HealthCheckService;
|
|
3669
4203
|
readonly nfTs: NfTsService;
|
|
@@ -3696,4 +4230,4 @@ declare class ApiError extends Error {
|
|
|
3696
4230
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3697
4231
|
}
|
|
3698
4232
|
|
|
3699
|
-
export { ActiveDelegatorDetails, ActiveValidatorDetails, ApiError, Asset, BaseHttpRequest, Blockchain, BlockchainId, BlockchainIds, BlockchainInfo, CChainAtomicBalances, CChainExportTransaction, CChainImportTransaction, CChainSharedAssetBalance, CancelError, CancelablePromise, ChainAddressChainIdMap, ChainAddressChainIdMapListResponse, ChainInfo, ChainStatus, CompletedDelegatorDetails, CompletedValidatorDetails, ContractDeploymentDetails, CreateEvmTransactionExportRequest, CreatePrimaryNetworkTransactionExportRequest, CurrencyCode, DelegationStatusType, DelegatorsDetails, EVMInput, EVMOutput, Erc1155Contract, Erc1155Token, Erc1155TokenBalance, Erc1155TokenMetadata, Erc1155Transfer, Erc1155TransferDetails, Erc20Contract, Erc20Token, Erc20TokenBalance, Erc20Transfer, Erc20TransferDetails, Erc721Contract, Erc721Token, Erc721TokenBalance, Erc721TokenMetadata, Erc721Transfer, Erc721TransferDetails, EvmBalancesService, EvmBlock, EvmBlocksService, EvmChainsService, EvmNetworkOptions, EvmTransactionsService, FullNativeTransactionDetails, GetChainResponse, GetEvmBlockResponse, GetNativeBalanceResponse, GetNetworkDetailsResponse, GetPrimaryNetworkBlockResponse, GetTransactionResponse, Glacier, HealthCheckService, HistoricalReward, ImageAsset, InternalTransaction, InternalTransactionDetails, InternalTransactionOpCall, ListBlockchainsResponse, ListCChainAtomicBalancesResponse, ListCChainAtomicTransactionsResponse, ListChainsResponse, ListCollectibleBalancesResponse, ListContractsResponse, ListDelegatorDetailsResponse, ListErc1155BalancesResponse, ListErc1155TransactionsResponse, ListErc20BalancesResponse, ListErc20TransactionsResponse, ListErc721BalancesResponse, ListErc721TransactionsResponse, ListEvmBlocksResponse, ListHistoricalRewardsResponse, ListInternalTransactionsResponse, ListNativeTransactionsResponse, ListPChainBalancesResponse, ListPChainTransactionsResponse, ListPChainUtxosResponse, ListPendingRewardsResponse, ListPrimaryNetworkBlocksResponse, ListSubnetsResponse, ListTransactionDetailsResponse, ListTransfersResponse, ListUtxosResponse, ListValidatorDetailsResponse, ListXChainBalancesResponse, ListXChainTransactionsResponse, ListXChainVerticesResponse, Method, Money, NativeTokenBalance, NativeTransaction, Network, NetworkToken, NetworkTokenDetails, NetworkType, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService,
|
|
4233
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, 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, EVMInput, 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, 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, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkAssetCap, PrimaryNetworkAssetType, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TransactionDetails, TransactionExportMetadata, TransactionMethodType, TransactionStatus, TransactionVertexDetail, UnknownContract, UpdateContractResponse, UtilityAddresses, Utxo, UtxoCredential, UtxoType, ValidationStatusType, ValidatorHealthDetails, ValidatorsDetails, VmName, WebhookResponse, WebhookStatus, WebhookStatusType, XChainAssetBalance, XChainAssetDetails, XChainBalances, XChainId, XChainLinearTransaction, XChainNonLinearTransaction, XChainSharedAssetBalance, XChainTransactionType, XChainVertex };
|