@avalabs/glacier-sdk 2.8.0-canary.b80d643.0 → 2.8.0-canary.b832804.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 +509 -140
- package/dist/index.js +185 -30
- package/esm/generated/Glacier.d.ts +2 -0
- package/esm/generated/Glacier.js +3 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +1 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +1 -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/EventType.d.ts +5 -0
- package/esm/generated/models/EventType.js +6 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -2
- package/esm/generated/models/ListNftTokens.d.ts +12 -0
- 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 +22 -0
- package/esm/generated/models/PChainTransaction.d.ts +4 -4
- package/esm/generated/models/PChainTransactionType.d.ts +6 -5
- package/esm/generated/models/PChainTransactionType.js +6 -5
- package/esm/generated/models/PChainUtxo.d.ts +34 -14
- package/esm/generated/models/PendingReward.d.ts +2 -2
- package/esm/generated/models/PendingValidatorDetails.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkBlock.d.ts +1 -0
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +6 -5
- package/esm/generated/models/PrimaryNetworkTxType.js +6 -5
- package/esm/generated/models/RegisterWebhookRequest.d.ts +14 -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/WebhookResponse.d.ts +15 -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/XChainLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +2 -1
- package/esm/generated/models/XChainTransactionType.d.ts +10 -0
- package/esm/generated/models/XChainTransactionType.js +11 -0
- package/esm/generated/services/DefaultService.d.ts +67 -0
- package/esm/generated/services/DefaultService.js +55 -0
- package/esm/generated/services/EvmContractsService.d.ts +19 -0
- package/esm/generated/services/EvmContractsService.js +16 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
- package/esm/generated/services/NfTsService.d.ts +25 -0
- package/esm/generated/services/NfTsService.js +19 -0
- package/esm/generated/services/OperationsService.d.ts +11 -11
- package/esm/generated/services/OperationsService.js +10 -10
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +4 -4
- package/esm/generated/services/PrimaryNetworkService.d.ts +21 -17
- package/esm/generated/services/PrimaryNetworkService.js +12 -10
- package/esm/index.d.ts +17 -1
- package/esm/index.js +9 -0
- package/package.json +2 -2
- package/esm/generated/models/PChainAsset.d.ts +0 -6
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,121 @@ 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
|
+
};
|
|
92
|
+
|
|
93
|
+
type ListWebhooksResponse = {
|
|
94
|
+
/**
|
|
95
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
96
|
+
*/
|
|
97
|
+
nextPageToken?: string;
|
|
98
|
+
webhooks: Array<WebhookResponse>;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
type RegisterWebhookRequest = {
|
|
102
|
+
url: string;
|
|
103
|
+
chainId: string;
|
|
104
|
+
/**
|
|
105
|
+
* The type of event for the webhook
|
|
106
|
+
*/
|
|
107
|
+
eventType: EventType;
|
|
108
|
+
metadata: AddressActivityMetadata;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
type SharedSecretsResponse = {
|
|
112
|
+
secret: string;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
declare enum WebhookStatus {
|
|
116
|
+
ACTIVE = "active",
|
|
117
|
+
INACTIVE = "inactive"
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
declare class DefaultService {
|
|
121
|
+
readonly httpRequest: BaseHttpRequest;
|
|
122
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
123
|
+
/**
|
|
124
|
+
* @returns any
|
|
125
|
+
* @throws ApiError
|
|
126
|
+
*/
|
|
127
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
128
|
+
/**
|
|
129
|
+
* Register a webhook
|
|
130
|
+
* Registers a new webhook.
|
|
131
|
+
* @returns WebhookResponse
|
|
132
|
+
* @throws ApiError
|
|
133
|
+
*/
|
|
134
|
+
registerWebhook({ requestBody, }: {
|
|
135
|
+
requestBody: RegisterWebhookRequest;
|
|
136
|
+
}): CancelablePromise<WebhookResponse>;
|
|
137
|
+
/**
|
|
138
|
+
* List webhooks
|
|
139
|
+
* Lists webhooks for the user.
|
|
140
|
+
* @returns ListWebhooksResponse
|
|
141
|
+
* @throws ApiError
|
|
142
|
+
*/
|
|
143
|
+
listWebhooks({ pageSize, pageToken, status, }: {
|
|
144
|
+
/**
|
|
145
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
146
|
+
*/
|
|
147
|
+
pageSize?: number;
|
|
148
|
+
/**
|
|
149
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
150
|
+
*/
|
|
151
|
+
pageToken?: string;
|
|
152
|
+
/**
|
|
153
|
+
* Status of the webhook. Use "active" to return only active webhooks, "inactive" to return only inactive webhooks. Else if no status is provided, all configured webhooks will be returned.
|
|
154
|
+
*/
|
|
155
|
+
status?: WebhookStatus;
|
|
156
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
157
|
+
/**
|
|
158
|
+
* Deactivate a webhook
|
|
159
|
+
* Deactivates a webhook by ID.
|
|
160
|
+
* @returns WebhookResponse
|
|
161
|
+
* @throws ApiError
|
|
162
|
+
*/
|
|
163
|
+
deactivateWebhook({ id, }: {
|
|
164
|
+
/**
|
|
165
|
+
* The webhook identifier.
|
|
166
|
+
*/
|
|
167
|
+
id: string;
|
|
168
|
+
}): CancelablePromise<WebhookResponse>;
|
|
169
|
+
/**
|
|
170
|
+
* Generate a shared secret
|
|
171
|
+
* Generates a new shared secret.
|
|
172
|
+
* @returns SharedSecretsResponse
|
|
173
|
+
* @throws ApiError
|
|
174
|
+
*/
|
|
175
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
176
|
+
}
|
|
177
|
+
|
|
63
178
|
declare enum CurrencyCode {
|
|
64
179
|
USD = "usd",
|
|
65
180
|
EUR = "eur",
|
|
@@ -743,18 +858,6 @@ declare class EvmChainsService {
|
|
|
743
858
|
}): CancelablePromise<GetChainResponse>;
|
|
744
859
|
}
|
|
745
860
|
|
|
746
|
-
type ContractDeploymentDetails = {
|
|
747
|
-
txHash: string;
|
|
748
|
-
/**
|
|
749
|
-
* The address that initiated the transaction which deployed this contract.
|
|
750
|
-
*/
|
|
751
|
-
deployerAddress: string;
|
|
752
|
-
/**
|
|
753
|
-
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
754
|
-
*/
|
|
755
|
-
deployerContractAddress?: string;
|
|
756
|
-
};
|
|
757
|
-
|
|
758
861
|
type ImageAsset = {
|
|
759
862
|
assetId?: string;
|
|
760
863
|
/**
|
|
@@ -793,6 +896,120 @@ type ResourceLink = {
|
|
|
793
896
|
url: string;
|
|
794
897
|
};
|
|
795
898
|
|
|
899
|
+
type ContractSubmissionErc1155 = {
|
|
900
|
+
description?: string;
|
|
901
|
+
officialSite?: string;
|
|
902
|
+
email?: string;
|
|
903
|
+
logoAsset?: ImageAsset;
|
|
904
|
+
bannerAsset?: ImageAsset;
|
|
905
|
+
color?: string;
|
|
906
|
+
resourceLinks?: Array<ResourceLink>;
|
|
907
|
+
tags?: Array<string>;
|
|
908
|
+
/**
|
|
909
|
+
* The contract name.
|
|
910
|
+
*/
|
|
911
|
+
name: string;
|
|
912
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
913
|
+
/**
|
|
914
|
+
* The contract symbol.
|
|
915
|
+
*/
|
|
916
|
+
symbol: string;
|
|
917
|
+
pricingProviders?: PricingProviders;
|
|
918
|
+
};
|
|
919
|
+
declare namespace ContractSubmissionErc1155 {
|
|
920
|
+
enum ercType {
|
|
921
|
+
ERC_1155 = "ERC-1155"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
type ContractSubmissionErc20 = {
|
|
926
|
+
description?: string;
|
|
927
|
+
officialSite?: string;
|
|
928
|
+
email?: string;
|
|
929
|
+
logoAsset?: ImageAsset;
|
|
930
|
+
bannerAsset?: ImageAsset;
|
|
931
|
+
color?: string;
|
|
932
|
+
resourceLinks?: Array<ResourceLink>;
|
|
933
|
+
tags?: Array<string>;
|
|
934
|
+
/**
|
|
935
|
+
* The contract name.
|
|
936
|
+
*/
|
|
937
|
+
name: string;
|
|
938
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
939
|
+
/**
|
|
940
|
+
* The contract symbol.
|
|
941
|
+
*/
|
|
942
|
+
symbol: string;
|
|
943
|
+
pricingProviders?: PricingProviders;
|
|
944
|
+
};
|
|
945
|
+
declare namespace ContractSubmissionErc20 {
|
|
946
|
+
enum ercType {
|
|
947
|
+
ERC_20 = "ERC-20"
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
|
|
951
|
+
type ContractSubmissionErc721 = {
|
|
952
|
+
description?: string;
|
|
953
|
+
officialSite?: string;
|
|
954
|
+
email?: string;
|
|
955
|
+
logoAsset?: ImageAsset;
|
|
956
|
+
bannerAsset?: ImageAsset;
|
|
957
|
+
color?: string;
|
|
958
|
+
resourceLinks?: Array<ResourceLink>;
|
|
959
|
+
tags?: Array<string>;
|
|
960
|
+
/**
|
|
961
|
+
* The contract name.
|
|
962
|
+
*/
|
|
963
|
+
name: string;
|
|
964
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
965
|
+
/**
|
|
966
|
+
* The contract symbol.
|
|
967
|
+
*/
|
|
968
|
+
symbol: string;
|
|
969
|
+
};
|
|
970
|
+
declare namespace ContractSubmissionErc721 {
|
|
971
|
+
enum ercType {
|
|
972
|
+
ERC_721 = "ERC-721"
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
type ContractSubmissionUnknown = {
|
|
977
|
+
description?: string;
|
|
978
|
+
officialSite?: string;
|
|
979
|
+
email?: string;
|
|
980
|
+
logoAsset?: ImageAsset;
|
|
981
|
+
bannerAsset?: ImageAsset;
|
|
982
|
+
color?: string;
|
|
983
|
+
resourceLinks?: Array<ResourceLink>;
|
|
984
|
+
tags?: Array<string>;
|
|
985
|
+
/**
|
|
986
|
+
* The contract name.
|
|
987
|
+
*/
|
|
988
|
+
name: string;
|
|
989
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
990
|
+
};
|
|
991
|
+
declare namespace ContractSubmissionUnknown {
|
|
992
|
+
enum ercType {
|
|
993
|
+
UNKNOWN = "UNKNOWN"
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
type ContractSubmissionBody = {
|
|
998
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
999
|
+
};
|
|
1000
|
+
|
|
1001
|
+
type ContractDeploymentDetails = {
|
|
1002
|
+
txHash: string;
|
|
1003
|
+
/**
|
|
1004
|
+
* The address that initiated the transaction which deployed this contract.
|
|
1005
|
+
*/
|
|
1006
|
+
deployerAddress: string;
|
|
1007
|
+
/**
|
|
1008
|
+
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
1009
|
+
*/
|
|
1010
|
+
deployerContractAddress?: string;
|
|
1011
|
+
};
|
|
1012
|
+
|
|
796
1013
|
type Erc1155Contract = {
|
|
797
1014
|
/**
|
|
798
1015
|
* The contract name.
|
|
@@ -915,6 +1132,10 @@ declare namespace UnknownContract {
|
|
|
915
1132
|
}
|
|
916
1133
|
}
|
|
917
1134
|
|
|
1135
|
+
type UpdateContractResponse = {
|
|
1136
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1137
|
+
};
|
|
1138
|
+
|
|
918
1139
|
declare class EvmContractsService {
|
|
919
1140
|
readonly httpRequest: BaseHttpRequest;
|
|
920
1141
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -934,6 +1155,23 @@ declare class EvmContractsService {
|
|
|
934
1155
|
*/
|
|
935
1156
|
address: string;
|
|
936
1157
|
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1158
|
+
/**
|
|
1159
|
+
* Update contract information
|
|
1160
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1161
|
+
* @returns UpdateContractResponse
|
|
1162
|
+
* @throws ApiError
|
|
1163
|
+
*/
|
|
1164
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1165
|
+
/**
|
|
1166
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1167
|
+
*/
|
|
1168
|
+
chainId: string;
|
|
1169
|
+
/**
|
|
1170
|
+
* Contract address on the relevant chain.
|
|
1171
|
+
*/
|
|
1172
|
+
address: string;
|
|
1173
|
+
requestBody: ContractSubmissionBody;
|
|
1174
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
937
1175
|
}
|
|
938
1176
|
|
|
939
1177
|
type Erc1155Token = {
|
|
@@ -1504,7 +1742,13 @@ declare class EvmTransactionsService {
|
|
|
1504
1742
|
* A wallet address.
|
|
1505
1743
|
*/
|
|
1506
1744
|
address: string;
|
|
1745
|
+
/**
|
|
1746
|
+
* 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.
|
|
1747
|
+
*/
|
|
1507
1748
|
startBlock?: number;
|
|
1749
|
+
/**
|
|
1750
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1751
|
+
*/
|
|
1508
1752
|
endBlock?: number;
|
|
1509
1753
|
/**
|
|
1510
1754
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1540,7 +1784,13 @@ declare class EvmTransactionsService {
|
|
|
1540
1784
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1541
1785
|
*/
|
|
1542
1786
|
pageToken?: string;
|
|
1787
|
+
/**
|
|
1788
|
+
* The block range start number, inclusive. If endBlock is not defined when startBlock is defined, the end of the range will be the most recent block.
|
|
1789
|
+
*/
|
|
1543
1790
|
startBlock?: number;
|
|
1791
|
+
/**
|
|
1792
|
+
* 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.
|
|
1793
|
+
*/
|
|
1544
1794
|
endBlock?: number;
|
|
1545
1795
|
/**
|
|
1546
1796
|
* 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.
|
|
@@ -1562,7 +1812,13 @@ declare class EvmTransactionsService {
|
|
|
1562
1812
|
* A wallet address.
|
|
1563
1813
|
*/
|
|
1564
1814
|
address: string;
|
|
1815
|
+
/**
|
|
1816
|
+
* 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.
|
|
1817
|
+
*/
|
|
1565
1818
|
startBlock?: number;
|
|
1819
|
+
/**
|
|
1820
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1821
|
+
*/
|
|
1566
1822
|
endBlock?: number;
|
|
1567
1823
|
/**
|
|
1568
1824
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1588,7 +1844,13 @@ declare class EvmTransactionsService {
|
|
|
1588
1844
|
* A wallet address.
|
|
1589
1845
|
*/
|
|
1590
1846
|
address: string;
|
|
1847
|
+
/**
|
|
1848
|
+
* 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.
|
|
1849
|
+
*/
|
|
1591
1850
|
startBlock?: number;
|
|
1851
|
+
/**
|
|
1852
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1853
|
+
*/
|
|
1592
1854
|
endBlock?: number;
|
|
1593
1855
|
/**
|
|
1594
1856
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1614,7 +1876,13 @@ declare class EvmTransactionsService {
|
|
|
1614
1876
|
* A wallet address.
|
|
1615
1877
|
*/
|
|
1616
1878
|
address: string;
|
|
1879
|
+
/**
|
|
1880
|
+
* 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.
|
|
1881
|
+
*/
|
|
1617
1882
|
startBlock?: number;
|
|
1883
|
+
/**
|
|
1884
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1885
|
+
*/
|
|
1618
1886
|
endBlock?: number;
|
|
1619
1887
|
/**
|
|
1620
1888
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1640,7 +1908,13 @@ declare class EvmTransactionsService {
|
|
|
1640
1908
|
* A wallet address.
|
|
1641
1909
|
*/
|
|
1642
1910
|
address: string;
|
|
1911
|
+
/**
|
|
1912
|
+
* 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.
|
|
1913
|
+
*/
|
|
1643
1914
|
startBlock?: number;
|
|
1915
|
+
/**
|
|
1916
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1917
|
+
*/
|
|
1644
1918
|
endBlock?: number;
|
|
1645
1919
|
/**
|
|
1646
1920
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1668,7 +1942,13 @@ declare class EvmTransactionsService {
|
|
|
1668
1942
|
* A wallet address.
|
|
1669
1943
|
*/
|
|
1670
1944
|
address: string;
|
|
1945
|
+
/**
|
|
1946
|
+
* 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.
|
|
1947
|
+
*/
|
|
1671
1948
|
startBlock?: number;
|
|
1949
|
+
/**
|
|
1950
|
+
* The block range end number, exclusive. If startBlock is not defined when endBlock is defined, the start of the range will be the genesis block.
|
|
1951
|
+
*/
|
|
1672
1952
|
endBlock?: number;
|
|
1673
1953
|
/**
|
|
1674
1954
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1753,6 +2033,14 @@ declare class HealthCheckService {
|
|
|
1753
2033
|
}>;
|
|
1754
2034
|
}
|
|
1755
2035
|
|
|
2036
|
+
type ListNftTokens = {
|
|
2037
|
+
/**
|
|
2038
|
+
* A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted or empty, there are no subsequent pages.
|
|
2039
|
+
*/
|
|
2040
|
+
nextPageToken?: string;
|
|
2041
|
+
tokens: (Array<Erc721Token> | Array<Erc1155Token>);
|
|
2042
|
+
};
|
|
2043
|
+
|
|
1756
2044
|
declare class NfTsService {
|
|
1757
2045
|
readonly httpRequest: BaseHttpRequest;
|
|
1758
2046
|
constructor(httpRequest: BaseHttpRequest);
|
|
@@ -1776,6 +2064,30 @@ declare class NfTsService {
|
|
|
1776
2064
|
*/
|
|
1777
2065
|
tokenId: string;
|
|
1778
2066
|
}): CancelablePromise<any>;
|
|
2067
|
+
/**
|
|
2068
|
+
* List tokens
|
|
2069
|
+
* Lists tokens for an NFT contract.
|
|
2070
|
+
* @returns ListNftTokens
|
|
2071
|
+
* @throws ApiError
|
|
2072
|
+
*/
|
|
2073
|
+
listTokens({ chainId, address, pageSize, pageToken, }: {
|
|
2074
|
+
/**
|
|
2075
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2076
|
+
*/
|
|
2077
|
+
chainId: string;
|
|
2078
|
+
/**
|
|
2079
|
+
* Contract address on the relevant chain.
|
|
2080
|
+
*/
|
|
2081
|
+
address: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2084
|
+
*/
|
|
2085
|
+
pageSize?: number;
|
|
2086
|
+
/**
|
|
2087
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2088
|
+
*/
|
|
2089
|
+
pageToken?: string;
|
|
2090
|
+
}): CancelablePromise<ListNftTokens>;
|
|
1779
2091
|
/**
|
|
1780
2092
|
* Get token details
|
|
1781
2093
|
* Gets token details for a specific token of an NFT contract.
|
|
@@ -1892,17 +2204,6 @@ type OperationStatusResponse = {
|
|
|
1892
2204
|
declare class OperationsService {
|
|
1893
2205
|
readonly httpRequest: BaseHttpRequest;
|
|
1894
2206
|
constructor(httpRequest: BaseHttpRequest);
|
|
1895
|
-
/**
|
|
1896
|
-
* Create transaction export operation
|
|
1897
|
-
* Trigger a transaction export operation with given parameters.
|
|
1898
|
-
*
|
|
1899
|
-
* 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.
|
|
1900
|
-
* @returns OperationStatusResponse
|
|
1901
|
-
* @throws ApiError
|
|
1902
|
-
*/
|
|
1903
|
-
postTransactionExportJob({ requestBody, }: {
|
|
1904
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
1905
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
1906
2207
|
/**
|
|
1907
2208
|
* Get operation
|
|
1908
2209
|
* Gets operation details for the given operation id.
|
|
@@ -1915,6 +2216,17 @@ declare class OperationsService {
|
|
|
1915
2216
|
*/
|
|
1916
2217
|
operationId: string;
|
|
1917
2218
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2219
|
+
/**
|
|
2220
|
+
* Create transaction export operation
|
|
2221
|
+
* Trigger a transaction export operation with given parameters.
|
|
2222
|
+
*
|
|
2223
|
+
* 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.
|
|
2224
|
+
* @returns OperationStatusResponse
|
|
2225
|
+
* @throws ApiError
|
|
2226
|
+
*/
|
|
2227
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2228
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2229
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
1918
2230
|
}
|
|
1919
2231
|
|
|
1920
2232
|
declare enum BlockchainIds {
|
|
@@ -2095,6 +2407,7 @@ type ValidatorHealthDetails = {
|
|
|
2095
2407
|
};
|
|
2096
2408
|
|
|
2097
2409
|
type ActiveValidatorDetails = {
|
|
2410
|
+
txHash: string;
|
|
2098
2411
|
nodeId: string;
|
|
2099
2412
|
subnetId: string;
|
|
2100
2413
|
amountStaked: string;
|
|
@@ -2118,6 +2431,7 @@ declare namespace ActiveValidatorDetails {
|
|
|
2118
2431
|
}
|
|
2119
2432
|
|
|
2120
2433
|
type CompletedValidatorDetails = {
|
|
2434
|
+
txHash: string;
|
|
2121
2435
|
nodeId: string;
|
|
2122
2436
|
subnetId: string;
|
|
2123
2437
|
amountStaked: string;
|
|
@@ -2135,6 +2449,7 @@ declare namespace CompletedValidatorDetails {
|
|
|
2135
2449
|
}
|
|
2136
2450
|
|
|
2137
2451
|
type PendingValidatorDetails = {
|
|
2452
|
+
txHash: string;
|
|
2138
2453
|
nodeId: string;
|
|
2139
2454
|
subnetId: string;
|
|
2140
2455
|
amountStaked: string;
|
|
@@ -2313,7 +2628,7 @@ declare class PrimaryNetworkService {
|
|
|
2313
2628
|
* @returns ListValidatorDetailsResponse
|
|
2314
2629
|
* @throws ApiError
|
|
2315
2630
|
*/
|
|
2316
|
-
listValidators({ network, pageSize, pageToken,
|
|
2631
|
+
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2317
2632
|
/**
|
|
2318
2633
|
* Either mainnet or a testnet.
|
|
2319
2634
|
*/
|
|
@@ -2327,41 +2642,45 @@ declare class PrimaryNetworkService {
|
|
|
2327
2642
|
*/
|
|
2328
2643
|
pageToken?: string;
|
|
2329
2644
|
/**
|
|
2330
|
-
*
|
|
2645
|
+
* A comma separated list of node ids to filter by.
|
|
2331
2646
|
*/
|
|
2332
|
-
|
|
2647
|
+
nodeIds?: string;
|
|
2333
2648
|
/**
|
|
2334
|
-
* The
|
|
2649
|
+
* 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.
|
|
2335
2650
|
*/
|
|
2336
|
-
|
|
2651
|
+
sortOrder?: SortOrder;
|
|
2652
|
+
/**
|
|
2653
|
+
* Validation status of the node.
|
|
2654
|
+
*/
|
|
2655
|
+
validationStatus?: ValidationStatusType;
|
|
2337
2656
|
/**
|
|
2338
2657
|
* 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
|
|
2339
2658
|
*/
|
|
2340
|
-
minDelegationCapacity?:
|
|
2659
|
+
minDelegationCapacity?: any;
|
|
2341
2660
|
/**
|
|
2342
2661
|
* 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.
|
|
2343
2662
|
*/
|
|
2344
|
-
maxDelegationCapacity?:
|
|
2663
|
+
maxDelegationCapacity?: any;
|
|
2345
2664
|
/**
|
|
2346
|
-
* The minimum
|
|
2665
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2347
2666
|
*/
|
|
2348
|
-
|
|
2667
|
+
minTimeRemaining?: any;
|
|
2349
2668
|
/**
|
|
2350
|
-
* The maximum
|
|
2669
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2351
2670
|
*/
|
|
2352
|
-
|
|
2671
|
+
maxTimeRemaining?: any;
|
|
2353
2672
|
/**
|
|
2354
|
-
*
|
|
2673
|
+
* 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.
|
|
2355
2674
|
*/
|
|
2356
|
-
|
|
2675
|
+
minFeePercentage?: any;
|
|
2357
2676
|
/**
|
|
2358
|
-
* The
|
|
2677
|
+
* 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.
|
|
2359
2678
|
*/
|
|
2360
|
-
|
|
2679
|
+
maxFeePercentage?: any;
|
|
2361
2680
|
/**
|
|
2362
|
-
*
|
|
2681
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2363
2682
|
*/
|
|
2364
|
-
|
|
2683
|
+
subnetId?: string;
|
|
2365
2684
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2366
2685
|
/**
|
|
2367
2686
|
* Get single validator details
|
|
@@ -2499,13 +2818,57 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2499
2818
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2500
2819
|
};
|
|
2501
2820
|
|
|
2502
|
-
type
|
|
2821
|
+
type Asset = {
|
|
2822
|
+
/**
|
|
2823
|
+
* Unique ID for an asset.
|
|
2824
|
+
*/
|
|
2503
2825
|
assetId: string;
|
|
2826
|
+
/**
|
|
2827
|
+
* Name of this asset.
|
|
2828
|
+
*/
|
|
2829
|
+
name: string;
|
|
2830
|
+
/**
|
|
2831
|
+
* Symbol for this asset (max 4 characters).
|
|
2832
|
+
*/
|
|
2833
|
+
symbol: string;
|
|
2834
|
+
/**
|
|
2835
|
+
* Denomination of this asset to represent fungibility.
|
|
2836
|
+
*/
|
|
2837
|
+
denomination: number;
|
|
2838
|
+
/**
|
|
2839
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2840
|
+
*/
|
|
2841
|
+
type: string;
|
|
2842
|
+
/**
|
|
2843
|
+
* Amount of the asset.
|
|
2844
|
+
*/
|
|
2504
2845
|
amount: string;
|
|
2505
2846
|
};
|
|
2506
2847
|
|
|
2507
2848
|
type PChainSharedAsset = {
|
|
2849
|
+
/**
|
|
2850
|
+
* Unique ID for an asset.
|
|
2851
|
+
*/
|
|
2508
2852
|
assetId: string;
|
|
2853
|
+
/**
|
|
2854
|
+
* Name of this asset.
|
|
2855
|
+
*/
|
|
2856
|
+
name: string;
|
|
2857
|
+
/**
|
|
2858
|
+
* Symbol for this asset (max 4 characters).
|
|
2859
|
+
*/
|
|
2860
|
+
symbol: string;
|
|
2861
|
+
/**
|
|
2862
|
+
* Denomination of this asset to represent fungibility.
|
|
2863
|
+
*/
|
|
2864
|
+
denomination: number;
|
|
2865
|
+
/**
|
|
2866
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2867
|
+
*/
|
|
2868
|
+
type: string;
|
|
2869
|
+
/**
|
|
2870
|
+
* Amount of the asset.
|
|
2871
|
+
*/
|
|
2509
2872
|
amount: string;
|
|
2510
2873
|
sharedWithChainId: string;
|
|
2511
2874
|
status: string;
|
|
@@ -2515,27 +2878,27 @@ type PChainBalance = {
|
|
|
2515
2878
|
/**
|
|
2516
2879
|
* 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.
|
|
2517
2880
|
*/
|
|
2518
|
-
unlockedUnstaked: Array<
|
|
2881
|
+
unlockedUnstaked: Array<Asset>;
|
|
2519
2882
|
/**
|
|
2520
2883
|
* 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.
|
|
2521
2884
|
*/
|
|
2522
|
-
unlockedStaked: Array<
|
|
2885
|
+
unlockedStaked: Array<Asset>;
|
|
2523
2886
|
/**
|
|
2524
2887
|
* 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.
|
|
2525
2888
|
*/
|
|
2526
|
-
lockedPlatform: Array<
|
|
2889
|
+
lockedPlatform: Array<Asset>;
|
|
2527
2890
|
/**
|
|
2528
2891
|
* 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.
|
|
2529
2892
|
*/
|
|
2530
|
-
lockedStakeable: Array<
|
|
2893
|
+
lockedStakeable: Array<Asset>;
|
|
2531
2894
|
/**
|
|
2532
2895
|
* 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.
|
|
2533
2896
|
*/
|
|
2534
|
-
lockedStaked: Array<
|
|
2897
|
+
lockedStaked: Array<Asset>;
|
|
2535
2898
|
/**
|
|
2536
2899
|
* 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.
|
|
2537
2900
|
*/
|
|
2538
|
-
pendingStaked: Array<
|
|
2901
|
+
pendingStaked: Array<Asset>;
|
|
2539
2902
|
/**
|
|
2540
2903
|
* 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.
|
|
2541
2904
|
*/
|
|
@@ -2674,6 +3037,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2674
3037
|
txCount: number;
|
|
2675
3038
|
transactions: Array<string>;
|
|
2676
3039
|
blockSizeBytes: number;
|
|
3040
|
+
currentSupply?: string;
|
|
2677
3041
|
proposerDetails?: ProposerDetails;
|
|
2678
3042
|
};
|
|
2679
3043
|
|
|
@@ -2686,6 +3050,7 @@ type PrimaryNetworkBlock = {
|
|
|
2686
3050
|
txCount: number;
|
|
2687
3051
|
transactions: Array<string>;
|
|
2688
3052
|
blockSizeBytes: number;
|
|
3053
|
+
currentSupply?: string;
|
|
2689
3054
|
proposerDetails?: ProposerDetails;
|
|
2690
3055
|
};
|
|
2691
3056
|
|
|
@@ -2797,7 +3162,7 @@ type HistoricalReward = {
|
|
|
2797
3162
|
/**
|
|
2798
3163
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2799
3164
|
*/
|
|
2800
|
-
reward:
|
|
3165
|
+
reward: Asset;
|
|
2801
3166
|
rewardTxHash: string;
|
|
2802
3167
|
};
|
|
2803
3168
|
|
|
@@ -2824,7 +3189,7 @@ type PendingReward = {
|
|
|
2824
3189
|
/**
|
|
2825
3190
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2826
3191
|
*/
|
|
2827
|
-
estimatedReward:
|
|
3192
|
+
estimatedReward: Asset;
|
|
2828
3193
|
};
|
|
2829
3194
|
|
|
2830
3195
|
type ListPendingRewardsResponse = {
|
|
@@ -2850,7 +3215,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2850
3215
|
*/
|
|
2851
3216
|
network: Network;
|
|
2852
3217
|
/**
|
|
2853
|
-
* 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".
|
|
3218
|
+
* 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.
|
|
2854
3219
|
*/
|
|
2855
3220
|
addresses?: string;
|
|
2856
3221
|
/**
|
|
@@ -2862,7 +3227,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2862
3227
|
*/
|
|
2863
3228
|
pageToken?: string;
|
|
2864
3229
|
/**
|
|
2865
|
-
* A comma separated list of node ids to filter by.
|
|
3230
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
2866
3231
|
*/
|
|
2867
3232
|
nodeIds?: string;
|
|
2868
3233
|
/**
|
|
@@ -2882,7 +3247,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2882
3247
|
*/
|
|
2883
3248
|
network: Network;
|
|
2884
3249
|
/**
|
|
2885
|
-
* 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".
|
|
3250
|
+
* 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.
|
|
2886
3251
|
*/
|
|
2887
3252
|
addresses?: string;
|
|
2888
3253
|
/**
|
|
@@ -2894,7 +3259,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2894
3259
|
*/
|
|
2895
3260
|
pageToken?: string;
|
|
2896
3261
|
/**
|
|
2897
|
-
* A comma separated list of node ids to filter by.
|
|
3262
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
2898
3263
|
*/
|
|
2899
3264
|
nodeIds?: string;
|
|
2900
3265
|
/**
|
|
@@ -2904,40 +3269,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2904
3269
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2905
3270
|
}
|
|
2906
3271
|
|
|
2907
|
-
type Asset = {
|
|
2908
|
-
/**
|
|
2909
|
-
* Unique ID for an asset.
|
|
2910
|
-
*/
|
|
2911
|
-
assetId: string;
|
|
2912
|
-
/**
|
|
2913
|
-
* Name of this asset.
|
|
2914
|
-
*/
|
|
2915
|
-
name: string;
|
|
2916
|
-
/**
|
|
2917
|
-
* Symbol for this asset (max 4 characters).
|
|
2918
|
-
*/
|
|
2919
|
-
symbol: string;
|
|
2920
|
-
/**
|
|
2921
|
-
* Denomination of this asset to represent fungibility.
|
|
2922
|
-
*/
|
|
2923
|
-
denomination: number;
|
|
2924
|
-
/**
|
|
2925
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2926
|
-
*/
|
|
2927
|
-
type: string;
|
|
2928
|
-
/**
|
|
2929
|
-
* Amount of the asset.
|
|
2930
|
-
*/
|
|
2931
|
-
amount: string;
|
|
2932
|
-
};
|
|
2933
|
-
|
|
2934
3272
|
type UtxoCredential = {
|
|
2935
3273
|
/**
|
|
2936
|
-
* Signature provided to consume the output
|
|
3274
|
+
* Signature provided to consume the output.
|
|
2937
3275
|
*/
|
|
2938
3276
|
signature?: string;
|
|
2939
3277
|
/**
|
|
2940
|
-
* Public key associated with the signature
|
|
3278
|
+
* Public key associated with the signature.
|
|
2941
3279
|
*/
|
|
2942
3280
|
publicKey?: string;
|
|
2943
3281
|
};
|
|
@@ -2959,66 +3297,66 @@ type EVMInput = {
|
|
|
2959
3297
|
|
|
2960
3298
|
type Utxo = {
|
|
2961
3299
|
/**
|
|
2962
|
-
*
|
|
3300
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2963
3301
|
*/
|
|
2964
|
-
|
|
3302
|
+
addresses: Array<string>;
|
|
2965
3303
|
asset: Asset;
|
|
2966
3304
|
/**
|
|
2967
|
-
*
|
|
3305
|
+
* Blockchain ID on which this output is consumed on.
|
|
2968
3306
|
*/
|
|
2969
|
-
|
|
3307
|
+
consumedOnChainId: string;
|
|
2970
3308
|
/**
|
|
2971
|
-
*
|
|
3309
|
+
* Transaction ID that consumed this output.
|
|
2972
3310
|
*/
|
|
2973
|
-
|
|
3311
|
+
consumingTxHash?: string;
|
|
2974
3312
|
/**
|
|
2975
|
-
* Blockchain ID on which this output is
|
|
3313
|
+
* Blockchain ID on which this output is created on.
|
|
2976
3314
|
*/
|
|
2977
|
-
|
|
3315
|
+
createdOnChainId: string;
|
|
2978
3316
|
/**
|
|
2979
|
-
*
|
|
3317
|
+
* UTXO ID for this output.
|
|
2980
3318
|
*/
|
|
2981
|
-
|
|
3319
|
+
utxoId: string;
|
|
2982
3320
|
/**
|
|
2983
|
-
*
|
|
3321
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2984
3322
|
*/
|
|
2985
|
-
|
|
3323
|
+
consumingTxTimestamp?: number;
|
|
2986
3324
|
/**
|
|
2987
|
-
*
|
|
3325
|
+
* Transaction ID that created this output.
|
|
2988
3326
|
*/
|
|
2989
|
-
|
|
3327
|
+
creationTxHash: string;
|
|
2990
3328
|
/**
|
|
2991
|
-
*
|
|
3329
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2992
3330
|
*/
|
|
2993
|
-
|
|
3331
|
+
credentials?: Array<UtxoCredential>;
|
|
2994
3332
|
/**
|
|
2995
|
-
*
|
|
3333
|
+
* Index representing the minting set for the NFT mint output.
|
|
2996
3334
|
*/
|
|
2997
|
-
|
|
3335
|
+
groupId?: number;
|
|
2998
3336
|
/**
|
|
2999
3337
|
* Locktime in seconds after which this output can be consumed.
|
|
3000
3338
|
*/
|
|
3001
3339
|
locktime: number;
|
|
3002
3340
|
/**
|
|
3003
|
-
*
|
|
3341
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
3004
3342
|
*/
|
|
3005
|
-
|
|
3343
|
+
outputIndex: string;
|
|
3006
3344
|
/**
|
|
3007
|
-
*
|
|
3345
|
+
* Hex encoded data for NFT assets.
|
|
3008
3346
|
*/
|
|
3009
|
-
|
|
3347
|
+
payload?: string;
|
|
3010
3348
|
/**
|
|
3011
|
-
*
|
|
3349
|
+
* Minimum number of signatures required to consume this output.
|
|
3012
3350
|
*/
|
|
3013
|
-
|
|
3351
|
+
threshold: number;
|
|
3014
3352
|
/**
|
|
3015
|
-
*
|
|
3353
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
3016
3354
|
*/
|
|
3017
|
-
|
|
3355
|
+
timestamp: number;
|
|
3018
3356
|
/**
|
|
3019
|
-
*
|
|
3357
|
+
* Type of output.
|
|
3020
3358
|
*/
|
|
3021
|
-
|
|
3359
|
+
utxoType: string;
|
|
3022
3360
|
};
|
|
3023
3361
|
|
|
3024
3362
|
type CChainExportTransaction = {
|
|
@@ -3149,17 +3487,18 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
3149
3487
|
|
|
3150
3488
|
declare enum PChainTransactionType {
|
|
3151
3489
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3152
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3153
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3154
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3155
3490
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3156
|
-
|
|
3157
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3491
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3158
3492
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3159
3493
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3160
3494
|
IMPORT_TX = "ImportTx",
|
|
3161
3495
|
EXPORT_TX = "ExportTx",
|
|
3162
3496
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3497
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3498
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3499
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3500
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3501
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3163
3502
|
UNKNOWN = "UNKNOWN"
|
|
3164
3503
|
}
|
|
3165
3504
|
|
|
@@ -3170,29 +3509,48 @@ declare enum UtxoType {
|
|
|
3170
3509
|
|
|
3171
3510
|
type PChainUtxo = {
|
|
3172
3511
|
/**
|
|
3173
|
-
*
|
|
3512
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3174
3513
|
*/
|
|
3175
3514
|
addresses: Array<string>;
|
|
3515
|
+
asset: Asset;
|
|
3516
|
+
/**
|
|
3517
|
+
* Blockchain ID on which this output is consumed on.
|
|
3518
|
+
*/
|
|
3519
|
+
consumedOnChainId: string;
|
|
3520
|
+
/**
|
|
3521
|
+
* Transaction ID that consumed this output.
|
|
3522
|
+
*/
|
|
3523
|
+
consumingTxHash?: string;
|
|
3524
|
+
/**
|
|
3525
|
+
* Blockchain ID on which this output is created on.
|
|
3526
|
+
*/
|
|
3527
|
+
createdOnChainId: string;
|
|
3528
|
+
/**
|
|
3529
|
+
* UTXO ID for this output.
|
|
3530
|
+
*/
|
|
3176
3531
|
utxoId: string;
|
|
3177
|
-
|
|
3178
|
-
|
|
3532
|
+
/**
|
|
3533
|
+
* @deprecated
|
|
3534
|
+
*/
|
|
3535
|
+
amount: string;
|
|
3536
|
+
/**
|
|
3537
|
+
* @deprecated
|
|
3538
|
+
*/
|
|
3539
|
+
assetId: string;
|
|
3179
3540
|
blockNumber: string;
|
|
3180
3541
|
blockTimestamp: number;
|
|
3181
|
-
consumingTxHash?: string;
|
|
3182
|
-
consumingBlockTimestamp?: number;
|
|
3183
3542
|
consumingBlockNumber?: string;
|
|
3184
|
-
|
|
3185
|
-
utxoType: UtxoType;
|
|
3186
|
-
amount: string;
|
|
3187
|
-
stakeableLocktime?: number;
|
|
3543
|
+
consumingBlockTimestamp?: number;
|
|
3188
3544
|
platformLocktime?: number;
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3545
|
+
outputIndex: number;
|
|
3546
|
+
rewardType?: RewardType;
|
|
3547
|
+
stakeableLocktime?: number;
|
|
3192
3548
|
staked?: boolean;
|
|
3193
|
-
|
|
3549
|
+
threshold?: number;
|
|
3550
|
+
txHash: string;
|
|
3194
3551
|
utxoEndTimestamp?: number;
|
|
3195
|
-
|
|
3552
|
+
utxoStartTimestamp?: number;
|
|
3553
|
+
utxoType: UtxoType;
|
|
3196
3554
|
};
|
|
3197
3555
|
|
|
3198
3556
|
type PChainTransaction = {
|
|
@@ -3220,15 +3578,15 @@ type PChainTransaction = {
|
|
|
3220
3578
|
/**
|
|
3221
3579
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3222
3580
|
*/
|
|
3223
|
-
value: Array<
|
|
3581
|
+
value: Array<Asset>;
|
|
3224
3582
|
/**
|
|
3225
3583
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3226
3584
|
*/
|
|
3227
|
-
amountBurned: Array<
|
|
3585
|
+
amountBurned: Array<Asset>;
|
|
3228
3586
|
/**
|
|
3229
3587
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3230
3588
|
*/
|
|
3231
|
-
amountStaked: Array<
|
|
3589
|
+
amountStaked: Array<Asset>;
|
|
3232
3590
|
/**
|
|
3233
3591
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3234
3592
|
*/
|
|
@@ -3271,6 +3629,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3271
3629
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3272
3630
|
};
|
|
3273
3631
|
|
|
3632
|
+
declare enum XChainTransactionType {
|
|
3633
|
+
BASE_TX = "BaseTx",
|
|
3634
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3635
|
+
OPERATION_TX = "OperationTx",
|
|
3636
|
+
IMPORT_TX = "ImportTx",
|
|
3637
|
+
EXPORT_TX = "ExportTx",
|
|
3638
|
+
UNKNOWN = "UNKNOWN"
|
|
3639
|
+
}
|
|
3640
|
+
|
|
3274
3641
|
type XChainLinearTransaction = {
|
|
3275
3642
|
/**
|
|
3276
3643
|
* Unique ID for this transaction.
|
|
@@ -3287,7 +3654,7 @@ type XChainLinearTransaction = {
|
|
|
3287
3654
|
/**
|
|
3288
3655
|
* Type of transaction.
|
|
3289
3656
|
*/
|
|
3290
|
-
txType:
|
|
3657
|
+
txType: XChainTransactionType;
|
|
3291
3658
|
/**
|
|
3292
3659
|
* Hex encoded memo bytes for this transaction.
|
|
3293
3660
|
*/
|
|
@@ -3364,7 +3731,7 @@ type XChainNonLinearTransaction = {
|
|
|
3364
3731
|
/**
|
|
3365
3732
|
* Type of transaction.
|
|
3366
3733
|
*/
|
|
3367
|
-
txType:
|
|
3734
|
+
txType: XChainTransactionType;
|
|
3368
3735
|
/**
|
|
3369
3736
|
* Hex encoded memo bytes for this transaction.
|
|
3370
3737
|
*/
|
|
@@ -3422,17 +3789,18 @@ declare enum PChainId {
|
|
|
3422
3789
|
|
|
3423
3790
|
declare enum PrimaryNetworkTxType {
|
|
3424
3791
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3425
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3426
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3427
|
-
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3428
3792
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3429
|
-
|
|
3430
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3793
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3431
3794
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3432
3795
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3433
3796
|
IMPORT_TX = "ImportTx",
|
|
3434
3797
|
EXPORT_TX = "ExportTx",
|
|
3435
3798
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3799
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3800
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3801
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3802
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3803
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3436
3804
|
UNKNOWN = "UNKNOWN",
|
|
3437
3805
|
BASE_TX = "BaseTx",
|
|
3438
3806
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3762,6 +4130,7 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3762
4130
|
|
|
3763
4131
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3764
4132
|
declare class Glacier {
|
|
4133
|
+
readonly default: DefaultService;
|
|
3765
4134
|
readonly evmBalances: EvmBalancesService;
|
|
3766
4135
|
readonly evmBlocks: EvmBlocksService;
|
|
3767
4136
|
readonly evmChains: EvmChainsService;
|
|
@@ -3798,4 +4167,4 @@ declare class ApiError extends Error {
|
|
|
3798
4167
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3799
4168
|
}
|
|
3800
4169
|
|
|
3801
|
-
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, 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, 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,
|
|
4170
|
+
export { ActiveDelegatorDetails, ActiveValidatorDetails, AddressActivityMetadata, ApiError, Asset, 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, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, 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 };
|