@avalabs/glacier-sdk 2.8.0-canary.e49772d.0 → 2.8.0-canary.e9abb3a.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 +906 -371
- package/dist/index.js +294 -19
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +9 -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/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/Erc1155Contract.d.ts +2 -1
- package/esm/generated/models/Erc20Contract.d.ts +2 -1
- package/esm/generated/models/Erc721Contract.d.ts +0 -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 -2
- 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 +1 -1
- 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 +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/PricingProviders.d.ts +5 -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/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/UnknownContract.d.ts +0 -1
- 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/ValidatorHealthDetails.d.ts +20 -0
- 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 +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +42 -0
- package/esm/generated/services/EvmTransactionsService.js +1 -1
- package/esm/generated/services/NfTsService.d.ts +76 -0
- package/esm/generated/services/NfTsService.js +56 -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 +12 -4
- package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +31 -7
- package/esm/generated/services/PrimaryNetworkService.js +16 -4
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
- package/esm/index.d.ts +21 -1
- package/esm/index.js +17 -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",
|
|
@@ -680,6 +795,7 @@ type GetChainResponse = {
|
|
|
680
795
|
utilityAddresses?: UtilityAddresses;
|
|
681
796
|
networkToken: NetworkToken;
|
|
682
797
|
chainLogoUri?: string;
|
|
798
|
+
private?: boolean;
|
|
683
799
|
};
|
|
684
800
|
|
|
685
801
|
type ChainInfo = {
|
|
@@ -701,6 +817,7 @@ type ChainInfo = {
|
|
|
701
817
|
utilityAddresses?: UtilityAddresses;
|
|
702
818
|
networkToken: NetworkToken;
|
|
703
819
|
chainLogoUri?: string;
|
|
820
|
+
private?: boolean;
|
|
704
821
|
};
|
|
705
822
|
|
|
706
823
|
type ListChainsResponse = {
|
|
@@ -741,6 +858,322 @@ declare class EvmChainsService {
|
|
|
741
858
|
}): CancelablePromise<GetChainResponse>;
|
|
742
859
|
}
|
|
743
860
|
|
|
861
|
+
type ImageAsset = {
|
|
862
|
+
assetId?: string;
|
|
863
|
+
/**
|
|
864
|
+
* OUTPUT ONLY
|
|
865
|
+
*/
|
|
866
|
+
imageUri?: string;
|
|
867
|
+
};
|
|
868
|
+
|
|
869
|
+
type PricingProviders = {
|
|
870
|
+
coingeckoCoinId?: string;
|
|
871
|
+
};
|
|
872
|
+
|
|
873
|
+
declare enum ResourceLinkType {
|
|
874
|
+
BLOG = "Blog",
|
|
875
|
+
COIN_GECKO = "CoinGecko",
|
|
876
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
877
|
+
DISCORD = "Discord",
|
|
878
|
+
DOCUMENTATION = "Documentation",
|
|
879
|
+
FACEBOOK = "Facebook",
|
|
880
|
+
GITHUB = "Github",
|
|
881
|
+
INSTAGRAM = "Instagram",
|
|
882
|
+
LINKED_IN = "LinkedIn",
|
|
883
|
+
MEDIUM = "Medium",
|
|
884
|
+
REDDIT = "Reddit",
|
|
885
|
+
SUPPORT = "Support",
|
|
886
|
+
TELEGRAM = "Telegram",
|
|
887
|
+
TIK_TOK = "TikTok",
|
|
888
|
+
TWITTER = "Twitter",
|
|
889
|
+
WEBSITE = "Website",
|
|
890
|
+
WHITEPAPER = "Whitepaper",
|
|
891
|
+
YOUTUBE = "Youtube"
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
type ResourceLink = {
|
|
895
|
+
type: ResourceLinkType;
|
|
896
|
+
url: string;
|
|
897
|
+
};
|
|
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
|
+
|
|
1013
|
+
type Erc1155Contract = {
|
|
1014
|
+
/**
|
|
1015
|
+
* The contract name.
|
|
1016
|
+
*/
|
|
1017
|
+
name?: string;
|
|
1018
|
+
description?: string;
|
|
1019
|
+
officialSite?: string;
|
|
1020
|
+
email?: string;
|
|
1021
|
+
logoAsset?: ImageAsset;
|
|
1022
|
+
bannerAsset?: ImageAsset;
|
|
1023
|
+
color?: string;
|
|
1024
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1025
|
+
tags?: Array<string>;
|
|
1026
|
+
/**
|
|
1027
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1028
|
+
*/
|
|
1029
|
+
address: string;
|
|
1030
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1031
|
+
ercType: Erc1155Contract.ercType;
|
|
1032
|
+
/**
|
|
1033
|
+
* The contract symbol.
|
|
1034
|
+
*/
|
|
1035
|
+
symbol?: string;
|
|
1036
|
+
pricingProviders?: PricingProviders;
|
|
1037
|
+
};
|
|
1038
|
+
declare namespace Erc1155Contract {
|
|
1039
|
+
enum ercType {
|
|
1040
|
+
ERC_1155 = "ERC-1155"
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
type Erc20Contract = {
|
|
1045
|
+
/**
|
|
1046
|
+
* The contract name.
|
|
1047
|
+
*/
|
|
1048
|
+
name?: string;
|
|
1049
|
+
description?: string;
|
|
1050
|
+
officialSite?: string;
|
|
1051
|
+
email?: string;
|
|
1052
|
+
logoAsset?: ImageAsset;
|
|
1053
|
+
bannerAsset?: ImageAsset;
|
|
1054
|
+
color?: string;
|
|
1055
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1056
|
+
tags?: Array<string>;
|
|
1057
|
+
/**
|
|
1058
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1059
|
+
*/
|
|
1060
|
+
address: string;
|
|
1061
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1062
|
+
ercType: Erc20Contract.ercType;
|
|
1063
|
+
/**
|
|
1064
|
+
* The contract symbol.
|
|
1065
|
+
*/
|
|
1066
|
+
symbol?: string;
|
|
1067
|
+
/**
|
|
1068
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1069
|
+
*/
|
|
1070
|
+
decimals: number;
|
|
1071
|
+
pricingProviders?: PricingProviders;
|
|
1072
|
+
};
|
|
1073
|
+
declare namespace Erc20Contract {
|
|
1074
|
+
enum ercType {
|
|
1075
|
+
ERC_20 = "ERC-20"
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
type Erc721Contract = {
|
|
1080
|
+
/**
|
|
1081
|
+
* The contract name.
|
|
1082
|
+
*/
|
|
1083
|
+
name?: string;
|
|
1084
|
+
description?: string;
|
|
1085
|
+
officialSite?: string;
|
|
1086
|
+
email?: string;
|
|
1087
|
+
logoAsset?: ImageAsset;
|
|
1088
|
+
bannerAsset?: ImageAsset;
|
|
1089
|
+
color?: string;
|
|
1090
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1091
|
+
tags?: Array<string>;
|
|
1092
|
+
/**
|
|
1093
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1094
|
+
*/
|
|
1095
|
+
address: string;
|
|
1096
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1097
|
+
ercType: Erc721Contract.ercType;
|
|
1098
|
+
/**
|
|
1099
|
+
* The contract symbol.
|
|
1100
|
+
*/
|
|
1101
|
+
symbol?: string;
|
|
1102
|
+
};
|
|
1103
|
+
declare namespace Erc721Contract {
|
|
1104
|
+
enum ercType {
|
|
1105
|
+
ERC_721 = "ERC-721"
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
type UnknownContract = {
|
|
1110
|
+
/**
|
|
1111
|
+
* The contract name.
|
|
1112
|
+
*/
|
|
1113
|
+
name?: string;
|
|
1114
|
+
description?: string;
|
|
1115
|
+
officialSite?: string;
|
|
1116
|
+
email?: string;
|
|
1117
|
+
logoAsset?: ImageAsset;
|
|
1118
|
+
bannerAsset?: ImageAsset;
|
|
1119
|
+
color?: string;
|
|
1120
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1121
|
+
tags?: Array<string>;
|
|
1122
|
+
/**
|
|
1123
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1124
|
+
*/
|
|
1125
|
+
address: string;
|
|
1126
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1127
|
+
ercType: UnknownContract.ercType;
|
|
1128
|
+
};
|
|
1129
|
+
declare namespace UnknownContract {
|
|
1130
|
+
enum ercType {
|
|
1131
|
+
UNKNOWN = "UNKNOWN"
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
type UpdateContractResponse = {
|
|
1136
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1137
|
+
};
|
|
1138
|
+
|
|
1139
|
+
declare class EvmContractsService {
|
|
1140
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1141
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1142
|
+
/**
|
|
1143
|
+
* Get contract metadata
|
|
1144
|
+
* Gets metadata about the contract at the given address.
|
|
1145
|
+
* @returns any
|
|
1146
|
+
* @throws ApiError
|
|
1147
|
+
*/
|
|
1148
|
+
getContractMetadata({ chainId, address, }: {
|
|
1149
|
+
/**
|
|
1150
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1151
|
+
*/
|
|
1152
|
+
chainId: string;
|
|
1153
|
+
/**
|
|
1154
|
+
* Contract address on the relevant chain.
|
|
1155
|
+
*/
|
|
1156
|
+
address: string;
|
|
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>;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
744
1177
|
type Erc1155Token = {
|
|
745
1178
|
/**
|
|
746
1179
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
@@ -921,260 +1354,90 @@ type FullNativeTransactionDetails = {
|
|
|
921
1354
|
/**
|
|
922
1355
|
* The amount of gas used.
|
|
923
1356
|
*/
|
|
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;
|
|
937
|
-
/**
|
|
938
|
-
* The data sent for the transaction.
|
|
939
|
-
*/
|
|
940
|
-
input: string;
|
|
941
|
-
baseFeePerGas: string;
|
|
942
|
-
maxFeePerGas?: string;
|
|
943
|
-
maxPriorityFeePerGas?: string;
|
|
944
|
-
};
|
|
945
|
-
|
|
946
|
-
declare enum InternalTransactionOpCall {
|
|
947
|
-
UNKNOWN = "UNKNOWN",
|
|
948
|
-
CALL = "CALL",
|
|
949
|
-
CREATE = "CREATE",
|
|
950
|
-
CREATE2 = "CREATE2",
|
|
951
|
-
CALLCODE = "CALLCODE",
|
|
952
|
-
DELEGATECALL = "DELEGATECALL",
|
|
953
|
-
STATICCALL = "STATICCALL"
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
type InternalTransactionDetails = {
|
|
957
|
-
from: RichAddress;
|
|
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;
|
|
1000
|
-
};
|
|
1001
|
-
|
|
1002
|
-
type ContractDeploymentDetails = {
|
|
1003
|
-
txHash: string;
|
|
1004
|
-
/**
|
|
1005
|
-
* The address that initiated the transaction which deployed this contract.
|
|
1006
|
-
*/
|
|
1007
|
-
deployerAddress: string;
|
|
1008
|
-
/**
|
|
1009
|
-
* The contract address which deployed this contract via smart contract. This field is only populated when the contract was deployed as part of smart contract execution.
|
|
1010
|
-
*/
|
|
1011
|
-
deployerContractAddress?: string;
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
|
-
type ImageAsset = {
|
|
1015
|
-
assetId?: string;
|
|
1016
|
-
/**
|
|
1017
|
-
* OUTPUT ONLY
|
|
1018
|
-
*/
|
|
1019
|
-
imageUri?: string;
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
declare enum ResourceLinkType {
|
|
1023
|
-
BLOG = "Blog",
|
|
1024
|
-
COIN_GECKO = "CoinGecko",
|
|
1025
|
-
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1026
|
-
DISCORD = "Discord",
|
|
1027
|
-
DOCUMENTATION = "Documentation",
|
|
1028
|
-
FACEBOOK = "Facebook",
|
|
1029
|
-
GITHUB = "Github",
|
|
1030
|
-
INSTAGRAM = "Instagram",
|
|
1031
|
-
LINKED_IN = "LinkedIn",
|
|
1032
|
-
MEDIUM = "Medium",
|
|
1033
|
-
REDDIT = "Reddit",
|
|
1034
|
-
SUPPORT = "Support",
|
|
1035
|
-
TELEGRAM = "Telegram",
|
|
1036
|
-
TIK_TOK = "TikTok",
|
|
1037
|
-
TWITTER = "Twitter",
|
|
1038
|
-
WEBSITE = "Website",
|
|
1039
|
-
WHITEPAPER = "Whitepaper",
|
|
1040
|
-
YOUTUBE = "Youtube"
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
type ResourceLink = {
|
|
1044
|
-
type: ResourceLinkType;
|
|
1045
|
-
url: string;
|
|
1046
|
-
};
|
|
1047
|
-
|
|
1048
|
-
type Erc1155Contract = {
|
|
1049
|
-
/**
|
|
1050
|
-
* The contract name.
|
|
1051
|
-
*/
|
|
1052
|
-
name?: string;
|
|
1053
|
-
description?: string;
|
|
1054
|
-
officialSite?: string;
|
|
1055
|
-
email?: string;
|
|
1056
|
-
logoAsset?: ImageAsset;
|
|
1057
|
-
bannerAsset?: ImageAsset;
|
|
1058
|
-
color?: string;
|
|
1059
|
-
coingeckoCoinId?: string;
|
|
1060
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1061
|
-
tags?: Array<string>;
|
|
1062
|
-
/**
|
|
1063
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1064
|
-
*/
|
|
1065
|
-
address: string;
|
|
1066
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1067
|
-
ercType: Erc1155Contract.ercType;
|
|
1068
|
-
/**
|
|
1069
|
-
* The contract symbol.
|
|
1070
|
-
*/
|
|
1071
|
-
symbol?: string;
|
|
1072
|
-
};
|
|
1073
|
-
declare namespace Erc1155Contract {
|
|
1074
|
-
enum ercType {
|
|
1075
|
-
ERC_1155 = "ERC-1155"
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
|
|
1079
|
-
type Erc20Contract = {
|
|
1080
|
-
/**
|
|
1081
|
-
* The contract name.
|
|
1082
|
-
*/
|
|
1083
|
-
name?: string;
|
|
1084
|
-
description?: string;
|
|
1085
|
-
officialSite?: string;
|
|
1086
|
-
email?: string;
|
|
1087
|
-
logoAsset?: ImageAsset;
|
|
1088
|
-
bannerAsset?: ImageAsset;
|
|
1089
|
-
color?: string;
|
|
1090
|
-
coingeckoCoinId?: string;
|
|
1091
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1092
|
-
tags?: Array<string>;
|
|
1357
|
+
gasUsed: string;
|
|
1093
1358
|
/**
|
|
1094
|
-
*
|
|
1359
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1095
1360
|
*/
|
|
1096
|
-
|
|
1097
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1098
|
-
ercType: Erc20Contract.ercType;
|
|
1361
|
+
gasPrice: string;
|
|
1099
1362
|
/**
|
|
1100
|
-
* The
|
|
1363
|
+
* The nonce used by the sender of the transaction.
|
|
1101
1364
|
*/
|
|
1102
|
-
|
|
1365
|
+
nonce: string;
|
|
1366
|
+
from: RichAddress;
|
|
1367
|
+
to: RichAddress;
|
|
1368
|
+
method?: Method;
|
|
1369
|
+
value: string;
|
|
1103
1370
|
/**
|
|
1104
|
-
* The
|
|
1371
|
+
* The data sent for the transaction.
|
|
1105
1372
|
*/
|
|
1106
|
-
|
|
1373
|
+
input: string;
|
|
1374
|
+
baseFeePerGas: string;
|
|
1375
|
+
maxFeePerGas?: string;
|
|
1376
|
+
maxPriorityFeePerGas?: string;
|
|
1107
1377
|
};
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1378
|
+
|
|
1379
|
+
declare enum InternalTransactionOpCall {
|
|
1380
|
+
UNKNOWN = "UNKNOWN",
|
|
1381
|
+
CALL = "CALL",
|
|
1382
|
+
CREATE = "CREATE",
|
|
1383
|
+
CREATE2 = "CREATE2",
|
|
1384
|
+
CALLCODE = "CALLCODE",
|
|
1385
|
+
DELEGATECALL = "DELEGATECALL",
|
|
1386
|
+
STATICCALL = "STATICCALL"
|
|
1112
1387
|
}
|
|
1113
1388
|
|
|
1114
|
-
type
|
|
1389
|
+
type InternalTransactionDetails = {
|
|
1390
|
+
from: RichAddress;
|
|
1391
|
+
to: RichAddress;
|
|
1392
|
+
internalTxType: InternalTransactionOpCall;
|
|
1393
|
+
value: string;
|
|
1115
1394
|
/**
|
|
1116
|
-
*
|
|
1395
|
+
* True if the internal transaction was reverted.
|
|
1117
1396
|
*/
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
coingeckoCoinId?: string;
|
|
1126
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1127
|
-
tags?: Array<string>;
|
|
1397
|
+
isReverted: boolean;
|
|
1398
|
+
gasUsed: string;
|
|
1399
|
+
gasLimit: string;
|
|
1400
|
+
};
|
|
1401
|
+
|
|
1402
|
+
type NetworkTokenDetails = {
|
|
1403
|
+
networkToken: NetworkToken;
|
|
1128
1404
|
/**
|
|
1129
|
-
*
|
|
1405
|
+
* The current token price, if available.
|
|
1130
1406
|
*/
|
|
1131
|
-
|
|
1132
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1133
|
-
ercType: Erc721Contract.ercType;
|
|
1407
|
+
currentPrice?: Money;
|
|
1134
1408
|
/**
|
|
1135
|
-
* The
|
|
1409
|
+
* 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.
|
|
1136
1410
|
*/
|
|
1137
|
-
|
|
1411
|
+
historicalPrice?: Money;
|
|
1138
1412
|
};
|
|
1139
|
-
declare namespace Erc721Contract {
|
|
1140
|
-
enum ercType {
|
|
1141
|
-
ERC_721 = "ERC-721"
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
1413
|
|
|
1145
|
-
type
|
|
1414
|
+
type GetTransactionResponse = {
|
|
1146
1415
|
/**
|
|
1147
|
-
* The
|
|
1416
|
+
* The list of ERC-20 transfers.
|
|
1148
1417
|
*/
|
|
1149
|
-
|
|
1150
|
-
description?: string;
|
|
1151
|
-
officialSite?: string;
|
|
1152
|
-
email?: string;
|
|
1153
|
-
logoAsset?: ImageAsset;
|
|
1154
|
-
bannerAsset?: ImageAsset;
|
|
1155
|
-
color?: string;
|
|
1156
|
-
coingeckoCoinId?: string;
|
|
1157
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1158
|
-
tags?: Array<string>;
|
|
1418
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1159
1419
|
/**
|
|
1160
|
-
*
|
|
1420
|
+
* The list of ERC-721 transfers.
|
|
1161
1421
|
*/
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1422
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1423
|
+
/**
|
|
1424
|
+
* The list of ERC-1155 transfers.
|
|
1425
|
+
*/
|
|
1426
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1427
|
+
/**
|
|
1428
|
+
* 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.
|
|
1429
|
+
*/
|
|
1430
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1431
|
+
networkTokenDetails: NetworkTokenDetails;
|
|
1432
|
+
nativeTransaction: FullNativeTransactionDetails;
|
|
1165
1433
|
};
|
|
1166
|
-
declare namespace UnknownContract {
|
|
1167
|
-
enum ercType {
|
|
1168
|
-
UNKNOWN = "UNKNOWN"
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
1434
|
|
|
1172
1435
|
type ListContractsResponse = {
|
|
1173
1436
|
/**
|
|
1174
1437
|
* 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.
|
|
1175
1438
|
*/
|
|
1176
1439
|
nextPageToken?: string;
|
|
1177
|
-
contracts: Array<(
|
|
1440
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1178
1441
|
};
|
|
1179
1442
|
|
|
1180
1443
|
type Erc1155Transfer = {
|
|
@@ -1479,7 +1742,13 @@ declare class EvmTransactionsService {
|
|
|
1479
1742
|
* A wallet address.
|
|
1480
1743
|
*/
|
|
1481
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
|
+
*/
|
|
1482
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
|
+
*/
|
|
1483
1752
|
endBlock?: number;
|
|
1484
1753
|
/**
|
|
1485
1754
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1515,7 +1784,13 @@ declare class EvmTransactionsService {
|
|
|
1515
1784
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1516
1785
|
*/
|
|
1517
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
|
+
*/
|
|
1518
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
|
+
*/
|
|
1519
1794
|
endBlock?: number;
|
|
1520
1795
|
/**
|
|
1521
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.
|
|
@@ -1537,7 +1812,13 @@ declare class EvmTransactionsService {
|
|
|
1537
1812
|
* A wallet address.
|
|
1538
1813
|
*/
|
|
1539
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
|
+
*/
|
|
1540
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
|
+
*/
|
|
1541
1822
|
endBlock?: number;
|
|
1542
1823
|
/**
|
|
1543
1824
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1563,7 +1844,13 @@ declare class EvmTransactionsService {
|
|
|
1563
1844
|
* A wallet address.
|
|
1564
1845
|
*/
|
|
1565
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
|
+
*/
|
|
1566
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
|
+
*/
|
|
1567
1854
|
endBlock?: number;
|
|
1568
1855
|
/**
|
|
1569
1856
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1589,7 +1876,13 @@ declare class EvmTransactionsService {
|
|
|
1589
1876
|
* A wallet address.
|
|
1590
1877
|
*/
|
|
1591
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
|
+
*/
|
|
1592
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
|
+
*/
|
|
1593
1886
|
endBlock?: number;
|
|
1594
1887
|
/**
|
|
1595
1888
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1615,7 +1908,13 @@ declare class EvmTransactionsService {
|
|
|
1615
1908
|
* A wallet address.
|
|
1616
1909
|
*/
|
|
1617
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
|
+
*/
|
|
1618
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
|
+
*/
|
|
1619
1918
|
endBlock?: number;
|
|
1620
1919
|
/**
|
|
1621
1920
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1643,7 +1942,13 @@ declare class EvmTransactionsService {
|
|
|
1643
1942
|
* A wallet address.
|
|
1644
1943
|
*/
|
|
1645
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
|
+
*/
|
|
1646
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
|
+
*/
|
|
1647
1952
|
endBlock?: number;
|
|
1648
1953
|
/**
|
|
1649
1954
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1728,6 +2033,83 @@ declare class HealthCheckService {
|
|
|
1728
2033
|
}>;
|
|
1729
2034
|
}
|
|
1730
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
|
+
|
|
2044
|
+
declare class NfTsService {
|
|
2045
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2046
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2047
|
+
/**
|
|
2048
|
+
* Reindex NFT metadata
|
|
2049
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2050
|
+
* @returns any
|
|
2051
|
+
* @throws ApiError
|
|
2052
|
+
*/
|
|
2053
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
2054
|
+
/**
|
|
2055
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2056
|
+
*/
|
|
2057
|
+
chainId: string;
|
|
2058
|
+
/**
|
|
2059
|
+
* Contract address on the relevant chain.
|
|
2060
|
+
*/
|
|
2061
|
+
address: string;
|
|
2062
|
+
/**
|
|
2063
|
+
* TokenId on the contract
|
|
2064
|
+
*/
|
|
2065
|
+
tokenId: string;
|
|
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>;
|
|
2091
|
+
/**
|
|
2092
|
+
* Get token details
|
|
2093
|
+
* Gets token details for a specific token of an NFT contract.
|
|
2094
|
+
* @returns any
|
|
2095
|
+
* @throws ApiError
|
|
2096
|
+
*/
|
|
2097
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2098
|
+
/**
|
|
2099
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2100
|
+
*/
|
|
2101
|
+
chainId: string;
|
|
2102
|
+
/**
|
|
2103
|
+
* Contract address on the relevant chain.
|
|
2104
|
+
*/
|
|
2105
|
+
address: string;
|
|
2106
|
+
/**
|
|
2107
|
+
* TokenId on the contract
|
|
2108
|
+
*/
|
|
2109
|
+
tokenId: string;
|
|
2110
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2111
|
+
}
|
|
2112
|
+
|
|
1731
2113
|
type EvmNetworkOptions = {
|
|
1732
2114
|
addresses: Array<string>;
|
|
1733
2115
|
includeChains: Array<string>;
|
|
@@ -1822,17 +2204,6 @@ type OperationStatusResponse = {
|
|
|
1822
2204
|
declare class OperationsService {
|
|
1823
2205
|
readonly httpRequest: BaseHttpRequest;
|
|
1824
2206
|
constructor(httpRequest: BaseHttpRequest);
|
|
1825
|
-
/**
|
|
1826
|
-
* Create transaction export operation
|
|
1827
|
-
* Trigger a transaction export operation with given parameters.
|
|
1828
|
-
*
|
|
1829
|
-
* 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.
|
|
1830
|
-
* @returns OperationStatusResponse
|
|
1831
|
-
* @throws ApiError
|
|
1832
|
-
*/
|
|
1833
|
-
postTransactionExportJob({ requestBody, }: {
|
|
1834
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
1835
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
1836
2207
|
/**
|
|
1837
2208
|
* Get operation
|
|
1838
2209
|
* Gets operation details for the given operation id.
|
|
@@ -1845,6 +2216,17 @@ declare class OperationsService {
|
|
|
1845
2216
|
*/
|
|
1846
2217
|
operationId: string;
|
|
1847
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>;
|
|
1848
2230
|
}
|
|
1849
2231
|
|
|
1850
2232
|
declare enum BlockchainIds {
|
|
@@ -1913,39 +2295,57 @@ type ListBlockchainsResponse = {
|
|
|
1913
2295
|
|
|
1914
2296
|
type ActiveDelegatorDetails = {
|
|
1915
2297
|
txHash: string;
|
|
2298
|
+
nodeId: string;
|
|
1916
2299
|
rewardAddresses: Array<string>;
|
|
1917
2300
|
amountDelegated: string;
|
|
1918
2301
|
delegationFee: string;
|
|
1919
2302
|
startTimestamp: number;
|
|
1920
2303
|
endTimestamp: number;
|
|
1921
|
-
delegationStatus: DelegationStatusType;
|
|
1922
2304
|
estimatedGrossReward: string;
|
|
1923
2305
|
estimatedNetReward: string;
|
|
2306
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1924
2307
|
};
|
|
2308
|
+
declare namespace ActiveDelegatorDetails {
|
|
2309
|
+
enum delegationStatus {
|
|
2310
|
+
ACTIVE = "active"
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
1925
2313
|
|
|
1926
2314
|
type CompletedDelegatorDetails = {
|
|
1927
2315
|
txHash: string;
|
|
2316
|
+
nodeId: string;
|
|
1928
2317
|
rewardAddresses: Array<string>;
|
|
1929
2318
|
amountDelegated: string;
|
|
1930
2319
|
delegationFee: string;
|
|
1931
2320
|
startTimestamp: number;
|
|
1932
2321
|
endTimestamp: number;
|
|
1933
|
-
delegationStatus: DelegationStatusType;
|
|
1934
2322
|
grossReward: string;
|
|
1935
2323
|
netReward: string;
|
|
2324
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1936
2325
|
};
|
|
2326
|
+
declare namespace CompletedDelegatorDetails {
|
|
2327
|
+
enum delegationStatus {
|
|
2328
|
+
COMPLETED = "completed"
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
1937
2331
|
|
|
1938
2332
|
type PendingDelegatorDetails = {
|
|
1939
2333
|
txHash: string;
|
|
2334
|
+
nodeId: string;
|
|
1940
2335
|
rewardAddresses: Array<string>;
|
|
1941
2336
|
amountDelegated: string;
|
|
1942
2337
|
delegationFee: string;
|
|
1943
2338
|
startTimestamp: number;
|
|
1944
2339
|
endTimestamp: number;
|
|
1945
|
-
delegationStatus: DelegationStatusType;
|
|
1946
2340
|
estimatedGrossReward: string;
|
|
1947
2341
|
estimatedNetReward: string;
|
|
2342
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
1948
2343
|
};
|
|
2344
|
+
declare namespace PendingDelegatorDetails {
|
|
2345
|
+
enum delegationStatus {
|
|
2346
|
+
PENDING = "pending"
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
1949
2349
|
|
|
1950
2350
|
type ListDelegatorDetailsResponse = {
|
|
1951
2351
|
/**
|
|
@@ -1974,58 +2374,95 @@ type Subnet = {
|
|
|
1974
2374
|
|
|
1975
2375
|
type ListSubnetsResponse = {
|
|
1976
2376
|
/**
|
|
1977
|
-
* 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.
|
|
2377
|
+
* 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.
|
|
2378
|
+
*/
|
|
2379
|
+
nextPageToken?: string;
|
|
2380
|
+
subnets: Array<Subnet>;
|
|
2381
|
+
};
|
|
2382
|
+
|
|
2383
|
+
type Rewards = {
|
|
2384
|
+
validationRewardAmount: string;
|
|
2385
|
+
delegationRewardAmount: string;
|
|
2386
|
+
rewardAddresses?: Array<string>;
|
|
2387
|
+
rewardTxHash?: string;
|
|
2388
|
+
};
|
|
2389
|
+
|
|
2390
|
+
type ValidatorHealthDetails = {
|
|
2391
|
+
/**
|
|
2392
|
+
* Percent of requests responded to in last polling.
|
|
2393
|
+
*/
|
|
2394
|
+
reachabilityPercent: number;
|
|
2395
|
+
/**
|
|
2396
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2397
|
+
*/
|
|
2398
|
+
benchedPChainRequestsPercent: number;
|
|
2399
|
+
/**
|
|
2400
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2401
|
+
*/
|
|
2402
|
+
benchedXChainRequestsPercent: number;
|
|
2403
|
+
/**
|
|
2404
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
1978
2405
|
*/
|
|
1979
|
-
|
|
1980
|
-
subnets: Array<Subnet>;
|
|
1981
|
-
};
|
|
1982
|
-
|
|
1983
|
-
type Rewards = {
|
|
1984
|
-
validationRewardAmount: string;
|
|
1985
|
-
delegationRewardAmount: string;
|
|
2406
|
+
benchedCChainRequestsPercent: number;
|
|
1986
2407
|
};
|
|
1987
2408
|
|
|
1988
|
-
declare enum ValidationStatusType {
|
|
1989
|
-
COMPLETED = "completed",
|
|
1990
|
-
ACTIVE = "active",
|
|
1991
|
-
PENDING = "pending"
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
2409
|
type ActiveValidatorDetails = {
|
|
2410
|
+
txHash: string;
|
|
1995
2411
|
nodeId: string;
|
|
2412
|
+
subnetId: string;
|
|
1996
2413
|
amountStaked: string;
|
|
1997
|
-
delegationFee
|
|
2414
|
+
delegationFee?: string;
|
|
1998
2415
|
startTimestamp: number;
|
|
1999
2416
|
endTimestamp: number;
|
|
2000
|
-
validationStatus: ValidationStatusType;
|
|
2001
2417
|
stakePercentage: number;
|
|
2002
2418
|
delegatorCount: number;
|
|
2003
|
-
amountDelegated
|
|
2419
|
+
amountDelegated?: string;
|
|
2004
2420
|
uptimePerformance: number;
|
|
2005
|
-
avalancheGoVersion
|
|
2006
|
-
delegationCapacity
|
|
2421
|
+
avalancheGoVersion?: string;
|
|
2422
|
+
delegationCapacity?: string;
|
|
2007
2423
|
potentialRewards: Rewards;
|
|
2424
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2425
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2008
2426
|
};
|
|
2427
|
+
declare namespace ActiveValidatorDetails {
|
|
2428
|
+
enum validationStatus {
|
|
2429
|
+
ACTIVE = "active"
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2009
2432
|
|
|
2010
2433
|
type CompletedValidatorDetails = {
|
|
2434
|
+
txHash: string;
|
|
2011
2435
|
nodeId: string;
|
|
2436
|
+
subnetId: string;
|
|
2012
2437
|
amountStaked: string;
|
|
2013
|
-
delegationFee
|
|
2438
|
+
delegationFee?: string;
|
|
2014
2439
|
startTimestamp: number;
|
|
2015
2440
|
endTimestamp: number;
|
|
2016
|
-
validationStatus: ValidationStatusType;
|
|
2017
2441
|
delegatorCount: number;
|
|
2018
2442
|
rewards: Rewards;
|
|
2443
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2019
2444
|
};
|
|
2445
|
+
declare namespace CompletedValidatorDetails {
|
|
2446
|
+
enum validationStatus {
|
|
2447
|
+
COMPLETED = "completed"
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2020
2450
|
|
|
2021
2451
|
type PendingValidatorDetails = {
|
|
2452
|
+
txHash: string;
|
|
2022
2453
|
nodeId: string;
|
|
2454
|
+
subnetId: string;
|
|
2023
2455
|
amountStaked: string;
|
|
2024
|
-
delegationFee
|
|
2456
|
+
delegationFee?: string;
|
|
2025
2457
|
startTimestamp: number;
|
|
2026
2458
|
endTimestamp: number;
|
|
2027
|
-
validationStatus:
|
|
2459
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2028
2460
|
};
|
|
2461
|
+
declare namespace PendingValidatorDetails {
|
|
2462
|
+
enum validationStatus {
|
|
2463
|
+
PENDING = "pending"
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2029
2466
|
|
|
2030
2467
|
type ListValidatorDetailsResponse = {
|
|
2031
2468
|
/**
|
|
@@ -2033,7 +2470,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2033
2470
|
*/
|
|
2034
2471
|
nextPageToken?: string;
|
|
2035
2472
|
/**
|
|
2036
|
-
* The list of
|
|
2473
|
+
* The list of validator Details.
|
|
2037
2474
|
*/
|
|
2038
2475
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2039
2476
|
};
|
|
@@ -2043,6 +2480,12 @@ declare enum Network {
|
|
|
2043
2480
|
FUJI = "fuji"
|
|
2044
2481
|
}
|
|
2045
2482
|
|
|
2483
|
+
declare enum ValidationStatusType {
|
|
2484
|
+
COMPLETED = "completed",
|
|
2485
|
+
ACTIVE = "active",
|
|
2486
|
+
PENDING = "pending"
|
|
2487
|
+
}
|
|
2488
|
+
|
|
2046
2489
|
type XChainAssetDetails = {
|
|
2047
2490
|
/**
|
|
2048
2491
|
* Unique ID for an asset.
|
|
@@ -2185,7 +2628,7 @@ declare class PrimaryNetworkService {
|
|
|
2185
2628
|
* @returns ListValidatorDetailsResponse
|
|
2186
2629
|
* @throws ApiError
|
|
2187
2630
|
*/
|
|
2188
|
-
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
|
|
2631
|
+
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2189
2632
|
/**
|
|
2190
2633
|
* Either mainnet or a testnet.
|
|
2191
2634
|
*/
|
|
@@ -2211,9 +2654,33 @@ declare class PrimaryNetworkService {
|
|
|
2211
2654
|
*/
|
|
2212
2655
|
validationStatus?: ValidationStatusType;
|
|
2213
2656
|
/**
|
|
2214
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned
|
|
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
|
|
2215
2658
|
*/
|
|
2216
2659
|
minDelegationCapacity?: any;
|
|
2660
|
+
/**
|
|
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.
|
|
2662
|
+
*/
|
|
2663
|
+
maxDelegationCapacity?: any;
|
|
2664
|
+
/**
|
|
2665
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2666
|
+
*/
|
|
2667
|
+
minTimeRemaining?: any;
|
|
2668
|
+
/**
|
|
2669
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2670
|
+
*/
|
|
2671
|
+
maxTimeRemaining?: any;
|
|
2672
|
+
/**
|
|
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.
|
|
2674
|
+
*/
|
|
2675
|
+
minFeePercentage?: any;
|
|
2676
|
+
/**
|
|
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.
|
|
2678
|
+
*/
|
|
2679
|
+
maxFeePercentage?: any;
|
|
2680
|
+
/**
|
|
2681
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2682
|
+
*/
|
|
2683
|
+
subnetId?: string;
|
|
2217
2684
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2218
2685
|
/**
|
|
2219
2686
|
* Get single validator details
|
|
@@ -2253,7 +2720,7 @@ declare class PrimaryNetworkService {
|
|
|
2253
2720
|
* @returns ListDelegatorDetailsResponse
|
|
2254
2721
|
* @throws ApiError
|
|
2255
2722
|
*/
|
|
2256
|
-
listDelegators({ network, pageSize, pageToken, sortOrder, delegationStatus,
|
|
2723
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2257
2724
|
/**
|
|
2258
2725
|
* Either mainnet or a testnet.
|
|
2259
2726
|
*/
|
|
@@ -2266,6 +2733,10 @@ declare class PrimaryNetworkService {
|
|
|
2266
2733
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2267
2734
|
*/
|
|
2268
2735
|
pageToken?: string;
|
|
2736
|
+
/**
|
|
2737
|
+
* A comma separated list of reward addresses to filter by.
|
|
2738
|
+
*/
|
|
2739
|
+
rewardAddresses?: string;
|
|
2269
2740
|
/**
|
|
2270
2741
|
* 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.
|
|
2271
2742
|
*/
|
|
@@ -2274,10 +2745,6 @@ declare class PrimaryNetworkService {
|
|
|
2274
2745
|
* Delegation status of the node.
|
|
2275
2746
|
*/
|
|
2276
2747
|
delegationStatus?: DelegationStatusType;
|
|
2277
|
-
/**
|
|
2278
|
-
* A comma separated list of reward addresses to filter by.
|
|
2279
|
-
*/
|
|
2280
|
-
rewardAddresses?: string;
|
|
2281
2748
|
/**
|
|
2282
2749
|
* A comma separated list of node ids to filter by.
|
|
2283
2750
|
*/
|
|
@@ -2351,13 +2818,57 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2351
2818
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2352
2819
|
};
|
|
2353
2820
|
|
|
2354
|
-
type
|
|
2821
|
+
type Asset = {
|
|
2822
|
+
/**
|
|
2823
|
+
* Unique ID for an asset.
|
|
2824
|
+
*/
|
|
2355
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
|
+
*/
|
|
2356
2845
|
amount: string;
|
|
2357
2846
|
};
|
|
2358
2847
|
|
|
2359
2848
|
type PChainSharedAsset = {
|
|
2849
|
+
/**
|
|
2850
|
+
* Unique ID for an asset.
|
|
2851
|
+
*/
|
|
2360
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
|
+
*/
|
|
2361
2872
|
amount: string;
|
|
2362
2873
|
sharedWithChainId: string;
|
|
2363
2874
|
status: string;
|
|
@@ -2367,27 +2878,27 @@ type PChainBalance = {
|
|
|
2367
2878
|
/**
|
|
2368
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.
|
|
2369
2880
|
*/
|
|
2370
|
-
unlockedUnstaked: Array<
|
|
2881
|
+
unlockedUnstaked: Array<Asset>;
|
|
2371
2882
|
/**
|
|
2372
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.
|
|
2373
2884
|
*/
|
|
2374
|
-
unlockedStaked: Array<
|
|
2885
|
+
unlockedStaked: Array<Asset>;
|
|
2375
2886
|
/**
|
|
2376
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.
|
|
2377
2888
|
*/
|
|
2378
|
-
lockedPlatform: Array<
|
|
2889
|
+
lockedPlatform: Array<Asset>;
|
|
2379
2890
|
/**
|
|
2380
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.
|
|
2381
2892
|
*/
|
|
2382
|
-
lockedStakeable: Array<
|
|
2893
|
+
lockedStakeable: Array<Asset>;
|
|
2383
2894
|
/**
|
|
2384
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.
|
|
2385
2896
|
*/
|
|
2386
|
-
lockedStaked: Array<
|
|
2897
|
+
lockedStaked: Array<Asset>;
|
|
2387
2898
|
/**
|
|
2388
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.
|
|
2389
2900
|
*/
|
|
2390
|
-
pendingStaked: Array<
|
|
2901
|
+
pendingStaked: Array<Asset>;
|
|
2391
2902
|
/**
|
|
2392
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.
|
|
2393
2904
|
*/
|
|
@@ -2526,6 +3037,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2526
3037
|
txCount: number;
|
|
2527
3038
|
transactions: Array<string>;
|
|
2528
3039
|
blockSizeBytes: number;
|
|
3040
|
+
currentSupply?: string;
|
|
2529
3041
|
proposerDetails?: ProposerDetails;
|
|
2530
3042
|
};
|
|
2531
3043
|
|
|
@@ -2538,6 +3050,7 @@ type PrimaryNetworkBlock = {
|
|
|
2538
3050
|
txCount: number;
|
|
2539
3051
|
transactions: Array<string>;
|
|
2540
3052
|
blockSizeBytes: number;
|
|
3053
|
+
currentSupply?: string;
|
|
2541
3054
|
proposerDetails?: ProposerDetails;
|
|
2542
3055
|
};
|
|
2543
3056
|
|
|
@@ -2629,7 +3142,8 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2629
3142
|
|
|
2630
3143
|
declare enum RewardType {
|
|
2631
3144
|
VALIDATOR = "VALIDATOR",
|
|
2632
|
-
DELEGATOR = "DELEGATOR"
|
|
3145
|
+
DELEGATOR = "DELEGATOR",
|
|
3146
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2633
3147
|
}
|
|
2634
3148
|
|
|
2635
3149
|
type HistoricalReward = {
|
|
@@ -2648,7 +3162,7 @@ type HistoricalReward = {
|
|
|
2648
3162
|
/**
|
|
2649
3163
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2650
3164
|
*/
|
|
2651
|
-
reward:
|
|
3165
|
+
reward: Asset;
|
|
2652
3166
|
rewardTxHash: string;
|
|
2653
3167
|
};
|
|
2654
3168
|
|
|
@@ -2675,7 +3189,7 @@ type PendingReward = {
|
|
|
2675
3189
|
/**
|
|
2676
3190
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2677
3191
|
*/
|
|
2678
|
-
estimatedReward:
|
|
3192
|
+
estimatedReward: Asset;
|
|
2679
3193
|
};
|
|
2680
3194
|
|
|
2681
3195
|
type ListPendingRewardsResponse = {
|
|
@@ -2695,13 +3209,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2695
3209
|
* @returns ListPendingRewardsResponse
|
|
2696
3210
|
* @throws ApiError
|
|
2697
3211
|
*/
|
|
2698
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3212
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2699
3213
|
/**
|
|
2700
3214
|
* Either mainnet or a testnet.
|
|
2701
3215
|
*/
|
|
2702
3216
|
network: Network;
|
|
2703
3217
|
/**
|
|
2704
|
-
* 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.
|
|
2705
3219
|
*/
|
|
2706
3220
|
addresses?: string;
|
|
2707
3221
|
/**
|
|
@@ -2712,6 +3226,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2712
3226
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2713
3227
|
*/
|
|
2714
3228
|
pageToken?: string;
|
|
3229
|
+
/**
|
|
3230
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3231
|
+
*/
|
|
3232
|
+
nodeIds?: string;
|
|
2715
3233
|
/**
|
|
2716
3234
|
* The order by which to sort results. Use "asc" for ascending order, "desc" for descending order. Sorted by timestamp or the `sortBy` query parameter, if provided.
|
|
2717
3235
|
*/
|
|
@@ -2723,13 +3241,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2723
3241
|
* @returns ListHistoricalRewardsResponse
|
|
2724
3242
|
* @throws ApiError
|
|
2725
3243
|
*/
|
|
2726
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3244
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2727
3245
|
/**
|
|
2728
3246
|
* Either mainnet or a testnet.
|
|
2729
3247
|
*/
|
|
2730
3248
|
network: Network;
|
|
2731
3249
|
/**
|
|
2732
|
-
* 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.
|
|
2733
3251
|
*/
|
|
2734
3252
|
addresses?: string;
|
|
2735
3253
|
/**
|
|
@@ -2740,6 +3258,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2740
3258
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2741
3259
|
*/
|
|
2742
3260
|
pageToken?: string;
|
|
3261
|
+
/**
|
|
3262
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3263
|
+
*/
|
|
3264
|
+
nodeIds?: string;
|
|
2743
3265
|
/**
|
|
2744
3266
|
* 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.
|
|
2745
3267
|
*/
|
|
@@ -2747,40 +3269,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2747
3269
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2748
3270
|
}
|
|
2749
3271
|
|
|
2750
|
-
type Asset = {
|
|
2751
|
-
/**
|
|
2752
|
-
* Unique ID for an asset.
|
|
2753
|
-
*/
|
|
2754
|
-
assetId: string;
|
|
2755
|
-
/**
|
|
2756
|
-
* Name of this asset.
|
|
2757
|
-
*/
|
|
2758
|
-
name: string;
|
|
2759
|
-
/**
|
|
2760
|
-
* Symbol for this asset (max 4 characters).
|
|
2761
|
-
*/
|
|
2762
|
-
symbol: string;
|
|
2763
|
-
/**
|
|
2764
|
-
* Denomination of this asset to represent fungibility.
|
|
2765
|
-
*/
|
|
2766
|
-
denomination: number;
|
|
2767
|
-
/**
|
|
2768
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2769
|
-
*/
|
|
2770
|
-
type: string;
|
|
2771
|
-
/**
|
|
2772
|
-
* Amount of the asset.
|
|
2773
|
-
*/
|
|
2774
|
-
amount: string;
|
|
2775
|
-
};
|
|
2776
|
-
|
|
2777
3272
|
type UtxoCredential = {
|
|
2778
3273
|
/**
|
|
2779
|
-
* Signature provided to consume the output
|
|
3274
|
+
* Signature provided to consume the output.
|
|
2780
3275
|
*/
|
|
2781
3276
|
signature?: string;
|
|
2782
3277
|
/**
|
|
2783
|
-
* Public key associated with the signature
|
|
3278
|
+
* Public key associated with the signature.
|
|
2784
3279
|
*/
|
|
2785
3280
|
publicKey?: string;
|
|
2786
3281
|
};
|
|
@@ -2802,66 +3297,66 @@ type EVMInput = {
|
|
|
2802
3297
|
|
|
2803
3298
|
type Utxo = {
|
|
2804
3299
|
/**
|
|
2805
|
-
*
|
|
3300
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2806
3301
|
*/
|
|
2807
|
-
|
|
3302
|
+
addresses: Array<string>;
|
|
2808
3303
|
asset: Asset;
|
|
2809
3304
|
/**
|
|
2810
|
-
*
|
|
3305
|
+
* Blockchain ID on which this output is consumed on.
|
|
2811
3306
|
*/
|
|
2812
|
-
|
|
3307
|
+
consumedOnChainId: string;
|
|
2813
3308
|
/**
|
|
2814
|
-
*
|
|
3309
|
+
* Transaction ID that consumed this output.
|
|
2815
3310
|
*/
|
|
2816
|
-
|
|
3311
|
+
consumingTxHash?: string;
|
|
2817
3312
|
/**
|
|
2818
|
-
* Blockchain ID on which this output is
|
|
3313
|
+
* Blockchain ID on which this output is created on.
|
|
2819
3314
|
*/
|
|
2820
|
-
|
|
3315
|
+
createdOnChainId: string;
|
|
2821
3316
|
/**
|
|
2822
|
-
*
|
|
3317
|
+
* UTXO ID for this output.
|
|
2823
3318
|
*/
|
|
2824
|
-
|
|
3319
|
+
utxoId: string;
|
|
2825
3320
|
/**
|
|
2826
|
-
*
|
|
3321
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2827
3322
|
*/
|
|
2828
|
-
|
|
3323
|
+
consumingTxTimestamp?: number;
|
|
2829
3324
|
/**
|
|
2830
|
-
*
|
|
3325
|
+
* Transaction ID that created this output.
|
|
2831
3326
|
*/
|
|
2832
|
-
|
|
3327
|
+
creationTxHash: string;
|
|
2833
3328
|
/**
|
|
2834
|
-
*
|
|
3329
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2835
3330
|
*/
|
|
2836
|
-
|
|
3331
|
+
credentials?: Array<UtxoCredential>;
|
|
2837
3332
|
/**
|
|
2838
|
-
*
|
|
3333
|
+
* Index representing the minting set for the NFT mint output.
|
|
2839
3334
|
*/
|
|
2840
|
-
|
|
3335
|
+
groupId?: number;
|
|
2841
3336
|
/**
|
|
2842
3337
|
* Locktime in seconds after which this output can be consumed.
|
|
2843
3338
|
*/
|
|
2844
3339
|
locktime: number;
|
|
2845
3340
|
/**
|
|
2846
|
-
*
|
|
3341
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
2847
3342
|
*/
|
|
2848
|
-
|
|
3343
|
+
outputIndex: string;
|
|
2849
3344
|
/**
|
|
2850
|
-
*
|
|
3345
|
+
* Hex encoded data for NFT assets.
|
|
2851
3346
|
*/
|
|
2852
|
-
|
|
3347
|
+
payload?: string;
|
|
2853
3348
|
/**
|
|
2854
|
-
*
|
|
3349
|
+
* Minimum number of signatures required to consume this output.
|
|
2855
3350
|
*/
|
|
2856
|
-
|
|
3351
|
+
threshold: number;
|
|
2857
3352
|
/**
|
|
2858
|
-
*
|
|
3353
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
2859
3354
|
*/
|
|
2860
|
-
|
|
3355
|
+
timestamp: number;
|
|
2861
3356
|
/**
|
|
2862
|
-
*
|
|
3357
|
+
* Type of output.
|
|
2863
3358
|
*/
|
|
2864
|
-
|
|
3359
|
+
utxoType: string;
|
|
2865
3360
|
};
|
|
2866
3361
|
|
|
2867
3362
|
type CChainExportTransaction = {
|
|
@@ -2992,16 +3487,18 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
2992
3487
|
|
|
2993
3488
|
declare enum PChainTransactionType {
|
|
2994
3489
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
2995
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
2996
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
2997
3490
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
2998
|
-
|
|
2999
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3491
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3000
3492
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3001
3493
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3002
3494
|
IMPORT_TX = "ImportTx",
|
|
3003
3495
|
EXPORT_TX = "ExportTx",
|
|
3004
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",
|
|
3005
3502
|
UNKNOWN = "UNKNOWN"
|
|
3006
3503
|
}
|
|
3007
3504
|
|
|
@@ -3012,29 +3509,48 @@ declare enum UtxoType {
|
|
|
3012
3509
|
|
|
3013
3510
|
type PChainUtxo = {
|
|
3014
3511
|
/**
|
|
3015
|
-
*
|
|
3512
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3016
3513
|
*/
|
|
3017
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
|
+
*/
|
|
3018
3531
|
utxoId: string;
|
|
3019
|
-
|
|
3020
|
-
|
|
3532
|
+
/**
|
|
3533
|
+
* @deprecated
|
|
3534
|
+
*/
|
|
3535
|
+
amount: string;
|
|
3536
|
+
/**
|
|
3537
|
+
* @deprecated
|
|
3538
|
+
*/
|
|
3539
|
+
assetId: string;
|
|
3021
3540
|
blockNumber: string;
|
|
3022
3541
|
blockTimestamp: number;
|
|
3023
|
-
consumingTxHash?: string;
|
|
3024
|
-
consumingBlockTimestamp?: number;
|
|
3025
3542
|
consumingBlockNumber?: string;
|
|
3026
|
-
|
|
3027
|
-
utxoType: UtxoType;
|
|
3028
|
-
amount: string;
|
|
3029
|
-
stakeableLocktime?: number;
|
|
3543
|
+
consumingBlockTimestamp?: number;
|
|
3030
3544
|
platformLocktime?: number;
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3545
|
+
outputIndex: number;
|
|
3546
|
+
rewardType?: RewardType;
|
|
3547
|
+
stakeableLocktime?: number;
|
|
3034
3548
|
staked?: boolean;
|
|
3035
|
-
|
|
3549
|
+
threshold?: number;
|
|
3550
|
+
txHash: string;
|
|
3036
3551
|
utxoEndTimestamp?: number;
|
|
3037
|
-
|
|
3552
|
+
utxoStartTimestamp?: number;
|
|
3553
|
+
utxoType: UtxoType;
|
|
3038
3554
|
};
|
|
3039
3555
|
|
|
3040
3556
|
type PChainTransaction = {
|
|
@@ -3062,15 +3578,15 @@ type PChainTransaction = {
|
|
|
3062
3578
|
/**
|
|
3063
3579
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3064
3580
|
*/
|
|
3065
|
-
value: Array<
|
|
3581
|
+
value: Array<Asset>;
|
|
3066
3582
|
/**
|
|
3067
3583
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3068
3584
|
*/
|
|
3069
|
-
amountBurned: Array<
|
|
3585
|
+
amountBurned: Array<Asset>;
|
|
3070
3586
|
/**
|
|
3071
3587
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3072
3588
|
*/
|
|
3073
|
-
amountStaked: Array<
|
|
3589
|
+
amountStaked: Array<Asset>;
|
|
3074
3590
|
/**
|
|
3075
3591
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3076
3592
|
*/
|
|
@@ -3096,6 +3612,7 @@ type PChainTransaction = {
|
|
|
3096
3612
|
*/
|
|
3097
3613
|
estimatedReward?: string;
|
|
3098
3614
|
rewardTxHash?: string;
|
|
3615
|
+
rewardAddresses?: Array<string>;
|
|
3099
3616
|
memo?: string;
|
|
3100
3617
|
/**
|
|
3101
3618
|
* Present for RewardValidatorTx
|
|
@@ -3112,6 +3629,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3112
3629
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3113
3630
|
};
|
|
3114
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
|
+
|
|
3115
3641
|
type XChainLinearTransaction = {
|
|
3116
3642
|
/**
|
|
3117
3643
|
* Unique ID for this transaction.
|
|
@@ -3128,7 +3654,7 @@ type XChainLinearTransaction = {
|
|
|
3128
3654
|
/**
|
|
3129
3655
|
* Type of transaction.
|
|
3130
3656
|
*/
|
|
3131
|
-
txType:
|
|
3657
|
+
txType: XChainTransactionType;
|
|
3132
3658
|
/**
|
|
3133
3659
|
* Hex encoded memo bytes for this transaction.
|
|
3134
3660
|
*/
|
|
@@ -3205,7 +3731,7 @@ type XChainNonLinearTransaction = {
|
|
|
3205
3731
|
/**
|
|
3206
3732
|
* Type of transaction.
|
|
3207
3733
|
*/
|
|
3208
|
-
txType:
|
|
3734
|
+
txType: XChainTransactionType;
|
|
3209
3735
|
/**
|
|
3210
3736
|
* Hex encoded memo bytes for this transaction.
|
|
3211
3737
|
*/
|
|
@@ -3263,16 +3789,18 @@ declare enum PChainId {
|
|
|
3263
3789
|
|
|
3264
3790
|
declare enum PrimaryNetworkTxType {
|
|
3265
3791
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3266
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3267
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3268
3792
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3269
|
-
|
|
3270
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3793
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3271
3794
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3272
3795
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3273
3796
|
IMPORT_TX = "ImportTx",
|
|
3274
3797
|
EXPORT_TX = "ExportTx",
|
|
3275
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",
|
|
3276
3804
|
UNKNOWN = "UNKNOWN",
|
|
3277
3805
|
BASE_TX = "BaseTx",
|
|
3278
3806
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3304,7 +3832,11 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3304
3832
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
3305
3833
|
/**
|
|
3306
3834
|
* List latest transactions
|
|
3307
|
-
* Lists the latest transactions on one of the Primary Network chains.
|
|
3835
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
3836
|
+
*
|
|
3837
|
+
* Transactions are filterable by addresses.
|
|
3838
|
+
*
|
|
3839
|
+
* 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.
|
|
3308
3840
|
* @returns any
|
|
3309
3841
|
* @throws ApiError
|
|
3310
3842
|
*/
|
|
@@ -3598,11 +4130,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3598
4130
|
|
|
3599
4131
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3600
4132
|
declare class Glacier {
|
|
4133
|
+
readonly default: DefaultService;
|
|
3601
4134
|
readonly evmBalances: EvmBalancesService;
|
|
3602
4135
|
readonly evmBlocks: EvmBlocksService;
|
|
3603
4136
|
readonly evmChains: EvmChainsService;
|
|
4137
|
+
readonly evmContracts: EvmContractsService;
|
|
3604
4138
|
readonly evmTransactions: EvmTransactionsService;
|
|
3605
4139
|
readonly healthCheck: HealthCheckService;
|
|
4140
|
+
readonly nfTs: NfTsService;
|
|
3606
4141
|
readonly operations: OperationsService;
|
|
3607
4142
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
3608
4143
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -3632,4 +4167,4 @@ declare class ApiError extends Error {
|
|
|
3632
4167
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3633
4168
|
}
|
|
3634
4169
|
|
|
3635
|
-
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, 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 };
|