@avalabs/glacier-sdk 2.8.0-canary.fdc2483.0 → 2.8.0-canary.ff11880.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 +895 -370
- package/dist/index.js +295 -22
- 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 +9 -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/ImageAsset.d.ts +0 -3
- 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 +10 -2
- package/esm/generated/services/PrimaryNetworkRewardsService.js +4 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +31 -11
- package/esm/generated/services/PrimaryNetworkService.js +17 -7
- 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,118 @@ 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
|
+
topic0?: string;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
declare enum EventType {
|
|
72
|
+
ADDRESS_ACTIVITY = "address_activity"
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare enum WebhookStatusType {
|
|
76
|
+
ACTIVE = "active",
|
|
77
|
+
INACTIVE = "inactive"
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type WebhookResponse = {
|
|
81
|
+
id: string;
|
|
82
|
+
eventType: EventType;
|
|
83
|
+
metadata: AddressActivityMetadata;
|
|
84
|
+
url: string;
|
|
85
|
+
chainId: string;
|
|
86
|
+
status: WebhookStatusType;
|
|
87
|
+
createdAt: number;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
type ListWebhooksResponse = {
|
|
91
|
+
/**
|
|
92
|
+
* 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.
|
|
93
|
+
*/
|
|
94
|
+
nextPageToken?: string;
|
|
95
|
+
webhooks: Array<WebhookResponse>;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
type RegisterWebhookRequest = {
|
|
99
|
+
url: string;
|
|
100
|
+
chainId: string;
|
|
101
|
+
/**
|
|
102
|
+
* The type of event for the webhook
|
|
103
|
+
*/
|
|
104
|
+
eventType: EventType;
|
|
105
|
+
metadata: AddressActivityMetadata;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
type SharedSecretsResponse = {
|
|
109
|
+
secret: string;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
declare enum WebhookStatus {
|
|
113
|
+
ACTIVE = "active",
|
|
114
|
+
INACTIVE = "inactive"
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
declare class DefaultService {
|
|
118
|
+
readonly httpRequest: BaseHttpRequest;
|
|
119
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
120
|
+
/**
|
|
121
|
+
* @returns any
|
|
122
|
+
* @throws ApiError
|
|
123
|
+
*/
|
|
124
|
+
mediaControllerUploadImage(): CancelablePromise<any>;
|
|
125
|
+
/**
|
|
126
|
+
* Register a webhook
|
|
127
|
+
* Registers a new webhook.
|
|
128
|
+
* @returns WebhookResponse
|
|
129
|
+
* @throws ApiError
|
|
130
|
+
*/
|
|
131
|
+
registerWebhook({ requestBody, }: {
|
|
132
|
+
requestBody: RegisterWebhookRequest;
|
|
133
|
+
}): CancelablePromise<WebhookResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* List webhooks
|
|
136
|
+
* Lists webhooks for the user.
|
|
137
|
+
* @returns ListWebhooksResponse
|
|
138
|
+
* @throws ApiError
|
|
139
|
+
*/
|
|
140
|
+
listWebhooks({ pageSize, pageToken, status, }: {
|
|
141
|
+
/**
|
|
142
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
143
|
+
*/
|
|
144
|
+
pageSize?: number;
|
|
145
|
+
/**
|
|
146
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
147
|
+
*/
|
|
148
|
+
pageToken?: string;
|
|
149
|
+
/**
|
|
150
|
+
* 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.
|
|
151
|
+
*/
|
|
152
|
+
status?: WebhookStatus;
|
|
153
|
+
}): CancelablePromise<ListWebhooksResponse>;
|
|
154
|
+
/**
|
|
155
|
+
* Deactivate a webhook
|
|
156
|
+
* Deactivates a webhook by ID.
|
|
157
|
+
* @returns WebhookResponse
|
|
158
|
+
* @throws ApiError
|
|
159
|
+
*/
|
|
160
|
+
deactivateWebhook({ id, }: {
|
|
161
|
+
/**
|
|
162
|
+
* The webhook identifier.
|
|
163
|
+
*/
|
|
164
|
+
id: string;
|
|
165
|
+
}): CancelablePromise<WebhookResponse>;
|
|
166
|
+
/**
|
|
167
|
+
* Generate a shared secret
|
|
168
|
+
* Generates a new shared secret.
|
|
169
|
+
* @returns SharedSecretsResponse
|
|
170
|
+
* @throws ApiError
|
|
171
|
+
*/
|
|
172
|
+
generateSharedSecret(): CancelablePromise<SharedSecretsResponse>;
|
|
173
|
+
}
|
|
174
|
+
|
|
63
175
|
declare enum CurrencyCode {
|
|
64
176
|
USD = "usd",
|
|
65
177
|
EUR = "eur",
|
|
@@ -680,6 +792,7 @@ type GetChainResponse = {
|
|
|
680
792
|
utilityAddresses?: UtilityAddresses;
|
|
681
793
|
networkToken: NetworkToken;
|
|
682
794
|
chainLogoUri?: string;
|
|
795
|
+
private?: boolean;
|
|
683
796
|
};
|
|
684
797
|
|
|
685
798
|
type ChainInfo = {
|
|
@@ -701,6 +814,7 @@ type ChainInfo = {
|
|
|
701
814
|
utilityAddresses?: UtilityAddresses;
|
|
702
815
|
networkToken: NetworkToken;
|
|
703
816
|
chainLogoUri?: string;
|
|
817
|
+
private?: boolean;
|
|
704
818
|
};
|
|
705
819
|
|
|
706
820
|
type ListChainsResponse = {
|
|
@@ -741,6 +855,322 @@ declare class EvmChainsService {
|
|
|
741
855
|
}): CancelablePromise<GetChainResponse>;
|
|
742
856
|
}
|
|
743
857
|
|
|
858
|
+
type ImageAsset = {
|
|
859
|
+
assetId?: string;
|
|
860
|
+
/**
|
|
861
|
+
* OUTPUT ONLY
|
|
862
|
+
*/
|
|
863
|
+
imageUri?: string;
|
|
864
|
+
};
|
|
865
|
+
|
|
866
|
+
type PricingProviders = {
|
|
867
|
+
coingeckoCoinId?: string;
|
|
868
|
+
};
|
|
869
|
+
|
|
870
|
+
declare enum ResourceLinkType {
|
|
871
|
+
BLOG = "Blog",
|
|
872
|
+
COIN_GECKO = "CoinGecko",
|
|
873
|
+
COIN_MARKET_CAP = "CoinMarketCap",
|
|
874
|
+
DISCORD = "Discord",
|
|
875
|
+
DOCUMENTATION = "Documentation",
|
|
876
|
+
FACEBOOK = "Facebook",
|
|
877
|
+
GITHUB = "Github",
|
|
878
|
+
INSTAGRAM = "Instagram",
|
|
879
|
+
LINKED_IN = "LinkedIn",
|
|
880
|
+
MEDIUM = "Medium",
|
|
881
|
+
REDDIT = "Reddit",
|
|
882
|
+
SUPPORT = "Support",
|
|
883
|
+
TELEGRAM = "Telegram",
|
|
884
|
+
TIK_TOK = "TikTok",
|
|
885
|
+
TWITTER = "Twitter",
|
|
886
|
+
WEBSITE = "Website",
|
|
887
|
+
WHITEPAPER = "Whitepaper",
|
|
888
|
+
YOUTUBE = "Youtube"
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
type ResourceLink = {
|
|
892
|
+
type: ResourceLinkType;
|
|
893
|
+
url: string;
|
|
894
|
+
};
|
|
895
|
+
|
|
896
|
+
type ContractSubmissionErc1155 = {
|
|
897
|
+
description?: string;
|
|
898
|
+
officialSite?: string;
|
|
899
|
+
email?: string;
|
|
900
|
+
logoAsset?: ImageAsset;
|
|
901
|
+
bannerAsset?: ImageAsset;
|
|
902
|
+
color?: string;
|
|
903
|
+
resourceLinks?: Array<ResourceLink>;
|
|
904
|
+
tags?: Array<string>;
|
|
905
|
+
/**
|
|
906
|
+
* The contract name.
|
|
907
|
+
*/
|
|
908
|
+
name: string;
|
|
909
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
910
|
+
/**
|
|
911
|
+
* The contract symbol.
|
|
912
|
+
*/
|
|
913
|
+
symbol: string;
|
|
914
|
+
pricingProviders?: PricingProviders;
|
|
915
|
+
};
|
|
916
|
+
declare namespace ContractSubmissionErc1155 {
|
|
917
|
+
enum ercType {
|
|
918
|
+
ERC_1155 = "ERC-1155"
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
type ContractSubmissionErc20 = {
|
|
923
|
+
description?: string;
|
|
924
|
+
officialSite?: string;
|
|
925
|
+
email?: string;
|
|
926
|
+
logoAsset?: ImageAsset;
|
|
927
|
+
bannerAsset?: ImageAsset;
|
|
928
|
+
color?: string;
|
|
929
|
+
resourceLinks?: Array<ResourceLink>;
|
|
930
|
+
tags?: Array<string>;
|
|
931
|
+
/**
|
|
932
|
+
* The contract name.
|
|
933
|
+
*/
|
|
934
|
+
name: string;
|
|
935
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
936
|
+
/**
|
|
937
|
+
* The contract symbol.
|
|
938
|
+
*/
|
|
939
|
+
symbol: string;
|
|
940
|
+
pricingProviders?: PricingProviders;
|
|
941
|
+
};
|
|
942
|
+
declare namespace ContractSubmissionErc20 {
|
|
943
|
+
enum ercType {
|
|
944
|
+
ERC_20 = "ERC-20"
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
type ContractSubmissionErc721 = {
|
|
949
|
+
description?: string;
|
|
950
|
+
officialSite?: string;
|
|
951
|
+
email?: string;
|
|
952
|
+
logoAsset?: ImageAsset;
|
|
953
|
+
bannerAsset?: ImageAsset;
|
|
954
|
+
color?: string;
|
|
955
|
+
resourceLinks?: Array<ResourceLink>;
|
|
956
|
+
tags?: Array<string>;
|
|
957
|
+
/**
|
|
958
|
+
* The contract name.
|
|
959
|
+
*/
|
|
960
|
+
name: string;
|
|
961
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
962
|
+
/**
|
|
963
|
+
* The contract symbol.
|
|
964
|
+
*/
|
|
965
|
+
symbol: string;
|
|
966
|
+
};
|
|
967
|
+
declare namespace ContractSubmissionErc721 {
|
|
968
|
+
enum ercType {
|
|
969
|
+
ERC_721 = "ERC-721"
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
type ContractSubmissionUnknown = {
|
|
974
|
+
description?: string;
|
|
975
|
+
officialSite?: string;
|
|
976
|
+
email?: string;
|
|
977
|
+
logoAsset?: ImageAsset;
|
|
978
|
+
bannerAsset?: ImageAsset;
|
|
979
|
+
color?: string;
|
|
980
|
+
resourceLinks?: Array<ResourceLink>;
|
|
981
|
+
tags?: Array<string>;
|
|
982
|
+
/**
|
|
983
|
+
* The contract name.
|
|
984
|
+
*/
|
|
985
|
+
name: string;
|
|
986
|
+
ercType: ContractSubmissionUnknown.ercType;
|
|
987
|
+
};
|
|
988
|
+
declare namespace ContractSubmissionUnknown {
|
|
989
|
+
enum ercType {
|
|
990
|
+
UNKNOWN = "UNKNOWN"
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
type ContractSubmissionBody = {
|
|
995
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
type ContractDeploymentDetails = {
|
|
999
|
+
txHash: string;
|
|
1000
|
+
/**
|
|
1001
|
+
* The address that initiated the transaction which deployed this contract.
|
|
1002
|
+
*/
|
|
1003
|
+
deployerAddress: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* 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.
|
|
1006
|
+
*/
|
|
1007
|
+
deployerContractAddress?: string;
|
|
1008
|
+
};
|
|
1009
|
+
|
|
1010
|
+
type Erc1155Contract = {
|
|
1011
|
+
/**
|
|
1012
|
+
* The contract name.
|
|
1013
|
+
*/
|
|
1014
|
+
name?: string;
|
|
1015
|
+
description?: string;
|
|
1016
|
+
officialSite?: string;
|
|
1017
|
+
email?: string;
|
|
1018
|
+
logoAsset?: ImageAsset;
|
|
1019
|
+
bannerAsset?: ImageAsset;
|
|
1020
|
+
color?: string;
|
|
1021
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1022
|
+
tags?: Array<string>;
|
|
1023
|
+
/**
|
|
1024
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1025
|
+
*/
|
|
1026
|
+
address: string;
|
|
1027
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1028
|
+
ercType: Erc1155Contract.ercType;
|
|
1029
|
+
/**
|
|
1030
|
+
* The contract symbol.
|
|
1031
|
+
*/
|
|
1032
|
+
symbol?: string;
|
|
1033
|
+
pricingProviders?: PricingProviders;
|
|
1034
|
+
};
|
|
1035
|
+
declare namespace Erc1155Contract {
|
|
1036
|
+
enum ercType {
|
|
1037
|
+
ERC_1155 = "ERC-1155"
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
type Erc20Contract = {
|
|
1042
|
+
/**
|
|
1043
|
+
* The contract name.
|
|
1044
|
+
*/
|
|
1045
|
+
name?: string;
|
|
1046
|
+
description?: string;
|
|
1047
|
+
officialSite?: string;
|
|
1048
|
+
email?: string;
|
|
1049
|
+
logoAsset?: ImageAsset;
|
|
1050
|
+
bannerAsset?: ImageAsset;
|
|
1051
|
+
color?: string;
|
|
1052
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1053
|
+
tags?: Array<string>;
|
|
1054
|
+
/**
|
|
1055
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1056
|
+
*/
|
|
1057
|
+
address: string;
|
|
1058
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1059
|
+
ercType: Erc20Contract.ercType;
|
|
1060
|
+
/**
|
|
1061
|
+
* The contract symbol.
|
|
1062
|
+
*/
|
|
1063
|
+
symbol?: string;
|
|
1064
|
+
/**
|
|
1065
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1066
|
+
*/
|
|
1067
|
+
decimals: number;
|
|
1068
|
+
pricingProviders?: PricingProviders;
|
|
1069
|
+
};
|
|
1070
|
+
declare namespace Erc20Contract {
|
|
1071
|
+
enum ercType {
|
|
1072
|
+
ERC_20 = "ERC-20"
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
type Erc721Contract = {
|
|
1077
|
+
/**
|
|
1078
|
+
* The contract name.
|
|
1079
|
+
*/
|
|
1080
|
+
name?: string;
|
|
1081
|
+
description?: string;
|
|
1082
|
+
officialSite?: string;
|
|
1083
|
+
email?: string;
|
|
1084
|
+
logoAsset?: ImageAsset;
|
|
1085
|
+
bannerAsset?: ImageAsset;
|
|
1086
|
+
color?: string;
|
|
1087
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1088
|
+
tags?: Array<string>;
|
|
1089
|
+
/**
|
|
1090
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1091
|
+
*/
|
|
1092
|
+
address: string;
|
|
1093
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1094
|
+
ercType: Erc721Contract.ercType;
|
|
1095
|
+
/**
|
|
1096
|
+
* The contract symbol.
|
|
1097
|
+
*/
|
|
1098
|
+
symbol?: string;
|
|
1099
|
+
};
|
|
1100
|
+
declare namespace Erc721Contract {
|
|
1101
|
+
enum ercType {
|
|
1102
|
+
ERC_721 = "ERC-721"
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
type UnknownContract = {
|
|
1107
|
+
/**
|
|
1108
|
+
* The contract name.
|
|
1109
|
+
*/
|
|
1110
|
+
name?: string;
|
|
1111
|
+
description?: string;
|
|
1112
|
+
officialSite?: string;
|
|
1113
|
+
email?: string;
|
|
1114
|
+
logoAsset?: ImageAsset;
|
|
1115
|
+
bannerAsset?: ImageAsset;
|
|
1116
|
+
color?: string;
|
|
1117
|
+
resourceLinks?: Array<ResourceLink>;
|
|
1118
|
+
tags?: Array<string>;
|
|
1119
|
+
/**
|
|
1120
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1121
|
+
*/
|
|
1122
|
+
address: string;
|
|
1123
|
+
deploymentDetails: ContractDeploymentDetails;
|
|
1124
|
+
ercType: UnknownContract.ercType;
|
|
1125
|
+
};
|
|
1126
|
+
declare namespace UnknownContract {
|
|
1127
|
+
enum ercType {
|
|
1128
|
+
UNKNOWN = "UNKNOWN"
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
type UpdateContractResponse = {
|
|
1133
|
+
contract: (UnknownContract | Erc20Contract | Erc721Contract | Erc1155Contract);
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1136
|
+
declare class EvmContractsService {
|
|
1137
|
+
readonly httpRequest: BaseHttpRequest;
|
|
1138
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
1139
|
+
/**
|
|
1140
|
+
* Get contract metadata
|
|
1141
|
+
* Gets metadata about the contract at the given address.
|
|
1142
|
+
* @returns any
|
|
1143
|
+
* @throws ApiError
|
|
1144
|
+
*/
|
|
1145
|
+
getContractMetadata({ chainId, address, }: {
|
|
1146
|
+
/**
|
|
1147
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1148
|
+
*/
|
|
1149
|
+
chainId: string;
|
|
1150
|
+
/**
|
|
1151
|
+
* Contract address on the relevant chain.
|
|
1152
|
+
*/
|
|
1153
|
+
address: string;
|
|
1154
|
+
}): CancelablePromise<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1155
|
+
/**
|
|
1156
|
+
* Update contract information
|
|
1157
|
+
* Update contract information. Updates will be reviewed by the Ava Labs team before they are published.
|
|
1158
|
+
* @returns UpdateContractResponse
|
|
1159
|
+
* @throws ApiError
|
|
1160
|
+
*/
|
|
1161
|
+
updateContractInfo({ chainId, address, requestBody, }: {
|
|
1162
|
+
/**
|
|
1163
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
1164
|
+
*/
|
|
1165
|
+
chainId: string;
|
|
1166
|
+
/**
|
|
1167
|
+
* Contract address on the relevant chain.
|
|
1168
|
+
*/
|
|
1169
|
+
address: string;
|
|
1170
|
+
requestBody: ContractSubmissionBody;
|
|
1171
|
+
}): CancelablePromise<UpdateContractResponse>;
|
|
1172
|
+
}
|
|
1173
|
+
|
|
744
1174
|
type Erc1155Token = {
|
|
745
1175
|
/**
|
|
746
1176
|
* A wallet or contract address in mixed-case checksum encoding.
|
|
@@ -917,267 +1347,94 @@ type FullNativeTransactionDetails = {
|
|
|
917
1347
|
/**
|
|
918
1348
|
* The gas limit set for the transaction.
|
|
919
1349
|
*/
|
|
920
|
-
gasLimit: string;
|
|
921
|
-
/**
|
|
922
|
-
* The amount of gas used.
|
|
923
|
-
*/
|
|
924
|
-
gasUsed: string;
|
|
925
|
-
/**
|
|
926
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
927
|
-
*/
|
|
928
|
-
gasPrice: string;
|
|
929
|
-
/**
|
|
930
|
-
* The nonce used by the sender of the transaction.
|
|
931
|
-
*/
|
|
932
|
-
nonce: string;
|
|
933
|
-
from: RichAddress;
|
|
934
|
-
to: RichAddress;
|
|
935
|
-
method?: Method;
|
|
936
|
-
value: string;
|
|
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
|
-
/**
|
|
1016
|
-
* INPUT ONLY
|
|
1017
|
-
*/
|
|
1018
|
-
assetId?: string;
|
|
1019
|
-
/**
|
|
1020
|
-
* OUTPUT ONLY
|
|
1021
|
-
*/
|
|
1022
|
-
imageUri?: string;
|
|
1023
|
-
};
|
|
1024
|
-
|
|
1025
|
-
declare enum ResourceLinkType {
|
|
1026
|
-
BLOG = "Blog",
|
|
1027
|
-
COIN_GECKO = "CoinGecko",
|
|
1028
|
-
COIN_MARKET_CAP = "CoinMarketCap",
|
|
1029
|
-
DISCORD = "Discord",
|
|
1030
|
-
DOCUMENTATION = "Documentation",
|
|
1031
|
-
FACEBOOK = "Facebook",
|
|
1032
|
-
GITHUB = "Github",
|
|
1033
|
-
INSTAGRAM = "Instagram",
|
|
1034
|
-
LINKED_IN = "LinkedIn",
|
|
1035
|
-
MEDIUM = "Medium",
|
|
1036
|
-
REDDIT = "Reddit",
|
|
1037
|
-
SUPPORT = "Support",
|
|
1038
|
-
TELEGRAM = "Telegram",
|
|
1039
|
-
TIK_TOK = "TikTok",
|
|
1040
|
-
TWITTER = "Twitter",
|
|
1041
|
-
WEBSITE = "Website",
|
|
1042
|
-
WHITEPAPER = "Whitepaper",
|
|
1043
|
-
YOUTUBE = "Youtube"
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
type ResourceLink = {
|
|
1047
|
-
type: ResourceLinkType;
|
|
1048
|
-
url: string;
|
|
1049
|
-
};
|
|
1050
|
-
|
|
1051
|
-
type Erc1155Contract = {
|
|
1052
|
-
/**
|
|
1053
|
-
* The contract name.
|
|
1054
|
-
*/
|
|
1055
|
-
name?: string;
|
|
1056
|
-
description?: string;
|
|
1057
|
-
officialSite?: string;
|
|
1058
|
-
email?: string;
|
|
1059
|
-
logoAsset?: ImageAsset;
|
|
1060
|
-
bannerAsset?: ImageAsset;
|
|
1061
|
-
color?: string;
|
|
1062
|
-
coingeckoCoinId?: string;
|
|
1063
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1064
|
-
tags?: Array<string>;
|
|
1065
|
-
/**
|
|
1066
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
1067
|
-
*/
|
|
1068
|
-
address: string;
|
|
1069
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1070
|
-
ercType: Erc1155Contract.ercType;
|
|
1071
|
-
/**
|
|
1072
|
-
* The contract symbol.
|
|
1073
|
-
*/
|
|
1074
|
-
symbol?: string;
|
|
1075
|
-
};
|
|
1076
|
-
declare namespace Erc1155Contract {
|
|
1077
|
-
enum ercType {
|
|
1078
|
-
ERC_1155 = "ERC-1155"
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
|
|
1082
|
-
type Erc20Contract = {
|
|
1350
|
+
gasLimit: string;
|
|
1083
1351
|
/**
|
|
1084
|
-
* The
|
|
1352
|
+
* The amount of gas used.
|
|
1085
1353
|
*/
|
|
1086
|
-
|
|
1087
|
-
description?: string;
|
|
1088
|
-
officialSite?: string;
|
|
1089
|
-
email?: string;
|
|
1090
|
-
logoAsset?: ImageAsset;
|
|
1091
|
-
bannerAsset?: ImageAsset;
|
|
1092
|
-
color?: string;
|
|
1093
|
-
coingeckoCoinId?: string;
|
|
1094
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1095
|
-
tags?: Array<string>;
|
|
1354
|
+
gasUsed: string;
|
|
1096
1355
|
/**
|
|
1097
|
-
*
|
|
1356
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1098
1357
|
*/
|
|
1099
|
-
|
|
1100
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1101
|
-
ercType: Erc20Contract.ercType;
|
|
1358
|
+
gasPrice: string;
|
|
1102
1359
|
/**
|
|
1103
|
-
* The
|
|
1360
|
+
* The nonce used by the sender of the transaction.
|
|
1104
1361
|
*/
|
|
1105
|
-
|
|
1362
|
+
nonce: string;
|
|
1363
|
+
from: RichAddress;
|
|
1364
|
+
to: RichAddress;
|
|
1365
|
+
method?: Method;
|
|
1366
|
+
value: string;
|
|
1106
1367
|
/**
|
|
1107
|
-
* The
|
|
1368
|
+
* The data sent for the transaction.
|
|
1108
1369
|
*/
|
|
1109
|
-
|
|
1370
|
+
input: string;
|
|
1371
|
+
baseFeePerGas: string;
|
|
1372
|
+
maxFeePerGas?: string;
|
|
1373
|
+
maxPriorityFeePerGas?: string;
|
|
1110
1374
|
};
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1375
|
+
|
|
1376
|
+
declare enum InternalTransactionOpCall {
|
|
1377
|
+
UNKNOWN = "UNKNOWN",
|
|
1378
|
+
CALL = "CALL",
|
|
1379
|
+
CREATE = "CREATE",
|
|
1380
|
+
CREATE2 = "CREATE2",
|
|
1381
|
+
CALLCODE = "CALLCODE",
|
|
1382
|
+
DELEGATECALL = "DELEGATECALL",
|
|
1383
|
+
STATICCALL = "STATICCALL"
|
|
1115
1384
|
}
|
|
1116
1385
|
|
|
1117
|
-
type
|
|
1386
|
+
type InternalTransactionDetails = {
|
|
1387
|
+
from: RichAddress;
|
|
1388
|
+
to: RichAddress;
|
|
1389
|
+
internalTxType: InternalTransactionOpCall;
|
|
1390
|
+
value: string;
|
|
1118
1391
|
/**
|
|
1119
|
-
*
|
|
1392
|
+
* True if the internal transaction was reverted.
|
|
1120
1393
|
*/
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
coingeckoCoinId?: string;
|
|
1129
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1130
|
-
tags?: Array<string>;
|
|
1394
|
+
isReverted: boolean;
|
|
1395
|
+
gasUsed: string;
|
|
1396
|
+
gasLimit: string;
|
|
1397
|
+
};
|
|
1398
|
+
|
|
1399
|
+
type NetworkTokenDetails = {
|
|
1400
|
+
networkToken: NetworkToken;
|
|
1131
1401
|
/**
|
|
1132
|
-
*
|
|
1402
|
+
* The current token price, if available.
|
|
1133
1403
|
*/
|
|
1134
|
-
|
|
1135
|
-
deploymentDetails: ContractDeploymentDetails;
|
|
1136
|
-
ercType: Erc721Contract.ercType;
|
|
1404
|
+
currentPrice?: Money;
|
|
1137
1405
|
/**
|
|
1138
|
-
* The
|
|
1406
|
+
* 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.
|
|
1139
1407
|
*/
|
|
1140
|
-
|
|
1408
|
+
historicalPrice?: Money;
|
|
1141
1409
|
};
|
|
1142
|
-
declare namespace Erc721Contract {
|
|
1143
|
-
enum ercType {
|
|
1144
|
-
ERC_721 = "ERC-721"
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
1410
|
|
|
1148
|
-
type
|
|
1411
|
+
type GetTransactionResponse = {
|
|
1149
1412
|
/**
|
|
1150
|
-
* The
|
|
1413
|
+
* The list of ERC-20 transfers.
|
|
1151
1414
|
*/
|
|
1152
|
-
|
|
1153
|
-
description?: string;
|
|
1154
|
-
officialSite?: string;
|
|
1155
|
-
email?: string;
|
|
1156
|
-
logoAsset?: ImageAsset;
|
|
1157
|
-
bannerAsset?: ImageAsset;
|
|
1158
|
-
color?: string;
|
|
1159
|
-
coingeckoCoinId?: string;
|
|
1160
|
-
resourceLinks?: Array<ResourceLink>;
|
|
1161
|
-
tags?: Array<string>;
|
|
1415
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1162
1416
|
/**
|
|
1163
|
-
*
|
|
1417
|
+
* The list of ERC-721 transfers.
|
|
1164
1418
|
*/
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1419
|
+
erc721Transfers?: Array<Erc721TransferDetails>;
|
|
1420
|
+
/**
|
|
1421
|
+
* The list of ERC-1155 transfers.
|
|
1422
|
+
*/
|
|
1423
|
+
erc1155Transfers?: Array<Erc1155TransferDetails>;
|
|
1424
|
+
/**
|
|
1425
|
+
* 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.
|
|
1426
|
+
*/
|
|
1427
|
+
internalTransactions?: Array<InternalTransactionDetails>;
|
|
1428
|
+
networkTokenDetails: NetworkTokenDetails;
|
|
1429
|
+
nativeTransaction: FullNativeTransactionDetails;
|
|
1168
1430
|
};
|
|
1169
|
-
declare namespace UnknownContract {
|
|
1170
|
-
enum ercType {
|
|
1171
|
-
UNKNOWN = "UNKNOWN"
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
1431
|
|
|
1175
1432
|
type ListContractsResponse = {
|
|
1176
1433
|
/**
|
|
1177
1434
|
* 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.
|
|
1178
1435
|
*/
|
|
1179
1436
|
nextPageToken?: string;
|
|
1180
|
-
contracts: Array<(
|
|
1437
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1181
1438
|
};
|
|
1182
1439
|
|
|
1183
1440
|
type Erc1155Transfer = {
|
|
@@ -1482,7 +1739,13 @@ declare class EvmTransactionsService {
|
|
|
1482
1739
|
* A wallet address.
|
|
1483
1740
|
*/
|
|
1484
1741
|
address: string;
|
|
1742
|
+
/**
|
|
1743
|
+
* 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.
|
|
1744
|
+
*/
|
|
1485
1745
|
startBlock?: number;
|
|
1746
|
+
/**
|
|
1747
|
+
* 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.
|
|
1748
|
+
*/
|
|
1486
1749
|
endBlock?: number;
|
|
1487
1750
|
/**
|
|
1488
1751
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1518,7 +1781,13 @@ declare class EvmTransactionsService {
|
|
|
1518
1781
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1519
1782
|
*/
|
|
1520
1783
|
pageToken?: string;
|
|
1784
|
+
/**
|
|
1785
|
+
* 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.
|
|
1786
|
+
*/
|
|
1521
1787
|
startBlock?: number;
|
|
1788
|
+
/**
|
|
1789
|
+
* 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.
|
|
1790
|
+
*/
|
|
1522
1791
|
endBlock?: number;
|
|
1523
1792
|
/**
|
|
1524
1793
|
* 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.
|
|
@@ -1540,7 +1809,13 @@ declare class EvmTransactionsService {
|
|
|
1540
1809
|
* A wallet address.
|
|
1541
1810
|
*/
|
|
1542
1811
|
address: string;
|
|
1812
|
+
/**
|
|
1813
|
+
* 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.
|
|
1814
|
+
*/
|
|
1543
1815
|
startBlock?: number;
|
|
1816
|
+
/**
|
|
1817
|
+
* 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.
|
|
1818
|
+
*/
|
|
1544
1819
|
endBlock?: number;
|
|
1545
1820
|
/**
|
|
1546
1821
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1566,7 +1841,13 @@ declare class EvmTransactionsService {
|
|
|
1566
1841
|
* A wallet address.
|
|
1567
1842
|
*/
|
|
1568
1843
|
address: string;
|
|
1844
|
+
/**
|
|
1845
|
+
* 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.
|
|
1846
|
+
*/
|
|
1569
1847
|
startBlock?: number;
|
|
1848
|
+
/**
|
|
1849
|
+
* 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.
|
|
1850
|
+
*/
|
|
1570
1851
|
endBlock?: number;
|
|
1571
1852
|
/**
|
|
1572
1853
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1592,7 +1873,13 @@ declare class EvmTransactionsService {
|
|
|
1592
1873
|
* A wallet address.
|
|
1593
1874
|
*/
|
|
1594
1875
|
address: string;
|
|
1876
|
+
/**
|
|
1877
|
+
* 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.
|
|
1878
|
+
*/
|
|
1595
1879
|
startBlock?: number;
|
|
1880
|
+
/**
|
|
1881
|
+
* 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.
|
|
1882
|
+
*/
|
|
1596
1883
|
endBlock?: number;
|
|
1597
1884
|
/**
|
|
1598
1885
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1618,7 +1905,13 @@ declare class EvmTransactionsService {
|
|
|
1618
1905
|
* A wallet address.
|
|
1619
1906
|
*/
|
|
1620
1907
|
address: string;
|
|
1908
|
+
/**
|
|
1909
|
+
* 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.
|
|
1910
|
+
*/
|
|
1621
1911
|
startBlock?: number;
|
|
1912
|
+
/**
|
|
1913
|
+
* 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.
|
|
1914
|
+
*/
|
|
1622
1915
|
endBlock?: number;
|
|
1623
1916
|
/**
|
|
1624
1917
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1646,7 +1939,13 @@ declare class EvmTransactionsService {
|
|
|
1646
1939
|
* A wallet address.
|
|
1647
1940
|
*/
|
|
1648
1941
|
address: string;
|
|
1942
|
+
/**
|
|
1943
|
+
* 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.
|
|
1944
|
+
*/
|
|
1649
1945
|
startBlock?: number;
|
|
1946
|
+
/**
|
|
1947
|
+
* 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.
|
|
1948
|
+
*/
|
|
1650
1949
|
endBlock?: number;
|
|
1651
1950
|
/**
|
|
1652
1951
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1731,6 +2030,83 @@ declare class HealthCheckService {
|
|
|
1731
2030
|
}>;
|
|
1732
2031
|
}
|
|
1733
2032
|
|
|
2033
|
+
type ListNftTokens = {
|
|
2034
|
+
/**
|
|
2035
|
+
* 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.
|
|
2036
|
+
*/
|
|
2037
|
+
nextPageToken?: string;
|
|
2038
|
+
tokens: (Array<Erc721Token> | Array<Erc1155Token>);
|
|
2039
|
+
};
|
|
2040
|
+
|
|
2041
|
+
declare class NfTsService {
|
|
2042
|
+
readonly httpRequest: BaseHttpRequest;
|
|
2043
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
2044
|
+
/**
|
|
2045
|
+
* Reindex NFT metadata
|
|
2046
|
+
* Triggers reindexing of token metadata for an NFT token. Reindexing can only be called once per hour for each NFT token.
|
|
2047
|
+
* @returns any
|
|
2048
|
+
* @throws ApiError
|
|
2049
|
+
*/
|
|
2050
|
+
reindexNft({ chainId, address, tokenId, }: {
|
|
2051
|
+
/**
|
|
2052
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2053
|
+
*/
|
|
2054
|
+
chainId: string;
|
|
2055
|
+
/**
|
|
2056
|
+
* Contract address on the relevant chain.
|
|
2057
|
+
*/
|
|
2058
|
+
address: string;
|
|
2059
|
+
/**
|
|
2060
|
+
* TokenId on the contract
|
|
2061
|
+
*/
|
|
2062
|
+
tokenId: string;
|
|
2063
|
+
}): CancelablePromise<any>;
|
|
2064
|
+
/**
|
|
2065
|
+
* List tokens
|
|
2066
|
+
* Lists tokens for an NFT contract.
|
|
2067
|
+
* @returns ListNftTokens
|
|
2068
|
+
* @throws ApiError
|
|
2069
|
+
*/
|
|
2070
|
+
listTokens({ chainId, address, pageSize, pageToken, }: {
|
|
2071
|
+
/**
|
|
2072
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2073
|
+
*/
|
|
2074
|
+
chainId: string;
|
|
2075
|
+
/**
|
|
2076
|
+
* Contract address on the relevant chain.
|
|
2077
|
+
*/
|
|
2078
|
+
address: string;
|
|
2079
|
+
/**
|
|
2080
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2081
|
+
*/
|
|
2082
|
+
pageSize?: number;
|
|
2083
|
+
/**
|
|
2084
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2085
|
+
*/
|
|
2086
|
+
pageToken?: string;
|
|
2087
|
+
}): CancelablePromise<ListNftTokens>;
|
|
2088
|
+
/**
|
|
2089
|
+
* Get token details
|
|
2090
|
+
* Gets token details for a specific token of an NFT contract.
|
|
2091
|
+
* @returns any
|
|
2092
|
+
* @throws ApiError
|
|
2093
|
+
*/
|
|
2094
|
+
getTokenDetails({ chainId, address, tokenId, }: {
|
|
2095
|
+
/**
|
|
2096
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
2097
|
+
*/
|
|
2098
|
+
chainId: string;
|
|
2099
|
+
/**
|
|
2100
|
+
* Contract address on the relevant chain.
|
|
2101
|
+
*/
|
|
2102
|
+
address: string;
|
|
2103
|
+
/**
|
|
2104
|
+
* TokenId on the contract
|
|
2105
|
+
*/
|
|
2106
|
+
tokenId: string;
|
|
2107
|
+
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
2108
|
+
}
|
|
2109
|
+
|
|
1734
2110
|
type EvmNetworkOptions = {
|
|
1735
2111
|
addresses: Array<string>;
|
|
1736
2112
|
includeChains: Array<string>;
|
|
@@ -1825,17 +2201,6 @@ type OperationStatusResponse = {
|
|
|
1825
2201
|
declare class OperationsService {
|
|
1826
2202
|
readonly httpRequest: BaseHttpRequest;
|
|
1827
2203
|
constructor(httpRequest: BaseHttpRequest);
|
|
1828
|
-
/**
|
|
1829
|
-
* Create transaction export operation
|
|
1830
|
-
* Trigger a transaction export operation with given parameters.
|
|
1831
|
-
*
|
|
1832
|
-
* 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.
|
|
1833
|
-
* @returns OperationStatusResponse
|
|
1834
|
-
* @throws ApiError
|
|
1835
|
-
*/
|
|
1836
|
-
postTransactionExportJob({ requestBody, }: {
|
|
1837
|
-
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
1838
|
-
}): CancelablePromise<OperationStatusResponse>;
|
|
1839
2204
|
/**
|
|
1840
2205
|
* Get operation
|
|
1841
2206
|
* Gets operation details for the given operation id.
|
|
@@ -1848,6 +2213,17 @@ declare class OperationsService {
|
|
|
1848
2213
|
*/
|
|
1849
2214
|
operationId: string;
|
|
1850
2215
|
}): CancelablePromise<OperationStatusResponse>;
|
|
2216
|
+
/**
|
|
2217
|
+
* Create transaction export operation
|
|
2218
|
+
* Trigger a transaction export operation with given parameters.
|
|
2219
|
+
*
|
|
2220
|
+
* 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.
|
|
2221
|
+
* @returns OperationStatusResponse
|
|
2222
|
+
* @throws ApiError
|
|
2223
|
+
*/
|
|
2224
|
+
postTransactionExportJob({ requestBody, }: {
|
|
2225
|
+
requestBody: (CreateEvmTransactionExportRequest | CreatePrimaryNetworkTransactionExportRequest);
|
|
2226
|
+
}): CancelablePromise<OperationStatusResponse>;
|
|
1851
2227
|
}
|
|
1852
2228
|
|
|
1853
2229
|
declare enum BlockchainIds {
|
|
@@ -1916,39 +2292,57 @@ type ListBlockchainsResponse = {
|
|
|
1916
2292
|
|
|
1917
2293
|
type ActiveDelegatorDetails = {
|
|
1918
2294
|
txHash: string;
|
|
2295
|
+
nodeId: string;
|
|
1919
2296
|
rewardAddresses: Array<string>;
|
|
1920
2297
|
amountDelegated: string;
|
|
1921
2298
|
delegationFee: string;
|
|
1922
2299
|
startTimestamp: number;
|
|
1923
2300
|
endTimestamp: number;
|
|
1924
|
-
delegationStatus: DelegationStatusType;
|
|
1925
2301
|
estimatedGrossReward: string;
|
|
1926
2302
|
estimatedNetReward: string;
|
|
2303
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1927
2304
|
};
|
|
2305
|
+
declare namespace ActiveDelegatorDetails {
|
|
2306
|
+
enum delegationStatus {
|
|
2307
|
+
ACTIVE = "active"
|
|
2308
|
+
}
|
|
2309
|
+
}
|
|
1928
2310
|
|
|
1929
2311
|
type CompletedDelegatorDetails = {
|
|
1930
2312
|
txHash: string;
|
|
2313
|
+
nodeId: string;
|
|
1931
2314
|
rewardAddresses: Array<string>;
|
|
1932
2315
|
amountDelegated: string;
|
|
1933
2316
|
delegationFee: string;
|
|
1934
2317
|
startTimestamp: number;
|
|
1935
2318
|
endTimestamp: number;
|
|
1936
|
-
delegationStatus: DelegationStatusType;
|
|
1937
2319
|
grossReward: string;
|
|
1938
2320
|
netReward: string;
|
|
2321
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1939
2322
|
};
|
|
2323
|
+
declare namespace CompletedDelegatorDetails {
|
|
2324
|
+
enum delegationStatus {
|
|
2325
|
+
COMPLETED = "completed"
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
1940
2328
|
|
|
1941
2329
|
type PendingDelegatorDetails = {
|
|
1942
2330
|
txHash: string;
|
|
2331
|
+
nodeId: string;
|
|
1943
2332
|
rewardAddresses: Array<string>;
|
|
1944
2333
|
amountDelegated: string;
|
|
1945
2334
|
delegationFee: string;
|
|
1946
2335
|
startTimestamp: number;
|
|
1947
2336
|
endTimestamp: number;
|
|
1948
|
-
delegationStatus: DelegationStatusType;
|
|
1949
2337
|
estimatedGrossReward: string;
|
|
1950
2338
|
estimatedNetReward: string;
|
|
2339
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
1951
2340
|
};
|
|
2341
|
+
declare namespace PendingDelegatorDetails {
|
|
2342
|
+
enum delegationStatus {
|
|
2343
|
+
PENDING = "pending"
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
1952
2346
|
|
|
1953
2347
|
type ListDelegatorDetailsResponse = {
|
|
1954
2348
|
/**
|
|
@@ -1986,49 +2380,86 @@ type ListSubnetsResponse = {
|
|
|
1986
2380
|
type Rewards = {
|
|
1987
2381
|
validationRewardAmount: string;
|
|
1988
2382
|
delegationRewardAmount: string;
|
|
2383
|
+
rewardAddresses?: Array<string>;
|
|
2384
|
+
rewardTxHash?: string;
|
|
2385
|
+
};
|
|
2386
|
+
|
|
2387
|
+
type ValidatorHealthDetails = {
|
|
2388
|
+
/**
|
|
2389
|
+
* Percent of requests responded to in last polling.
|
|
2390
|
+
*/
|
|
2391
|
+
reachabilityPercent: number;
|
|
2392
|
+
/**
|
|
2393
|
+
* Percent of requests benched on the P-Chain in last polling.
|
|
2394
|
+
*/
|
|
2395
|
+
benchedPChainRequestsPercent: number;
|
|
2396
|
+
/**
|
|
2397
|
+
* Percentage of requests benched on the X-Chain in last polling.
|
|
2398
|
+
*/
|
|
2399
|
+
benchedXChainRequestsPercent: number;
|
|
2400
|
+
/**
|
|
2401
|
+
* Percentage of requests benched on the C-Chain in last polling.
|
|
2402
|
+
*/
|
|
2403
|
+
benchedCChainRequestsPercent: number;
|
|
1989
2404
|
};
|
|
1990
2405
|
|
|
1991
|
-
declare enum ValidationStatusType {
|
|
1992
|
-
COMPLETED = "completed",
|
|
1993
|
-
ACTIVE = "active",
|
|
1994
|
-
PENDING = "pending"
|
|
1995
|
-
}
|
|
1996
|
-
|
|
1997
2406
|
type ActiveValidatorDetails = {
|
|
2407
|
+
txHash: string;
|
|
1998
2408
|
nodeId: string;
|
|
2409
|
+
subnetId: string;
|
|
1999
2410
|
amountStaked: string;
|
|
2000
|
-
delegationFee
|
|
2411
|
+
delegationFee?: string;
|
|
2001
2412
|
startTimestamp: number;
|
|
2002
2413
|
endTimestamp: number;
|
|
2003
|
-
validationStatus: ValidationStatusType;
|
|
2004
2414
|
stakePercentage: number;
|
|
2005
2415
|
delegatorCount: number;
|
|
2006
|
-
amountDelegated
|
|
2416
|
+
amountDelegated?: string;
|
|
2007
2417
|
uptimePerformance: number;
|
|
2008
|
-
avalancheGoVersion
|
|
2009
|
-
delegationCapacity
|
|
2418
|
+
avalancheGoVersion?: string;
|
|
2419
|
+
delegationCapacity?: string;
|
|
2010
2420
|
potentialRewards: Rewards;
|
|
2421
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2422
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2011
2423
|
};
|
|
2424
|
+
declare namespace ActiveValidatorDetails {
|
|
2425
|
+
enum validationStatus {
|
|
2426
|
+
ACTIVE = "active"
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2012
2429
|
|
|
2013
2430
|
type CompletedValidatorDetails = {
|
|
2431
|
+
txHash: string;
|
|
2014
2432
|
nodeId: string;
|
|
2433
|
+
subnetId: string;
|
|
2015
2434
|
amountStaked: string;
|
|
2016
|
-
delegationFee
|
|
2435
|
+
delegationFee?: string;
|
|
2017
2436
|
startTimestamp: number;
|
|
2018
2437
|
endTimestamp: number;
|
|
2019
|
-
validationStatus: ValidationStatusType;
|
|
2020
2438
|
delegatorCount: number;
|
|
2021
2439
|
rewards: Rewards;
|
|
2440
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2022
2441
|
};
|
|
2442
|
+
declare namespace CompletedValidatorDetails {
|
|
2443
|
+
enum validationStatus {
|
|
2444
|
+
COMPLETED = "completed"
|
|
2445
|
+
}
|
|
2446
|
+
}
|
|
2023
2447
|
|
|
2024
2448
|
type PendingValidatorDetails = {
|
|
2449
|
+
txHash: string;
|
|
2025
2450
|
nodeId: string;
|
|
2451
|
+
subnetId: string;
|
|
2026
2452
|
amountStaked: string;
|
|
2027
|
-
delegationFee
|
|
2453
|
+
delegationFee?: string;
|
|
2028
2454
|
startTimestamp: number;
|
|
2029
2455
|
endTimestamp: number;
|
|
2030
|
-
validationStatus:
|
|
2456
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2031
2457
|
};
|
|
2458
|
+
declare namespace PendingValidatorDetails {
|
|
2459
|
+
enum validationStatus {
|
|
2460
|
+
PENDING = "pending"
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2032
2463
|
|
|
2033
2464
|
type ListValidatorDetailsResponse = {
|
|
2034
2465
|
/**
|
|
@@ -2036,7 +2467,7 @@ type ListValidatorDetailsResponse = {
|
|
|
2036
2467
|
*/
|
|
2037
2468
|
nextPageToken?: string;
|
|
2038
2469
|
/**
|
|
2039
|
-
* The list of
|
|
2470
|
+
* The list of validator Details.
|
|
2040
2471
|
*/
|
|
2041
2472
|
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2042
2473
|
};
|
|
@@ -2046,6 +2477,12 @@ declare enum Network {
|
|
|
2046
2477
|
FUJI = "fuji"
|
|
2047
2478
|
}
|
|
2048
2479
|
|
|
2480
|
+
declare enum ValidationStatusType {
|
|
2481
|
+
COMPLETED = "completed",
|
|
2482
|
+
ACTIVE = "active",
|
|
2483
|
+
PENDING = "pending"
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2049
2486
|
type XChainAssetDetails = {
|
|
2050
2487
|
/**
|
|
2051
2488
|
* Unique ID for an asset.
|
|
@@ -2188,7 +2625,7 @@ declare class PrimaryNetworkService {
|
|
|
2188
2625
|
* @returns ListValidatorDetailsResponse
|
|
2189
2626
|
* @throws ApiError
|
|
2190
2627
|
*/
|
|
2191
|
-
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
|
|
2628
|
+
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2192
2629
|
/**
|
|
2193
2630
|
* Either mainnet or a testnet.
|
|
2194
2631
|
*/
|
|
@@ -2214,9 +2651,33 @@ declare class PrimaryNetworkService {
|
|
|
2214
2651
|
*/
|
|
2215
2652
|
validationStatus?: ValidationStatusType;
|
|
2216
2653
|
/**
|
|
2217
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned
|
|
2654
|
+
* 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
|
|
2218
2655
|
*/
|
|
2219
2656
|
minDelegationCapacity?: any;
|
|
2657
|
+
/**
|
|
2658
|
+
* 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.
|
|
2659
|
+
*/
|
|
2660
|
+
maxDelegationCapacity?: any;
|
|
2661
|
+
/**
|
|
2662
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2663
|
+
*/
|
|
2664
|
+
minTimeRemaining?: any;
|
|
2665
|
+
/**
|
|
2666
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2667
|
+
*/
|
|
2668
|
+
maxTimeRemaining?: any;
|
|
2669
|
+
/**
|
|
2670
|
+
* 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.
|
|
2671
|
+
*/
|
|
2672
|
+
minFeePercentage?: any;
|
|
2673
|
+
/**
|
|
2674
|
+
* 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.
|
|
2675
|
+
*/
|
|
2676
|
+
maxFeePercentage?: any;
|
|
2677
|
+
/**
|
|
2678
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2679
|
+
*/
|
|
2680
|
+
subnetId?: string;
|
|
2220
2681
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2221
2682
|
/**
|
|
2222
2683
|
* Get single validator details
|
|
@@ -2256,15 +2717,11 @@ declare class PrimaryNetworkService {
|
|
|
2256
2717
|
* @returns ListDelegatorDetailsResponse
|
|
2257
2718
|
* @throws ApiError
|
|
2258
2719
|
*/
|
|
2259
|
-
listDelegators({ network,
|
|
2720
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2260
2721
|
/**
|
|
2261
2722
|
* Either mainnet or a testnet.
|
|
2262
2723
|
*/
|
|
2263
2724
|
network: Network;
|
|
2264
|
-
/**
|
|
2265
|
-
* A primary network (P or X chain) nodeId.
|
|
2266
|
-
*/
|
|
2267
|
-
nodeId: string;
|
|
2268
2725
|
/**
|
|
2269
2726
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2270
2727
|
*/
|
|
@@ -2273,6 +2730,10 @@ declare class PrimaryNetworkService {
|
|
|
2273
2730
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2274
2731
|
*/
|
|
2275
2732
|
pageToken?: string;
|
|
2733
|
+
/**
|
|
2734
|
+
* A comma separated list of reward addresses to filter by.
|
|
2735
|
+
*/
|
|
2736
|
+
rewardAddresses?: string;
|
|
2276
2737
|
/**
|
|
2277
2738
|
* 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.
|
|
2278
2739
|
*/
|
|
@@ -2281,10 +2742,6 @@ declare class PrimaryNetworkService {
|
|
|
2281
2742
|
* Delegation status of the node.
|
|
2282
2743
|
*/
|
|
2283
2744
|
delegationStatus?: DelegationStatusType;
|
|
2284
|
-
/**
|
|
2285
|
-
* A comma separated list of reward addresses to filter by.
|
|
2286
|
-
*/
|
|
2287
|
-
rewardAddresses?: string;
|
|
2288
2745
|
/**
|
|
2289
2746
|
* A comma separated list of node ids to filter by.
|
|
2290
2747
|
*/
|
|
@@ -2358,13 +2815,57 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2358
2815
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2359
2816
|
};
|
|
2360
2817
|
|
|
2361
|
-
type
|
|
2818
|
+
type Asset = {
|
|
2819
|
+
/**
|
|
2820
|
+
* Unique ID for an asset.
|
|
2821
|
+
*/
|
|
2362
2822
|
assetId: string;
|
|
2823
|
+
/**
|
|
2824
|
+
* Name of this asset.
|
|
2825
|
+
*/
|
|
2826
|
+
name: string;
|
|
2827
|
+
/**
|
|
2828
|
+
* Symbol for this asset (max 4 characters).
|
|
2829
|
+
*/
|
|
2830
|
+
symbol: string;
|
|
2831
|
+
/**
|
|
2832
|
+
* Denomination of this asset to represent fungibility.
|
|
2833
|
+
*/
|
|
2834
|
+
denomination: number;
|
|
2835
|
+
/**
|
|
2836
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2837
|
+
*/
|
|
2838
|
+
type: string;
|
|
2839
|
+
/**
|
|
2840
|
+
* Amount of the asset.
|
|
2841
|
+
*/
|
|
2363
2842
|
amount: string;
|
|
2364
2843
|
};
|
|
2365
2844
|
|
|
2366
2845
|
type PChainSharedAsset = {
|
|
2846
|
+
/**
|
|
2847
|
+
* Unique ID for an asset.
|
|
2848
|
+
*/
|
|
2367
2849
|
assetId: string;
|
|
2850
|
+
/**
|
|
2851
|
+
* Name of this asset.
|
|
2852
|
+
*/
|
|
2853
|
+
name: string;
|
|
2854
|
+
/**
|
|
2855
|
+
* Symbol for this asset (max 4 characters).
|
|
2856
|
+
*/
|
|
2857
|
+
symbol: string;
|
|
2858
|
+
/**
|
|
2859
|
+
* Denomination of this asset to represent fungibility.
|
|
2860
|
+
*/
|
|
2861
|
+
denomination: number;
|
|
2862
|
+
/**
|
|
2863
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2864
|
+
*/
|
|
2865
|
+
type: string;
|
|
2866
|
+
/**
|
|
2867
|
+
* Amount of the asset.
|
|
2868
|
+
*/
|
|
2368
2869
|
amount: string;
|
|
2369
2870
|
sharedWithChainId: string;
|
|
2370
2871
|
status: string;
|
|
@@ -2374,27 +2875,27 @@ type PChainBalance = {
|
|
|
2374
2875
|
/**
|
|
2375
2876
|
* 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.
|
|
2376
2877
|
*/
|
|
2377
|
-
unlockedUnstaked: Array<
|
|
2878
|
+
unlockedUnstaked: Array<Asset>;
|
|
2378
2879
|
/**
|
|
2379
2880
|
* 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.
|
|
2380
2881
|
*/
|
|
2381
|
-
unlockedStaked: Array<
|
|
2882
|
+
unlockedStaked: Array<Asset>;
|
|
2382
2883
|
/**
|
|
2383
2884
|
* 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.
|
|
2384
2885
|
*/
|
|
2385
|
-
lockedPlatform: Array<
|
|
2886
|
+
lockedPlatform: Array<Asset>;
|
|
2386
2887
|
/**
|
|
2387
2888
|
* 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.
|
|
2388
2889
|
*/
|
|
2389
|
-
lockedStakeable: Array<
|
|
2890
|
+
lockedStakeable: Array<Asset>;
|
|
2390
2891
|
/**
|
|
2391
2892
|
* 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.
|
|
2392
2893
|
*/
|
|
2393
|
-
lockedStaked: Array<
|
|
2894
|
+
lockedStaked: Array<Asset>;
|
|
2394
2895
|
/**
|
|
2395
2896
|
* 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.
|
|
2396
2897
|
*/
|
|
2397
|
-
pendingStaked: Array<
|
|
2898
|
+
pendingStaked: Array<Asset>;
|
|
2398
2899
|
/**
|
|
2399
2900
|
* 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.
|
|
2400
2901
|
*/
|
|
@@ -2533,6 +3034,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2533
3034
|
txCount: number;
|
|
2534
3035
|
transactions: Array<string>;
|
|
2535
3036
|
blockSizeBytes: number;
|
|
3037
|
+
currentSupply?: string;
|
|
2536
3038
|
proposerDetails?: ProposerDetails;
|
|
2537
3039
|
};
|
|
2538
3040
|
|
|
@@ -2545,6 +3047,7 @@ type PrimaryNetworkBlock = {
|
|
|
2545
3047
|
txCount: number;
|
|
2546
3048
|
transactions: Array<string>;
|
|
2547
3049
|
blockSizeBytes: number;
|
|
3050
|
+
currentSupply?: string;
|
|
2548
3051
|
proposerDetails?: ProposerDetails;
|
|
2549
3052
|
};
|
|
2550
3053
|
|
|
@@ -2636,7 +3139,8 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2636
3139
|
|
|
2637
3140
|
declare enum RewardType {
|
|
2638
3141
|
VALIDATOR = "VALIDATOR",
|
|
2639
|
-
DELEGATOR = "DELEGATOR"
|
|
3142
|
+
DELEGATOR = "DELEGATOR",
|
|
3143
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2640
3144
|
}
|
|
2641
3145
|
|
|
2642
3146
|
type HistoricalReward = {
|
|
@@ -2655,7 +3159,7 @@ type HistoricalReward = {
|
|
|
2655
3159
|
/**
|
|
2656
3160
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2657
3161
|
*/
|
|
2658
|
-
reward:
|
|
3162
|
+
reward: Asset;
|
|
2659
3163
|
rewardTxHash: string;
|
|
2660
3164
|
};
|
|
2661
3165
|
|
|
@@ -2682,7 +3186,7 @@ type PendingReward = {
|
|
|
2682
3186
|
/**
|
|
2683
3187
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2684
3188
|
*/
|
|
2685
|
-
estimatedReward:
|
|
3189
|
+
estimatedReward: Asset;
|
|
2686
3190
|
};
|
|
2687
3191
|
|
|
2688
3192
|
type ListPendingRewardsResponse = {
|
|
@@ -2702,7 +3206,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2702
3206
|
* @returns ListPendingRewardsResponse
|
|
2703
3207
|
* @throws ApiError
|
|
2704
3208
|
*/
|
|
2705
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3209
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2706
3210
|
/**
|
|
2707
3211
|
* Either mainnet or a testnet.
|
|
2708
3212
|
*/
|
|
@@ -2719,6 +3223,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2719
3223
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2720
3224
|
*/
|
|
2721
3225
|
pageToken?: string;
|
|
3226
|
+
/**
|
|
3227
|
+
* A comma separated list of node ids to filter by.
|
|
3228
|
+
*/
|
|
3229
|
+
nodeIds?: string;
|
|
2722
3230
|
/**
|
|
2723
3231
|
* 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.
|
|
2724
3232
|
*/
|
|
@@ -2730,7 +3238,7 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2730
3238
|
* @returns ListHistoricalRewardsResponse
|
|
2731
3239
|
* @throws ApiError
|
|
2732
3240
|
*/
|
|
2733
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3241
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2734
3242
|
/**
|
|
2735
3243
|
* Either mainnet or a testnet.
|
|
2736
3244
|
*/
|
|
@@ -2747,6 +3255,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2747
3255
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2748
3256
|
*/
|
|
2749
3257
|
pageToken?: string;
|
|
3258
|
+
/**
|
|
3259
|
+
* A comma separated list of node ids to filter by.
|
|
3260
|
+
*/
|
|
3261
|
+
nodeIds?: string;
|
|
2750
3262
|
/**
|
|
2751
3263
|
* 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.
|
|
2752
3264
|
*/
|
|
@@ -2754,40 +3266,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2754
3266
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2755
3267
|
}
|
|
2756
3268
|
|
|
2757
|
-
type Asset = {
|
|
2758
|
-
/**
|
|
2759
|
-
* Unique ID for an asset.
|
|
2760
|
-
*/
|
|
2761
|
-
assetId: string;
|
|
2762
|
-
/**
|
|
2763
|
-
* Name of this asset.
|
|
2764
|
-
*/
|
|
2765
|
-
name: string;
|
|
2766
|
-
/**
|
|
2767
|
-
* Symbol for this asset (max 4 characters).
|
|
2768
|
-
*/
|
|
2769
|
-
symbol: string;
|
|
2770
|
-
/**
|
|
2771
|
-
* Denomination of this asset to represent fungibility.
|
|
2772
|
-
*/
|
|
2773
|
-
denomination: number;
|
|
2774
|
-
/**
|
|
2775
|
-
* Type of asset like SECP256K1 or NFT.
|
|
2776
|
-
*/
|
|
2777
|
-
type: string;
|
|
2778
|
-
/**
|
|
2779
|
-
* Amount of the asset.
|
|
2780
|
-
*/
|
|
2781
|
-
amount: string;
|
|
2782
|
-
};
|
|
2783
|
-
|
|
2784
3269
|
type UtxoCredential = {
|
|
2785
3270
|
/**
|
|
2786
|
-
* Signature provided to consume the output
|
|
3271
|
+
* Signature provided to consume the output.
|
|
2787
3272
|
*/
|
|
2788
3273
|
signature?: string;
|
|
2789
3274
|
/**
|
|
2790
|
-
* Public key associated with the signature
|
|
3275
|
+
* Public key associated with the signature.
|
|
2791
3276
|
*/
|
|
2792
3277
|
publicKey?: string;
|
|
2793
3278
|
};
|
|
@@ -2809,66 +3294,66 @@ type EVMInput = {
|
|
|
2809
3294
|
|
|
2810
3295
|
type Utxo = {
|
|
2811
3296
|
/**
|
|
2812
|
-
*
|
|
3297
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2813
3298
|
*/
|
|
2814
|
-
|
|
3299
|
+
addresses: Array<string>;
|
|
2815
3300
|
asset: Asset;
|
|
2816
3301
|
/**
|
|
2817
|
-
*
|
|
3302
|
+
* Blockchain ID on which this output is consumed on.
|
|
2818
3303
|
*/
|
|
2819
|
-
|
|
3304
|
+
consumedOnChainId: string;
|
|
2820
3305
|
/**
|
|
2821
|
-
*
|
|
3306
|
+
* Transaction ID that consumed this output.
|
|
2822
3307
|
*/
|
|
2823
|
-
|
|
3308
|
+
consumingTxHash?: string;
|
|
2824
3309
|
/**
|
|
2825
|
-
* Blockchain ID on which this output is
|
|
3310
|
+
* Blockchain ID on which this output is created on.
|
|
2826
3311
|
*/
|
|
2827
|
-
|
|
3312
|
+
createdOnChainId: string;
|
|
2828
3313
|
/**
|
|
2829
|
-
*
|
|
3314
|
+
* UTXO ID for this output.
|
|
2830
3315
|
*/
|
|
2831
|
-
|
|
3316
|
+
utxoId: string;
|
|
2832
3317
|
/**
|
|
2833
|
-
*
|
|
3318
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2834
3319
|
*/
|
|
2835
|
-
|
|
3320
|
+
consumingTxTimestamp?: number;
|
|
2836
3321
|
/**
|
|
2837
|
-
*
|
|
3322
|
+
* Transaction ID that created this output.
|
|
2838
3323
|
*/
|
|
2839
|
-
|
|
3324
|
+
creationTxHash: string;
|
|
2840
3325
|
/**
|
|
2841
|
-
*
|
|
3326
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2842
3327
|
*/
|
|
2843
|
-
|
|
3328
|
+
credentials?: Array<UtxoCredential>;
|
|
2844
3329
|
/**
|
|
2845
|
-
*
|
|
3330
|
+
* Index representing the minting set for the NFT mint output.
|
|
2846
3331
|
*/
|
|
2847
|
-
|
|
3332
|
+
groupId?: number;
|
|
2848
3333
|
/**
|
|
2849
3334
|
* Locktime in seconds after which this output can be consumed.
|
|
2850
3335
|
*/
|
|
2851
3336
|
locktime: number;
|
|
2852
3337
|
/**
|
|
2853
|
-
*
|
|
3338
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
2854
3339
|
*/
|
|
2855
|
-
|
|
3340
|
+
outputIndex: string;
|
|
2856
3341
|
/**
|
|
2857
|
-
*
|
|
3342
|
+
* Hex encoded data for NFT assets.
|
|
2858
3343
|
*/
|
|
2859
|
-
|
|
3344
|
+
payload?: string;
|
|
2860
3345
|
/**
|
|
2861
|
-
*
|
|
3346
|
+
* Minimum number of signatures required to consume this output.
|
|
2862
3347
|
*/
|
|
2863
|
-
|
|
3348
|
+
threshold: number;
|
|
2864
3349
|
/**
|
|
2865
|
-
*
|
|
3350
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
2866
3351
|
*/
|
|
2867
|
-
|
|
3352
|
+
timestamp: number;
|
|
2868
3353
|
/**
|
|
2869
|
-
*
|
|
3354
|
+
* Type of output.
|
|
2870
3355
|
*/
|
|
2871
|
-
|
|
3356
|
+
utxoType: string;
|
|
2872
3357
|
};
|
|
2873
3358
|
|
|
2874
3359
|
type CChainExportTransaction = {
|
|
@@ -2999,16 +3484,18 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
2999
3484
|
|
|
3000
3485
|
declare enum PChainTransactionType {
|
|
3001
3486
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3002
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3003
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3004
3487
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3005
|
-
|
|
3006
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3488
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3007
3489
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3008
3490
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3009
3491
|
IMPORT_TX = "ImportTx",
|
|
3010
3492
|
EXPORT_TX = "ExportTx",
|
|
3011
3493
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3494
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3495
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3496
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3497
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3498
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3012
3499
|
UNKNOWN = "UNKNOWN"
|
|
3013
3500
|
}
|
|
3014
3501
|
|
|
@@ -3019,29 +3506,48 @@ declare enum UtxoType {
|
|
|
3019
3506
|
|
|
3020
3507
|
type PChainUtxo = {
|
|
3021
3508
|
/**
|
|
3022
|
-
*
|
|
3509
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3023
3510
|
*/
|
|
3024
3511
|
addresses: Array<string>;
|
|
3512
|
+
asset: Asset;
|
|
3513
|
+
/**
|
|
3514
|
+
* Blockchain ID on which this output is consumed on.
|
|
3515
|
+
*/
|
|
3516
|
+
consumedOnChainId: string;
|
|
3517
|
+
/**
|
|
3518
|
+
* Transaction ID that consumed this output.
|
|
3519
|
+
*/
|
|
3520
|
+
consumingTxHash?: string;
|
|
3521
|
+
/**
|
|
3522
|
+
* Blockchain ID on which this output is created on.
|
|
3523
|
+
*/
|
|
3524
|
+
createdOnChainId: string;
|
|
3525
|
+
/**
|
|
3526
|
+
* UTXO ID for this output.
|
|
3527
|
+
*/
|
|
3025
3528
|
utxoId: string;
|
|
3026
|
-
|
|
3027
|
-
|
|
3529
|
+
/**
|
|
3530
|
+
* @deprecated
|
|
3531
|
+
*/
|
|
3532
|
+
amount: string;
|
|
3533
|
+
/**
|
|
3534
|
+
* @deprecated
|
|
3535
|
+
*/
|
|
3536
|
+
assetId: string;
|
|
3028
3537
|
blockNumber: string;
|
|
3029
3538
|
blockTimestamp: number;
|
|
3030
|
-
consumingTxHash?: string;
|
|
3031
|
-
consumingBlockTimestamp?: number;
|
|
3032
3539
|
consumingBlockNumber?: string;
|
|
3033
|
-
|
|
3034
|
-
utxoType: UtxoType;
|
|
3035
|
-
amount: string;
|
|
3036
|
-
stakeableLocktime?: number;
|
|
3540
|
+
consumingBlockTimestamp?: number;
|
|
3037
3541
|
platformLocktime?: number;
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3542
|
+
outputIndex: number;
|
|
3543
|
+
rewardType?: RewardType;
|
|
3544
|
+
stakeableLocktime?: number;
|
|
3041
3545
|
staked?: boolean;
|
|
3042
|
-
|
|
3546
|
+
threshold?: number;
|
|
3547
|
+
txHash: string;
|
|
3043
3548
|
utxoEndTimestamp?: number;
|
|
3044
|
-
|
|
3549
|
+
utxoStartTimestamp?: number;
|
|
3550
|
+
utxoType: UtxoType;
|
|
3045
3551
|
};
|
|
3046
3552
|
|
|
3047
3553
|
type PChainTransaction = {
|
|
@@ -3069,15 +3575,15 @@ type PChainTransaction = {
|
|
|
3069
3575
|
/**
|
|
3070
3576
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3071
3577
|
*/
|
|
3072
|
-
value: Array<
|
|
3578
|
+
value: Array<Asset>;
|
|
3073
3579
|
/**
|
|
3074
3580
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3075
3581
|
*/
|
|
3076
|
-
amountBurned: Array<
|
|
3582
|
+
amountBurned: Array<Asset>;
|
|
3077
3583
|
/**
|
|
3078
3584
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3079
3585
|
*/
|
|
3080
|
-
amountStaked: Array<
|
|
3586
|
+
amountStaked: Array<Asset>;
|
|
3081
3587
|
/**
|
|
3082
3588
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3083
3589
|
*/
|
|
@@ -3103,6 +3609,7 @@ type PChainTransaction = {
|
|
|
3103
3609
|
*/
|
|
3104
3610
|
estimatedReward?: string;
|
|
3105
3611
|
rewardTxHash?: string;
|
|
3612
|
+
rewardAddresses?: Array<string>;
|
|
3106
3613
|
memo?: string;
|
|
3107
3614
|
/**
|
|
3108
3615
|
* Present for RewardValidatorTx
|
|
@@ -3119,6 +3626,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3119
3626
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3120
3627
|
};
|
|
3121
3628
|
|
|
3629
|
+
declare enum XChainTransactionType {
|
|
3630
|
+
BASE_TX = "BaseTx",
|
|
3631
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3632
|
+
OPERATION_TX = "OperationTx",
|
|
3633
|
+
IMPORT_TX = "ImportTx",
|
|
3634
|
+
EXPORT_TX = "ExportTx",
|
|
3635
|
+
UNKNOWN = "UNKNOWN"
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3122
3638
|
type XChainLinearTransaction = {
|
|
3123
3639
|
/**
|
|
3124
3640
|
* Unique ID for this transaction.
|
|
@@ -3135,7 +3651,7 @@ type XChainLinearTransaction = {
|
|
|
3135
3651
|
/**
|
|
3136
3652
|
* Type of transaction.
|
|
3137
3653
|
*/
|
|
3138
|
-
txType:
|
|
3654
|
+
txType: XChainTransactionType;
|
|
3139
3655
|
/**
|
|
3140
3656
|
* Hex encoded memo bytes for this transaction.
|
|
3141
3657
|
*/
|
|
@@ -3212,7 +3728,7 @@ type XChainNonLinearTransaction = {
|
|
|
3212
3728
|
/**
|
|
3213
3729
|
* Type of transaction.
|
|
3214
3730
|
*/
|
|
3215
|
-
txType:
|
|
3731
|
+
txType: XChainTransactionType;
|
|
3216
3732
|
/**
|
|
3217
3733
|
* Hex encoded memo bytes for this transaction.
|
|
3218
3734
|
*/
|
|
@@ -3270,16 +3786,18 @@ declare enum PChainId {
|
|
|
3270
3786
|
|
|
3271
3787
|
declare enum PrimaryNetworkTxType {
|
|
3272
3788
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3273
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3274
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3275
3789
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3276
|
-
|
|
3277
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3790
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3278
3791
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3279
3792
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3280
3793
|
IMPORT_TX = "ImportTx",
|
|
3281
3794
|
EXPORT_TX = "ExportTx",
|
|
3282
3795
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3796
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3797
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3798
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3799
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3800
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3283
3801
|
UNKNOWN = "UNKNOWN",
|
|
3284
3802
|
BASE_TX = "BaseTx",
|
|
3285
3803
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3311,7 +3829,11 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3311
3829
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
3312
3830
|
/**
|
|
3313
3831
|
* List latest transactions
|
|
3314
|
-
* Lists the latest transactions on one of the Primary Network chains.
|
|
3832
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
3833
|
+
*
|
|
3834
|
+
* Transactions are filterable by addresses.
|
|
3835
|
+
*
|
|
3836
|
+
* 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.
|
|
3315
3837
|
* @returns any
|
|
3316
3838
|
* @throws ApiError
|
|
3317
3839
|
*/
|
|
@@ -3605,11 +4127,14 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3605
4127
|
|
|
3606
4128
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3607
4129
|
declare class Glacier {
|
|
4130
|
+
readonly default: DefaultService;
|
|
3608
4131
|
readonly evmBalances: EvmBalancesService;
|
|
3609
4132
|
readonly evmBlocks: EvmBlocksService;
|
|
3610
4133
|
readonly evmChains: EvmChainsService;
|
|
4134
|
+
readonly evmContracts: EvmContractsService;
|
|
3611
4135
|
readonly evmTransactions: EvmTransactionsService;
|
|
3612
4136
|
readonly healthCheck: HealthCheckService;
|
|
4137
|
+
readonly nfTs: NfTsService;
|
|
3613
4138
|
readonly operations: OperationsService;
|
|
3614
4139
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
3615
4140
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -3639,4 +4164,4 @@ declare class ApiError extends Error {
|
|
|
3639
4164
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3640
4165
|
}
|
|
3641
4166
|
|
|
3642
|
-
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,
|
|
4167
|
+
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 };
|