@avalabs/glacier-sdk 2.8.0-canary.c83789f.0 → 2.8.0-canary.c929fd2.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 +1096 -559
- package/dist/index.js +369 -116
- package/esm/generated/Glacier.d.ts +4 -0
- package/esm/generated/Glacier.js +6 -0
- 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 +74 -0
- package/esm/generated/services/DefaultService.js +61 -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 +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +8 -8
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +2 -2
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +6 -6
- package/esm/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,130 @@ 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
|
+
* Get a shared secret
|
|
180
|
+
* Get a previously generated shared secret.
|
|
181
|
+
* @returns SharedSecretsResponse
|
|
182
|
+
* @throws ApiError
|
|
183
|
+
*/
|
|
184
|
+
getSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
185
|
+
}
|
|
186
|
+
|
|
63
187
|
declare enum CurrencyCode {
|
|
64
188
|
USD = "usd",
|
|
65
189
|
EUR = "eur",
|
|
@@ -335,7 +459,7 @@ declare class EvmBalancesService {
|
|
|
335
459
|
*/
|
|
336
460
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
337
461
|
/**
|
|
338
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
462
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
339
463
|
*/
|
|
340
464
|
chainId: string;
|
|
341
465
|
/**
|
|
@@ -361,9 +485,9 @@ declare class EvmBalancesService {
|
|
|
361
485
|
* @returns ListErc20BalancesResponse
|
|
362
486
|
* @throws ApiError
|
|
363
487
|
*/
|
|
364
|
-
listErc20Balances({ chainId, address, blockNumber,
|
|
488
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddresses, currency, }: {
|
|
365
489
|
/**
|
|
366
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
490
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
367
491
|
*/
|
|
368
492
|
chainId: string;
|
|
369
493
|
/**
|
|
@@ -374,14 +498,14 @@ declare class EvmBalancesService {
|
|
|
374
498
|
* The block number, if not defined the block number will be the latest block.
|
|
375
499
|
*/
|
|
376
500
|
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
501
|
/**
|
|
382
502
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
383
503
|
*/
|
|
384
504
|
pageToken?: string;
|
|
505
|
+
/**
|
|
506
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
507
|
+
*/
|
|
508
|
+
pageSize?: number;
|
|
385
509
|
/**
|
|
386
510
|
* A comma separated list of contract addresses to filter by.
|
|
387
511
|
*/
|
|
@@ -399,23 +523,23 @@ declare class EvmBalancesService {
|
|
|
399
523
|
* @returns ListErc721BalancesResponse
|
|
400
524
|
* @throws ApiError
|
|
401
525
|
*/
|
|
402
|
-
listErc721Balances({ chainId, address,
|
|
526
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
403
527
|
/**
|
|
404
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
528
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
405
529
|
*/
|
|
406
530
|
chainId: string;
|
|
407
531
|
/**
|
|
408
532
|
* A wallet address.
|
|
409
533
|
*/
|
|
410
534
|
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
535
|
/**
|
|
416
536
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
417
537
|
*/
|
|
418
538
|
pageToken?: string;
|
|
539
|
+
/**
|
|
540
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
541
|
+
*/
|
|
542
|
+
pageSize?: number;
|
|
419
543
|
/**
|
|
420
544
|
* A contract addresses to filter by.
|
|
421
545
|
*/
|
|
@@ -431,9 +555,9 @@ declare class EvmBalancesService {
|
|
|
431
555
|
* @returns ListErc1155BalancesResponse
|
|
432
556
|
* @throws ApiError
|
|
433
557
|
*/
|
|
434
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
558
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
435
559
|
/**
|
|
436
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
560
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
437
561
|
*/
|
|
438
562
|
chainId: string;
|
|
439
563
|
/**
|
|
@@ -444,14 +568,14 @@ declare class EvmBalancesService {
|
|
|
444
568
|
* The block number, if not defined the block number will be the latest block.
|
|
445
569
|
*/
|
|
446
570
|
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
571
|
/**
|
|
452
572
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
453
573
|
*/
|
|
454
574
|
pageToken?: string;
|
|
575
|
+
/**
|
|
576
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
577
|
+
*/
|
|
578
|
+
pageSize?: number;
|
|
455
579
|
/**
|
|
456
580
|
* A contract addresses to filter by.
|
|
457
581
|
*/
|
|
@@ -465,23 +589,23 @@ declare class EvmBalancesService {
|
|
|
465
589
|
* @returns ListCollectibleBalancesResponse
|
|
466
590
|
* @throws ApiError
|
|
467
591
|
*/
|
|
468
|
-
listCollectibleBalances({ chainId, address,
|
|
592
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
469
593
|
/**
|
|
470
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
594
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
471
595
|
*/
|
|
472
596
|
chainId: string;
|
|
473
597
|
/**
|
|
474
598
|
* A wallet address.
|
|
475
599
|
*/
|
|
476
600
|
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
601
|
/**
|
|
482
602
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
483
603
|
*/
|
|
484
604
|
pageToken?: string;
|
|
605
|
+
/**
|
|
606
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
607
|
+
*/
|
|
608
|
+
pageSize?: number;
|
|
485
609
|
/**
|
|
486
610
|
* A contract addresses to filter by.
|
|
487
611
|
*/
|
|
@@ -594,19 +718,19 @@ declare class EvmBlocksService {
|
|
|
594
718
|
* @returns ListEvmBlocksResponse
|
|
595
719
|
* @throws ApiError
|
|
596
720
|
*/
|
|
597
|
-
getLatestBlocks({ chainId,
|
|
721
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
598
722
|
/**
|
|
599
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
723
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
600
724
|
*/
|
|
601
725
|
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
726
|
/**
|
|
607
727
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
608
728
|
*/
|
|
609
729
|
pageToken?: string;
|
|
730
|
+
/**
|
|
731
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
732
|
+
*/
|
|
733
|
+
pageSize?: number;
|
|
610
734
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
611
735
|
/**
|
|
612
736
|
* Get block
|
|
@@ -616,7 +740,7 @@ declare class EvmBlocksService {
|
|
|
616
740
|
*/
|
|
617
741
|
getBlock({ chainId, blockId, }: {
|
|
618
742
|
/**
|
|
619
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
743
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
620
744
|
*/
|
|
621
745
|
chainId: string;
|
|
622
746
|
/**
|
|
@@ -680,6 +804,7 @@ type GetChainResponse = {
|
|
|
680
804
|
utilityAddresses?: UtilityAddresses;
|
|
681
805
|
networkToken: NetworkToken;
|
|
682
806
|
chainLogoUri?: string;
|
|
807
|
+
private?: boolean;
|
|
683
808
|
};
|
|
684
809
|
|
|
685
810
|
type ChainInfo = {
|
|
@@ -701,6 +826,7 @@ type ChainInfo = {
|
|
|
701
826
|
utilityAddresses?: UtilityAddresses;
|
|
702
827
|
networkToken: NetworkToken;
|
|
703
828
|
chainLogoUri?: string;
|
|
829
|
+
private?: boolean;
|
|
704
830
|
};
|
|
705
831
|
|
|
706
832
|
type ListChainsResponse = {
|
|
@@ -735,268 +861,150 @@ declare class EvmChainsService {
|
|
|
735
861
|
*/
|
|
736
862
|
getChainInfo({ chainId, }: {
|
|
737
863
|
/**
|
|
738
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
864
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
739
865
|
*/
|
|
740
866
|
chainId: string;
|
|
741
867
|
}): CancelablePromise<GetChainResponse>;
|
|
742
868
|
}
|
|
743
869
|
|
|
744
|
-
type
|
|
870
|
+
type ImageAsset = {
|
|
871
|
+
assetId?: string;
|
|
745
872
|
/**
|
|
746
|
-
*
|
|
873
|
+
* OUTPUT ONLY
|
|
747
874
|
*/
|
|
748
|
-
|
|
749
|
-
ercType: Erc1155Token.ercType;
|
|
750
|
-
tokenId: string;
|
|
751
|
-
tokenUri: string;
|
|
752
|
-
metadata: Erc1155TokenMetadata;
|
|
875
|
+
imageUri?: string;
|
|
753
876
|
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
877
|
+
|
|
878
|
+
type PricingProviders = {
|
|
879
|
+
coingeckoCoinId?: string;
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
declare enum ResourceLinkType {
|
|
883
|
+
BLOG = "Blog",
|
|
884
|
+
COIN_GECKO = "CoinGecko",
|
|
885
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
886
|
+
DISCORD = "Discord",
|
|
887
|
+
DOCUMENTATION = "Documentation",
|
|
888
|
+
FACEBOOK = "Facebook",
|
|
889
|
+
GITHUB = "Github",
|
|
890
|
+
INSTAGRAM = "Instagram",
|
|
891
|
+
LINKED_IN = "LinkedIn",
|
|
892
|
+
MEDIUM = "Medium",
|
|
893
|
+
REDDIT = "Reddit",
|
|
894
|
+
SUPPORT = "Support",
|
|
895
|
+
TELEGRAM = "Telegram",
|
|
896
|
+
TIK_TOK = "TikTok",
|
|
897
|
+
TWITTER = "Twitter",
|
|
898
|
+
WEBSITE = "Website",
|
|
899
|
+
WHITEPAPER = "Whitepaper",
|
|
900
|
+
YOUTUBE = "Youtube"
|
|
758
901
|
}
|
|
759
902
|
|
|
760
|
-
type
|
|
903
|
+
type ResourceLink = {
|
|
904
|
+
type: ResourceLinkType;
|
|
905
|
+
url: string;
|
|
906
|
+
};
|
|
907
|
+
|
|
908
|
+
type ContractSubmissionErc1155 = {
|
|
909
|
+
description?: string;
|
|
910
|
+
officialSite?: string;
|
|
911
|
+
email?: string;
|
|
912
|
+
logoAsset?: ImageAsset;
|
|
913
|
+
bannerAsset?: ImageAsset;
|
|
914
|
+
color?: string;
|
|
915
|
+
resourceLinks?: Array<ResourceLink>;
|
|
916
|
+
tags?: Array<string>;
|
|
761
917
|
/**
|
|
762
918
|
* The contract name.
|
|
763
919
|
*/
|
|
764
|
-
name
|
|
920
|
+
name: string;
|
|
921
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
765
922
|
/**
|
|
766
923
|
* The contract symbol.
|
|
767
924
|
*/
|
|
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;
|
|
925
|
+
symbol: string;
|
|
926
|
+
pricingProviders?: PricingProviders;
|
|
789
927
|
};
|
|
928
|
+
declare namespace ContractSubmissionErc1155 {
|
|
929
|
+
enum ercType {
|
|
930
|
+
ERC_1155 = "ERC-1155"
|
|
931
|
+
}
|
|
932
|
+
}
|
|
790
933
|
|
|
791
|
-
type
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
934
|
+
type ContractSubmissionErc20 = {
|
|
935
|
+
description?: string;
|
|
936
|
+
officialSite?: string;
|
|
937
|
+
email?: string;
|
|
938
|
+
logoAsset?: ImageAsset;
|
|
939
|
+
bannerAsset?: ImageAsset;
|
|
940
|
+
color?: string;
|
|
941
|
+
resourceLinks?: Array<ResourceLink>;
|
|
942
|
+
tags?: Array<string>;
|
|
796
943
|
/**
|
|
797
944
|
* The contract name.
|
|
798
945
|
*/
|
|
799
946
|
name: string;
|
|
947
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
800
948
|
/**
|
|
801
949
|
* The contract symbol.
|
|
802
950
|
*/
|
|
803
951
|
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;
|
|
952
|
+
pricingProviders?: PricingProviders;
|
|
817
953
|
};
|
|
818
|
-
declare namespace
|
|
954
|
+
declare namespace ContractSubmissionErc20 {
|
|
819
955
|
enum ercType {
|
|
820
956
|
ERC_20 = "ERC-20"
|
|
821
957
|
}
|
|
822
958
|
}
|
|
823
959
|
|
|
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;
|
|
960
|
+
type ContractSubmissionErc721 = {
|
|
961
|
+
description?: string;
|
|
962
|
+
officialSite?: string;
|
|
963
|
+
email?: string;
|
|
964
|
+
logoAsset?: ImageAsset;
|
|
965
|
+
bannerAsset?: ImageAsset;
|
|
966
|
+
color?: string;
|
|
967
|
+
resourceLinks?: Array<ResourceLink>;
|
|
968
|
+
tags?: Array<string>;
|
|
837
969
|
/**
|
|
838
970
|
* The contract name.
|
|
839
971
|
*/
|
|
840
972
|
name: string;
|
|
973
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
841
974
|
/**
|
|
842
975
|
* The contract symbol.
|
|
843
976
|
*/
|
|
844
977
|
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
978
|
};
|
|
854
|
-
declare namespace
|
|
979
|
+
declare namespace ContractSubmissionErc721 {
|
|
855
980
|
enum ercType {
|
|
856
981
|
ERC_721 = "ERC-721"
|
|
857
982
|
}
|
|
858
983
|
}
|
|
859
984
|
|
|
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;
|
|
985
|
+
type ContractSubmissionUnknown = {
|
|
986
|
+
description?: string;
|
|
987
|
+
officialSite?: string;
|
|
988
|
+
email?: string;
|
|
989
|
+
logoAsset?: ImageAsset;
|
|
990
|
+
bannerAsset?: ImageAsset;
|
|
991
|
+
color?: string;
|
|
992
|
+
resourceLinks?: Array<ResourceLink>;
|
|
993
|
+
tags?: Array<string>;
|
|
937
994
|
/**
|
|
938
|
-
* The
|
|
995
|
+
* The contract name.
|
|
939
996
|
*/
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
maxFeePerGas?: string;
|
|
943
|
-
maxPriorityFeePerGas?: string;
|
|
997
|
+
name: string;
|
|
998
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
944
999
|
};
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
CREATE = "CREATE",
|
|
950
|
-
CREATE2 = "CREATE2",
|
|
951
|
-
CALLCODE = "CALLCODE",
|
|
952
|
-
DELEGATECALL = "DELEGATECALL",
|
|
953
|
-
STATICCALL = "STATICCALL"
|
|
1000
|
+
declare namespace ContractSubmissionUnknown {
|
|
1001
|
+
enum ercType {
|
|
1002
|
+
UNKNOWN = "UNKNOWN"
|
|
1003
|
+
}
|
|
954
1004
|
}
|
|
955
1005
|
|
|
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;
|
|
1006
|
+
type ContractSubmissionBody = {
|
|
1007
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
1000
1008
|
};
|
|
1001
1009
|
|
|
1002
1010
|
type ContractDeploymentDetails = {
|
|
@@ -1011,44 +1019,6 @@ type ContractDeploymentDetails = {
|
|
|
1011
1019
|
deployerContractAddress?: string;
|
|
1012
1020
|
};
|
|
1013
1021
|
|
|
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
1022
|
type Erc1155Contract = {
|
|
1053
1023
|
/**
|
|
1054
1024
|
* The contract name.
|
|
@@ -1107,7 +1077,7 @@ type Erc20Contract = {
|
|
|
1107
1077
|
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1108
1078
|
*/
|
|
1109
1079
|
decimals: number;
|
|
1110
|
-
pricingProviders
|
|
1080
|
+
pricingProviders?: PricingProviders;
|
|
1111
1081
|
};
|
|
1112
1082
|
declare namespace Erc20Contract {
|
|
1113
1083
|
enum ercType {
|
|
@@ -1171,12 +1141,312 @@ declare namespace UnknownContract {
|
|
|
1171
1141
|
}
|
|
1172
1142
|
}
|
|
1173
1143
|
|
|
1144
|
+
type UpdateContractResponse = {
|
|
1145
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1146
|
+
};
|
|
1147
|
+
|
|
1148
|
+
declare class EvmContractsService {
|
|
1149
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1150
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1151
|
+
/**
|
|
1152
|
+
* Get contract metadata
|
|
1153
|
+
* Gets metadata about the contract at the given address.
|
|
1154
|
+
* @returns any
|
|
1155
|
+
* @throws ApiError
|
|
1156
|
+
*/
|
|
1157
|
+
getContractMetadata({ chainId, address, }: {
|
|
1158
|
+
/**
|
|
1159
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1160
|
+
*/
|
|
1161
|
+
chainId: string;
|
|
1162
|
+
/**
|
|
1163
|
+
* Contract address on the relevant chain.
|
|
1164
|
+
*/
|
|
1165
|
+
address: string;
|
|
1166
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1167
|
+
/**
|
|
1168
|
+
* Update contract information
|
|
1169
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1170
|
+
* @returns UpdateContractResponse
|
|
1171
|
+
* @throws ApiError
|
|
1172
|
+
*/
|
|
1173
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1174
|
+
/**
|
|
1175
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1176
|
+
*/
|
|
1177
|
+
chainId: string;
|
|
1178
|
+
/**
|
|
1179
|
+
* Contract address on the relevant chain.
|
|
1180
|
+
*/
|
|
1181
|
+
address: string;
|
|
1182
|
+
requestBody: ContractSubmissionBody;
|
|
1183
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
type Erc1155Token = {
|
|
1187
|
+
/**
|
|
1188
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1189
|
+
*/
|
|
1190
|
+
address: string;
|
|
1191
|
+
ercType: Erc1155Token.ercType;
|
|
1192
|
+
tokenId: string;
|
|
1193
|
+
tokenUri: string;
|
|
1194
|
+
metadata: Erc1155TokenMetadata;
|
|
1195
|
+
};
|
|
1196
|
+
declare namespace Erc1155Token {
|
|
1197
|
+
enum ercType {
|
|
1198
|
+
ERC_1155 = "ERC-1155"
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
type RichAddress = {
|
|
1203
|
+
/**
|
|
1204
|
+
* The contract name.
|
|
1205
|
+
*/
|
|
1206
|
+
name?: string;
|
|
1207
|
+
/**
|
|
1208
|
+
* The contract symbol.
|
|
1209
|
+
*/
|
|
1210
|
+
symbol?: string;
|
|
1211
|
+
/**
|
|
1212
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1213
|
+
*/
|
|
1214
|
+
decimals?: number;
|
|
1215
|
+
/**
|
|
1216
|
+
* The logo uri for the address.
|
|
1217
|
+
*/
|
|
1218
|
+
logoUri?: string;
|
|
1219
|
+
/**
|
|
1220
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1221
|
+
*/
|
|
1222
|
+
address: string;
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
type Erc1155TransferDetails = {
|
|
1226
|
+
from: RichAddress;
|
|
1227
|
+
to: RichAddress;
|
|
1228
|
+
logIndex: number;
|
|
1229
|
+
value: string;
|
|
1230
|
+
erc1155Token: Erc1155Token;
|
|
1231
|
+
};
|
|
1232
|
+
|
|
1233
|
+
type Erc20Token = {
|
|
1234
|
+
/**
|
|
1235
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1236
|
+
*/
|
|
1237
|
+
address: string;
|
|
1238
|
+
/**
|
|
1239
|
+
* The contract name.
|
|
1240
|
+
*/
|
|
1241
|
+
name: string;
|
|
1242
|
+
/**
|
|
1243
|
+
* The contract symbol.
|
|
1244
|
+
*/
|
|
1245
|
+
symbol: string;
|
|
1246
|
+
/**
|
|
1247
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1248
|
+
*/
|
|
1249
|
+
decimals: number;
|
|
1250
|
+
/**
|
|
1251
|
+
* The logo uri for the address.
|
|
1252
|
+
*/
|
|
1253
|
+
logoUri?: string;
|
|
1254
|
+
ercType: Erc20Token.ercType;
|
|
1255
|
+
/**
|
|
1256
|
+
* The token price, if available.
|
|
1257
|
+
*/
|
|
1258
|
+
price?: Money;
|
|
1259
|
+
};
|
|
1260
|
+
declare namespace Erc20Token {
|
|
1261
|
+
enum ercType {
|
|
1262
|
+
ERC_20 = "ERC-20"
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
type Erc20TransferDetails = {
|
|
1267
|
+
from: RichAddress;
|
|
1268
|
+
to: RichAddress;
|
|
1269
|
+
logIndex: number;
|
|
1270
|
+
value: string;
|
|
1271
|
+
erc20Token: Erc20Token;
|
|
1272
|
+
};
|
|
1273
|
+
|
|
1274
|
+
type Erc721Token = {
|
|
1275
|
+
/**
|
|
1276
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1277
|
+
*/
|
|
1278
|
+
address: string;
|
|
1279
|
+
/**
|
|
1280
|
+
* The contract name.
|
|
1281
|
+
*/
|
|
1282
|
+
name: string;
|
|
1283
|
+
/**
|
|
1284
|
+
* The contract symbol.
|
|
1285
|
+
*/
|
|
1286
|
+
symbol: string;
|
|
1287
|
+
ercType: Erc721Token.ercType;
|
|
1288
|
+
tokenId: string;
|
|
1289
|
+
tokenUri: string;
|
|
1290
|
+
metadata: Erc721TokenMetadata;
|
|
1291
|
+
/**
|
|
1292
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1293
|
+
*/
|
|
1294
|
+
ownerAddress?: string;
|
|
1295
|
+
};
|
|
1296
|
+
declare namespace Erc721Token {
|
|
1297
|
+
enum ercType {
|
|
1298
|
+
ERC_721 = "ERC-721"
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
type Erc721TransferDetails = {
|
|
1303
|
+
from: RichAddress;
|
|
1304
|
+
to: RichAddress;
|
|
1305
|
+
logIndex: number;
|
|
1306
|
+
erc721Token: Erc721Token;
|
|
1307
|
+
};
|
|
1308
|
+
|
|
1309
|
+
declare enum TransactionMethodType {
|
|
1310
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1311
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1312
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
type Method = {
|
|
1316
|
+
/**
|
|
1317
|
+
* 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.
|
|
1318
|
+
*/
|
|
1319
|
+
callType: TransactionMethodType;
|
|
1320
|
+
/**
|
|
1321
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1322
|
+
*/
|
|
1323
|
+
methodHash: string;
|
|
1324
|
+
/**
|
|
1325
|
+
* 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'.
|
|
1326
|
+
*/
|
|
1327
|
+
methodName?: string;
|
|
1328
|
+
};
|
|
1329
|
+
|
|
1330
|
+
type FullNativeTransactionDetails = {
|
|
1331
|
+
/**
|
|
1332
|
+
* The block number on the chain.
|
|
1333
|
+
*/
|
|
1334
|
+
blockNumber: string;
|
|
1335
|
+
/**
|
|
1336
|
+
* The block finality timestamp.
|
|
1337
|
+
*/
|
|
1338
|
+
blockTimestamp: number;
|
|
1339
|
+
/**
|
|
1340
|
+
* The block hash identifier.
|
|
1341
|
+
*/
|
|
1342
|
+
blockHash: string;
|
|
1343
|
+
/**
|
|
1344
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1345
|
+
*/
|
|
1346
|
+
blockIndex: number;
|
|
1347
|
+
/**
|
|
1348
|
+
* The transaction hash identifier.
|
|
1349
|
+
*/
|
|
1350
|
+
txHash: string;
|
|
1351
|
+
/**
|
|
1352
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1353
|
+
*/
|
|
1354
|
+
txStatus: string;
|
|
1355
|
+
/**
|
|
1356
|
+
* The transaction type.
|
|
1357
|
+
*/
|
|
1358
|
+
txType: number;
|
|
1359
|
+
/**
|
|
1360
|
+
* The gas limit set for the transaction.
|
|
1361
|
+
*/
|
|
1362
|
+
gasLimit: string;
|
|
1363
|
+
/**
|
|
1364
|
+
* The amount of gas used.
|
|
1365
|
+
*/
|
|
1366
|
+
gasUsed: string;
|
|
1367
|
+
/**
|
|
1368
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1369
|
+
*/
|
|
1370
|
+
gasPrice: string;
|
|
1371
|
+
/**
|
|
1372
|
+
* The nonce used by the sender of the transaction.
|
|
1373
|
+
*/
|
|
1374
|
+
nonce: string;
|
|
1375
|
+
from: RichAddress;
|
|
1376
|
+
to: RichAddress;
|
|
1377
|
+
method?: Method;
|
|
1378
|
+
value: string;
|
|
1379
|
+
/**
|
|
1380
|
+
* The data sent for the transaction.
|
|
1381
|
+
*/
|
|
1382
|
+
input: string;
|
|
1383
|
+
baseFeePerGas: string;
|
|
1384
|
+
maxFeePerGas?: string;
|
|
1385
|
+
maxPriorityFeePerGas?: string;
|
|
1386
|
+
};
|
|
1387
|
+
|
|
1388
|
+
declare enum InternalTransactionOpCall {
|
|
1389
|
+
UNKNOWN = "UNKNOWN",
|
|
1390
|
+
CALL = "CALL",
|
|
1391
|
+
CREATE = "CREATE",
|
|
1392
|
+
CREATE2 = "CREATE2",
|
|
1393
|
+
CALLCODE = "CALLCODE",
|
|
1394
|
+
DELEGATECALL = "DELEGATECALL",
|
|
1395
|
+
STATICCALL = "STATICCALL"
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
type InternalTransactionDetails = {
|
|
1399
|
+
from: RichAddress;
|
|
1400
|
+
to: RichAddress;
|
|
1401
|
+
internalTxType: InternalTransactionOpCall;
|
|
1402
|
+
value: string;
|
|
1403
|
+
/**
|
|
1404
|
+
* True if the internal transaction was reverted.
|
|
1405
|
+
*/
|
|
1406
|
+
isReverted: boolean;
|
|
1407
|
+
gasUsed: string;
|
|
1408
|
+
gasLimit: string;
|
|
1409
|
+
};
|
|
1410
|
+
|
|
1411
|
+
type NetworkTokenDetails = {
|
|
1412
|
+
networkToken: NetworkToken;
|
|
1413
|
+
/**
|
|
1414
|
+
* The current token price, if available.
|
|
1415
|
+
*/
|
|
1416
|
+
currentPrice?: Money;
|
|
1417
|
+
/**
|
|
1418
|
+
* 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.
|
|
1419
|
+
*/
|
|
1420
|
+
historicalPrice?: Money;
|
|
1421
|
+
};
|
|
1422
|
+
|
|
1423
|
+
type GetTransactionResponse = {
|
|
1424
|
+
/**
|
|
1425
|
+
* The list of ERC-20 transfers.
|
|
1426
|
+
*/
|
|
1427
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1428
|
+
/**
|
|
1429
|
+
* The list of ERC-721 transfers.
|
|
1430
|
+
*/
|
|
1431
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1432
|
+
/**
|
|
1433
|
+
* The list of ERC-1155 transfers.
|
|
1434
|
+
*/
|
|
1435
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1436
|
+
/**
|
|
1437
|
+
* 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.
|
|
1438
|
+
*/
|
|
1439
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1440
|
+
networkTokenDetails: NetworkTokenDetails;
|
|
1441
|
+
nativeTransaction: FullNativeTransactionDetails;
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1174
1444
|
type ListContractsResponse = {
|
|
1175
1445
|
/**
|
|
1176
1446
|
* 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
1447
|
*/
|
|
1178
1448
|
nextPageToken?: string;
|
|
1179
|
-
contracts: Array<(
|
|
1449
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1180
1450
|
};
|
|
1181
1451
|
|
|
1182
1452
|
type Erc1155Transfer = {
|
|
@@ -1430,7 +1700,7 @@ declare class EvmTransactionsService {
|
|
|
1430
1700
|
*/
|
|
1431
1701
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
1432
1702
|
/**
|
|
1433
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1703
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1434
1704
|
*/
|
|
1435
1705
|
chainId: string;
|
|
1436
1706
|
/**
|
|
@@ -1448,23 +1718,23 @@ declare class EvmTransactionsService {
|
|
|
1448
1718
|
* @returns ListContractsResponse
|
|
1449
1719
|
* @throws ApiError
|
|
1450
1720
|
*/
|
|
1451
|
-
listContractDeployments({ chainId, address,
|
|
1721
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
1452
1722
|
/**
|
|
1453
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1723
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1454
1724
|
*/
|
|
1455
1725
|
chainId: string;
|
|
1456
1726
|
/**
|
|
1457
1727
|
* A wallet address.
|
|
1458
1728
|
*/
|
|
1459
1729
|
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
1730
|
/**
|
|
1465
1731
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1466
1732
|
*/
|
|
1467
1733
|
pageToken?: string;
|
|
1734
|
+
/**
|
|
1735
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1736
|
+
*/
|
|
1737
|
+
pageSize?: number;
|
|
1468
1738
|
}): CancelablePromise<ListContractsResponse>;
|
|
1469
1739
|
/**
|
|
1470
1740
|
* List ERC transfers
|
|
@@ -1472,25 +1742,31 @@ declare class EvmTransactionsService {
|
|
|
1472
1742
|
* @returns ListTransfersResponse
|
|
1473
1743
|
* @throws ApiError
|
|
1474
1744
|
*/
|
|
1475
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
1745
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1476
1746
|
/**
|
|
1477
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1747
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1478
1748
|
*/
|
|
1479
1749
|
chainId: string;
|
|
1480
1750
|
/**
|
|
1481
1751
|
* A wallet address.
|
|
1482
1752
|
*/
|
|
1483
1753
|
address: string;
|
|
1754
|
+
/**
|
|
1755
|
+
* 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.
|
|
1756
|
+
*/
|
|
1484
1757
|
startBlock?: number;
|
|
1485
|
-
endBlock?: number;
|
|
1486
1758
|
/**
|
|
1487
|
-
* The
|
|
1759
|
+
* 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
1760
|
*/
|
|
1489
|
-
|
|
1761
|
+
endBlock?: number;
|
|
1490
1762
|
/**
|
|
1491
1763
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1492
1764
|
*/
|
|
1493
1765
|
pageToken?: string;
|
|
1766
|
+
/**
|
|
1767
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1768
|
+
*/
|
|
1769
|
+
pageSize?: number;
|
|
1494
1770
|
}): CancelablePromise<ListTransfersResponse>;
|
|
1495
1771
|
/**
|
|
1496
1772
|
* List transactions
|
|
@@ -1500,24 +1776,30 @@ declare class EvmTransactionsService {
|
|
|
1500
1776
|
* @returns ListTransactionDetailsResponse
|
|
1501
1777
|
* @throws ApiError
|
|
1502
1778
|
*/
|
|
1503
|
-
listTransactions({ chainId, address,
|
|
1779
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
1504
1780
|
/**
|
|
1505
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1781
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1506
1782
|
*/
|
|
1507
1783
|
chainId: string;
|
|
1508
1784
|
/**
|
|
1509
1785
|
* A wallet address.
|
|
1510
1786
|
*/
|
|
1511
1787
|
address: string;
|
|
1788
|
+
/**
|
|
1789
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1790
|
+
*/
|
|
1791
|
+
pageToken?: string;
|
|
1512
1792
|
/**
|
|
1513
1793
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1514
1794
|
*/
|
|
1515
1795
|
pageSize?: number;
|
|
1516
1796
|
/**
|
|
1517
|
-
*
|
|
1797
|
+
* 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
1798
|
*/
|
|
1519
|
-
pageToken?: string;
|
|
1520
1799
|
startBlock?: number;
|
|
1800
|
+
/**
|
|
1801
|
+
* 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.
|
|
1802
|
+
*/
|
|
1521
1803
|
endBlock?: number;
|
|
1522
1804
|
/**
|
|
1523
1805
|
* 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 +1812,31 @@ declare class EvmTransactionsService {
|
|
|
1530
1812
|
* @returns ListNativeTransactionsResponse
|
|
1531
1813
|
* @throws ApiError
|
|
1532
1814
|
*/
|
|
1533
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
1815
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1534
1816
|
/**
|
|
1535
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1817
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1536
1818
|
*/
|
|
1537
1819
|
chainId: string;
|
|
1538
1820
|
/**
|
|
1539
1821
|
* A wallet address.
|
|
1540
1822
|
*/
|
|
1541
1823
|
address: string;
|
|
1824
|
+
/**
|
|
1825
|
+
* 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.
|
|
1826
|
+
*/
|
|
1542
1827
|
startBlock?: number;
|
|
1543
|
-
endBlock?: number;
|
|
1544
1828
|
/**
|
|
1545
|
-
* The
|
|
1829
|
+
* 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
1830
|
*/
|
|
1547
|
-
|
|
1831
|
+
endBlock?: number;
|
|
1548
1832
|
/**
|
|
1549
1833
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1550
1834
|
*/
|
|
1551
1835
|
pageToken?: string;
|
|
1836
|
+
/**
|
|
1837
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1838
|
+
*/
|
|
1839
|
+
pageSize?: number;
|
|
1552
1840
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
1553
1841
|
/**
|
|
1554
1842
|
* List ERC-20 transfers
|
|
@@ -1556,25 +1844,31 @@ declare class EvmTransactionsService {
|
|
|
1556
1844
|
* @returns ListErc20TransactionsResponse
|
|
1557
1845
|
* @throws ApiError
|
|
1558
1846
|
*/
|
|
1559
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
1847
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1560
1848
|
/**
|
|
1561
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1849
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1562
1850
|
*/
|
|
1563
1851
|
chainId: string;
|
|
1564
1852
|
/**
|
|
1565
1853
|
* A wallet address.
|
|
1566
1854
|
*/
|
|
1567
1855
|
address: string;
|
|
1856
|
+
/**
|
|
1857
|
+
* 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.
|
|
1858
|
+
*/
|
|
1568
1859
|
startBlock?: number;
|
|
1569
|
-
endBlock?: number;
|
|
1570
1860
|
/**
|
|
1571
|
-
* The
|
|
1861
|
+
* 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
1862
|
*/
|
|
1573
|
-
|
|
1863
|
+
endBlock?: number;
|
|
1574
1864
|
/**
|
|
1575
1865
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1576
1866
|
*/
|
|
1577
1867
|
pageToken?: string;
|
|
1868
|
+
/**
|
|
1869
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1870
|
+
*/
|
|
1871
|
+
pageSize?: number;
|
|
1578
1872
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
1579
1873
|
/**
|
|
1580
1874
|
* List ERC-721 transfers
|
|
@@ -1582,25 +1876,31 @@ declare class EvmTransactionsService {
|
|
|
1582
1876
|
* @returns ListErc721TransactionsResponse
|
|
1583
1877
|
* @throws ApiError
|
|
1584
1878
|
*/
|
|
1585
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
1879
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1586
1880
|
/**
|
|
1587
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1881
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1588
1882
|
*/
|
|
1589
1883
|
chainId: string;
|
|
1590
1884
|
/**
|
|
1591
1885
|
* A wallet address.
|
|
1592
1886
|
*/
|
|
1593
1887
|
address: string;
|
|
1888
|
+
/**
|
|
1889
|
+
* 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.
|
|
1890
|
+
*/
|
|
1594
1891
|
startBlock?: number;
|
|
1595
|
-
endBlock?: number;
|
|
1596
1892
|
/**
|
|
1597
|
-
* The
|
|
1893
|
+
* 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
1894
|
*/
|
|
1599
|
-
|
|
1895
|
+
endBlock?: number;
|
|
1600
1896
|
/**
|
|
1601
1897
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1602
1898
|
*/
|
|
1603
1899
|
pageToken?: string;
|
|
1900
|
+
/**
|
|
1901
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1902
|
+
*/
|
|
1903
|
+
pageSize?: number;
|
|
1604
1904
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
1605
1905
|
/**
|
|
1606
1906
|
* List ERC-1155 transfers
|
|
@@ -1608,25 +1908,31 @@ declare class EvmTransactionsService {
|
|
|
1608
1908
|
* @returns ListErc1155TransactionsResponse
|
|
1609
1909
|
* @throws ApiError
|
|
1610
1910
|
*/
|
|
1611
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
1911
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1612
1912
|
/**
|
|
1613
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1913
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1614
1914
|
*/
|
|
1615
1915
|
chainId: string;
|
|
1616
1916
|
/**
|
|
1617
1917
|
* A wallet address.
|
|
1618
1918
|
*/
|
|
1619
1919
|
address: string;
|
|
1920
|
+
/**
|
|
1921
|
+
* 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.
|
|
1922
|
+
*/
|
|
1620
1923
|
startBlock?: number;
|
|
1621
|
-
endBlock?: number;
|
|
1622
1924
|
/**
|
|
1623
|
-
* The
|
|
1925
|
+
* 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
1926
|
*/
|
|
1625
|
-
|
|
1927
|
+
endBlock?: number;
|
|
1626
1928
|
/**
|
|
1627
1929
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1628
1930
|
*/
|
|
1629
1931
|
pageToken?: string;
|
|
1932
|
+
/**
|
|
1933
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1934
|
+
*/
|
|
1935
|
+
pageSize?: number;
|
|
1630
1936
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
1631
1937
|
/**
|
|
1632
1938
|
* List internal transactions
|
|
@@ -1636,25 +1942,31 @@ declare class EvmTransactionsService {
|
|
|
1636
1942
|
* @returns ListInternalTransactionsResponse
|
|
1637
1943
|
* @throws ApiError
|
|
1638
1944
|
*/
|
|
1639
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
1945
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
1640
1946
|
/**
|
|
1641
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1947
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1642
1948
|
*/
|
|
1643
1949
|
chainId: string;
|
|
1644
1950
|
/**
|
|
1645
1951
|
* A wallet address.
|
|
1646
1952
|
*/
|
|
1647
1953
|
address: string;
|
|
1954
|
+
/**
|
|
1955
|
+
* 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.
|
|
1956
|
+
*/
|
|
1648
1957
|
startBlock?: number;
|
|
1649
|
-
endBlock?: number;
|
|
1650
1958
|
/**
|
|
1651
|
-
* The
|
|
1959
|
+
* 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
1960
|
*/
|
|
1653
|
-
|
|
1961
|
+
endBlock?: number;
|
|
1654
1962
|
/**
|
|
1655
1963
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1656
1964
|
*/
|
|
1657
1965
|
pageToken?: string;
|
|
1966
|
+
/**
|
|
1967
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
1968
|
+
*/
|
|
1969
|
+
pageSize?: number;
|
|
1658
1970
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
1659
1971
|
/**
|
|
1660
1972
|
* Get transaction
|
|
@@ -1664,7 +1976,7 @@ declare class EvmTransactionsService {
|
|
|
1664
1976
|
*/
|
|
1665
1977
|
getTransaction({ chainId, txHash, }: {
|
|
1666
1978
|
/**
|
|
1667
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1979
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1668
1980
|
*/
|
|
1669
1981
|
chainId: string;
|
|
1670
1982
|
/**
|
|
@@ -1680,7 +1992,7 @@ declare class EvmTransactionsService {
|
|
|
1680
1992
|
*/
|
|
1681
1993
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
1682
1994
|
/**
|
|
1683
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1995
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1684
1996
|
*/
|
|
1685
1997
|
chainId: string;
|
|
1686
1998
|
/**
|
|
@@ -1694,19 +2006,19 @@ declare class EvmTransactionsService {
|
|
|
1694
2006
|
* @returns ListNativeTransactionsResponse
|
|
1695
2007
|
* @throws ApiError
|
|
1696
2008
|
*/
|
|
1697
|
-
listLatestTransactions({ chainId,
|
|
2009
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
1698
2010
|
/**
|
|
1699
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2011
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1700
2012
|
*/
|
|
1701
2013
|
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
2014
|
/**
|
|
1707
2015
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1708
2016
|
*/
|
|
1709
2017
|
pageToken?: string;
|
|
2018
|
+
/**
|
|
2019
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2020
|
+
*/
|
|
2021
|
+
pageSize?: number;
|
|
1710
2022
|
/**
|
|
1711
2023
|
* A status filter for listed transactions.
|
|
1712
2024
|
*/
|
|
@@ -1730,6 +2042,14 @@ declare class HealthCheckService {
|
|
|
1730
2042
|
}>;
|
|
1731
2043
|
}
|
|
1732
2044
|
|
|
2045
|
+
type ListNftTokens = {
|
|
2046
|
+
/**
|
|
2047
|
+
* 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.
|
|
2048
|
+
*/
|
|
2049
|
+
nextPageToken?: string;
|
|
2050
|
+
tokens: (Array<Erc721Token> | Array<Erc1155Token>);
|
|
2051
|
+
};
|
|
2052
|
+
|
|
1733
2053
|
declare class NfTsService {
|
|
1734
2054
|
readonly httpRequest: BaseHttpRequest;
|
|
1735
2055
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1741,7 +2061,7 @@ declare class NfTsService {
|
|
|
1741
2061
|
*/
|
|
1742
2062
|
reindexNft({ chainId, address, tokenId, }: {
|
|
1743
2063
|
/**
|
|
1744
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2064
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1745
2065
|
*/
|
|
1746
2066
|
chainId: string;
|
|
1747
2067
|
/**
|
|
@@ -1754,14 +2074,14 @@ declare class NfTsService {
|
|
|
1754
2074
|
tokenId: string;
|
|
1755
2075
|
}): CancelablePromise<any>;
|
|
1756
2076
|
/**
|
|
1757
|
-
*
|
|
1758
|
-
*
|
|
1759
|
-
* @returns
|
|
2077
|
+
* List tokens
|
|
2078
|
+
* Lists tokens for an NFT contract.
|
|
2079
|
+
* @returns ListNftTokens
|
|
1760
2080
|
* @throws ApiError
|
|
1761
2081
|
*/
|
|
1762
|
-
|
|
2082
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
1763
2083
|
/**
|
|
1764
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2084
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1765
2085
|
*/
|
|
1766
2086
|
chainId: string;
|
|
1767
2087
|
/**
|
|
@@ -1769,26 +2089,34 @@ declare class NfTsService {
|
|
|
1769
2089
|
*/
|
|
1770
2090
|
address: string;
|
|
1771
2091
|
/**
|
|
1772
|
-
*
|
|
2092
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1773
2093
|
*/
|
|
1774
|
-
|
|
1775
|
-
|
|
2094
|
+
pageToken?: string;
|
|
2095
|
+
/**
|
|
2096
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2097
|
+
*/
|
|
2098
|
+
pageSize?: number;
|
|
2099
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1776
2100
|
/**
|
|
1777
|
-
* Get
|
|
1778
|
-
* Gets
|
|
2101
|
+
* Get token details
|
|
2102
|
+
* Gets token details for a specific token of an NFT contract.
|
|
1779
2103
|
* @returns any
|
|
1780
2104
|
* @throws ApiError
|
|
1781
2105
|
*/
|
|
1782
|
-
|
|
2106
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
1783
2107
|
/**
|
|
1784
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2108
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1785
2109
|
*/
|
|
1786
2110
|
chainId: string;
|
|
1787
2111
|
/**
|
|
1788
2112
|
* Contract address on the relevant chain.
|
|
1789
2113
|
*/
|
|
1790
2114
|
address: string;
|
|
1791
|
-
|
|
2115
|
+
/**
|
|
2116
|
+
* TokenId on the contract
|
|
2117
|
+
*/
|
|
2118
|
+
tokenId: string;
|
|
2119
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
1792
2120
|
}
|
|
1793
2121
|
|
|
1794
2122
|
type EvmNetworkOptions = {
|
|
@@ -1885,17 +2213,6 @@ type OperationStatusResponse = {
|
|
|
1885
2213
|
declare class OperationsService {
|
|
1886
2214
|
readonly httpRequest: BaseHttpRequest;
|
|
1887
2215
|
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
2216
|
/**
|
|
1900
2217
|
* Get operation
|
|
1901
2218
|
* Gets operation details for the given operation id.
|
|
@@ -1908,6 +2225,17 @@ declare class OperationsService {
|
|
|
1908
2225
|
*/
|
|
1909
2226
|
operationId: string;
|
|
1910
2227
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2228
|
+
/**
|
|
2229
|
+
* Create transaction export operation
|
|
2230
|
+
* Trigger a transaction export operation with given parameters.
|
|
2231
|
+
*
|
|
2232
|
+
* 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.
|
|
2233
|
+
* @returns OperationStatusResponse
|
|
2234
|
+
* @throws ApiError
|
|
2235
|
+
*/
|
|
2236
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2237
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2238
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
1911
2239
|
}
|
|
1912
2240
|
|
|
1913
2241
|
declare enum BlockchainIds {
|
|
@@ -1976,39 +2304,57 @@ type ListBlockchainsResponse = {
|
|
|
1976
2304
|
|
|
1977
2305
|
type ActiveDelegatorDetails = {
|
|
1978
2306
|
txHash: string;
|
|
2307
|
+
nodeId: string;
|
|
1979
2308
|
rewardAddresses: Array<string>;
|
|
1980
2309
|
amountDelegated: string;
|
|
1981
2310
|
delegationFee: string;
|
|
1982
2311
|
startTimestamp: number;
|
|
1983
2312
|
endTimestamp: number;
|
|
1984
|
-
delegationStatus: DelegationStatusType;
|
|
1985
2313
|
estimatedGrossReward: string;
|
|
1986
2314
|
estimatedNetReward: string;
|
|
2315
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1987
2316
|
};
|
|
2317
|
+
declare namespace ActiveDelegatorDetails {
|
|
2318
|
+
enum delegationStatus {
|
|
2319
|
+
ACTIVE = "active"
|
|
2320
|
+
}
|
|
2321
|
+
}
|
|
1988
2322
|
|
|
1989
2323
|
type CompletedDelegatorDetails = {
|
|
1990
2324
|
txHash: string;
|
|
2325
|
+
nodeId: string;
|
|
1991
2326
|
rewardAddresses: Array<string>;
|
|
1992
2327
|
amountDelegated: string;
|
|
1993
2328
|
delegationFee: string;
|
|
1994
2329
|
startTimestamp: number;
|
|
1995
2330
|
endTimestamp: number;
|
|
1996
|
-
delegationStatus: DelegationStatusType;
|
|
1997
2331
|
grossReward: string;
|
|
1998
2332
|
netReward: string;
|
|
2333
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1999
2334
|
};
|
|
2335
|
+
declare namespace CompletedDelegatorDetails {
|
|
2336
|
+
enum delegationStatus {
|
|
2337
|
+
COMPLETED = "completed"
|
|
2338
|
+
}
|
|
2339
|
+
}
|
|
2000
2340
|
|
|
2001
2341
|
type PendingDelegatorDetails = {
|
|
2002
2342
|
txHash: string;
|
|
2343
|
+
nodeId: string;
|
|
2003
2344
|
rewardAddresses: Array<string>;
|
|
2004
2345
|
amountDelegated: string;
|
|
2005
2346
|
delegationFee: string;
|
|
2006
2347
|
startTimestamp: number;
|
|
2007
2348
|
endTimestamp: number;
|
|
2008
|
-
delegationStatus: DelegationStatusType;
|
|
2009
2349
|
estimatedGrossReward: string;
|
|
2010
2350
|
estimatedNetReward: string;
|
|
2351
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
2011
2352
|
};
|
|
2353
|
+
declare namespace PendingDelegatorDetails {
|
|
2354
|
+
enum delegationStatus {
|
|
2355
|
+
PENDING = "pending"
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2012
2358
|
|
|
2013
2359
|
type ListDelegatorDetailsResponse = {
|
|
2014
2360
|
/**
|
|
@@ -2046,49 +2392,104 @@ type ListSubnetsResponse = {
|
|
|
2046
2392
|
type Rewards = {
|
|
2047
2393
|
validationRewardAmount: string;
|
|
2048
2394
|
delegationRewardAmount: string;
|
|
2395
|
+
rewardAddresses?: Array<string>;
|
|
2396
|
+
rewardTxHash?: string;
|
|
2049
2397
|
};
|
|
2050
2398
|
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2399
|
+
type ValidatorHealthDetails = {
|
|
2400
|
+
/**
|
|
2401
|
+
* Percent of requests responded to in last polling.
|
|
2402
|
+
*/
|
|
2403
|
+
reachabilityPercent: number;
|
|
2404
|
+
/**
|
|
2405
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2406
|
+
*/
|
|
2407
|
+
benchedPChainRequestsPercent: number;
|
|
2408
|
+
/**
|
|
2409
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2410
|
+
*/
|
|
2411
|
+
benchedXChainRequestsPercent: number;
|
|
2412
|
+
/**
|
|
2413
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
2414
|
+
*/
|
|
2415
|
+
benchedCChainRequestsPercent: number;
|
|
2416
|
+
};
|
|
2056
2417
|
|
|
2057
2418
|
type ActiveValidatorDetails = {
|
|
2419
|
+
txHash: string;
|
|
2058
2420
|
nodeId: string;
|
|
2421
|
+
subnetId: string;
|
|
2059
2422
|
amountStaked: string;
|
|
2060
|
-
delegationFee
|
|
2423
|
+
delegationFee?: string;
|
|
2061
2424
|
startTimestamp: number;
|
|
2062
2425
|
endTimestamp: number;
|
|
2063
|
-
validationStatus: ValidationStatusType;
|
|
2064
2426
|
stakePercentage: number;
|
|
2065
2427
|
delegatorCount: number;
|
|
2066
|
-
amountDelegated
|
|
2428
|
+
amountDelegated?: string;
|
|
2067
2429
|
uptimePerformance: number;
|
|
2068
|
-
avalancheGoVersion
|
|
2069
|
-
delegationCapacity
|
|
2430
|
+
avalancheGoVersion?: string;
|
|
2431
|
+
delegationCapacity?: string;
|
|
2070
2432
|
potentialRewards: Rewards;
|
|
2433
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2434
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2071
2435
|
};
|
|
2436
|
+
declare namespace ActiveValidatorDetails {
|
|
2437
|
+
enum validationStatus {
|
|
2438
|
+
ACTIVE = "active"
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2072
2441
|
|
|
2073
2442
|
type CompletedValidatorDetails = {
|
|
2443
|
+
txHash: string;
|
|
2074
2444
|
nodeId: string;
|
|
2445
|
+
subnetId: string;
|
|
2075
2446
|
amountStaked: string;
|
|
2076
|
-
delegationFee
|
|
2447
|
+
delegationFee?: string;
|
|
2077
2448
|
startTimestamp: number;
|
|
2078
2449
|
endTimestamp: number;
|
|
2079
|
-
validationStatus: ValidationStatusType;
|
|
2080
2450
|
delegatorCount: number;
|
|
2081
2451
|
rewards: Rewards;
|
|
2452
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2082
2453
|
};
|
|
2454
|
+
declare namespace CompletedValidatorDetails {
|
|
2455
|
+
enum validationStatus {
|
|
2456
|
+
COMPLETED = "completed"
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2083
2459
|
|
|
2084
2460
|
type PendingValidatorDetails = {
|
|
2461
|
+
txHash: string;
|
|
2085
2462
|
nodeId: string;
|
|
2463
|
+
subnetId: string;
|
|
2086
2464
|
amountStaked: string;
|
|
2087
|
-
delegationFee
|
|
2465
|
+
delegationFee?: string;
|
|
2466
|
+
startTimestamp: number;
|
|
2467
|
+
endTimestamp: number;
|
|
2468
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2469
|
+
};
|
|
2470
|
+
declare namespace PendingValidatorDetails {
|
|
2471
|
+
enum validationStatus {
|
|
2472
|
+
PENDING = "pending"
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2476
|
+
type RemovedValidatorDetails = {
|
|
2477
|
+
txHash: string;
|
|
2478
|
+
nodeId: string;
|
|
2479
|
+
subnetId: string;
|
|
2480
|
+
amountStaked: string;
|
|
2481
|
+
delegationFee?: string;
|
|
2088
2482
|
startTimestamp: number;
|
|
2089
2483
|
endTimestamp: number;
|
|
2090
|
-
|
|
2484
|
+
removeTxHash: string;
|
|
2485
|
+
removeTimestamp: number;
|
|
2486
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2091
2487
|
};
|
|
2488
|
+
declare namespace RemovedValidatorDetails {
|
|
2489
|
+
enum validationStatus {
|
|
2490
|
+
REMOVED = "removed"
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2092
2493
|
|
|
2093
2494
|
type ListValidatorDetailsResponse = {
|
|
2094
2495
|
/**
|
|
@@ -2096,9 +2497,9 @@ type ListValidatorDetailsResponse = {
|
|
|
2096
2497
|
*/
|
|
2097
2498
|
nextPageToken?: string;
|
|
2098
2499
|
/**
|
|
2099
|
-
* The list of
|
|
2500
|
+
* The list of validator Details.
|
|
2100
2501
|
*/
|
|
2101
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2502
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2102
2503
|
};
|
|
2103
2504
|
|
|
2104
2505
|
declare enum Network {
|
|
@@ -2106,6 +2507,23 @@ declare enum Network {
|
|
|
2106
2507
|
FUJI = "fuji"
|
|
2107
2508
|
}
|
|
2108
2509
|
|
|
2510
|
+
declare enum ValidationStatusType {
|
|
2511
|
+
COMPLETED = "completed",
|
|
2512
|
+
ACTIVE = "active",
|
|
2513
|
+
PENDING = "pending",
|
|
2514
|
+
REMOVED = "removed"
|
|
2515
|
+
}
|
|
2516
|
+
|
|
2517
|
+
declare enum PrimaryNetworkAssetCap {
|
|
2518
|
+
FIXED = "fixed",
|
|
2519
|
+
VARIABLE = "variable"
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
declare enum PrimaryNetworkAssetType {
|
|
2523
|
+
SECP256K1 = "secp256k1",
|
|
2524
|
+
NFT = "nft"
|
|
2525
|
+
}
|
|
2526
|
+
|
|
2109
2527
|
type XChainAssetDetails = {
|
|
2110
2528
|
/**
|
|
2111
2529
|
* Unique ID for an asset.
|
|
@@ -2126,15 +2544,15 @@ type XChainAssetDetails = {
|
|
|
2126
2544
|
/**
|
|
2127
2545
|
* Type of asset like SECP256K1 or NFT.
|
|
2128
2546
|
*/
|
|
2129
|
-
type:
|
|
2547
|
+
type: PrimaryNetworkAssetType;
|
|
2130
2548
|
/**
|
|
2131
2549
|
* Timestamp in seconds this asset was created on.
|
|
2132
2550
|
*/
|
|
2133
2551
|
createdAtTimestamp: number;
|
|
2134
2552
|
/**
|
|
2135
|
-
* Cap represents if an asset
|
|
2553
|
+
* Cap represents if an asset is a variable or fixed cap asset.
|
|
2136
2554
|
*/
|
|
2137
|
-
cap:
|
|
2555
|
+
cap: PrimaryNetworkAssetCap;
|
|
2138
2556
|
};
|
|
2139
2557
|
|
|
2140
2558
|
declare enum XChainId {
|
|
@@ -2200,19 +2618,19 @@ declare class PrimaryNetworkService {
|
|
|
2200
2618
|
* @returns ListBlockchainsResponse
|
|
2201
2619
|
* @throws ApiError
|
|
2202
2620
|
*/
|
|
2203
|
-
listBlockchains({ network,
|
|
2621
|
+
listBlockchains({ network, pageToken, pageSize, sortOrder, }: {
|
|
2204
2622
|
/**
|
|
2205
2623
|
* Either mainnet or a testnet.
|
|
2206
2624
|
*/
|
|
2207
2625
|
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
2626
|
/**
|
|
2213
2627
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2214
2628
|
*/
|
|
2215
2629
|
pageToken?: string;
|
|
2630
|
+
/**
|
|
2631
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2632
|
+
*/
|
|
2633
|
+
pageSize?: number;
|
|
2216
2634
|
/**
|
|
2217
2635
|
* 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
2636
|
*/
|
|
@@ -2224,19 +2642,19 @@ declare class PrimaryNetworkService {
|
|
|
2224
2642
|
* @returns ListSubnetsResponse
|
|
2225
2643
|
* @throws ApiError
|
|
2226
2644
|
*/
|
|
2227
|
-
listSubnets({ network,
|
|
2645
|
+
listSubnets({ network, pageToken, pageSize, sortOrder, }: {
|
|
2228
2646
|
/**
|
|
2229
2647
|
* Either mainnet or a testnet.
|
|
2230
2648
|
*/
|
|
2231
2649
|
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
2650
|
/**
|
|
2237
2651
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2238
2652
|
*/
|
|
2239
2653
|
pageToken?: string;
|
|
2654
|
+
/**
|
|
2655
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2656
|
+
*/
|
|
2657
|
+
pageSize?: number;
|
|
2240
2658
|
/**
|
|
2241
2659
|
* 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
2660
|
*/
|
|
@@ -2248,19 +2666,19 @@ declare class PrimaryNetworkService {
|
|
|
2248
2666
|
* @returns ListValidatorDetailsResponse
|
|
2249
2667
|
* @throws ApiError
|
|
2250
2668
|
*/
|
|
2251
|
-
listValidators({ network,
|
|
2669
|
+
listValidators({ network, pageToken, pageSize, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2252
2670
|
/**
|
|
2253
2671
|
* Either mainnet or a testnet.
|
|
2254
2672
|
*/
|
|
2255
2673
|
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
2674
|
/**
|
|
2261
2675
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2262
2676
|
*/
|
|
2263
2677
|
pageToken?: string;
|
|
2678
|
+
/**
|
|
2679
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2680
|
+
*/
|
|
2681
|
+
pageSize?: number;
|
|
2264
2682
|
/**
|
|
2265
2683
|
* A comma separated list of node ids to filter by.
|
|
2266
2684
|
*/
|
|
@@ -2274,9 +2692,33 @@ declare class PrimaryNetworkService {
|
|
|
2274
2692
|
*/
|
|
2275
2693
|
validationStatus?: ValidationStatusType;
|
|
2276
2694
|
/**
|
|
2277
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned
|
|
2695
|
+
* 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
2696
|
*/
|
|
2279
|
-
minDelegationCapacity?:
|
|
2697
|
+
minDelegationCapacity?: string;
|
|
2698
|
+
/**
|
|
2699
|
+
* 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.
|
|
2700
|
+
*/
|
|
2701
|
+
maxDelegationCapacity?: string;
|
|
2702
|
+
/**
|
|
2703
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2704
|
+
*/
|
|
2705
|
+
minTimeRemaining?: number;
|
|
2706
|
+
/**
|
|
2707
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2708
|
+
*/
|
|
2709
|
+
maxTimeRemaining?: number;
|
|
2710
|
+
/**
|
|
2711
|
+
* 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.
|
|
2712
|
+
*/
|
|
2713
|
+
minFeePercentage?: number;
|
|
2714
|
+
/**
|
|
2715
|
+
* 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.
|
|
2716
|
+
*/
|
|
2717
|
+
maxFeePercentage?: number;
|
|
2718
|
+
/**
|
|
2719
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2720
|
+
*/
|
|
2721
|
+
subnetId?: string;
|
|
2280
2722
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2281
2723
|
/**
|
|
2282
2724
|
* Get single validator details
|
|
@@ -2284,7 +2726,7 @@ declare class PrimaryNetworkService {
|
|
|
2284
2726
|
* @returns ListValidatorDetailsResponse
|
|
2285
2727
|
* @throws ApiError
|
|
2286
2728
|
*/
|
|
2287
|
-
getSingleValidatorDetails({ network, nodeId,
|
|
2729
|
+
getSingleValidatorDetails({ network, nodeId, pageToken, pageSize, sortOrder, validationStatus, }: {
|
|
2288
2730
|
/**
|
|
2289
2731
|
* Either mainnet or a testnet.
|
|
2290
2732
|
*/
|
|
@@ -2293,14 +2735,14 @@ declare class PrimaryNetworkService {
|
|
|
2293
2735
|
* A primary network (P or X chain) nodeId.
|
|
2294
2736
|
*/
|
|
2295
2737
|
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
2738
|
/**
|
|
2301
2739
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2302
2740
|
*/
|
|
2303
2741
|
pageToken?: string;
|
|
2742
|
+
/**
|
|
2743
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2744
|
+
*/
|
|
2745
|
+
pageSize?: number;
|
|
2304
2746
|
/**
|
|
2305
2747
|
* 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
2748
|
*/
|
|
@@ -2316,19 +2758,23 @@ declare class PrimaryNetworkService {
|
|
|
2316
2758
|
* @returns ListDelegatorDetailsResponse
|
|
2317
2759
|
* @throws ApiError
|
|
2318
2760
|
*/
|
|
2319
|
-
listDelegators({ network, pageSize,
|
|
2761
|
+
listDelegators({ network, pageToken, pageSize, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2320
2762
|
/**
|
|
2321
2763
|
* Either mainnet or a testnet.
|
|
2322
2764
|
*/
|
|
2323
2765
|
network: Network;
|
|
2766
|
+
/**
|
|
2767
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2768
|
+
*/
|
|
2769
|
+
pageToken?: string;
|
|
2324
2770
|
/**
|
|
2325
2771
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2326
2772
|
*/
|
|
2327
2773
|
pageSize?: number;
|
|
2328
2774
|
/**
|
|
2329
|
-
* A
|
|
2775
|
+
* A comma separated list of reward addresses to filter by.
|
|
2330
2776
|
*/
|
|
2331
|
-
|
|
2777
|
+
rewardAddresses?: string;
|
|
2332
2778
|
/**
|
|
2333
2779
|
* 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
2780
|
*/
|
|
@@ -2337,10 +2783,6 @@ declare class PrimaryNetworkService {
|
|
|
2337
2783
|
* Delegation status of the node.
|
|
2338
2784
|
*/
|
|
2339
2785
|
delegationStatus?: DelegationStatusType;
|
|
2340
|
-
/**
|
|
2341
|
-
* A comma separated list of reward addresses to filter by.
|
|
2342
|
-
*/
|
|
2343
|
-
rewardAddresses?: string;
|
|
2344
2786
|
/**
|
|
2345
2787
|
* A comma separated list of node ids to filter by.
|
|
2346
2788
|
*/
|
|
@@ -2379,7 +2821,7 @@ type CChainSharedAssetBalance = {
|
|
|
2379
2821
|
/**
|
|
2380
2822
|
* Type of asset like SECP256K1 or NFT.
|
|
2381
2823
|
*/
|
|
2382
|
-
type:
|
|
2824
|
+
type: PrimaryNetworkAssetType;
|
|
2383
2825
|
/**
|
|
2384
2826
|
* Amount of the asset.
|
|
2385
2827
|
*/
|
|
@@ -2414,13 +2856,57 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2414
2856
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2415
2857
|
};
|
|
2416
2858
|
|
|
2417
|
-
type
|
|
2859
|
+
type Asset = {
|
|
2860
|
+
/**
|
|
2861
|
+
* Unique ID for an asset.
|
|
2862
|
+
*/
|
|
2418
2863
|
assetId: string;
|
|
2864
|
+
/**
|
|
2865
|
+
* Name of this asset.
|
|
2866
|
+
*/
|
|
2867
|
+
name: string;
|
|
2868
|
+
/**
|
|
2869
|
+
* Symbol for this asset (max 4 characters).
|
|
2870
|
+
*/
|
|
2871
|
+
symbol: string;
|
|
2872
|
+
/**
|
|
2873
|
+
* Denomination of this asset to represent fungibility.
|
|
2874
|
+
*/
|
|
2875
|
+
denomination: number;
|
|
2876
|
+
/**
|
|
2877
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2878
|
+
*/
|
|
2879
|
+
type: PrimaryNetworkAssetType;
|
|
2880
|
+
/**
|
|
2881
|
+
* Amount of the asset.
|
|
2882
|
+
*/
|
|
2419
2883
|
amount: string;
|
|
2420
2884
|
};
|
|
2421
2885
|
|
|
2422
2886
|
type PChainSharedAsset = {
|
|
2887
|
+
/**
|
|
2888
|
+
* Unique ID for an asset.
|
|
2889
|
+
*/
|
|
2423
2890
|
assetId: string;
|
|
2891
|
+
/**
|
|
2892
|
+
* Name of this asset.
|
|
2893
|
+
*/
|
|
2894
|
+
name: string;
|
|
2895
|
+
/**
|
|
2896
|
+
* Symbol for this asset (max 4 characters).
|
|
2897
|
+
*/
|
|
2898
|
+
symbol: string;
|
|
2899
|
+
/**
|
|
2900
|
+
* Denomination of this asset to represent fungibility.
|
|
2901
|
+
*/
|
|
2902
|
+
denomination: number;
|
|
2903
|
+
/**
|
|
2904
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2905
|
+
*/
|
|
2906
|
+
type: PrimaryNetworkAssetType;
|
|
2907
|
+
/**
|
|
2908
|
+
* Amount of the asset.
|
|
2909
|
+
*/
|
|
2424
2910
|
amount: string;
|
|
2425
2911
|
sharedWithChainId: string;
|
|
2426
2912
|
status: string;
|
|
@@ -2430,27 +2916,27 @@ type PChainBalance = {
|
|
|
2430
2916
|
/**
|
|
2431
2917
|
* 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
2918
|
*/
|
|
2433
|
-
unlockedUnstaked: Array<
|
|
2919
|
+
unlockedUnstaked: Array<Asset>;
|
|
2434
2920
|
/**
|
|
2435
2921
|
* 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
2922
|
*/
|
|
2437
|
-
unlockedStaked: Array<
|
|
2923
|
+
unlockedStaked: Array<Asset>;
|
|
2438
2924
|
/**
|
|
2439
2925
|
* 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
2926
|
*/
|
|
2441
|
-
lockedPlatform: Array<
|
|
2927
|
+
lockedPlatform: Array<Asset>;
|
|
2442
2928
|
/**
|
|
2443
2929
|
* 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
2930
|
*/
|
|
2445
|
-
lockedStakeable: Array<
|
|
2931
|
+
lockedStakeable: Array<Asset>;
|
|
2446
2932
|
/**
|
|
2447
2933
|
* 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
2934
|
*/
|
|
2449
|
-
lockedStaked: Array<
|
|
2935
|
+
lockedStaked: Array<Asset>;
|
|
2450
2936
|
/**
|
|
2451
2937
|
* 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
2938
|
*/
|
|
2453
|
-
pendingStaked: Array<
|
|
2939
|
+
pendingStaked: Array<Asset>;
|
|
2454
2940
|
/**
|
|
2455
2941
|
* 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
2942
|
*/
|
|
@@ -2486,7 +2972,7 @@ type XChainAssetBalance = {
|
|
|
2486
2972
|
/**
|
|
2487
2973
|
* Type of asset like SECP256K1 or NFT.
|
|
2488
2974
|
*/
|
|
2489
|
-
type:
|
|
2975
|
+
type: PrimaryNetworkAssetType;
|
|
2490
2976
|
/**
|
|
2491
2977
|
* Amount of the asset.
|
|
2492
2978
|
*/
|
|
@@ -2514,7 +3000,7 @@ type XChainSharedAssetBalance = {
|
|
|
2514
3000
|
/**
|
|
2515
3001
|
* Type of asset like SECP256K1 or NFT.
|
|
2516
3002
|
*/
|
|
2517
|
-
type:
|
|
3003
|
+
type: PrimaryNetworkAssetType;
|
|
2518
3004
|
/**
|
|
2519
3005
|
* Amount of the asset.
|
|
2520
3006
|
*/
|
|
@@ -2589,6 +3075,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2589
3075
|
txCount: number;
|
|
2590
3076
|
transactions: Array<string>;
|
|
2591
3077
|
blockSizeBytes: number;
|
|
3078
|
+
currentSupply?: string;
|
|
2592
3079
|
proposerDetails?: ProposerDetails;
|
|
2593
3080
|
};
|
|
2594
3081
|
|
|
@@ -2601,6 +3088,7 @@ type PrimaryNetworkBlock = {
|
|
|
2601
3088
|
txCount: number;
|
|
2602
3089
|
transactions: Array<string>;
|
|
2603
3090
|
blockSizeBytes: number;
|
|
3091
|
+
currentSupply?: string;
|
|
2604
3092
|
proposerDetails?: ProposerDetails;
|
|
2605
3093
|
};
|
|
2606
3094
|
|
|
@@ -2642,7 +3130,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2642
3130
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2643
3131
|
* @throws ApiError
|
|
2644
3132
|
*/
|
|
2645
|
-
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId,
|
|
3133
|
+
listPrimaryNetworkBlocksByNodeId({ blockchainId, network, nodeId, pageToken, pageSize, }: {
|
|
2646
3134
|
/**
|
|
2647
3135
|
* A primary network blockchain id or alias.
|
|
2648
3136
|
*/
|
|
@@ -2654,15 +3142,15 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2654
3142
|
/**
|
|
2655
3143
|
* A primary network (P or X chain) nodeId.
|
|
2656
3144
|
*/
|
|
2657
|
-
nodeId: string;
|
|
2658
|
-
/**
|
|
2659
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2660
|
-
*/
|
|
2661
|
-
pageSize?: number;
|
|
3145
|
+
nodeId: string;
|
|
2662
3146
|
/**
|
|
2663
3147
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2664
3148
|
*/
|
|
2665
3149
|
pageToken?: string;
|
|
3150
|
+
/**
|
|
3151
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3152
|
+
*/
|
|
3153
|
+
pageSize?: number;
|
|
2666
3154
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2667
3155
|
/**
|
|
2668
3156
|
* List latest blocks
|
|
@@ -2670,7 +3158,7 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2670
3158
|
* @returns ListPrimaryNetworkBlocksResponse
|
|
2671
3159
|
* @throws ApiError
|
|
2672
3160
|
*/
|
|
2673
|
-
listLatestPrimaryNetworkBlocks({ blockchainId, network,
|
|
3161
|
+
listLatestPrimaryNetworkBlocks({ blockchainId, network, pageToken, pageSize, }: {
|
|
2674
3162
|
/**
|
|
2675
3163
|
* A primary network blockchain id or alias.
|
|
2676
3164
|
*/
|
|
@@ -2679,20 +3167,52 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2679
3167
|
* Either mainnet or a testnet.
|
|
2680
3168
|
*/
|
|
2681
3169
|
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
3170
|
/**
|
|
2687
3171
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2688
3172
|
*/
|
|
2689
3173
|
pageToken?: string;
|
|
3174
|
+
/**
|
|
3175
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3176
|
+
*/
|
|
3177
|
+
pageSize?: number;
|
|
2690
3178
|
}): CancelablePromise<ListPrimaryNetworkBlocksResponse>;
|
|
2691
3179
|
}
|
|
2692
3180
|
|
|
3181
|
+
type AssetWithPriceInfo = {
|
|
3182
|
+
/**
|
|
3183
|
+
* Unique ID for an asset.
|
|
3184
|
+
*/
|
|
3185
|
+
assetId: string;
|
|
3186
|
+
/**
|
|
3187
|
+
* Name of this asset.
|
|
3188
|
+
*/
|
|
3189
|
+
name: string;
|
|
3190
|
+
/**
|
|
3191
|
+
* Symbol for this asset (max 4 characters).
|
|
3192
|
+
*/
|
|
3193
|
+
symbol: string;
|
|
3194
|
+
/**
|
|
3195
|
+
* Denomination of this asset to represent fungibility.
|
|
3196
|
+
*/
|
|
3197
|
+
denomination: number;
|
|
3198
|
+
/**
|
|
3199
|
+
* Type of asset like SECP256K1 or NFT.
|
|
3200
|
+
*/
|
|
3201
|
+
type: PrimaryNetworkAssetType;
|
|
3202
|
+
/**
|
|
3203
|
+
* Amount of the asset.
|
|
3204
|
+
*/
|
|
3205
|
+
amount: string;
|
|
3206
|
+
/**
|
|
3207
|
+
* 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.
|
|
3208
|
+
*/
|
|
3209
|
+
historicalPrice?: Money;
|
|
3210
|
+
};
|
|
3211
|
+
|
|
2693
3212
|
declare enum RewardType {
|
|
2694
3213
|
VALIDATOR = "VALIDATOR",
|
|
2695
|
-
DELEGATOR = "DELEGATOR"
|
|
3214
|
+
DELEGATOR = "DELEGATOR",
|
|
3215
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2696
3216
|
}
|
|
2697
3217
|
|
|
2698
3218
|
type HistoricalReward = {
|
|
@@ -2708,10 +3228,7 @@ type HistoricalReward = {
|
|
|
2708
3228
|
rewardType: RewardType;
|
|
2709
3229
|
utxoId: string;
|
|
2710
3230
|
outputIndex: number;
|
|
2711
|
-
|
|
2712
|
-
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2713
|
-
*/
|
|
2714
|
-
reward: PChainAsset;
|
|
3231
|
+
reward: AssetWithPriceInfo;
|
|
2715
3232
|
rewardTxHash: string;
|
|
2716
3233
|
};
|
|
2717
3234
|
|
|
@@ -2738,7 +3255,7 @@ type PendingReward = {
|
|
|
2738
3255
|
/**
|
|
2739
3256
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2740
3257
|
*/
|
|
2741
|
-
estimatedReward:
|
|
3258
|
+
estimatedReward: Asset;
|
|
2742
3259
|
};
|
|
2743
3260
|
|
|
2744
3261
|
type ListPendingRewardsResponse = {
|
|
@@ -2758,23 +3275,27 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2758
3275
|
* @returns ListPendingRewardsResponse
|
|
2759
3276
|
* @throws ApiError
|
|
2760
3277
|
*/
|
|
2761
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3278
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, }: {
|
|
2762
3279
|
/**
|
|
2763
3280
|
* Either mainnet or a testnet.
|
|
2764
3281
|
*/
|
|
2765
3282
|
network: Network;
|
|
2766
3283
|
/**
|
|
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".
|
|
3284
|
+
* 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
3285
|
*/
|
|
2769
3286
|
addresses?: string;
|
|
3287
|
+
/**
|
|
3288
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3289
|
+
*/
|
|
3290
|
+
pageToken?: string;
|
|
2770
3291
|
/**
|
|
2771
3292
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2772
3293
|
*/
|
|
2773
3294
|
pageSize?: number;
|
|
2774
3295
|
/**
|
|
2775
|
-
* A
|
|
3296
|
+
* A comma separated list of node ids to filter by. One of addresses or nodeIds is required.
|
|
2776
3297
|
*/
|
|
2777
|
-
|
|
3298
|
+
nodeIds?: string;
|
|
2778
3299
|
/**
|
|
2779
3300
|
* 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
3301
|
*/
|
|
@@ -2786,64 +3307,45 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2786
3307
|
* @returns ListHistoricalRewardsResponse
|
|
2787
3308
|
* @throws ApiError
|
|
2788
3309
|
*/
|
|
2789
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize,
|
|
3310
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageToken, pageSize, nodeIds, sortOrder, currency, }: {
|
|
2790
3311
|
/**
|
|
2791
3312
|
* Either mainnet or a testnet.
|
|
2792
3313
|
*/
|
|
2793
3314
|
network: Network;
|
|
2794
3315
|
/**
|
|
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".
|
|
3316
|
+
* 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
3317
|
*/
|
|
2797
3318
|
addresses?: string;
|
|
3319
|
+
/**
|
|
3320
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3321
|
+
*/
|
|
3322
|
+
pageToken?: string;
|
|
2798
3323
|
/**
|
|
2799
3324
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2800
3325
|
*/
|
|
2801
3326
|
pageSize?: number;
|
|
2802
3327
|
/**
|
|
2803
|
-
* A
|
|
3328
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
2804
3329
|
*/
|
|
2805
|
-
|
|
3330
|
+
nodeIds?: string;
|
|
2806
3331
|
/**
|
|
2807
3332
|
* 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
3333
|
*/
|
|
2809
3334
|
sortOrder?: SortOrder;
|
|
3335
|
+
/**
|
|
3336
|
+
* The currency that return values should use. Defaults to USD.
|
|
3337
|
+
*/
|
|
3338
|
+
currency?: CurrencyCode;
|
|
2810
3339
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2811
3340
|
}
|
|
2812
3341
|
|
|
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
3342
|
type UtxoCredential = {
|
|
2841
3343
|
/**
|
|
2842
|
-
* Signature provided to consume the output
|
|
3344
|
+
* Signature provided to consume the output.
|
|
2843
3345
|
*/
|
|
2844
3346
|
signature?: string;
|
|
2845
3347
|
/**
|
|
2846
|
-
* Public key associated with the signature
|
|
3348
|
+
* Public key associated with the signature.
|
|
2847
3349
|
*/
|
|
2848
3350
|
publicKey?: string;
|
|
2849
3351
|
};
|
|
@@ -2865,66 +3367,66 @@ type EVMInput = {
|
|
|
2865
3367
|
|
|
2866
3368
|
type Utxo = {
|
|
2867
3369
|
/**
|
|
2868
|
-
*
|
|
3370
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2869
3371
|
*/
|
|
2870
|
-
|
|
3372
|
+
addresses: Array<string>;
|
|
2871
3373
|
asset: Asset;
|
|
2872
3374
|
/**
|
|
2873
|
-
*
|
|
3375
|
+
* Blockchain ID on which this output is consumed on.
|
|
2874
3376
|
*/
|
|
2875
|
-
|
|
3377
|
+
consumedOnChainId: string;
|
|
2876
3378
|
/**
|
|
2877
|
-
*
|
|
3379
|
+
* Transaction ID that consumed this output.
|
|
2878
3380
|
*/
|
|
2879
|
-
|
|
3381
|
+
consumingTxHash?: string;
|
|
2880
3382
|
/**
|
|
2881
|
-
* Blockchain ID on which this output is
|
|
3383
|
+
* Blockchain ID on which this output is created on.
|
|
2882
3384
|
*/
|
|
2883
|
-
|
|
3385
|
+
createdOnChainId: string;
|
|
2884
3386
|
/**
|
|
2885
|
-
*
|
|
3387
|
+
* UTXO ID for this output.
|
|
2886
3388
|
*/
|
|
2887
|
-
|
|
3389
|
+
utxoId: string;
|
|
2888
3390
|
/**
|
|
2889
|
-
*
|
|
3391
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2890
3392
|
*/
|
|
2891
|
-
|
|
3393
|
+
consumingTxTimestamp?: number;
|
|
2892
3394
|
/**
|
|
2893
|
-
*
|
|
3395
|
+
* Transaction ID that created this output.
|
|
2894
3396
|
*/
|
|
2895
|
-
|
|
3397
|
+
creationTxHash: string;
|
|
2896
3398
|
/**
|
|
2897
|
-
*
|
|
3399
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2898
3400
|
*/
|
|
2899
|
-
|
|
3401
|
+
credentials?: Array<UtxoCredential>;
|
|
2900
3402
|
/**
|
|
2901
|
-
*
|
|
3403
|
+
* Index representing the minting set for the NFT mint output.
|
|
2902
3404
|
*/
|
|
2903
|
-
|
|
3405
|
+
groupId?: number;
|
|
2904
3406
|
/**
|
|
2905
3407
|
* Locktime in seconds after which this output can be consumed.
|
|
2906
3408
|
*/
|
|
2907
3409
|
locktime: number;
|
|
2908
3410
|
/**
|
|
2909
|
-
*
|
|
3411
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
2910
3412
|
*/
|
|
2911
|
-
|
|
3413
|
+
outputIndex: string;
|
|
2912
3414
|
/**
|
|
2913
|
-
*
|
|
3415
|
+
* Hex encoded data for NFT assets.
|
|
2914
3416
|
*/
|
|
2915
|
-
|
|
3417
|
+
payload?: string;
|
|
2916
3418
|
/**
|
|
2917
|
-
*
|
|
3419
|
+
* Minimum number of signatures required to consume this output.
|
|
2918
3420
|
*/
|
|
2919
|
-
|
|
3421
|
+
threshold: number;
|
|
2920
3422
|
/**
|
|
2921
|
-
*
|
|
3423
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
2922
3424
|
*/
|
|
2923
|
-
|
|
3425
|
+
timestamp: number;
|
|
2924
3426
|
/**
|
|
2925
|
-
*
|
|
3427
|
+
* Type of output.
|
|
2926
3428
|
*/
|
|
2927
|
-
|
|
3429
|
+
utxoType: string;
|
|
2928
3430
|
};
|
|
2929
3431
|
|
|
2930
3432
|
type CChainExportTransaction = {
|
|
@@ -3055,16 +3557,18 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3055
3557
|
|
|
3056
3558
|
declare enum PChainTransactionType {
|
|
3057
3559
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3058
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3059
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3060
3560
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3061
|
-
|
|
3062
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3561
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3063
3562
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3064
3563
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3065
3564
|
IMPORT_TX = "ImportTx",
|
|
3066
3565
|
EXPORT_TX = "ExportTx",
|
|
3067
3566
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3567
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3568
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3569
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3570
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3571
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3068
3572
|
UNKNOWN = "UNKNOWN"
|
|
3069
3573
|
}
|
|
3070
3574
|
|
|
@@ -3075,29 +3579,48 @@ declare enum UtxoType {
|
|
|
3075
3579
|
|
|
3076
3580
|
type PChainUtxo = {
|
|
3077
3581
|
/**
|
|
3078
|
-
*
|
|
3582
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3079
3583
|
*/
|
|
3080
3584
|
addresses: Array<string>;
|
|
3585
|
+
asset: Asset;
|
|
3586
|
+
/**
|
|
3587
|
+
* Blockchain ID on which this output is consumed on.
|
|
3588
|
+
*/
|
|
3589
|
+
consumedOnChainId: string;
|
|
3590
|
+
/**
|
|
3591
|
+
* Transaction ID that consumed this output.
|
|
3592
|
+
*/
|
|
3593
|
+
consumingTxHash?: string;
|
|
3594
|
+
/**
|
|
3595
|
+
* Blockchain ID on which this output is created on.
|
|
3596
|
+
*/
|
|
3597
|
+
createdOnChainId: string;
|
|
3598
|
+
/**
|
|
3599
|
+
* UTXO ID for this output.
|
|
3600
|
+
*/
|
|
3081
3601
|
utxoId: string;
|
|
3082
|
-
|
|
3083
|
-
|
|
3602
|
+
/**
|
|
3603
|
+
* @deprecated
|
|
3604
|
+
*/
|
|
3605
|
+
amount: string;
|
|
3606
|
+
/**
|
|
3607
|
+
* @deprecated
|
|
3608
|
+
*/
|
|
3609
|
+
assetId: string;
|
|
3084
3610
|
blockNumber: string;
|
|
3085
3611
|
blockTimestamp: number;
|
|
3086
|
-
consumingTxHash?: string;
|
|
3087
|
-
consumingBlockTimestamp?: number;
|
|
3088
3612
|
consumingBlockNumber?: string;
|
|
3089
|
-
|
|
3090
|
-
utxoType: UtxoType;
|
|
3091
|
-
amount: string;
|
|
3092
|
-
stakeableLocktime?: number;
|
|
3613
|
+
consumingBlockTimestamp?: number;
|
|
3093
3614
|
platformLocktime?: number;
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3615
|
+
outputIndex: number;
|
|
3616
|
+
rewardType?: RewardType;
|
|
3617
|
+
stakeableLocktime?: number;
|
|
3097
3618
|
staked?: boolean;
|
|
3098
|
-
|
|
3619
|
+
threshold?: number;
|
|
3620
|
+
txHash: string;
|
|
3099
3621
|
utxoEndTimestamp?: number;
|
|
3100
|
-
|
|
3622
|
+
utxoStartTimestamp?: number;
|
|
3623
|
+
utxoType: UtxoType;
|
|
3101
3624
|
};
|
|
3102
3625
|
|
|
3103
3626
|
type PChainTransaction = {
|
|
@@ -3125,15 +3648,15 @@ type PChainTransaction = {
|
|
|
3125
3648
|
/**
|
|
3126
3649
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3127
3650
|
*/
|
|
3128
|
-
value: Array<
|
|
3651
|
+
value: Array<Asset>;
|
|
3129
3652
|
/**
|
|
3130
3653
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3131
3654
|
*/
|
|
3132
|
-
amountBurned: Array<
|
|
3655
|
+
amountBurned: Array<Asset>;
|
|
3133
3656
|
/**
|
|
3134
3657
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3135
3658
|
*/
|
|
3136
|
-
amountStaked: Array<
|
|
3659
|
+
amountStaked: Array<Asset>;
|
|
3137
3660
|
/**
|
|
3138
3661
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3139
3662
|
*/
|
|
@@ -3159,6 +3682,7 @@ type PChainTransaction = {
|
|
|
3159
3682
|
*/
|
|
3160
3683
|
estimatedReward?: string;
|
|
3161
3684
|
rewardTxHash?: string;
|
|
3685
|
+
rewardAddresses?: Array<string>;
|
|
3162
3686
|
memo?: string;
|
|
3163
3687
|
/**
|
|
3164
3688
|
* Present for RewardValidatorTx
|
|
@@ -3175,6 +3699,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3175
3699
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3176
3700
|
};
|
|
3177
3701
|
|
|
3702
|
+
declare enum XChainTransactionType {
|
|
3703
|
+
BASE_TX = "BaseTx",
|
|
3704
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3705
|
+
OPERATION_TX = "OperationTx",
|
|
3706
|
+
IMPORT_TX = "ImportTx",
|
|
3707
|
+
EXPORT_TX = "ExportTx",
|
|
3708
|
+
UNKNOWN = "UNKNOWN"
|
|
3709
|
+
}
|
|
3710
|
+
|
|
3178
3711
|
type XChainLinearTransaction = {
|
|
3179
3712
|
/**
|
|
3180
3713
|
* Unique ID for this transaction.
|
|
@@ -3191,7 +3724,7 @@ type XChainLinearTransaction = {
|
|
|
3191
3724
|
/**
|
|
3192
3725
|
* Type of transaction.
|
|
3193
3726
|
*/
|
|
3194
|
-
txType:
|
|
3727
|
+
txType: XChainTransactionType;
|
|
3195
3728
|
/**
|
|
3196
3729
|
* Hex encoded memo bytes for this transaction.
|
|
3197
3730
|
*/
|
|
@@ -3268,7 +3801,7 @@ type XChainNonLinearTransaction = {
|
|
|
3268
3801
|
/**
|
|
3269
3802
|
* Type of transaction.
|
|
3270
3803
|
*/
|
|
3271
|
-
txType:
|
|
3804
|
+
txType: XChainTransactionType;
|
|
3272
3805
|
/**
|
|
3273
3806
|
* Hex encoded memo bytes for this transaction.
|
|
3274
3807
|
*/
|
|
@@ -3326,16 +3859,18 @@ declare enum PChainId {
|
|
|
3326
3859
|
|
|
3327
3860
|
declare enum PrimaryNetworkTxType {
|
|
3328
3861
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3329
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3330
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3331
3862
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3332
|
-
|
|
3333
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3863
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3334
3864
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3335
3865
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3336
3866
|
IMPORT_TX = "ImportTx",
|
|
3337
3867
|
EXPORT_TX = "ExportTx",
|
|
3338
3868
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3869
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3870
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3871
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3872
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3873
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3339
3874
|
UNKNOWN = "UNKNOWN",
|
|
3340
3875
|
BASE_TX = "BaseTx",
|
|
3341
3876
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3369,13 +3904,13 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3369
3904
|
* List latest transactions
|
|
3370
3905
|
* Lists the latest transactions on one of the Primary Network chains.
|
|
3371
3906
|
*
|
|
3372
|
-
* Transactions are filterable by addresses.
|
|
3907
|
+
* Transactions are filterable by addresses, txTypes, and timestamps. When querying for latest transactions without an address parameter, filtering by txTypes and timestamps is not supported. An address filter must be provided to utilize txTypes and timestamp filters.
|
|
3373
3908
|
*
|
|
3374
3909
|
* Given that each transaction may return a large number of UTXO objects, bounded only by the maximum transaction size, the query may return less transactions than the provided page size. The result will contain less results than the page size if the number of utxos contained in the resulting transactions reach a performance threshold.
|
|
3375
3910
|
* @returns any
|
|
3376
3911
|
* @throws ApiError
|
|
3377
3912
|
*/
|
|
3378
|
-
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3913
|
+
listLatestPrimaryNetworkTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3379
3914
|
/**
|
|
3380
3915
|
* A primary network blockchain id or alias.
|
|
3381
3916
|
*/
|
|
@@ -3400,14 +3935,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3400
3935
|
* Query param for retrieving items before a specific timestamp.
|
|
3401
3936
|
*/
|
|
3402
3937
|
endTimestamp?: number;
|
|
3403
|
-
/**
|
|
3404
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3405
|
-
*/
|
|
3406
|
-
pageSize?: number;
|
|
3407
3938
|
/**
|
|
3408
3939
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3409
3940
|
*/
|
|
3410
3941
|
pageToken?: string;
|
|
3942
|
+
/**
|
|
3943
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3944
|
+
*/
|
|
3945
|
+
pageSize?: number;
|
|
3411
3946
|
/**
|
|
3412
3947
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3413
3948
|
*/
|
|
@@ -3419,7 +3954,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3419
3954
|
* @returns ListPChainTransactionsResponse
|
|
3420
3955
|
* @throws ApiError
|
|
3421
3956
|
*/
|
|
3422
|
-
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp,
|
|
3957
|
+
listActivePrimaryNetworkStakingTransactions({ blockchainId, network, addresses, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, sortOrder, }: {
|
|
3423
3958
|
/**
|
|
3424
3959
|
* A primary network blockchain id or alias.
|
|
3425
3960
|
*/
|
|
@@ -3444,14 +3979,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3444
3979
|
* Query param for retrieving items before a specific timestamp.
|
|
3445
3980
|
*/
|
|
3446
3981
|
endTimestamp?: number;
|
|
3447
|
-
/**
|
|
3448
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3449
|
-
*/
|
|
3450
|
-
pageSize?: number;
|
|
3451
3982
|
/**
|
|
3452
3983
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3453
3984
|
*/
|
|
3454
3985
|
pageToken?: string;
|
|
3986
|
+
/**
|
|
3987
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3988
|
+
*/
|
|
3989
|
+
pageSize?: number;
|
|
3455
3990
|
/**
|
|
3456
3991
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
3457
3992
|
*/
|
|
@@ -3463,7 +3998,7 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3463
3998
|
* @returns ListXChainTransactionsResponse
|
|
3464
3999
|
* @throws ApiError
|
|
3465
4000
|
*/
|
|
3466
|
-
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp,
|
|
4001
|
+
listAssetTransactions({ blockchainId, network, assetId, txTypes, startTimestamp, endTimestamp, pageToken, pageSize, }: {
|
|
3467
4002
|
/**
|
|
3468
4003
|
* A primary network blockchain id or alias.
|
|
3469
4004
|
*/
|
|
@@ -3488,14 +4023,14 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3488
4023
|
* Query param for retrieving items before a specific timestamp.
|
|
3489
4024
|
*/
|
|
3490
4025
|
endTimestamp?: number;
|
|
3491
|
-
/**
|
|
3492
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3493
|
-
*/
|
|
3494
|
-
pageSize?: number;
|
|
3495
4026
|
/**
|
|
3496
4027
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3497
4028
|
*/
|
|
3498
4029
|
pageToken?: string;
|
|
4030
|
+
/**
|
|
4031
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4032
|
+
*/
|
|
4033
|
+
pageSize?: number;
|
|
3499
4034
|
}): CancelablePromise<ListXChainTransactionsResponse>;
|
|
3500
4035
|
}
|
|
3501
4036
|
|
|
@@ -3526,7 +4061,7 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3526
4061
|
* @returns any
|
|
3527
4062
|
* @throws ApiError
|
|
3528
4063
|
*/
|
|
3529
|
-
getUtxosByAddresses({ blockchainId, network, addresses,
|
|
4064
|
+
getUtxosByAddresses({ blockchainId, network, addresses, pageToken, pageSize, assetId, includeSpent, sortOrder, }: {
|
|
3530
4065
|
/**
|
|
3531
4066
|
* A primary network blockchain id or alias.
|
|
3532
4067
|
*/
|
|
@@ -3539,14 +4074,14 @@ declare class PrimaryNetworkUtxOsService {
|
|
|
3539
4074
|
* A comma separated list of X-Chain or P-Chain wallet addresses, starting with "avax"/"fuji", "P-avax"/"P-fuji" or "X-avax"/"X-fuji".
|
|
3540
4075
|
*/
|
|
3541
4076
|
addresses?: string;
|
|
3542
|
-
/**
|
|
3543
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3544
|
-
*/
|
|
3545
|
-
pageSize?: number;
|
|
3546
4077
|
/**
|
|
3547
4078
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3548
4079
|
*/
|
|
3549
4080
|
pageToken?: string;
|
|
4081
|
+
/**
|
|
4082
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4083
|
+
*/
|
|
4084
|
+
pageSize?: number;
|
|
3550
4085
|
/**
|
|
3551
4086
|
* Asset ID for any asset (only applicable X-Chain)
|
|
3552
4087
|
*/
|
|
@@ -3591,7 +4126,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3591
4126
|
* @returns ListXChainVerticesResponse
|
|
3592
4127
|
* @throws ApiError
|
|
3593
4128
|
*/
|
|
3594
|
-
listLatestXChainVertices({ blockchainId, network,
|
|
4129
|
+
listLatestXChainVertices({ blockchainId, network, pageToken, pageSize, }: {
|
|
3595
4130
|
/**
|
|
3596
4131
|
* A primary network blockchain id or alias.
|
|
3597
4132
|
*/
|
|
@@ -3600,14 +4135,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3600
4135
|
* Either mainnet or a testnet.
|
|
3601
4136
|
*/
|
|
3602
4137
|
network: Network;
|
|
3603
|
-
/**
|
|
3604
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3605
|
-
*/
|
|
3606
|
-
pageSize?: number;
|
|
3607
4138
|
/**
|
|
3608
4139
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3609
4140
|
*/
|
|
3610
4141
|
pageToken?: string;
|
|
4142
|
+
/**
|
|
4143
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4144
|
+
*/
|
|
4145
|
+
pageSize?: number;
|
|
3611
4146
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3612
4147
|
/**
|
|
3613
4148
|
* Get vertex
|
|
@@ -3635,7 +4170,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3635
4170
|
* @returns ListXChainVerticesResponse
|
|
3636
4171
|
* @throws ApiError
|
|
3637
4172
|
*/
|
|
3638
|
-
getVertexByHeight({ vertexHeight, blockchainId, network,
|
|
4173
|
+
getVertexByHeight({ vertexHeight, blockchainId, network, pageToken, pageSize, sortOrder, }: {
|
|
3639
4174
|
/**
|
|
3640
4175
|
* The height of a vertex.
|
|
3641
4176
|
*/
|
|
@@ -3648,14 +4183,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3648
4183
|
* Either mainnet or a testnet.
|
|
3649
4184
|
*/
|
|
3650
4185
|
network: Network;
|
|
3651
|
-
/**
|
|
3652
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
3653
|
-
*/
|
|
3654
|
-
pageSize?: number;
|
|
3655
4186
|
/**
|
|
3656
4187
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
3657
4188
|
*/
|
|
3658
4189
|
pageToken?: string;
|
|
4190
|
+
/**
|
|
4191
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4192
|
+
*/
|
|
4193
|
+
pageSize?: number;
|
|
3659
4194
|
/**
|
|
3660
4195
|
* 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.
|
|
3661
4196
|
*/
|
|
@@ -3665,9 +4200,11 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3665
4200
|
|
|
3666
4201
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3667
4202
|
declare class Glacier {
|
|
4203
|
+
readonly default: DefaultService;
|
|
3668
4204
|
readonly evmBalances: EvmBalancesService;
|
|
3669
4205
|
readonly evmBlocks: EvmBlocksService;
|
|
3670
4206
|
readonly evmChains: EvmChainsService;
|
|
4207
|
+
readonly evmContracts: EvmContractsService;
|
|
3671
4208
|
readonly evmTransactions: EvmTransactionsService;
|
|
3672
4209
|
readonly healthCheck: HealthCheckService;
|
|
3673
4210
|
readonly nfTs: NfTsService;
|
|
@@ -3700,4 +4237,4 @@ declare class ApiError extends Error {
|
|
|
3700
4237
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3701
4238
|
}
|
|
3702
4239
|
|
|
3703
|
-
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,
|
|
4240
|
+
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 };
|