@avalabs/glacier-sdk 2.8.0-canary.ff11880.0 → 3.0.1-alpha.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/LICENSE.md +9 -0
- package/dist/index.d.ts +939 -440
- package/dist/index.js +1 -2040
- package/esm/generated/Glacier.d.ts +6 -0
- package/esm/generated/Glacier.js +1 -68
- package/esm/generated/core/ApiError.js +1 -18
- package/esm/generated/core/BaseHttpRequest.js +1 -7
- package/esm/generated/core/CancelablePromise.d.ts +2 -8
- package/esm/generated/core/CancelablePromise.js +1 -91
- package/esm/generated/core/FetchHttpRequest.js +1 -13
- package/esm/generated/core/OpenAPI.js +1 -13
- package/esm/generated/core/request.js +1 -227
- package/esm/generated/models/ActiveDelegatorDetails.js +1 -8
- package/esm/generated/models/ActiveValidatorDetails.d.ts +5 -0
- package/esm/generated/models/ActiveValidatorDetails.js +1 -8
- package/esm/generated/models/AddressActivityMetadata.d.ts +6 -3
- package/esm/generated/models/AddressesChangeRequest.d.ts +8 -0
- package/esm/generated/models/{XChainAssetBalance.d.ts → AggregatedAssetAmount.d.ts} +5 -6
- package/esm/generated/models/{Asset.d.ts → AssetAmount.d.ts} +5 -6
- package/esm/generated/models/AssetWithPriceInfo.d.ts +32 -0
- package/esm/generated/models/BlockchainId.js +1 -13
- package/esm/generated/models/BlockchainIds.js +1 -10
- package/esm/generated/models/BlsCredentials.d.ts +6 -0
- package/esm/generated/models/CChainExportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainExportTransaction.js +1 -8
- package/esm/generated/models/CChainImportTransaction.d.ts +3 -3
- package/esm/generated/models/CChainImportTransaction.js +1 -8
- package/esm/generated/models/CChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/ChainInfo.d.ts +1 -3
- package/esm/generated/models/ChainStatus.d.ts +3 -0
- package/esm/generated/models/ChainStatus.js +1 -7
- package/esm/generated/models/CompletedDelegatorDetails.js +1 -8
- package/esm/generated/models/CompletedValidatorDetails.d.ts +5 -0
- package/esm/generated/models/CompletedValidatorDetails.js +1 -8
- package/esm/generated/models/ContractSubmissionErc1155.js +1 -8
- package/esm/generated/models/ContractSubmissionErc20.js +1 -8
- package/esm/generated/models/ContractSubmissionErc721.js +1 -8
- package/esm/generated/models/ContractSubmissionUnknown.js +1 -8
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +2 -6
- package/esm/generated/models/CreateWebhookRequest.d.ts +21 -0
- package/esm/generated/models/CurrencyCode.d.ts +3 -0
- package/esm/generated/models/CurrencyCode.js +1 -19
- package/esm/generated/models/DelegationStatusType.js +1 -8
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/DeliveredSourceNotIndexedTeleporterMessage.js +1 -0
- package/esm/generated/models/DeliveredTeleporterMessage.d.ts +31 -0
- package/esm/generated/models/DeliveredTeleporterMessage.js +1 -0
- package/esm/generated/models/EVMInput.d.ts +3 -3
- package/esm/generated/models/EVMOperationType.d.ts +5 -0
- package/esm/generated/models/EVMOperationType.js +1 -0
- package/esm/generated/models/EVMOutput.d.ts +3 -3
- package/esm/generated/models/Erc1155Contract.js +1 -8
- package/esm/generated/models/Erc1155Token.js +1 -8
- package/esm/generated/models/Erc1155TokenBalance.js +1 -8
- package/esm/generated/models/Erc1155TokenMetadata.d.ts +0 -3
- package/esm/generated/models/Erc20Contract.js +1 -8
- package/esm/generated/models/Erc20Token.js +1 -8
- package/esm/generated/models/Erc20TokenBalance.js +1 -8
- package/esm/generated/models/Erc721Contract.js +1 -8
- package/esm/generated/models/Erc721Token.js +1 -8
- package/esm/generated/models/Erc721TokenBalance.js +1 -8
- package/esm/generated/models/Erc721TokenMetadata.d.ts +0 -3
- package/esm/generated/models/EventType.js +1 -6
- package/esm/generated/models/GetChainResponse.d.ts +1 -3
- package/esm/generated/models/GlacierApiFeature.d.ts +6 -0
- package/esm/generated/models/GlacierApiFeature.js +1 -0
- package/esm/generated/models/HistoricalReward.d.ts +2 -5
- package/esm/generated/models/InternalTransactionOpCall.js +1 -12
- package/esm/generated/models/ListNftTokens.d.ts +1 -1
- package/esm/generated/models/ListTeleporterMessagesResponse.d.ts +12 -0
- package/esm/generated/models/ListTransfersResponse.d.ts +1 -1
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +2 -1
- package/esm/generated/models/ListWebhookAddressesResponse.d.ts +10 -0
- package/esm/generated/models/Method.d.ts +0 -3
- package/esm/generated/models/Money.d.ts +0 -3
- package/esm/generated/models/Network.js +1 -7
- package/esm/generated/models/NetworkType.js +1 -7
- package/esm/generated/models/NextPageToken.d.ts +8 -0
- package/esm/generated/models/NftTokenMetadataStatus.d.ts +3 -0
- package/esm/generated/models/NftTokenMetadataStatus.js +1 -16
- package/esm/generated/models/OperationStatus.js +1 -9
- package/esm/generated/models/OperationStatusCode.js +1 -8
- package/esm/generated/models/OperationType.d.ts +4 -2
- package/esm/generated/models/OperationType.js +1 -7
- package/esm/generated/models/PChainBalance.d.ts +15 -15
- package/esm/generated/models/PChainId.js +1 -7
- package/esm/generated/models/PChainSharedAsset.d.ts +4 -4
- package/esm/generated/models/PChainTransaction.d.ts +17 -7
- package/esm/generated/models/PChainTransactionType.d.ts +2 -0
- package/esm/generated/models/PChainTransactionType.js +1 -19
- package/esm/generated/models/PChainUtxo.d.ts +2 -2
- package/esm/generated/models/PendingDelegatorDetails.js +1 -8
- package/esm/generated/models/PendingReward.d.ts +3 -3
- package/esm/generated/models/PendingTeleporterMessage.d.ts +29 -0
- package/esm/generated/models/PendingTeleporterMessage.js +1 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +6 -0
- package/esm/generated/models/PendingValidatorDetails.js +1 -8
- package/esm/generated/models/PrimaryNetwork.js +1 -7
- package/esm/generated/models/PrimaryNetworkAssetCap.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetCap.js +1 -0
- package/esm/generated/models/PrimaryNetworkAssetType.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkAssetType.js +1 -0
- package/esm/generated/models/PrimaryNetworkChainName.js +1 -8
- package/esm/generated/models/PrimaryNetworkOperationType.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkOperationType.js +1 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +1 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.js +1 -22
- package/esm/generated/models/RemovedValidatorDetails.d.ts +25 -0
- package/esm/generated/models/RemovedValidatorDetails.js +1 -0
- package/esm/generated/models/ResourceLinkType.js +1 -23
- package/esm/generated/models/RewardType.js +1 -8
- package/esm/generated/models/RpcErrorDto.d.ts +7 -0
- package/esm/generated/models/RpcErrorResponseDto.d.ts +9 -0
- package/esm/generated/models/RpcRequestBodyDto.d.ts +8 -0
- package/esm/generated/models/RpcSuccessResponseDto.d.ts +7 -0
- package/esm/generated/models/SortByOption.d.ts +9 -0
- package/esm/generated/models/SortByOption.js +1 -0
- package/esm/generated/models/SortOrder.js +1 -7
- package/esm/generated/models/Subnet.d.ts +17 -0
- package/esm/generated/models/SubnetOwnershipInfo.d.ts +16 -0
- package/esm/generated/models/TeleporterDestinationTransaction.d.ts +9 -0
- package/esm/generated/models/TeleporterReceipt.d.ts +6 -0
- package/esm/generated/models/TeleporterRewardDetails.d.ts +37 -0
- package/esm/generated/models/TeleporterRewardDetails.js +1 -0
- package/esm/generated/models/TeleporterSourceTransaction.d.ts +7 -0
- package/esm/generated/models/TransactionMethodType.d.ts +3 -0
- package/esm/generated/models/TransactionMethodType.js +1 -8
- package/esm/generated/models/TransactionStatus.js +1 -7
- package/esm/generated/models/UnknownContract.js +1 -8
- package/esm/generated/models/UpdateWebhookRequest.d.ts +12 -0
- package/esm/generated/models/Utxo.d.ts +2 -2
- package/esm/generated/models/UtxoType.js +1 -7
- package/esm/generated/models/ValidationStatusType.d.ts +2 -1
- package/esm/generated/models/ValidationStatusType.js +1 -8
- package/esm/generated/models/VmName.js +1 -8
- package/esm/generated/models/WebhookResponse.d.ts +10 -0
- package/esm/generated/models/WebhookStatus.js +1 -7
- package/esm/generated/models/WebhookStatusType.js +1 -7
- package/esm/generated/models/XChainAssetDetails.d.ts +5 -8
- package/esm/generated/models/XChainBalances.d.ts +3 -3
- package/esm/generated/models/XChainId.js +1 -8
- package/esm/generated/models/XChainLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainLinearTransaction.js +1 -9
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -7
- package/esm/generated/models/XChainNonLinearTransaction.js +1 -9
- package/esm/generated/models/XChainSharedAssetBalance.d.ts +3 -4
- package/esm/generated/models/XChainTransactionType.d.ts +3 -0
- package/esm/generated/models/XChainTransactionType.js +1 -11
- package/esm/generated/services/DefaultService.d.ts +0 -53
- package/esm/generated/services/DefaultService.js +1 -55
- package/esm/generated/services/EvmBalancesService.d.ts +27 -23
- package/esm/generated/services/EvmBalancesService.js +1 -116
- package/esm/generated/services/EvmBlocksService.d.ts +7 -7
- package/esm/generated/services/EvmBlocksService.js +1 -37
- package/esm/generated/services/EvmChainsService.d.ts +7 -2
- package/esm/generated/services/EvmChainsService.js +1 -29
- package/esm/generated/services/EvmContractsService.d.ts +2 -2
- package/esm/generated/services/EvmContractsService.js +1 -36
- package/esm/generated/services/EvmTransactionsService.d.ts +57 -57
- package/esm/generated/services/EvmTransactionsService.js +1 -251
- package/esm/generated/services/HealthCheckService.js +1 -16
- package/esm/generated/services/NfTsService.d.ts +8 -8
- package/esm/generated/services/NfTsService.js +1 -56
- package/esm/generated/services/OperationsService.js +1 -28
- package/esm/generated/services/PrimaryNetworkBalancesService.js +1 -26
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkBlocksService.js +1 -62
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +19 -14
- package/esm/generated/services/PrimaryNetworkRewardsService.js +1 -53
- package/esm/generated/services/PrimaryNetworkService.d.ts +51 -36
- package/esm/generated/services/PrimaryNetworkService.js +1 -171
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +16 -16
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +1 -107
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +5 -5
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +1 -34
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +10 -10
- package/esm/generated/services/PrimaryNetworkVerticesService.js +1 -64
- package/esm/generated/services/RpcService.d.ts +25 -0
- package/esm/generated/services/RpcService.js +1 -0
- package/esm/generated/services/TeleporterService.d.ts +62 -0
- package/esm/generated/services/TeleporterService.js +1 -0
- package/esm/generated/services/WebhooksService.d.ts +143 -0
- package/esm/generated/services/WebhooksService.js +1 -0
- package/esm/index.d.ts +32 -3
- package/esm/index.js +1 -77
- package/package.json +3 -3
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +0 -8
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +0 -8
- package/esm/generated/models/RegisterWebhookRequest.d.ts +0 -14
|
@@ -1,55 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
mediaControllerUploadImage() {
|
|
6
|
-
return this.httpRequest.request({
|
|
7
|
-
method: "POST",
|
|
8
|
-
url: "/v1/media/uploadImage"
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
registerWebhook({
|
|
12
|
-
requestBody
|
|
13
|
-
}) {
|
|
14
|
-
return this.httpRequest.request({
|
|
15
|
-
method: "POST",
|
|
16
|
-
url: "/v1/webhooks",
|
|
17
|
-
body: requestBody,
|
|
18
|
-
mediaType: "application/json"
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
listWebhooks({
|
|
22
|
-
pageSize = 10,
|
|
23
|
-
pageToken,
|
|
24
|
-
status
|
|
25
|
-
}) {
|
|
26
|
-
return this.httpRequest.request({
|
|
27
|
-
method: "GET",
|
|
28
|
-
url: "/v1/webhooks",
|
|
29
|
-
query: {
|
|
30
|
-
"pageSize": pageSize,
|
|
31
|
-
"pageToken": pageToken,
|
|
32
|
-
"status": status
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
deactivateWebhook({
|
|
37
|
-
id
|
|
38
|
-
}) {
|
|
39
|
-
return this.httpRequest.request({
|
|
40
|
-
method: "DELETE",
|
|
41
|
-
url: "/v1/webhooks/{id}",
|
|
42
|
-
path: {
|
|
43
|
-
"id": id
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
generateSharedSecret() {
|
|
48
|
-
return this.httpRequest.request({
|
|
49
|
-
method: "POST",
|
|
50
|
-
url: "/v1/webhooks:generateSharedSecret"
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export { DefaultService };
|
|
1
|
+
class t{constructor(t){this.httpRequest=t}mediaControllerUploadImage(){return this.httpRequest.request({method:"POST",url:"/v1/media/uploadImage"})}}export{t as DefaultService};
|
|
@@ -20,7 +20,7 @@ declare class EvmBalancesService {
|
|
|
20
20
|
*/
|
|
21
21
|
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
22
22
|
/**
|
|
23
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
23
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
24
24
|
*/
|
|
25
25
|
chainId: string;
|
|
26
26
|
/**
|
|
@@ -46,9 +46,9 @@ declare class EvmBalancesService {
|
|
|
46
46
|
* @returns ListErc20BalancesResponse
|
|
47
47
|
* @throws ApiError
|
|
48
48
|
*/
|
|
49
|
-
listErc20Balances({ chainId, address, blockNumber, pageSize,
|
|
49
|
+
listErc20Balances({ chainId, address, blockNumber, pageToken, pageSize, filterSpamTokens, contractAddresses, currency, }: {
|
|
50
50
|
/**
|
|
51
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
51
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
52
52
|
*/
|
|
53
53
|
chainId: string;
|
|
54
54
|
/**
|
|
@@ -59,14 +59,18 @@ declare class EvmBalancesService {
|
|
|
59
59
|
* The block number, if not defined the block number will be the latest block.
|
|
60
60
|
*/
|
|
61
61
|
blockNumber?: string;
|
|
62
|
+
/**
|
|
63
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
64
|
+
*/
|
|
65
|
+
pageToken?: string;
|
|
62
66
|
/**
|
|
63
67
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
64
68
|
*/
|
|
65
69
|
pageSize?: number;
|
|
66
70
|
/**
|
|
67
|
-
*
|
|
71
|
+
* whether to filter out spam tokens from the response. Default is true.
|
|
68
72
|
*/
|
|
69
|
-
|
|
73
|
+
filterSpamTokens?: boolean;
|
|
70
74
|
/**
|
|
71
75
|
* A comma separated list of contract addresses to filter by.
|
|
72
76
|
*/
|
|
@@ -84,23 +88,23 @@ declare class EvmBalancesService {
|
|
|
84
88
|
* @returns ListErc721BalancesResponse
|
|
85
89
|
* @throws ApiError
|
|
86
90
|
*/
|
|
87
|
-
listErc721Balances({ chainId, address,
|
|
91
|
+
listErc721Balances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
88
92
|
/**
|
|
89
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
93
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
90
94
|
*/
|
|
91
95
|
chainId: string;
|
|
92
96
|
/**
|
|
93
97
|
* A wallet address.
|
|
94
98
|
*/
|
|
95
99
|
address: string;
|
|
96
|
-
/**
|
|
97
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
98
|
-
*/
|
|
99
|
-
pageSize?: number;
|
|
100
100
|
/**
|
|
101
101
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
102
102
|
*/
|
|
103
103
|
pageToken?: string;
|
|
104
|
+
/**
|
|
105
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
106
|
+
*/
|
|
107
|
+
pageSize?: number;
|
|
104
108
|
/**
|
|
105
109
|
* A contract addresses to filter by.
|
|
106
110
|
*/
|
|
@@ -116,9 +120,9 @@ declare class EvmBalancesService {
|
|
|
116
120
|
* @returns ListErc1155BalancesResponse
|
|
117
121
|
* @throws ApiError
|
|
118
122
|
*/
|
|
119
|
-
listErc1155Balances({ chainId, address, blockNumber,
|
|
123
|
+
listErc1155Balances({ chainId, address, blockNumber, pageToken, pageSize, contractAddress, }: {
|
|
120
124
|
/**
|
|
121
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
125
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
122
126
|
*/
|
|
123
127
|
chainId: string;
|
|
124
128
|
/**
|
|
@@ -129,14 +133,14 @@ declare class EvmBalancesService {
|
|
|
129
133
|
* The block number, if not defined the block number will be the latest block.
|
|
130
134
|
*/
|
|
131
135
|
blockNumber?: string;
|
|
132
|
-
/**
|
|
133
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
134
|
-
*/
|
|
135
|
-
pageSize?: number;
|
|
136
136
|
/**
|
|
137
137
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
138
138
|
*/
|
|
139
139
|
pageToken?: string;
|
|
140
|
+
/**
|
|
141
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
142
|
+
*/
|
|
143
|
+
pageSize?: number;
|
|
140
144
|
/**
|
|
141
145
|
* A contract addresses to filter by.
|
|
142
146
|
*/
|
|
@@ -150,23 +154,23 @@ declare class EvmBalancesService {
|
|
|
150
154
|
* @returns ListCollectibleBalancesResponse
|
|
151
155
|
* @throws ApiError
|
|
152
156
|
*/
|
|
153
|
-
listCollectibleBalances({ chainId, address,
|
|
157
|
+
listCollectibleBalances({ chainId, address, pageToken, pageSize, contractAddress, }: {
|
|
154
158
|
/**
|
|
155
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
159
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
156
160
|
*/
|
|
157
161
|
chainId: string;
|
|
158
162
|
/**
|
|
159
163
|
* A wallet address.
|
|
160
164
|
*/
|
|
161
165
|
address: string;
|
|
162
|
-
/**
|
|
163
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
164
|
-
*/
|
|
165
|
-
pageSize?: number;
|
|
166
166
|
/**
|
|
167
167
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
168
168
|
*/
|
|
169
169
|
pageToken?: string;
|
|
170
|
+
/**
|
|
171
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
172
|
+
*/
|
|
173
|
+
pageSize?: number;
|
|
170
174
|
/**
|
|
171
175
|
* A contract addresses to filter by.
|
|
172
176
|
*/
|
|
@@ -1,116 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getNativeBalance({
|
|
6
|
-
chainId,
|
|
7
|
-
address,
|
|
8
|
-
blockNumber,
|
|
9
|
-
currency
|
|
10
|
-
}) {
|
|
11
|
-
return this.httpRequest.request({
|
|
12
|
-
method: "GET",
|
|
13
|
-
url: "/v1/chains/{chainId}/addresses/{address}/balances:getNative",
|
|
14
|
-
path: {
|
|
15
|
-
"chainId": chainId,
|
|
16
|
-
"address": address
|
|
17
|
-
},
|
|
18
|
-
query: {
|
|
19
|
-
"blockNumber": blockNumber,
|
|
20
|
-
"currency": currency
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
listErc20Balances({
|
|
25
|
-
chainId,
|
|
26
|
-
address,
|
|
27
|
-
blockNumber,
|
|
28
|
-
pageSize = 10,
|
|
29
|
-
pageToken,
|
|
30
|
-
contractAddresses,
|
|
31
|
-
currency
|
|
32
|
-
}) {
|
|
33
|
-
return this.httpRequest.request({
|
|
34
|
-
method: "GET",
|
|
35
|
-
url: "/v1/chains/{chainId}/addresses/{address}/balances:listErc20",
|
|
36
|
-
path: {
|
|
37
|
-
"chainId": chainId,
|
|
38
|
-
"address": address
|
|
39
|
-
},
|
|
40
|
-
query: {
|
|
41
|
-
"blockNumber": blockNumber,
|
|
42
|
-
"pageSize": pageSize,
|
|
43
|
-
"pageToken": pageToken,
|
|
44
|
-
"contractAddresses": contractAddresses,
|
|
45
|
-
"currency": currency
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
listErc721Balances({
|
|
50
|
-
chainId,
|
|
51
|
-
address,
|
|
52
|
-
pageSize = 10,
|
|
53
|
-
pageToken,
|
|
54
|
-
contractAddress
|
|
55
|
-
}) {
|
|
56
|
-
return this.httpRequest.request({
|
|
57
|
-
method: "GET",
|
|
58
|
-
url: "/v1/chains/{chainId}/addresses/{address}/balances:listErc721",
|
|
59
|
-
path: {
|
|
60
|
-
"chainId": chainId,
|
|
61
|
-
"address": address
|
|
62
|
-
},
|
|
63
|
-
query: {
|
|
64
|
-
"pageSize": pageSize,
|
|
65
|
-
"pageToken": pageToken,
|
|
66
|
-
"contractAddress": contractAddress
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
listErc1155Balances({
|
|
71
|
-
chainId,
|
|
72
|
-
address,
|
|
73
|
-
blockNumber,
|
|
74
|
-
pageSize = 10,
|
|
75
|
-
pageToken,
|
|
76
|
-
contractAddress
|
|
77
|
-
}) {
|
|
78
|
-
return this.httpRequest.request({
|
|
79
|
-
method: "GET",
|
|
80
|
-
url: "/v1/chains/{chainId}/addresses/{address}/balances:listErc1155",
|
|
81
|
-
path: {
|
|
82
|
-
"chainId": chainId,
|
|
83
|
-
"address": address
|
|
84
|
-
},
|
|
85
|
-
query: {
|
|
86
|
-
"blockNumber": blockNumber,
|
|
87
|
-
"pageSize": pageSize,
|
|
88
|
-
"pageToken": pageToken,
|
|
89
|
-
"contractAddress": contractAddress
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
listCollectibleBalances({
|
|
94
|
-
chainId,
|
|
95
|
-
address,
|
|
96
|
-
pageSize = 10,
|
|
97
|
-
pageToken,
|
|
98
|
-
contractAddress
|
|
99
|
-
}) {
|
|
100
|
-
return this.httpRequest.request({
|
|
101
|
-
method: "GET",
|
|
102
|
-
url: "/v1/chains/{chainId}/addresses/{address}/balances:listCollectibles",
|
|
103
|
-
path: {
|
|
104
|
-
"chainId": chainId,
|
|
105
|
-
"address": address
|
|
106
|
-
},
|
|
107
|
-
query: {
|
|
108
|
-
"pageSize": pageSize,
|
|
109
|
-
"pageToken": pageToken,
|
|
110
|
-
"contractAddress": contractAddress
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export { EvmBalancesService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getNativeBalance({chainId:e,address:s,blockNumber:a,currency:r}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:getNative",path:{chainId:e,address:s},query:{blockNumber:a,currency:r}})}listErc20Balances({chainId:e,address:s,blockNumber:a,pageToken:r,pageSize:t=10,filterSpamTokens:d=!0,contractAddresses:c,currency:n}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc20",path:{chainId:e,address:s},query:{blockNumber:a,pageToken:r,pageSize:t,filterSpamTokens:d,contractAddresses:c,currency:n}})}listErc721Balances({chainId:e,address:s,pageToken:a,pageSize:r=10,contractAddress:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc721",path:{chainId:e,address:s},query:{pageToken:a,pageSize:r,contractAddress:t}})}listErc1155Balances({chainId:e,address:s,blockNumber:a,pageToken:r,pageSize:t=10,contractAddress:d}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listErc1155",path:{chainId:e,address:s},query:{blockNumber:a,pageToken:r,pageSize:t,contractAddress:d}})}listCollectibleBalances({chainId:e,address:s,pageToken:a,pageSize:r=10,contractAddress:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/balances:listCollectibles",path:{chainId:e,address:s},query:{pageToken:a,pageSize:r,contractAddress:t}})}}export{e as EvmBalancesService};
|
|
@@ -12,19 +12,19 @@ declare class EvmBlocksService {
|
|
|
12
12
|
* @returns ListEvmBlocksResponse
|
|
13
13
|
* @throws ApiError
|
|
14
14
|
*/
|
|
15
|
-
getLatestBlocks({ chainId,
|
|
15
|
+
getLatestBlocks({ chainId, pageToken, pageSize, }: {
|
|
16
16
|
/**
|
|
17
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
17
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
18
18
|
*/
|
|
19
19
|
chainId: string;
|
|
20
|
-
/**
|
|
21
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
22
|
-
*/
|
|
23
|
-
pageSize?: number;
|
|
24
20
|
/**
|
|
25
21
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
26
22
|
*/
|
|
27
23
|
pageToken?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
26
|
+
*/
|
|
27
|
+
pageSize?: number;
|
|
28
28
|
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
29
29
|
/**
|
|
30
30
|
* Get block
|
|
@@ -34,7 +34,7 @@ declare class EvmBlocksService {
|
|
|
34
34
|
*/
|
|
35
35
|
getBlock({ chainId, blockId, }: {
|
|
36
36
|
/**
|
|
37
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
37
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
38
|
*/
|
|
39
39
|
chainId: string;
|
|
40
40
|
/**
|
|
@@ -1,37 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getLatestBlocks({
|
|
6
|
-
chainId,
|
|
7
|
-
pageSize = 10,
|
|
8
|
-
pageToken
|
|
9
|
-
}) {
|
|
10
|
-
return this.httpRequest.request({
|
|
11
|
-
method: "GET",
|
|
12
|
-
url: "/v1/chains/{chainId}/blocks",
|
|
13
|
-
path: {
|
|
14
|
-
"chainId": chainId
|
|
15
|
-
},
|
|
16
|
-
query: {
|
|
17
|
-
"pageSize": pageSize,
|
|
18
|
-
"pageToken": pageToken
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
getBlock({
|
|
23
|
-
chainId,
|
|
24
|
-
blockId
|
|
25
|
-
}) {
|
|
26
|
-
return this.httpRequest.request({
|
|
27
|
-
method: "GET",
|
|
28
|
-
url: "/v1/chains/{chainId}/blocks/{blockId}",
|
|
29
|
-
path: {
|
|
30
|
-
"chainId": chainId,
|
|
31
|
-
"blockId": blockId
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { EvmBlocksService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getLatestBlocks({chainId:e,pageToken:t,pageSize:c=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks",path:{chainId:e},query:{pageToken:t,pageSize:c}})}getBlock({chainId:e,blockId:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}",path:{chainId:e,blockId:t}})}}export{e as EvmBlocksService};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { GetChainResponse } from '../models/GetChainResponse.js';
|
|
2
|
+
import { GlacierApiFeature } from '../models/GlacierApiFeature.js';
|
|
2
3
|
import { ListChainsResponse } from '../models/ListChainsResponse.js';
|
|
3
4
|
import { NetworkType } from '../models/NetworkType.js';
|
|
4
5
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
@@ -13,11 +14,15 @@ declare class EvmChainsService {
|
|
|
13
14
|
* @returns ListChainsResponse
|
|
14
15
|
* @throws ApiError
|
|
15
16
|
*/
|
|
16
|
-
supportedChains({ network, }: {
|
|
17
|
+
supportedChains({ network, feature, }: {
|
|
17
18
|
/**
|
|
18
19
|
* mainnet or testnet.
|
|
19
20
|
*/
|
|
20
21
|
network?: NetworkType;
|
|
22
|
+
/**
|
|
23
|
+
* Filter by feature.
|
|
24
|
+
*/
|
|
25
|
+
feature?: GlacierApiFeature;
|
|
21
26
|
}): CancelablePromise<ListChainsResponse>;
|
|
22
27
|
/**
|
|
23
28
|
* Get chain information
|
|
@@ -27,7 +32,7 @@ declare class EvmChainsService {
|
|
|
27
32
|
*/
|
|
28
33
|
getChainInfo({ chainId, }: {
|
|
29
34
|
/**
|
|
30
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
35
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
31
36
|
*/
|
|
32
37
|
chainId: string;
|
|
33
38
|
}): CancelablePromise<GetChainResponse>;
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
supportedChains({
|
|
6
|
-
network
|
|
7
|
-
}) {
|
|
8
|
-
return this.httpRequest.request({
|
|
9
|
-
method: "GET",
|
|
10
|
-
url: "/v1/chains",
|
|
11
|
-
query: {
|
|
12
|
-
"network": network
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
getChainInfo({
|
|
17
|
-
chainId
|
|
18
|
-
}) {
|
|
19
|
-
return this.httpRequest.request({
|
|
20
|
-
method: "GET",
|
|
21
|
-
url: "/v1/chains/{chainId}",
|
|
22
|
-
path: {
|
|
23
|
-
"chainId": chainId
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export { EvmChainsService };
|
|
1
|
+
class t{constructor(t){this.httpRequest=t}supportedChains({network:t,feature:e}){return this.httpRequest.request({method:"GET",url:"/v1/chains",query:{network:t,feature:e}})}getChainInfo({chainId:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}",path:{chainId:t}})}}export{t as EvmChainsService};
|
|
@@ -18,7 +18,7 @@ declare class EvmContractsService {
|
|
|
18
18
|
*/
|
|
19
19
|
getContractMetadata({ chainId, address, }: {
|
|
20
20
|
/**
|
|
21
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
21
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
22
22
|
*/
|
|
23
23
|
chainId: string;
|
|
24
24
|
/**
|
|
@@ -34,7 +34,7 @@ declare class EvmContractsService {
|
|
|
34
34
|
*/
|
|
35
35
|
updateContractInfo({ chainId, address, requestBody, }: {
|
|
36
36
|
/**
|
|
37
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
37
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
38
|
*/
|
|
39
39
|
chainId: string;
|
|
40
40
|
/**
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getContractMetadata({
|
|
6
|
-
chainId,
|
|
7
|
-
address
|
|
8
|
-
}) {
|
|
9
|
-
return this.httpRequest.request({
|
|
10
|
-
method: "GET",
|
|
11
|
-
url: "/v1/chains/{chainId}/addresses/{address}",
|
|
12
|
-
path: {
|
|
13
|
-
"chainId": chainId,
|
|
14
|
-
"address": address
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
updateContractInfo({
|
|
19
|
-
chainId,
|
|
20
|
-
address,
|
|
21
|
-
requestBody
|
|
22
|
-
}) {
|
|
23
|
-
return this.httpRequest.request({
|
|
24
|
-
method: "PATCH",
|
|
25
|
-
url: "/v1/chains/{chainId}/contracts/{address}",
|
|
26
|
-
path: {
|
|
27
|
-
"chainId": chainId,
|
|
28
|
-
"address": address
|
|
29
|
-
},
|
|
30
|
-
body: requestBody,
|
|
31
|
-
mediaType: "application/json"
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export { EvmContractsService };
|
|
1
|
+
class t{constructor(t){this.httpRequest=t}getContractMetadata({chainId:t,address:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}",path:{chainId:t,address:s}})}updateContractInfo({chainId:t,address:s,requestBody:e}){return this.httpRequest.request({method:"PATCH",url:"/v1/chains/{chainId}/contracts/{address}",path:{chainId:t,address:s},body:e,mediaType:"application/json"})}}export{t as EvmContractsService};
|