@avalabs/glacier-sdk 2.8.0-canary.b9648ce.0 → 2.8.0-canary.b9aabd7.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 +1145 -424
- package/dist/index.js +429 -69
- package/esm/generated/Glacier.d.ts +8 -0
- package/esm/generated/Glacier.js +35 -10
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.js +11 -6
- package/esm/generated/core/request.js +14 -31
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +7 -3
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +14 -6
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/AddressActivityMetadata.d.ts +12 -0
- package/esm/generated/models/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/DeliveredSourceNotIndexedTeleporterMessage.d.ts +24 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +8 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +26 -0
- package/esm/generated/models/DeliveredTeleporterMessage.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 +3 -2
- package/esm/generated/models/ListWebhooksResponse.d.ts +11 -0
- package/esm/generated/models/NextPageToken.d.ts +8 -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/PendingTeleporterMessage.d.ts +24 -0
- package/esm/generated/models/PendingTeleporterMessage.js +8 -0
- 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/RemovedValidatorDetails.d.ts +19 -0
- package/esm/generated/models/RemovedValidatorDetails.js +8 -0
- package/esm/generated/models/RewardType.d.ts +2 -1
- package/esm/generated/models/RewardType.js +1 -0
- package/esm/generated/models/Rewards.d.ts +2 -0
- package/esm/generated/models/SharedSecretsResponse.d.ts +5 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +8 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -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/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/WebhookResponse.d.ts +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 -11
- package/esm/generated/services/PrimaryNetworkService.js +17 -7
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +5 -1
- package/esm/generated/services/TeleporterService.d.ts +65 -0
- package/esm/generated/services/TeleporterService.js +43 -0
- package/esm/index.d.ts +30 -1
- package/esm/index.js +23 -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,316 +858,161 @@ declare class EvmChainsService {
|
|
|
741
858
|
}): CancelablePromise<GetChainResponse>;
|
|
742
859
|
}
|
|
743
860
|
|
|
744
|
-
type
|
|
861
|
+
type ImageAsset = {
|
|
862
|
+
assetId?: string;
|
|
745
863
|
/**
|
|
746
|
-
*
|
|
864
|
+
* OUTPUT ONLY
|
|
747
865
|
*/
|
|
748
|
-
|
|
749
|
-
ercType: Erc1155Token.ercType;
|
|
750
|
-
tokenId: string;
|
|
751
|
-
tokenUri: string;
|
|
752
|
-
metadata: Erc1155TokenMetadata;
|
|
866
|
+
imageUri?: string;
|
|
753
867
|
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
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"
|
|
758
892
|
}
|
|
759
893
|
|
|
760
|
-
type
|
|
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>;
|
|
761
908
|
/**
|
|
762
909
|
* The contract name.
|
|
763
910
|
*/
|
|
764
|
-
name
|
|
911
|
+
name: string;
|
|
912
|
+
ercType: ContractSubmissionErc1155.ercType;
|
|
765
913
|
/**
|
|
766
914
|
* The contract symbol.
|
|
767
915
|
*/
|
|
768
|
-
symbol
|
|
769
|
-
|
|
770
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
771
|
-
*/
|
|
772
|
-
decimals?: number;
|
|
773
|
-
/**
|
|
774
|
-
* The logo uri for the address.
|
|
775
|
-
*/
|
|
776
|
-
logoUri?: string;
|
|
777
|
-
/**
|
|
778
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
779
|
-
*/
|
|
780
|
-
address: string;
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
type Erc1155TransferDetails = {
|
|
784
|
-
from: RichAddress;
|
|
785
|
-
to: RichAddress;
|
|
786
|
-
logIndex: number;
|
|
787
|
-
value: string;
|
|
788
|
-
erc1155Token: Erc1155Token;
|
|
916
|
+
symbol: string;
|
|
917
|
+
pricingProviders?: PricingProviders;
|
|
789
918
|
};
|
|
919
|
+
declare namespace ContractSubmissionErc1155 {
|
|
920
|
+
enum ercType {
|
|
921
|
+
ERC_1155 = "ERC-1155"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
790
924
|
|
|
791
|
-
type
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
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>;
|
|
796
934
|
/**
|
|
797
935
|
* The contract name.
|
|
798
936
|
*/
|
|
799
937
|
name: string;
|
|
938
|
+
ercType: ContractSubmissionErc20.ercType;
|
|
800
939
|
/**
|
|
801
940
|
* The contract symbol.
|
|
802
941
|
*/
|
|
803
942
|
symbol: string;
|
|
804
|
-
|
|
805
|
-
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
806
|
-
*/
|
|
807
|
-
decimals: number;
|
|
808
|
-
/**
|
|
809
|
-
* The logo uri for the address.
|
|
810
|
-
*/
|
|
811
|
-
logoUri?: string;
|
|
812
|
-
ercType: Erc20Token.ercType;
|
|
813
|
-
/**
|
|
814
|
-
* The token price, if available.
|
|
815
|
-
*/
|
|
816
|
-
price?: Money;
|
|
943
|
+
pricingProviders?: PricingProviders;
|
|
817
944
|
};
|
|
818
|
-
declare namespace
|
|
945
|
+
declare namespace ContractSubmissionErc20 {
|
|
819
946
|
enum ercType {
|
|
820
947
|
ERC_20 = "ERC-20"
|
|
821
948
|
}
|
|
822
949
|
}
|
|
823
950
|
|
|
824
|
-
type
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
/**
|
|
834
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
835
|
-
*/
|
|
836
|
-
address: string;
|
|
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>;
|
|
837
960
|
/**
|
|
838
961
|
* The contract name.
|
|
839
962
|
*/
|
|
840
963
|
name: string;
|
|
964
|
+
ercType: ContractSubmissionErc721.ercType;
|
|
841
965
|
/**
|
|
842
966
|
* The contract symbol.
|
|
843
967
|
*/
|
|
844
968
|
symbol: string;
|
|
845
|
-
ercType: Erc721Token.ercType;
|
|
846
|
-
tokenId: string;
|
|
847
|
-
tokenUri: string;
|
|
848
|
-
metadata: Erc721TokenMetadata;
|
|
849
|
-
/**
|
|
850
|
-
* A wallet or contract address in mixed-case checksum encoding.
|
|
851
|
-
*/
|
|
852
|
-
ownerAddress?: string;
|
|
853
969
|
};
|
|
854
|
-
declare namespace
|
|
970
|
+
declare namespace ContractSubmissionErc721 {
|
|
855
971
|
enum ercType {
|
|
856
972
|
ERC_721 = "ERC-721"
|
|
857
973
|
}
|
|
858
974
|
}
|
|
859
975
|
|
|
860
|
-
type
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
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;
|
|
865
990
|
};
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
991
|
+
declare namespace ContractSubmissionUnknown {
|
|
992
|
+
enum ercType {
|
|
993
|
+
UNKNOWN = "UNKNOWN"
|
|
994
|
+
}
|
|
871
995
|
}
|
|
872
996
|
|
|
873
|
-
type
|
|
874
|
-
|
|
875
|
-
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
876
|
-
*/
|
|
877
|
-
callType: TransactionMethodType;
|
|
878
|
-
/**
|
|
879
|
-
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
880
|
-
*/
|
|
881
|
-
methodHash: string;
|
|
882
|
-
/**
|
|
883
|
-
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
884
|
-
*/
|
|
885
|
-
methodName?: string;
|
|
997
|
+
type ContractSubmissionBody = {
|
|
998
|
+
contract: (ContractSubmissionErc1155 | ContractSubmissionErc20 | ContractSubmissionErc721 | ContractSubmissionUnknown);
|
|
886
999
|
};
|
|
887
1000
|
|
|
888
|
-
type
|
|
1001
|
+
type ContractDeploymentDetails = {
|
|
1002
|
+
txHash: string;
|
|
889
1003
|
/**
|
|
890
|
-
* The
|
|
1004
|
+
* The address that initiated the transaction which deployed this contract.
|
|
891
1005
|
*/
|
|
892
|
-
|
|
1006
|
+
deployerAddress: string;
|
|
893
1007
|
/**
|
|
894
|
-
* The
|
|
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.
|
|
895
1009
|
*/
|
|
896
|
-
|
|
1010
|
+
deployerContractAddress?: string;
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
type Erc1155Contract = {
|
|
897
1014
|
/**
|
|
898
|
-
* The
|
|
899
|
-
*/
|
|
900
|
-
blockHash: string;
|
|
901
|
-
/**
|
|
902
|
-
* The index at which the transaction occured in the block (0-indexed).
|
|
903
|
-
*/
|
|
904
|
-
blockIndex: number;
|
|
905
|
-
/**
|
|
906
|
-
* The transaction hash identifier.
|
|
907
|
-
*/
|
|
908
|
-
txHash: string;
|
|
909
|
-
/**
|
|
910
|
-
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
911
|
-
*/
|
|
912
|
-
txStatus: string;
|
|
913
|
-
/**
|
|
914
|
-
* The transaction type.
|
|
915
|
-
*/
|
|
916
|
-
txType: number;
|
|
917
|
-
/**
|
|
918
|
-
* The gas limit set for the transaction.
|
|
919
|
-
*/
|
|
920
|
-
gasLimit: string;
|
|
921
|
-
/**
|
|
922
|
-
* The amount of gas used.
|
|
923
|
-
*/
|
|
924
|
-
gasUsed: string;
|
|
925
|
-
/**
|
|
926
|
-
* The gas price denominated by the number of decimals of the native token.
|
|
927
|
-
*/
|
|
928
|
-
gasPrice: string;
|
|
929
|
-
/**
|
|
930
|
-
* The nonce used by the sender of the transaction.
|
|
931
|
-
*/
|
|
932
|
-
nonce: string;
|
|
933
|
-
from: RichAddress;
|
|
934
|
-
to: RichAddress;
|
|
935
|
-
method?: Method;
|
|
936
|
-
value: string;
|
|
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.
|
|
1015
|
+
* The contract name.
|
|
1054
1016
|
*/
|
|
1055
1017
|
name?: string;
|
|
1056
1018
|
description?: string;
|
|
@@ -1059,7 +1021,6 @@ type Erc1155Contract = {
|
|
|
1059
1021
|
logoAsset?: ImageAsset;
|
|
1060
1022
|
bannerAsset?: ImageAsset;
|
|
1061
1023
|
color?: string;
|
|
1062
|
-
coingeckoCoinId?: string;
|
|
1063
1024
|
resourceLinks?: Array<ResourceLink>;
|
|
1064
1025
|
tags?: Array<string>;
|
|
1065
1026
|
/**
|
|
@@ -1072,6 +1033,7 @@ type Erc1155Contract = {
|
|
|
1072
1033
|
* The contract symbol.
|
|
1073
1034
|
*/
|
|
1074
1035
|
symbol?: string;
|
|
1036
|
+
pricingProviders?: PricingProviders;
|
|
1075
1037
|
};
|
|
1076
1038
|
declare namespace Erc1155Contract {
|
|
1077
1039
|
enum ercType {
|
|
@@ -1090,7 +1052,6 @@ type Erc20Contract = {
|
|
|
1090
1052
|
logoAsset?: ImageAsset;
|
|
1091
1053
|
bannerAsset?: ImageAsset;
|
|
1092
1054
|
color?: string;
|
|
1093
|
-
coingeckoCoinId?: string;
|
|
1094
1055
|
resourceLinks?: Array<ResourceLink>;
|
|
1095
1056
|
tags?: Array<string>;
|
|
1096
1057
|
/**
|
|
@@ -1107,6 +1068,7 @@ type Erc20Contract = {
|
|
|
1107
1068
|
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1108
1069
|
*/
|
|
1109
1070
|
decimals: number;
|
|
1071
|
+
pricingProviders?: PricingProviders;
|
|
1110
1072
|
};
|
|
1111
1073
|
declare namespace Erc20Contract {
|
|
1112
1074
|
enum ercType {
|
|
@@ -1125,7 +1087,6 @@ type Erc721Contract = {
|
|
|
1125
1087
|
logoAsset?: ImageAsset;
|
|
1126
1088
|
bannerAsset?: ImageAsset;
|
|
1127
1089
|
color?: string;
|
|
1128
|
-
coingeckoCoinId?: string;
|
|
1129
1090
|
resourceLinks?: Array<ResourceLink>;
|
|
1130
1091
|
tags?: Array<string>;
|
|
1131
1092
|
/**
|
|
@@ -1147,37 +1108,336 @@ declare namespace Erc721Contract {
|
|
|
1147
1108
|
|
|
1148
1109
|
type UnknownContract = {
|
|
1149
1110
|
/**
|
|
1150
|
-
* The contract name.
|
|
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
|
+
|
|
1177
|
+
type Erc1155Token = {
|
|
1178
|
+
/**
|
|
1179
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1180
|
+
*/
|
|
1181
|
+
address: string;
|
|
1182
|
+
ercType: Erc1155Token.ercType;
|
|
1183
|
+
tokenId: string;
|
|
1184
|
+
tokenUri: string;
|
|
1185
|
+
metadata: Erc1155TokenMetadata;
|
|
1186
|
+
};
|
|
1187
|
+
declare namespace Erc1155Token {
|
|
1188
|
+
enum ercType {
|
|
1189
|
+
ERC_1155 = "ERC-1155"
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
type RichAddress = {
|
|
1194
|
+
/**
|
|
1195
|
+
* The contract name.
|
|
1196
|
+
*/
|
|
1197
|
+
name?: string;
|
|
1198
|
+
/**
|
|
1199
|
+
* The contract symbol.
|
|
1200
|
+
*/
|
|
1201
|
+
symbol?: string;
|
|
1202
|
+
/**
|
|
1203
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1204
|
+
*/
|
|
1205
|
+
decimals?: number;
|
|
1206
|
+
/**
|
|
1207
|
+
* The logo uri for the address.
|
|
1208
|
+
*/
|
|
1209
|
+
logoUri?: string;
|
|
1210
|
+
/**
|
|
1211
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1212
|
+
*/
|
|
1213
|
+
address: string;
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1216
|
+
type Erc1155TransferDetails = {
|
|
1217
|
+
from: RichAddress;
|
|
1218
|
+
to: RichAddress;
|
|
1219
|
+
logIndex: number;
|
|
1220
|
+
value: string;
|
|
1221
|
+
erc1155Token: Erc1155Token;
|
|
1222
|
+
};
|
|
1223
|
+
|
|
1224
|
+
type Erc20Token = {
|
|
1225
|
+
/**
|
|
1226
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1227
|
+
*/
|
|
1228
|
+
address: string;
|
|
1229
|
+
/**
|
|
1230
|
+
* The contract name.
|
|
1231
|
+
*/
|
|
1232
|
+
name: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* The contract symbol.
|
|
1235
|
+
*/
|
|
1236
|
+
symbol: string;
|
|
1237
|
+
/**
|
|
1238
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
1239
|
+
*/
|
|
1240
|
+
decimals: number;
|
|
1241
|
+
/**
|
|
1242
|
+
* The logo uri for the address.
|
|
1243
|
+
*/
|
|
1244
|
+
logoUri?: string;
|
|
1245
|
+
ercType: Erc20Token.ercType;
|
|
1246
|
+
/**
|
|
1247
|
+
* The token price, if available.
|
|
1248
|
+
*/
|
|
1249
|
+
price?: Money;
|
|
1250
|
+
};
|
|
1251
|
+
declare namespace Erc20Token {
|
|
1252
|
+
enum ercType {
|
|
1253
|
+
ERC_20 = "ERC-20"
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
type Erc20TransferDetails = {
|
|
1258
|
+
from: RichAddress;
|
|
1259
|
+
to: RichAddress;
|
|
1260
|
+
logIndex: number;
|
|
1261
|
+
value: string;
|
|
1262
|
+
erc20Token: Erc20Token;
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
type Erc721Token = {
|
|
1266
|
+
/**
|
|
1267
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1268
|
+
*/
|
|
1269
|
+
address: string;
|
|
1270
|
+
/**
|
|
1271
|
+
* The contract name.
|
|
1272
|
+
*/
|
|
1273
|
+
name: string;
|
|
1274
|
+
/**
|
|
1275
|
+
* The contract symbol.
|
|
1276
|
+
*/
|
|
1277
|
+
symbol: string;
|
|
1278
|
+
ercType: Erc721Token.ercType;
|
|
1279
|
+
tokenId: string;
|
|
1280
|
+
tokenUri: string;
|
|
1281
|
+
metadata: Erc721TokenMetadata;
|
|
1282
|
+
/**
|
|
1283
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
1284
|
+
*/
|
|
1285
|
+
ownerAddress?: string;
|
|
1286
|
+
};
|
|
1287
|
+
declare namespace Erc721Token {
|
|
1288
|
+
enum ercType {
|
|
1289
|
+
ERC_721 = "ERC-721"
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
type Erc721TransferDetails = {
|
|
1294
|
+
from: RichAddress;
|
|
1295
|
+
to: RichAddress;
|
|
1296
|
+
logIndex: number;
|
|
1297
|
+
erc721Token: Erc721Token;
|
|
1298
|
+
};
|
|
1299
|
+
|
|
1300
|
+
declare enum TransactionMethodType {
|
|
1301
|
+
NATIVE_TRANSFER = "NATIVE_TRANSFER",
|
|
1302
|
+
CONTRACT_CALL = "CONTRACT_CALL",
|
|
1303
|
+
CONTRACT_CREATION = "CONTRACT_CREATION"
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
type Method = {
|
|
1307
|
+
/**
|
|
1308
|
+
* The contract call type. NATIVE_TRANSFER indicates a transfer of the native token without any smart-contract interaction. CONTRACT_CALL indicates a smart-contract interaction. CONTRACT_CREATION indicates a smart-contract creation.
|
|
1309
|
+
*/
|
|
1310
|
+
callType: TransactionMethodType;
|
|
1311
|
+
/**
|
|
1312
|
+
* The contract method hash identifier. The method hash is only set if the `callType` is `CONTRACT_CALL`.
|
|
1313
|
+
*/
|
|
1314
|
+
methodHash: string;
|
|
1315
|
+
/**
|
|
1316
|
+
* The contract method name including parameter types. If the `callType` is `NATIVE_TRANSFER` this is set to 'Native Transfer'. If the `callType` is `CONTRACT_CREATION` this is set to 'Contract Created'.
|
|
1317
|
+
*/
|
|
1318
|
+
methodName?: string;
|
|
1319
|
+
};
|
|
1320
|
+
|
|
1321
|
+
type FullNativeTransactionDetails = {
|
|
1322
|
+
/**
|
|
1323
|
+
* The block number on the chain.
|
|
1324
|
+
*/
|
|
1325
|
+
blockNumber: string;
|
|
1326
|
+
/**
|
|
1327
|
+
* The block finality timestamp.
|
|
1328
|
+
*/
|
|
1329
|
+
blockTimestamp: number;
|
|
1330
|
+
/**
|
|
1331
|
+
* The block hash identifier.
|
|
1332
|
+
*/
|
|
1333
|
+
blockHash: string;
|
|
1334
|
+
/**
|
|
1335
|
+
* The index at which the transaction occured in the block (0-indexed).
|
|
1336
|
+
*/
|
|
1337
|
+
blockIndex: number;
|
|
1338
|
+
/**
|
|
1339
|
+
* The transaction hash identifier.
|
|
1340
|
+
*/
|
|
1341
|
+
txHash: string;
|
|
1342
|
+
/**
|
|
1343
|
+
* The transaction status, which is either 0 (failed) or 1 (successful).
|
|
1344
|
+
*/
|
|
1345
|
+
txStatus: string;
|
|
1346
|
+
/**
|
|
1347
|
+
* The transaction type.
|
|
1348
|
+
*/
|
|
1349
|
+
txType: number;
|
|
1350
|
+
/**
|
|
1351
|
+
* The gas limit set for the transaction.
|
|
1352
|
+
*/
|
|
1353
|
+
gasLimit: string;
|
|
1354
|
+
/**
|
|
1355
|
+
* The amount of gas used.
|
|
1356
|
+
*/
|
|
1357
|
+
gasUsed: string;
|
|
1358
|
+
/**
|
|
1359
|
+
* The gas price denominated by the number of decimals of the native token.
|
|
1360
|
+
*/
|
|
1361
|
+
gasPrice: string;
|
|
1362
|
+
/**
|
|
1363
|
+
* The nonce used by the sender of the transaction.
|
|
1364
|
+
*/
|
|
1365
|
+
nonce: string;
|
|
1366
|
+
from: RichAddress;
|
|
1367
|
+
to: RichAddress;
|
|
1368
|
+
method?: Method;
|
|
1369
|
+
value: string;
|
|
1370
|
+
/**
|
|
1371
|
+
* The data sent for the transaction.
|
|
1372
|
+
*/
|
|
1373
|
+
input: string;
|
|
1374
|
+
baseFeePerGas: string;
|
|
1375
|
+
maxFeePerGas?: string;
|
|
1376
|
+
maxPriorityFeePerGas?: string;
|
|
1377
|
+
};
|
|
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"
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
type InternalTransactionDetails = {
|
|
1390
|
+
from: RichAddress;
|
|
1391
|
+
to: RichAddress;
|
|
1392
|
+
internalTxType: InternalTransactionOpCall;
|
|
1393
|
+
value: string;
|
|
1394
|
+
/**
|
|
1395
|
+
* True if the internal transaction was reverted.
|
|
1396
|
+
*/
|
|
1397
|
+
isReverted: boolean;
|
|
1398
|
+
gasUsed: string;
|
|
1399
|
+
gasLimit: string;
|
|
1400
|
+
};
|
|
1401
|
+
|
|
1402
|
+
type NetworkTokenDetails = {
|
|
1403
|
+
networkToken: NetworkToken;
|
|
1404
|
+
/**
|
|
1405
|
+
* The current token price, if available.
|
|
1406
|
+
*/
|
|
1407
|
+
currentPrice?: Money;
|
|
1408
|
+
/**
|
|
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.
|
|
1410
|
+
*/
|
|
1411
|
+
historicalPrice?: Money;
|
|
1412
|
+
};
|
|
1413
|
+
|
|
1414
|
+
type GetTransactionResponse = {
|
|
1415
|
+
/**
|
|
1416
|
+
* The list of ERC-20 transfers.
|
|
1151
1417
|
*/
|
|
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>;
|
|
1418
|
+
erc20Transfers?: Array<Erc20TransferDetails>;
|
|
1162
1419
|
/**
|
|
1163
|
-
*
|
|
1420
|
+
* The list of ERC-721 transfers.
|
|
1164
1421
|
*/
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
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;
|
|
1168
1433
|
};
|
|
1169
|
-
declare namespace UnknownContract {
|
|
1170
|
-
enum ercType {
|
|
1171
|
-
UNKNOWN = "UNKNOWN"
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
1434
|
|
|
1175
1435
|
type ListContractsResponse = {
|
|
1176
1436
|
/**
|
|
1177
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.
|
|
1178
1438
|
*/
|
|
1179
1439
|
nextPageToken?: string;
|
|
1180
|
-
contracts: Array<(
|
|
1440
|
+
contracts: Array<(Erc721Contract | Erc1155Contract | Erc20Contract | UnknownContract)>;
|
|
1181
1441
|
};
|
|
1182
1442
|
|
|
1183
1443
|
type Erc1155Transfer = {
|
|
@@ -1482,7 +1742,13 @@ declare class EvmTransactionsService {
|
|
|
1482
1742
|
* A wallet address.
|
|
1483
1743
|
*/
|
|
1484
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
|
+
*/
|
|
1485
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
|
+
*/
|
|
1486
1752
|
endBlock?: number;
|
|
1487
1753
|
/**
|
|
1488
1754
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1518,7 +1784,13 @@ declare class EvmTransactionsService {
|
|
|
1518
1784
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
1519
1785
|
*/
|
|
1520
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
|
+
*/
|
|
1521
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
|
+
*/
|
|
1522
1794
|
endBlock?: number;
|
|
1523
1795
|
/**
|
|
1524
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.
|
|
@@ -1540,7 +1812,13 @@ declare class EvmTransactionsService {
|
|
|
1540
1812
|
* A wallet address.
|
|
1541
1813
|
*/
|
|
1542
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
|
+
*/
|
|
1543
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
|
+
*/
|
|
1544
1822
|
endBlock?: number;
|
|
1545
1823
|
/**
|
|
1546
1824
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1566,7 +1844,13 @@ declare class EvmTransactionsService {
|
|
|
1566
1844
|
* A wallet address.
|
|
1567
1845
|
*/
|
|
1568
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
|
+
*/
|
|
1569
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
|
+
*/
|
|
1570
1854
|
endBlock?: number;
|
|
1571
1855
|
/**
|
|
1572
1856
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1592,7 +1876,13 @@ declare class EvmTransactionsService {
|
|
|
1592
1876
|
* A wallet address.
|
|
1593
1877
|
*/
|
|
1594
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
|
+
*/
|
|
1595
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
|
+
*/
|
|
1596
1886
|
endBlock?: number;
|
|
1597
1887
|
/**
|
|
1598
1888
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1618,7 +1908,13 @@ declare class EvmTransactionsService {
|
|
|
1618
1908
|
* A wallet address.
|
|
1619
1909
|
*/
|
|
1620
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
|
+
*/
|
|
1621
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
|
+
*/
|
|
1622
1918
|
endBlock?: number;
|
|
1623
1919
|
/**
|
|
1624
1920
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1646,7 +1942,13 @@ declare class EvmTransactionsService {
|
|
|
1646
1942
|
* A wallet address.
|
|
1647
1943
|
*/
|
|
1648
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
|
+
*/
|
|
1649
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
|
+
*/
|
|
1650
1952
|
endBlock?: number;
|
|
1651
1953
|
/**
|
|
1652
1954
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
@@ -1731,6 +2033,83 @@ declare class HealthCheckService {
|
|
|
1731
2033
|
}>;
|
|
1732
2034
|
}
|
|
1733
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
|
+
|
|
1734
2113
|
type EvmNetworkOptions = {
|
|
1735
2114
|
addresses: Array<string>;
|
|
1736
2115
|
includeChains: Array<string>;
|
|
@@ -1825,17 +2204,6 @@ type OperationStatusResponse = {
|
|
|
1825
2204
|
declare class OperationsService {
|
|
1826
2205
|
readonly httpRequest: BaseHttpRequest;
|
|
1827
2206
|
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
2207
|
/**
|
|
1840
2208
|
* Get operation
|
|
1841
2209
|
* Gets operation details for the given operation id.
|
|
@@ -1848,6 +2216,17 @@ declare class OperationsService {
|
|
|
1848
2216
|
*/
|
|
1849
2217
|
operationId: string;
|
|
1850
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>;
|
|
1851
2230
|
}
|
|
1852
2231
|
|
|
1853
2232
|
declare enum BlockchainIds {
|
|
@@ -1916,39 +2295,57 @@ type ListBlockchainsResponse = {
|
|
|
1916
2295
|
|
|
1917
2296
|
type ActiveDelegatorDetails = {
|
|
1918
2297
|
txHash: string;
|
|
2298
|
+
nodeId: string;
|
|
1919
2299
|
rewardAddresses: Array<string>;
|
|
1920
2300
|
amountDelegated: string;
|
|
1921
2301
|
delegationFee: string;
|
|
1922
2302
|
startTimestamp: number;
|
|
1923
2303
|
endTimestamp: number;
|
|
1924
|
-
delegationStatus: DelegationStatusType;
|
|
1925
2304
|
estimatedGrossReward: string;
|
|
1926
2305
|
estimatedNetReward: string;
|
|
2306
|
+
delegationStatus: ActiveDelegatorDetails.delegationStatus;
|
|
1927
2307
|
};
|
|
2308
|
+
declare namespace ActiveDelegatorDetails {
|
|
2309
|
+
enum delegationStatus {
|
|
2310
|
+
ACTIVE = "active"
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
1928
2313
|
|
|
1929
2314
|
type CompletedDelegatorDetails = {
|
|
1930
2315
|
txHash: string;
|
|
2316
|
+
nodeId: string;
|
|
1931
2317
|
rewardAddresses: Array<string>;
|
|
1932
2318
|
amountDelegated: string;
|
|
1933
2319
|
delegationFee: string;
|
|
1934
2320
|
startTimestamp: number;
|
|
1935
2321
|
endTimestamp: number;
|
|
1936
|
-
delegationStatus: DelegationStatusType;
|
|
1937
2322
|
grossReward: string;
|
|
1938
2323
|
netReward: string;
|
|
2324
|
+
delegationStatus: CompletedDelegatorDetails.delegationStatus;
|
|
1939
2325
|
};
|
|
2326
|
+
declare namespace CompletedDelegatorDetails {
|
|
2327
|
+
enum delegationStatus {
|
|
2328
|
+
COMPLETED = "completed"
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
1940
2331
|
|
|
1941
2332
|
type PendingDelegatorDetails = {
|
|
1942
2333
|
txHash: string;
|
|
2334
|
+
nodeId: string;
|
|
1943
2335
|
rewardAddresses: Array<string>;
|
|
1944
2336
|
amountDelegated: string;
|
|
1945
2337
|
delegationFee: string;
|
|
1946
2338
|
startTimestamp: number;
|
|
1947
2339
|
endTimestamp: number;
|
|
1948
|
-
delegationStatus: DelegationStatusType;
|
|
1949
2340
|
estimatedGrossReward: string;
|
|
1950
2341
|
estimatedNetReward: string;
|
|
2342
|
+
delegationStatus: PendingDelegatorDetails.delegationStatus;
|
|
1951
2343
|
};
|
|
2344
|
+
declare namespace PendingDelegatorDetails {
|
|
2345
|
+
enum delegationStatus {
|
|
2346
|
+
PENDING = "pending"
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
1952
2349
|
|
|
1953
2350
|
type ListDelegatorDetailsResponse = {
|
|
1954
2351
|
/**
|
|
@@ -1986,49 +2383,104 @@ type ListSubnetsResponse = {
|
|
|
1986
2383
|
type Rewards = {
|
|
1987
2384
|
validationRewardAmount: string;
|
|
1988
2385
|
delegationRewardAmount: string;
|
|
2386
|
+
rewardAddresses?: Array<string>;
|
|
2387
|
+
rewardTxHash?: string;
|
|
1989
2388
|
};
|
|
1990
2389
|
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
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.
|
|
2405
|
+
*/
|
|
2406
|
+
benchedCChainRequestsPercent: number;
|
|
2407
|
+
};
|
|
1996
2408
|
|
|
1997
2409
|
type ActiveValidatorDetails = {
|
|
2410
|
+
txHash: string;
|
|
1998
2411
|
nodeId: string;
|
|
2412
|
+
subnetId: string;
|
|
1999
2413
|
amountStaked: string;
|
|
2000
|
-
delegationFee
|
|
2414
|
+
delegationFee?: string;
|
|
2001
2415
|
startTimestamp: number;
|
|
2002
2416
|
endTimestamp: number;
|
|
2003
|
-
validationStatus: ValidationStatusType;
|
|
2004
2417
|
stakePercentage: number;
|
|
2005
2418
|
delegatorCount: number;
|
|
2006
|
-
amountDelegated
|
|
2419
|
+
amountDelegated?: string;
|
|
2007
2420
|
uptimePerformance: number;
|
|
2008
|
-
avalancheGoVersion
|
|
2009
|
-
delegationCapacity
|
|
2421
|
+
avalancheGoVersion?: string;
|
|
2422
|
+
delegationCapacity?: string;
|
|
2010
2423
|
potentialRewards: Rewards;
|
|
2424
|
+
validationStatus: ActiveValidatorDetails.validationStatus;
|
|
2425
|
+
validatorHealth: ValidatorHealthDetails;
|
|
2011
2426
|
};
|
|
2427
|
+
declare namespace ActiveValidatorDetails {
|
|
2428
|
+
enum validationStatus {
|
|
2429
|
+
ACTIVE = "active"
|
|
2430
|
+
}
|
|
2431
|
+
}
|
|
2012
2432
|
|
|
2013
2433
|
type CompletedValidatorDetails = {
|
|
2434
|
+
txHash: string;
|
|
2014
2435
|
nodeId: string;
|
|
2436
|
+
subnetId: string;
|
|
2015
2437
|
amountStaked: string;
|
|
2016
|
-
delegationFee
|
|
2438
|
+
delegationFee?: string;
|
|
2017
2439
|
startTimestamp: number;
|
|
2018
2440
|
endTimestamp: number;
|
|
2019
|
-
validationStatus: ValidationStatusType;
|
|
2020
2441
|
delegatorCount: number;
|
|
2021
2442
|
rewards: Rewards;
|
|
2443
|
+
validationStatus: CompletedValidatorDetails.validationStatus;
|
|
2022
2444
|
};
|
|
2445
|
+
declare namespace CompletedValidatorDetails {
|
|
2446
|
+
enum validationStatus {
|
|
2447
|
+
COMPLETED = "completed"
|
|
2448
|
+
}
|
|
2449
|
+
}
|
|
2023
2450
|
|
|
2024
2451
|
type PendingValidatorDetails = {
|
|
2452
|
+
txHash: string;
|
|
2025
2453
|
nodeId: string;
|
|
2454
|
+
subnetId: string;
|
|
2026
2455
|
amountStaked: string;
|
|
2027
|
-
delegationFee
|
|
2456
|
+
delegationFee?: string;
|
|
2457
|
+
startTimestamp: number;
|
|
2458
|
+
endTimestamp: number;
|
|
2459
|
+
validationStatus: PendingValidatorDetails.validationStatus;
|
|
2460
|
+
};
|
|
2461
|
+
declare namespace PendingValidatorDetails {
|
|
2462
|
+
enum validationStatus {
|
|
2463
|
+
PENDING = "pending"
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
type RemovedValidatorDetails = {
|
|
2468
|
+
txHash: string;
|
|
2469
|
+
nodeId: string;
|
|
2470
|
+
subnetId: string;
|
|
2471
|
+
amountStaked: string;
|
|
2472
|
+
delegationFee?: string;
|
|
2028
2473
|
startTimestamp: number;
|
|
2029
2474
|
endTimestamp: number;
|
|
2030
|
-
|
|
2475
|
+
removeTxHash: string;
|
|
2476
|
+
removeTimestamp: number;
|
|
2477
|
+
validationStatus: RemovedValidatorDetails.validationStatus;
|
|
2031
2478
|
};
|
|
2479
|
+
declare namespace RemovedValidatorDetails {
|
|
2480
|
+
enum validationStatus {
|
|
2481
|
+
REMOVED = "removed"
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2032
2484
|
|
|
2033
2485
|
type ListValidatorDetailsResponse = {
|
|
2034
2486
|
/**
|
|
@@ -2036,9 +2488,9 @@ type ListValidatorDetailsResponse = {
|
|
|
2036
2488
|
*/
|
|
2037
2489
|
nextPageToken?: string;
|
|
2038
2490
|
/**
|
|
2039
|
-
* The list of
|
|
2491
|
+
* The list of validator Details.
|
|
2040
2492
|
*/
|
|
2041
|
-
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails)>;
|
|
2493
|
+
validators: Array<(CompletedValidatorDetails | ActiveValidatorDetails | PendingValidatorDetails | RemovedValidatorDetails)>;
|
|
2042
2494
|
};
|
|
2043
2495
|
|
|
2044
2496
|
declare enum Network {
|
|
@@ -2046,6 +2498,13 @@ declare enum Network {
|
|
|
2046
2498
|
FUJI = "fuji"
|
|
2047
2499
|
}
|
|
2048
2500
|
|
|
2501
|
+
declare enum ValidationStatusType {
|
|
2502
|
+
COMPLETED = "completed",
|
|
2503
|
+
ACTIVE = "active",
|
|
2504
|
+
PENDING = "pending",
|
|
2505
|
+
REMOVED = "removed"
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2049
2508
|
type XChainAssetDetails = {
|
|
2050
2509
|
/**
|
|
2051
2510
|
* Unique ID for an asset.
|
|
@@ -2188,7 +2647,7 @@ declare class PrimaryNetworkService {
|
|
|
2188
2647
|
* @returns ListValidatorDetailsResponse
|
|
2189
2648
|
* @throws ApiError
|
|
2190
2649
|
*/
|
|
2191
|
-
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, }: {
|
|
2650
|
+
listValidators({ network, pageSize, pageToken, nodeIds, sortOrder, validationStatus, minDelegationCapacity, maxDelegationCapacity, minTimeRemaining, maxTimeRemaining, minFeePercentage, maxFeePercentage, subnetId, }: {
|
|
2192
2651
|
/**
|
|
2193
2652
|
* Either mainnet or a testnet.
|
|
2194
2653
|
*/
|
|
@@ -2214,9 +2673,33 @@ declare class PrimaryNetworkService {
|
|
|
2214
2673
|
*/
|
|
2215
2674
|
validationStatus?: ValidationStatusType;
|
|
2216
2675
|
/**
|
|
2217
|
-
* The minimum delegation capacity, used to filter the set of nodes being returned
|
|
2676
|
+
* 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
2677
|
*/
|
|
2219
2678
|
minDelegationCapacity?: any;
|
|
2679
|
+
/**
|
|
2680
|
+
* 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.
|
|
2681
|
+
*/
|
|
2682
|
+
maxDelegationCapacity?: any;
|
|
2683
|
+
/**
|
|
2684
|
+
* The minimum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2685
|
+
*/
|
|
2686
|
+
minTimeRemaining?: any;
|
|
2687
|
+
/**
|
|
2688
|
+
* The maximum validation time remaining, in seconds, used to filter the set of nodes being returned.
|
|
2689
|
+
*/
|
|
2690
|
+
maxTimeRemaining?: any;
|
|
2691
|
+
/**
|
|
2692
|
+
* 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.
|
|
2693
|
+
*/
|
|
2694
|
+
minFeePercentage?: any;
|
|
2695
|
+
/**
|
|
2696
|
+
* 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.
|
|
2697
|
+
*/
|
|
2698
|
+
maxFeePercentage?: any;
|
|
2699
|
+
/**
|
|
2700
|
+
* The subnet ID to filter by. If not provided, then all subnets will be returned.
|
|
2701
|
+
*/
|
|
2702
|
+
subnetId?: string;
|
|
2220
2703
|
}): CancelablePromise<ListValidatorDetailsResponse>;
|
|
2221
2704
|
/**
|
|
2222
2705
|
* Get single validator details
|
|
@@ -2256,15 +2739,11 @@ declare class PrimaryNetworkService {
|
|
|
2256
2739
|
* @returns ListDelegatorDetailsResponse
|
|
2257
2740
|
* @throws ApiError
|
|
2258
2741
|
*/
|
|
2259
|
-
listDelegators({ network,
|
|
2742
|
+
listDelegators({ network, pageSize, pageToken, rewardAddresses, sortOrder, delegationStatus, nodeIds, }: {
|
|
2260
2743
|
/**
|
|
2261
2744
|
* Either mainnet or a testnet.
|
|
2262
2745
|
*/
|
|
2263
2746
|
network: Network;
|
|
2264
|
-
/**
|
|
2265
|
-
* A primary network (P or X chain) nodeId.
|
|
2266
|
-
*/
|
|
2267
|
-
nodeId: string;
|
|
2268
2747
|
/**
|
|
2269
2748
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
2270
2749
|
*/
|
|
@@ -2273,6 +2752,10 @@ declare class PrimaryNetworkService {
|
|
|
2273
2752
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2274
2753
|
*/
|
|
2275
2754
|
pageToken?: string;
|
|
2755
|
+
/**
|
|
2756
|
+
* A comma separated list of reward addresses to filter by.
|
|
2757
|
+
*/
|
|
2758
|
+
rewardAddresses?: string;
|
|
2276
2759
|
/**
|
|
2277
2760
|
* 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
2761
|
*/
|
|
@@ -2281,10 +2764,6 @@ declare class PrimaryNetworkService {
|
|
|
2281
2764
|
* Delegation status of the node.
|
|
2282
2765
|
*/
|
|
2283
2766
|
delegationStatus?: DelegationStatusType;
|
|
2284
|
-
/**
|
|
2285
|
-
* A comma separated list of reward addresses to filter by.
|
|
2286
|
-
*/
|
|
2287
|
-
rewardAddresses?: string;
|
|
2288
2767
|
/**
|
|
2289
2768
|
* A comma separated list of node ids to filter by.
|
|
2290
2769
|
*/
|
|
@@ -2358,13 +2837,57 @@ type ListCChainAtomicBalancesResponse = {
|
|
|
2358
2837
|
chainInfo: PrimaryNetworkChainInfo;
|
|
2359
2838
|
};
|
|
2360
2839
|
|
|
2361
|
-
type
|
|
2840
|
+
type Asset = {
|
|
2841
|
+
/**
|
|
2842
|
+
* Unique ID for an asset.
|
|
2843
|
+
*/
|
|
2362
2844
|
assetId: string;
|
|
2845
|
+
/**
|
|
2846
|
+
* Name of this asset.
|
|
2847
|
+
*/
|
|
2848
|
+
name: string;
|
|
2849
|
+
/**
|
|
2850
|
+
* Symbol for this asset (max 4 characters).
|
|
2851
|
+
*/
|
|
2852
|
+
symbol: string;
|
|
2853
|
+
/**
|
|
2854
|
+
* Denomination of this asset to represent fungibility.
|
|
2855
|
+
*/
|
|
2856
|
+
denomination: number;
|
|
2857
|
+
/**
|
|
2858
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2859
|
+
*/
|
|
2860
|
+
type: string;
|
|
2861
|
+
/**
|
|
2862
|
+
* Amount of the asset.
|
|
2863
|
+
*/
|
|
2363
2864
|
amount: string;
|
|
2364
2865
|
};
|
|
2365
2866
|
|
|
2366
2867
|
type PChainSharedAsset = {
|
|
2868
|
+
/**
|
|
2869
|
+
* Unique ID for an asset.
|
|
2870
|
+
*/
|
|
2367
2871
|
assetId: string;
|
|
2872
|
+
/**
|
|
2873
|
+
* Name of this asset.
|
|
2874
|
+
*/
|
|
2875
|
+
name: string;
|
|
2876
|
+
/**
|
|
2877
|
+
* Symbol for this asset (max 4 characters).
|
|
2878
|
+
*/
|
|
2879
|
+
symbol: string;
|
|
2880
|
+
/**
|
|
2881
|
+
* Denomination of this asset to represent fungibility.
|
|
2882
|
+
*/
|
|
2883
|
+
denomination: number;
|
|
2884
|
+
/**
|
|
2885
|
+
* Type of asset like SECP256K1 or NFT.
|
|
2886
|
+
*/
|
|
2887
|
+
type: string;
|
|
2888
|
+
/**
|
|
2889
|
+
* Amount of the asset.
|
|
2890
|
+
*/
|
|
2368
2891
|
amount: string;
|
|
2369
2892
|
sharedWithChainId: string;
|
|
2370
2893
|
status: string;
|
|
@@ -2374,27 +2897,27 @@ type PChainBalance = {
|
|
|
2374
2897
|
/**
|
|
2375
2898
|
* 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
2899
|
*/
|
|
2377
|
-
unlockedUnstaked: Array<
|
|
2900
|
+
unlockedUnstaked: Array<Asset>;
|
|
2378
2901
|
/**
|
|
2379
2902
|
* 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
2903
|
*/
|
|
2381
|
-
unlockedStaked: Array<
|
|
2904
|
+
unlockedStaked: Array<Asset>;
|
|
2382
2905
|
/**
|
|
2383
2906
|
* 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
2907
|
*/
|
|
2385
|
-
lockedPlatform: Array<
|
|
2908
|
+
lockedPlatform: Array<Asset>;
|
|
2386
2909
|
/**
|
|
2387
2910
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Denotes the amount of unstaked Avax that is locked at the platform level and only consumeable for staking transactions.
|
|
2388
2911
|
*/
|
|
2389
|
-
lockedStakeable: Array<
|
|
2912
|
+
lockedStakeable: Array<Asset>;
|
|
2390
2913
|
/**
|
|
2391
2914
|
* 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
2915
|
*/
|
|
2393
|
-
lockedStaked: Array<
|
|
2916
|
+
lockedStaked: Array<Asset>;
|
|
2394
2917
|
/**
|
|
2395
2918
|
* 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
2919
|
*/
|
|
2397
|
-
pendingStaked: Array<
|
|
2920
|
+
pendingStaked: Array<Asset>;
|
|
2398
2921
|
/**
|
|
2399
2922
|
* 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
2923
|
*/
|
|
@@ -2533,6 +3056,7 @@ type GetPrimaryNetworkBlockResponse = {
|
|
|
2533
3056
|
txCount: number;
|
|
2534
3057
|
transactions: Array<string>;
|
|
2535
3058
|
blockSizeBytes: number;
|
|
3059
|
+
currentSupply?: string;
|
|
2536
3060
|
proposerDetails?: ProposerDetails;
|
|
2537
3061
|
};
|
|
2538
3062
|
|
|
@@ -2545,6 +3069,7 @@ type PrimaryNetworkBlock = {
|
|
|
2545
3069
|
txCount: number;
|
|
2546
3070
|
transactions: Array<string>;
|
|
2547
3071
|
blockSizeBytes: number;
|
|
3072
|
+
currentSupply?: string;
|
|
2548
3073
|
proposerDetails?: ProposerDetails;
|
|
2549
3074
|
};
|
|
2550
3075
|
|
|
@@ -2636,7 +3161,8 @@ declare class PrimaryNetworkBlocksService {
|
|
|
2636
3161
|
|
|
2637
3162
|
declare enum RewardType {
|
|
2638
3163
|
VALIDATOR = "VALIDATOR",
|
|
2639
|
-
DELEGATOR = "DELEGATOR"
|
|
3164
|
+
DELEGATOR = "DELEGATOR",
|
|
3165
|
+
VALIDATOR_FEE = "VALIDATOR_FEE"
|
|
2640
3166
|
}
|
|
2641
3167
|
|
|
2642
3168
|
type HistoricalReward = {
|
|
@@ -2655,7 +3181,7 @@ type HistoricalReward = {
|
|
|
2655
3181
|
/**
|
|
2656
3182
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2657
3183
|
*/
|
|
2658
|
-
reward:
|
|
3184
|
+
reward: Asset;
|
|
2659
3185
|
rewardTxHash: string;
|
|
2660
3186
|
};
|
|
2661
3187
|
|
|
@@ -2682,7 +3208,7 @@ type PendingReward = {
|
|
|
2682
3208
|
/**
|
|
2683
3209
|
* An object containing P-chain Asset ID and the amount of that Asset ID.
|
|
2684
3210
|
*/
|
|
2685
|
-
estimatedReward:
|
|
3211
|
+
estimatedReward: Asset;
|
|
2686
3212
|
};
|
|
2687
3213
|
|
|
2688
3214
|
type ListPendingRewardsResponse = {
|
|
@@ -2702,13 +3228,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2702
3228
|
* @returns ListPendingRewardsResponse
|
|
2703
3229
|
* @throws ApiError
|
|
2704
3230
|
*/
|
|
2705
|
-
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3231
|
+
listPendingPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2706
3232
|
/**
|
|
2707
3233
|
* Either mainnet or a testnet.
|
|
2708
3234
|
*/
|
|
2709
3235
|
network: Network;
|
|
2710
3236
|
/**
|
|
2711
|
-
* 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".
|
|
3237
|
+
* 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.
|
|
2712
3238
|
*/
|
|
2713
3239
|
addresses?: string;
|
|
2714
3240
|
/**
|
|
@@ -2719,6 +3245,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2719
3245
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2720
3246
|
*/
|
|
2721
3247
|
pageToken?: string;
|
|
3248
|
+
/**
|
|
3249
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3250
|
+
*/
|
|
3251
|
+
nodeIds?: string;
|
|
2722
3252
|
/**
|
|
2723
3253
|
* 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
3254
|
*/
|
|
@@ -2730,13 +3260,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2730
3260
|
* @returns ListHistoricalRewardsResponse
|
|
2731
3261
|
* @throws ApiError
|
|
2732
3262
|
*/
|
|
2733
|
-
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, sortOrder, }: {
|
|
3263
|
+
listHistoricalPrimaryNetworkRewards({ network, addresses, pageSize, pageToken, nodeIds, sortOrder, }: {
|
|
2734
3264
|
/**
|
|
2735
3265
|
* Either mainnet or a testnet.
|
|
2736
3266
|
*/
|
|
2737
3267
|
network: Network;
|
|
2738
3268
|
/**
|
|
2739
|
-
* 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".
|
|
3269
|
+
* 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.
|
|
2740
3270
|
*/
|
|
2741
3271
|
addresses?: string;
|
|
2742
3272
|
/**
|
|
@@ -2747,6 +3277,10 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2747
3277
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
2748
3278
|
*/
|
|
2749
3279
|
pageToken?: string;
|
|
3280
|
+
/**
|
|
3281
|
+
* A comma separated list of node ids to filter by. Optional, but at least one of addresses or nodeIds is required.
|
|
3282
|
+
*/
|
|
3283
|
+
nodeIds?: string;
|
|
2750
3284
|
/**
|
|
2751
3285
|
* 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
3286
|
*/
|
|
@@ -2754,40 +3288,13 @@ declare class PrimaryNetworkRewardsService {
|
|
|
2754
3288
|
}): CancelablePromise<ListHistoricalRewardsResponse>;
|
|
2755
3289
|
}
|
|
2756
3290
|
|
|
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
3291
|
type UtxoCredential = {
|
|
2785
3292
|
/**
|
|
2786
|
-
* Signature provided to consume the output
|
|
3293
|
+
* Signature provided to consume the output.
|
|
2787
3294
|
*/
|
|
2788
3295
|
signature?: string;
|
|
2789
3296
|
/**
|
|
2790
|
-
* Public key associated with the signature
|
|
3297
|
+
* Public key associated with the signature.
|
|
2791
3298
|
*/
|
|
2792
3299
|
publicKey?: string;
|
|
2793
3300
|
};
|
|
@@ -2809,66 +3316,66 @@ type EVMInput = {
|
|
|
2809
3316
|
|
|
2810
3317
|
type Utxo = {
|
|
2811
3318
|
/**
|
|
2812
|
-
*
|
|
3319
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
2813
3320
|
*/
|
|
2814
|
-
|
|
3321
|
+
addresses: Array<string>;
|
|
2815
3322
|
asset: Asset;
|
|
2816
3323
|
/**
|
|
2817
|
-
*
|
|
3324
|
+
* Blockchain ID on which this output is consumed on.
|
|
2818
3325
|
*/
|
|
2819
|
-
|
|
3326
|
+
consumedOnChainId: string;
|
|
2820
3327
|
/**
|
|
2821
|
-
*
|
|
3328
|
+
* Transaction ID that consumed this output.
|
|
2822
3329
|
*/
|
|
2823
|
-
|
|
3330
|
+
consumingTxHash?: string;
|
|
2824
3331
|
/**
|
|
2825
|
-
* Blockchain ID on which this output is
|
|
3332
|
+
* Blockchain ID on which this output is created on.
|
|
2826
3333
|
*/
|
|
2827
|
-
|
|
3334
|
+
createdOnChainId: string;
|
|
2828
3335
|
/**
|
|
2829
|
-
*
|
|
3336
|
+
* UTXO ID for this output.
|
|
2830
3337
|
*/
|
|
2831
|
-
|
|
3338
|
+
utxoId: string;
|
|
2832
3339
|
/**
|
|
2833
|
-
*
|
|
3340
|
+
* Unix timestamp in seconds at which this output was consumed.
|
|
2834
3341
|
*/
|
|
2835
|
-
|
|
3342
|
+
consumingTxTimestamp?: number;
|
|
2836
3343
|
/**
|
|
2837
|
-
*
|
|
3344
|
+
* Transaction ID that created this output.
|
|
2838
3345
|
*/
|
|
2839
|
-
|
|
3346
|
+
creationTxHash: string;
|
|
2840
3347
|
/**
|
|
2841
|
-
*
|
|
3348
|
+
* Credentials that signed the transaction to consume this utxo
|
|
2842
3349
|
*/
|
|
2843
|
-
|
|
3350
|
+
credentials?: Array<UtxoCredential>;
|
|
2844
3351
|
/**
|
|
2845
|
-
*
|
|
3352
|
+
* Index representing the minting set for the NFT mint output.
|
|
2846
3353
|
*/
|
|
2847
|
-
|
|
3354
|
+
groupId?: number;
|
|
2848
3355
|
/**
|
|
2849
3356
|
* Locktime in seconds after which this output can be consumed.
|
|
2850
3357
|
*/
|
|
2851
3358
|
locktime: number;
|
|
2852
3359
|
/**
|
|
2853
|
-
*
|
|
3360
|
+
* Postion of this output in a list of lexiographically sorted outputs of a transaction.
|
|
2854
3361
|
*/
|
|
2855
|
-
|
|
3362
|
+
outputIndex: string;
|
|
2856
3363
|
/**
|
|
2857
|
-
*
|
|
3364
|
+
* Hex encoded data for NFT assets.
|
|
2858
3365
|
*/
|
|
2859
|
-
|
|
3366
|
+
payload?: string;
|
|
2860
3367
|
/**
|
|
2861
|
-
*
|
|
3368
|
+
* Minimum number of signatures required to consume this output.
|
|
2862
3369
|
*/
|
|
2863
|
-
|
|
3370
|
+
threshold: number;
|
|
2864
3371
|
/**
|
|
2865
|
-
*
|
|
3372
|
+
* Unix timestamp in seconds at which this outptut was created.
|
|
2866
3373
|
*/
|
|
2867
|
-
|
|
3374
|
+
timestamp: number;
|
|
2868
3375
|
/**
|
|
2869
|
-
*
|
|
3376
|
+
* Type of output.
|
|
2870
3377
|
*/
|
|
2871
|
-
|
|
3378
|
+
utxoType: string;
|
|
2872
3379
|
};
|
|
2873
3380
|
|
|
2874
3381
|
type CChainExportTransaction = {
|
|
@@ -2999,16 +3506,18 @@ type ListCChainAtomicTransactionsResponse = {
|
|
|
2999
3506
|
|
|
3000
3507
|
declare enum PChainTransactionType {
|
|
3001
3508
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3002
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3003
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3004
3509
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3005
|
-
|
|
3006
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3510
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3007
3511
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3008
3512
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3009
3513
|
IMPORT_TX = "ImportTx",
|
|
3010
3514
|
EXPORT_TX = "ExportTx",
|
|
3011
3515
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3516
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3517
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3518
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3519
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3520
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3012
3521
|
UNKNOWN = "UNKNOWN"
|
|
3013
3522
|
}
|
|
3014
3523
|
|
|
@@ -3019,29 +3528,48 @@ declare enum UtxoType {
|
|
|
3019
3528
|
|
|
3020
3529
|
type PChainUtxo = {
|
|
3021
3530
|
/**
|
|
3022
|
-
*
|
|
3531
|
+
* Addresses that are eligible to sign the consumption of this output.
|
|
3023
3532
|
*/
|
|
3024
3533
|
addresses: Array<string>;
|
|
3534
|
+
asset: Asset;
|
|
3535
|
+
/**
|
|
3536
|
+
* Blockchain ID on which this output is consumed on.
|
|
3537
|
+
*/
|
|
3538
|
+
consumedOnChainId: string;
|
|
3539
|
+
/**
|
|
3540
|
+
* Transaction ID that consumed this output.
|
|
3541
|
+
*/
|
|
3542
|
+
consumingTxHash?: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* Blockchain ID on which this output is created on.
|
|
3545
|
+
*/
|
|
3546
|
+
createdOnChainId: string;
|
|
3547
|
+
/**
|
|
3548
|
+
* UTXO ID for this output.
|
|
3549
|
+
*/
|
|
3025
3550
|
utxoId: string;
|
|
3026
|
-
|
|
3027
|
-
|
|
3551
|
+
/**
|
|
3552
|
+
* @deprecated
|
|
3553
|
+
*/
|
|
3554
|
+
amount: string;
|
|
3555
|
+
/**
|
|
3556
|
+
* @deprecated
|
|
3557
|
+
*/
|
|
3558
|
+
assetId: string;
|
|
3028
3559
|
blockNumber: string;
|
|
3029
3560
|
blockTimestamp: number;
|
|
3030
|
-
consumingTxHash?: string;
|
|
3031
|
-
consumingBlockTimestamp?: number;
|
|
3032
3561
|
consumingBlockNumber?: string;
|
|
3033
|
-
|
|
3034
|
-
utxoType: UtxoType;
|
|
3035
|
-
amount: string;
|
|
3036
|
-
stakeableLocktime?: number;
|
|
3562
|
+
consumingBlockTimestamp?: number;
|
|
3037
3563
|
platformLocktime?: number;
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3564
|
+
outputIndex: number;
|
|
3565
|
+
rewardType?: RewardType;
|
|
3566
|
+
stakeableLocktime?: number;
|
|
3041
3567
|
staked?: boolean;
|
|
3042
|
-
|
|
3568
|
+
threshold?: number;
|
|
3569
|
+
txHash: string;
|
|
3043
3570
|
utxoEndTimestamp?: number;
|
|
3044
|
-
|
|
3571
|
+
utxoStartTimestamp?: number;
|
|
3572
|
+
utxoType: UtxoType;
|
|
3045
3573
|
};
|
|
3046
3574
|
|
|
3047
3575
|
type PChainTransaction = {
|
|
@@ -3069,15 +3597,15 @@ type PChainTransaction = {
|
|
|
3069
3597
|
/**
|
|
3070
3598
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3071
3599
|
*/
|
|
3072
|
-
value: Array<
|
|
3600
|
+
value: Array<Asset>;
|
|
3073
3601
|
/**
|
|
3074
3602
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID.
|
|
3075
3603
|
*/
|
|
3076
|
-
amountBurned: Array<
|
|
3604
|
+
amountBurned: Array<Asset>;
|
|
3077
3605
|
/**
|
|
3078
3606
|
* A list of objects containing P-chain Asset ID and the amount of that Asset ID. Present for AddValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3079
3607
|
*/
|
|
3080
|
-
amountStaked: Array<
|
|
3608
|
+
amountStaked: Array<Asset>;
|
|
3081
3609
|
/**
|
|
3082
3610
|
* Present for AddValidatorTx, AddSubnetValidatorTx, AddPermissionlessValidatorTx, AddDelegatorTx
|
|
3083
3611
|
*/
|
|
@@ -3103,6 +3631,7 @@ type PChainTransaction = {
|
|
|
3103
3631
|
*/
|
|
3104
3632
|
estimatedReward?: string;
|
|
3105
3633
|
rewardTxHash?: string;
|
|
3634
|
+
rewardAddresses?: Array<string>;
|
|
3106
3635
|
memo?: string;
|
|
3107
3636
|
/**
|
|
3108
3637
|
* Present for RewardValidatorTx
|
|
@@ -3119,6 +3648,15 @@ type ListPChainTransactionsResponse = {
|
|
|
3119
3648
|
chainInfo: PrimaryNetworkChainInfo;
|
|
3120
3649
|
};
|
|
3121
3650
|
|
|
3651
|
+
declare enum XChainTransactionType {
|
|
3652
|
+
BASE_TX = "BaseTx",
|
|
3653
|
+
CREATE_ASSET_TX = "CreateAssetTx",
|
|
3654
|
+
OPERATION_TX = "OperationTx",
|
|
3655
|
+
IMPORT_TX = "ImportTx",
|
|
3656
|
+
EXPORT_TX = "ExportTx",
|
|
3657
|
+
UNKNOWN = "UNKNOWN"
|
|
3658
|
+
}
|
|
3659
|
+
|
|
3122
3660
|
type XChainLinearTransaction = {
|
|
3123
3661
|
/**
|
|
3124
3662
|
* Unique ID for this transaction.
|
|
@@ -3135,7 +3673,7 @@ type XChainLinearTransaction = {
|
|
|
3135
3673
|
/**
|
|
3136
3674
|
* Type of transaction.
|
|
3137
3675
|
*/
|
|
3138
|
-
txType:
|
|
3676
|
+
txType: XChainTransactionType;
|
|
3139
3677
|
/**
|
|
3140
3678
|
* Hex encoded memo bytes for this transaction.
|
|
3141
3679
|
*/
|
|
@@ -3212,7 +3750,7 @@ type XChainNonLinearTransaction = {
|
|
|
3212
3750
|
/**
|
|
3213
3751
|
* Type of transaction.
|
|
3214
3752
|
*/
|
|
3215
|
-
txType:
|
|
3753
|
+
txType: XChainTransactionType;
|
|
3216
3754
|
/**
|
|
3217
3755
|
* Hex encoded memo bytes for this transaction.
|
|
3218
3756
|
*/
|
|
@@ -3270,16 +3808,18 @@ declare enum PChainId {
|
|
|
3270
3808
|
|
|
3271
3809
|
declare enum PrimaryNetworkTxType {
|
|
3272
3810
|
ADD_VALIDATOR_TX = "AddValidatorTx",
|
|
3273
|
-
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3274
|
-
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3275
3811
|
ADD_SUBNET_VALIDATOR_TX = "AddSubnetValidatorTx",
|
|
3276
|
-
|
|
3277
|
-
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3812
|
+
ADD_DELEGATOR_TX = "AddDelegatorTx",
|
|
3278
3813
|
CREATE_CHAIN_TX = "CreateChainTx",
|
|
3279
3814
|
CREATE_SUBNET_TX = "CreateSubnetTx",
|
|
3280
3815
|
IMPORT_TX = "ImportTx",
|
|
3281
3816
|
EXPORT_TX = "ExportTx",
|
|
3282
3817
|
ADVANCE_TIME_TX = "AdvanceTimeTx",
|
|
3818
|
+
REWARD_VALIDATOR_TX = "RewardValidatorTx",
|
|
3819
|
+
REMOVE_SUBNET_VALIDATOR_TX = "RemoveSubnetValidatorTx",
|
|
3820
|
+
TRANSFORM_SUBNET_TX = "TransformSubnetTx",
|
|
3821
|
+
ADD_PERMISSIONLESS_VALIDATOR_TX = "AddPermissionlessValidatorTx",
|
|
3822
|
+
ADD_PERMISSIONLESS_DELEGATOR_TX = "AddPermissionlessDelegatorTx",
|
|
3283
3823
|
UNKNOWN = "UNKNOWN",
|
|
3284
3824
|
BASE_TX = "BaseTx",
|
|
3285
3825
|
CREATE_ASSET_TX = "CreateAssetTx",
|
|
@@ -3311,7 +3851,11 @@ declare class PrimaryNetworkTransactionsService {
|
|
|
3311
3851
|
}): CancelablePromise<(PChainTransaction | XChainNonLinearTransaction | XChainLinearTransaction | CChainExportTransaction | CChainImportTransaction)>;
|
|
3312
3852
|
/**
|
|
3313
3853
|
* List latest transactions
|
|
3314
|
-
* Lists the latest transactions on one of the Primary Network chains.
|
|
3854
|
+
* Lists the latest transactions on one of the Primary Network chains.
|
|
3855
|
+
*
|
|
3856
|
+
* Transactions are filterable by addresses.
|
|
3857
|
+
*
|
|
3858
|
+
* 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
3859
|
* @returns any
|
|
3316
3860
|
* @throws ApiError
|
|
3317
3861
|
*/
|
|
@@ -3603,13 +4147,189 @@ declare class PrimaryNetworkVerticesService {
|
|
|
3603
4147
|
}): CancelablePromise<ListXChainVerticesResponse>;
|
|
3604
4148
|
}
|
|
3605
4149
|
|
|
4150
|
+
type TeleporterDestinationTransaction = {
|
|
4151
|
+
txHash: string;
|
|
4152
|
+
timestamp: number;
|
|
4153
|
+
gasSpent: string;
|
|
4154
|
+
rewardRedeemer: string;
|
|
4155
|
+
delivererAddress: string;
|
|
4156
|
+
};
|
|
4157
|
+
|
|
4158
|
+
type TeleporterRewardDetails = {
|
|
4159
|
+
/**
|
|
4160
|
+
* A wallet or contract address in mixed-case checksum encoding.
|
|
4161
|
+
*/
|
|
4162
|
+
address: string;
|
|
4163
|
+
/**
|
|
4164
|
+
* The contract name.
|
|
4165
|
+
*/
|
|
4166
|
+
name: string;
|
|
4167
|
+
/**
|
|
4168
|
+
* The contract symbol.
|
|
4169
|
+
*/
|
|
4170
|
+
symbol: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* The number of decimals the token uses. For example `6`, means to divide the token amount by `1000000` to get its user representation.
|
|
4173
|
+
*/
|
|
4174
|
+
decimals: number;
|
|
4175
|
+
/**
|
|
4176
|
+
* The logo uri for the address.
|
|
4177
|
+
*/
|
|
4178
|
+
logoUri?: string;
|
|
4179
|
+
ercType: TeleporterRewardDetails.ercType;
|
|
4180
|
+
/**
|
|
4181
|
+
* The token price, if available.
|
|
4182
|
+
*/
|
|
4183
|
+
price?: Money;
|
|
4184
|
+
value: string;
|
|
4185
|
+
};
|
|
4186
|
+
declare namespace TeleporterRewardDetails {
|
|
4187
|
+
enum ercType {
|
|
4188
|
+
ERC_20 = "ERC-20"
|
|
4189
|
+
}
|
|
4190
|
+
}
|
|
4191
|
+
|
|
4192
|
+
type DeliveredSourceNotIndexedTeleporterMessage = {
|
|
4193
|
+
sourceBlockchainId: string;
|
|
4194
|
+
destinationBlockchainId: string;
|
|
4195
|
+
messageId: string;
|
|
4196
|
+
from: string;
|
|
4197
|
+
to: string;
|
|
4198
|
+
data?: string;
|
|
4199
|
+
messageExecuted: boolean;
|
|
4200
|
+
receipts: Array<string>;
|
|
4201
|
+
receiptDelivered: boolean;
|
|
4202
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4203
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4204
|
+
status: DeliveredSourceNotIndexedTeleporterMessage.status;
|
|
4205
|
+
};
|
|
4206
|
+
declare namespace DeliveredSourceNotIndexedTeleporterMessage {
|
|
4207
|
+
enum status {
|
|
4208
|
+
DELIVERED_SOURCE_NOT_INDEXED = "delivered_source_not_indexed"
|
|
4209
|
+
}
|
|
4210
|
+
}
|
|
4211
|
+
|
|
4212
|
+
type TeleporterSourceTransaction = {
|
|
4213
|
+
txHash: string;
|
|
4214
|
+
timestamp: number;
|
|
4215
|
+
gasSpent: string;
|
|
4216
|
+
};
|
|
4217
|
+
|
|
4218
|
+
type DeliveredTeleporterMessage = {
|
|
4219
|
+
sourceBlockchainId: string;
|
|
4220
|
+
destinationBlockchainId: string;
|
|
4221
|
+
messageId: string;
|
|
4222
|
+
from: string;
|
|
4223
|
+
to: string;
|
|
4224
|
+
data?: string;
|
|
4225
|
+
messageExecuted: boolean;
|
|
4226
|
+
receipts: Array<string>;
|
|
4227
|
+
receiptDelivered: boolean;
|
|
4228
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4229
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4230
|
+
destinationTransaction: TeleporterDestinationTransaction;
|
|
4231
|
+
status: DeliveredTeleporterMessage.status;
|
|
4232
|
+
};
|
|
4233
|
+
declare namespace DeliveredTeleporterMessage {
|
|
4234
|
+
enum status {
|
|
4235
|
+
DELIVERED = "delivered"
|
|
4236
|
+
}
|
|
4237
|
+
}
|
|
4238
|
+
|
|
4239
|
+
type NextPageToken = {
|
|
4240
|
+
/**
|
|
4241
|
+
* 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.
|
|
4242
|
+
*/
|
|
4243
|
+
nextPageToken?: string;
|
|
4244
|
+
};
|
|
4245
|
+
|
|
4246
|
+
type PendingTeleporterMessage = {
|
|
4247
|
+
sourceBlockchainId: string;
|
|
4248
|
+
destinationBlockchainId: string;
|
|
4249
|
+
messageId: string;
|
|
4250
|
+
from: string;
|
|
4251
|
+
to: string;
|
|
4252
|
+
data?: string;
|
|
4253
|
+
messageExecuted: boolean;
|
|
4254
|
+
receipts: Array<string>;
|
|
4255
|
+
receiptDelivered: boolean;
|
|
4256
|
+
rewardDetails: TeleporterRewardDetails;
|
|
4257
|
+
sourceTransaction: TeleporterSourceTransaction;
|
|
4258
|
+
status: PendingTeleporterMessage.status;
|
|
4259
|
+
};
|
|
4260
|
+
declare namespace PendingTeleporterMessage {
|
|
4261
|
+
enum status {
|
|
4262
|
+
PENDING = "pending"
|
|
4263
|
+
}
|
|
4264
|
+
}
|
|
4265
|
+
|
|
4266
|
+
declare class TeleporterService {
|
|
4267
|
+
readonly httpRequest: BaseHttpRequest;
|
|
4268
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
4269
|
+
/**
|
|
4270
|
+
* Get a teleporter message
|
|
4271
|
+
* Gets a teleporter message by source chain, destination chain, and message ID.
|
|
4272
|
+
* @returns any
|
|
4273
|
+
* @throws ApiError
|
|
4274
|
+
*/
|
|
4275
|
+
getTeleporterMessage({ sourceBlockchainId, destinationBlockchainId, messageId, }: {
|
|
4276
|
+
/**
|
|
4277
|
+
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
4278
|
+
*/
|
|
4279
|
+
sourceBlockchainId: any;
|
|
4280
|
+
/**
|
|
4281
|
+
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
4282
|
+
*/
|
|
4283
|
+
destinationBlockchainId: any;
|
|
4284
|
+
/**
|
|
4285
|
+
* The message ID of the teleporter message.
|
|
4286
|
+
*/
|
|
4287
|
+
messageId: any;
|
|
4288
|
+
}): CancelablePromise<(PendingTeleporterMessage | DeliveredTeleporterMessage | DeliveredSourceNotIndexedTeleporterMessage)>;
|
|
4289
|
+
/**
|
|
4290
|
+
* List teleporter messages
|
|
4291
|
+
* Lists teleporter messages. Ordered by timestamp in descending order.
|
|
4292
|
+
* @returns any
|
|
4293
|
+
* @throws ApiError
|
|
4294
|
+
*/
|
|
4295
|
+
listTeleporterMessages({ pageSize, pageToken, sourceBlockchainId, destinationBlockchainId, to, from, }: {
|
|
4296
|
+
/**
|
|
4297
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
4298
|
+
*/
|
|
4299
|
+
pageSize?: number;
|
|
4300
|
+
/**
|
|
4301
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
4302
|
+
*/
|
|
4303
|
+
pageToken?: string;
|
|
4304
|
+
/**
|
|
4305
|
+
* The base58 encoded blockchain ID of the source chain that the teleporter message was sent from.
|
|
4306
|
+
*/
|
|
4307
|
+
sourceBlockchainId?: any;
|
|
4308
|
+
/**
|
|
4309
|
+
* The base58 encoded blockchain ID of the destination chain that the teleporter message was sent to.
|
|
4310
|
+
*/
|
|
4311
|
+
destinationBlockchainId?: any;
|
|
4312
|
+
/**
|
|
4313
|
+
* The address of the recipient of the teleporter message.
|
|
4314
|
+
*/
|
|
4315
|
+
to?: any;
|
|
4316
|
+
/**
|
|
4317
|
+
* The address of the sender of the teleporter message.
|
|
4318
|
+
*/
|
|
4319
|
+
from?: any;
|
|
4320
|
+
}): CancelablePromise<NextPageToken>;
|
|
4321
|
+
}
|
|
4322
|
+
|
|
3606
4323
|
type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest;
|
|
3607
4324
|
declare class Glacier {
|
|
4325
|
+
readonly default: DefaultService;
|
|
3608
4326
|
readonly evmBalances: EvmBalancesService;
|
|
3609
4327
|
readonly evmBlocks: EvmBlocksService;
|
|
3610
4328
|
readonly evmChains: EvmChainsService;
|
|
4329
|
+
readonly evmContracts: EvmContractsService;
|
|
3611
4330
|
readonly evmTransactions: EvmTransactionsService;
|
|
3612
4331
|
readonly healthCheck: HealthCheckService;
|
|
4332
|
+
readonly nfTs: NfTsService;
|
|
3613
4333
|
readonly operations: OperationsService;
|
|
3614
4334
|
readonly primaryNetwork: PrimaryNetworkService;
|
|
3615
4335
|
readonly primaryNetworkBalances: PrimaryNetworkBalancesService;
|
|
@@ -3618,6 +4338,7 @@ declare class Glacier {
|
|
|
3618
4338
|
readonly primaryNetworkTransactions: PrimaryNetworkTransactionsService;
|
|
3619
4339
|
readonly primaryNetworkUtxOs: PrimaryNetworkUtxOsService;
|
|
3620
4340
|
readonly primaryNetworkVertices: PrimaryNetworkVerticesService;
|
|
4341
|
+
readonly teleporter: TeleporterService;
|
|
3621
4342
|
readonly request: BaseHttpRequest;
|
|
3622
4343
|
constructor(config?: Partial<OpenAPIConfig>, HttpRequest?: HttpRequestConstructor);
|
|
3623
4344
|
}
|
|
@@ -3639,4 +4360,4 @@ declare class ApiError extends Error {
|
|
|
3639
4360
|
constructor(request: ApiRequestOptions, response: ApiResult, message: string);
|
|
3640
4361
|
}
|
|
3641
4362
|
|
|
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,
|
|
4363
|
+
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, DeliveredSourceNotIndexedTeleporterMessage, DeliveredTeleporterMessage, 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, NextPageToken, NfTsService, NftTokenMetadataStatus, OpenAPI, OpenAPIConfig, OperationStatus, OperationStatusCode, OperationStatusResponse, OperationType, OperationsService, PChainBalance, PChainId, PChainSharedAsset, PChainTransaction, PChainTransactionType, PChainUtxo, PendingDelegatorDetails, PendingReward, PendingTeleporterMessage, PendingValidatorDetails, PricingProviders, PrimaryNetwork, PrimaryNetworkBalancesService, PrimaryNetworkBlock, PrimaryNetworkBlocksService, PrimaryNetworkChainInfo, PrimaryNetworkChainName, PrimaryNetworkOptions, PrimaryNetworkRewardsService, PrimaryNetworkService, PrimaryNetworkTransactionsService, PrimaryNetworkTxType, PrimaryNetworkUtxOsService, PrimaryNetworkVerticesService, ProposerDetails, RegisterWebhookRequest, RemovedValidatorDetails, ResourceLink, ResourceLinkType, RewardType, Rewards, RichAddress, SharedSecretsResponse, SortOrder, StakingDistribution, Subnet, TeleporterDestinationTransaction, TeleporterRewardDetails, TeleporterService, TeleporterSourceTransaction, 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 };
|