@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
|
@@ -24,7 +24,7 @@ declare class EvmTransactionsService {
|
|
|
24
24
|
*/
|
|
25
25
|
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
26
26
|
/**
|
|
27
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
27
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
28
28
|
*/
|
|
29
29
|
chainId: string;
|
|
30
30
|
/**
|
|
@@ -42,23 +42,23 @@ declare class EvmTransactionsService {
|
|
|
42
42
|
* @returns ListContractsResponse
|
|
43
43
|
* @throws ApiError
|
|
44
44
|
*/
|
|
45
|
-
listContractDeployments({ chainId, address,
|
|
45
|
+
listContractDeployments({ chainId, address, pageToken, pageSize, }: {
|
|
46
46
|
/**
|
|
47
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
47
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
48
48
|
*/
|
|
49
49
|
chainId: string;
|
|
50
50
|
/**
|
|
51
51
|
* A wallet address.
|
|
52
52
|
*/
|
|
53
53
|
address: string;
|
|
54
|
-
/**
|
|
55
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
56
|
-
*/
|
|
57
|
-
pageSize?: number;
|
|
58
54
|
/**
|
|
59
55
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
60
56
|
*/
|
|
61
57
|
pageToken?: string;
|
|
58
|
+
/**
|
|
59
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
60
|
+
*/
|
|
61
|
+
pageSize?: number;
|
|
62
62
|
}): CancelablePromise<ListContractsResponse>;
|
|
63
63
|
/**
|
|
64
64
|
* List ERC transfers
|
|
@@ -66,9 +66,9 @@ declare class EvmTransactionsService {
|
|
|
66
66
|
* @returns ListTransfersResponse
|
|
67
67
|
* @throws ApiError
|
|
68
68
|
*/
|
|
69
|
-
listTransfers({ chainId, address, startBlock, endBlock,
|
|
69
|
+
listTransfers({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
70
70
|
/**
|
|
71
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
71
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
72
72
|
*/
|
|
73
73
|
chainId: string;
|
|
74
74
|
/**
|
|
@@ -83,14 +83,14 @@ declare class EvmTransactionsService {
|
|
|
83
83
|
* 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.
|
|
84
84
|
*/
|
|
85
85
|
endBlock?: number;
|
|
86
|
-
/**
|
|
87
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
88
|
-
*/
|
|
89
|
-
pageSize?: number;
|
|
90
86
|
/**
|
|
91
87
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
92
88
|
*/
|
|
93
89
|
pageToken?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
92
|
+
*/
|
|
93
|
+
pageSize?: number;
|
|
94
94
|
}): CancelablePromise<ListTransfersResponse>;
|
|
95
95
|
/**
|
|
96
96
|
* List transactions
|
|
@@ -100,23 +100,23 @@ declare class EvmTransactionsService {
|
|
|
100
100
|
* @returns ListTransactionDetailsResponse
|
|
101
101
|
* @throws ApiError
|
|
102
102
|
*/
|
|
103
|
-
listTransactions({ chainId, address,
|
|
103
|
+
listTransactions({ chainId, address, pageToken, pageSize, startBlock, endBlock, sortOrder, }: {
|
|
104
104
|
/**
|
|
105
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
105
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
106
106
|
*/
|
|
107
107
|
chainId: string;
|
|
108
108
|
/**
|
|
109
109
|
* A wallet address.
|
|
110
110
|
*/
|
|
111
111
|
address: string;
|
|
112
|
-
/**
|
|
113
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
114
|
-
*/
|
|
115
|
-
pageSize?: number;
|
|
116
112
|
/**
|
|
117
113
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
118
114
|
*/
|
|
119
115
|
pageToken?: string;
|
|
116
|
+
/**
|
|
117
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
118
|
+
*/
|
|
119
|
+
pageSize?: number;
|
|
120
120
|
/**
|
|
121
121
|
* 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.
|
|
122
122
|
*/
|
|
@@ -136,9 +136,9 @@ declare class EvmTransactionsService {
|
|
|
136
136
|
* @returns ListNativeTransactionsResponse
|
|
137
137
|
* @throws ApiError
|
|
138
138
|
*/
|
|
139
|
-
listNativeTransactions({ chainId, address, startBlock, endBlock,
|
|
139
|
+
listNativeTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
140
140
|
/**
|
|
141
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
141
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
142
142
|
*/
|
|
143
143
|
chainId: string;
|
|
144
144
|
/**
|
|
@@ -153,14 +153,14 @@ declare class EvmTransactionsService {
|
|
|
153
153
|
* 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.
|
|
154
154
|
*/
|
|
155
155
|
endBlock?: number;
|
|
156
|
-
/**
|
|
157
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
158
|
-
*/
|
|
159
|
-
pageSize?: number;
|
|
160
156
|
/**
|
|
161
157
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
162
158
|
*/
|
|
163
159
|
pageToken?: string;
|
|
160
|
+
/**
|
|
161
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
162
|
+
*/
|
|
163
|
+
pageSize?: number;
|
|
164
164
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
165
165
|
/**
|
|
166
166
|
* List ERC-20 transfers
|
|
@@ -168,9 +168,9 @@ declare class EvmTransactionsService {
|
|
|
168
168
|
* @returns ListErc20TransactionsResponse
|
|
169
169
|
* @throws ApiError
|
|
170
170
|
*/
|
|
171
|
-
listErc20Transactions({ chainId, address, startBlock, endBlock,
|
|
171
|
+
listErc20Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
172
172
|
/**
|
|
173
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
173
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
174
174
|
*/
|
|
175
175
|
chainId: string;
|
|
176
176
|
/**
|
|
@@ -185,14 +185,14 @@ declare class EvmTransactionsService {
|
|
|
185
185
|
* 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.
|
|
186
186
|
*/
|
|
187
187
|
endBlock?: number;
|
|
188
|
-
/**
|
|
189
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
190
|
-
*/
|
|
191
|
-
pageSize?: number;
|
|
192
188
|
/**
|
|
193
189
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
194
190
|
*/
|
|
195
191
|
pageToken?: string;
|
|
192
|
+
/**
|
|
193
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
194
|
+
*/
|
|
195
|
+
pageSize?: number;
|
|
196
196
|
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
197
197
|
/**
|
|
198
198
|
* List ERC-721 transfers
|
|
@@ -200,9 +200,9 @@ declare class EvmTransactionsService {
|
|
|
200
200
|
* @returns ListErc721TransactionsResponse
|
|
201
201
|
* @throws ApiError
|
|
202
202
|
*/
|
|
203
|
-
listErc721Transactions({ chainId, address, startBlock, endBlock,
|
|
203
|
+
listErc721Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
204
204
|
/**
|
|
205
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
205
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
206
206
|
*/
|
|
207
207
|
chainId: string;
|
|
208
208
|
/**
|
|
@@ -217,14 +217,14 @@ declare class EvmTransactionsService {
|
|
|
217
217
|
* 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.
|
|
218
218
|
*/
|
|
219
219
|
endBlock?: number;
|
|
220
|
-
/**
|
|
221
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
222
|
-
*/
|
|
223
|
-
pageSize?: number;
|
|
224
220
|
/**
|
|
225
221
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
226
222
|
*/
|
|
227
223
|
pageToken?: string;
|
|
224
|
+
/**
|
|
225
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
226
|
+
*/
|
|
227
|
+
pageSize?: number;
|
|
228
228
|
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
229
229
|
/**
|
|
230
230
|
* List ERC-1155 transfers
|
|
@@ -232,9 +232,9 @@ declare class EvmTransactionsService {
|
|
|
232
232
|
* @returns ListErc1155TransactionsResponse
|
|
233
233
|
* @throws ApiError
|
|
234
234
|
*/
|
|
235
|
-
listErc1155Transactions({ chainId, address, startBlock, endBlock,
|
|
235
|
+
listErc1155Transactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
236
236
|
/**
|
|
237
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
237
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
238
238
|
*/
|
|
239
239
|
chainId: string;
|
|
240
240
|
/**
|
|
@@ -249,14 +249,14 @@ declare class EvmTransactionsService {
|
|
|
249
249
|
* 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.
|
|
250
250
|
*/
|
|
251
251
|
endBlock?: number;
|
|
252
|
-
/**
|
|
253
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
254
|
-
*/
|
|
255
|
-
pageSize?: number;
|
|
256
252
|
/**
|
|
257
253
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
258
254
|
*/
|
|
259
255
|
pageToken?: string;
|
|
256
|
+
/**
|
|
257
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
258
|
+
*/
|
|
259
|
+
pageSize?: number;
|
|
260
260
|
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
261
261
|
/**
|
|
262
262
|
* List internal transactions
|
|
@@ -266,9 +266,9 @@ declare class EvmTransactionsService {
|
|
|
266
266
|
* @returns ListInternalTransactionsResponse
|
|
267
267
|
* @throws ApiError
|
|
268
268
|
*/
|
|
269
|
-
listInternalTransactions({ chainId, address, startBlock, endBlock,
|
|
269
|
+
listInternalTransactions({ chainId, address, startBlock, endBlock, pageToken, pageSize, }: {
|
|
270
270
|
/**
|
|
271
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
271
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
272
272
|
*/
|
|
273
273
|
chainId: string;
|
|
274
274
|
/**
|
|
@@ -283,14 +283,14 @@ declare class EvmTransactionsService {
|
|
|
283
283
|
* 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.
|
|
284
284
|
*/
|
|
285
285
|
endBlock?: number;
|
|
286
|
-
/**
|
|
287
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
288
|
-
*/
|
|
289
|
-
pageSize?: number;
|
|
290
286
|
/**
|
|
291
287
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
292
288
|
*/
|
|
293
289
|
pageToken?: string;
|
|
290
|
+
/**
|
|
291
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
292
|
+
*/
|
|
293
|
+
pageSize?: number;
|
|
294
294
|
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
295
295
|
/**
|
|
296
296
|
* Get transaction
|
|
@@ -300,7 +300,7 @@ declare class EvmTransactionsService {
|
|
|
300
300
|
*/
|
|
301
301
|
getTransaction({ chainId, txHash, }: {
|
|
302
302
|
/**
|
|
303
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
303
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
304
304
|
*/
|
|
305
305
|
chainId: string;
|
|
306
306
|
/**
|
|
@@ -316,7 +316,7 @@ declare class EvmTransactionsService {
|
|
|
316
316
|
*/
|
|
317
317
|
getTransactionsForBlock({ chainId, blockId, }: {
|
|
318
318
|
/**
|
|
319
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
319
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
320
320
|
*/
|
|
321
321
|
chainId: string;
|
|
322
322
|
/**
|
|
@@ -330,19 +330,19 @@ declare class EvmTransactionsService {
|
|
|
330
330
|
* @returns ListNativeTransactionsResponse
|
|
331
331
|
* @throws ApiError
|
|
332
332
|
*/
|
|
333
|
-
listLatestTransactions({ chainId,
|
|
333
|
+
listLatestTransactions({ chainId, pageToken, pageSize, status, }: {
|
|
334
334
|
/**
|
|
335
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
335
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
336
336
|
*/
|
|
337
337
|
chainId: string;
|
|
338
|
-
/**
|
|
339
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
340
|
-
*/
|
|
341
|
-
pageSize?: number;
|
|
342
338
|
/**
|
|
343
339
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
344
340
|
*/
|
|
345
341
|
pageToken?: string;
|
|
342
|
+
/**
|
|
343
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
344
|
+
*/
|
|
345
|
+
pageSize?: number;
|
|
346
346
|
/**
|
|
347
347
|
* A status filter for listed transactions.
|
|
348
348
|
*/
|
|
@@ -1,251 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
getDeploymentTransaction({
|
|
6
|
-
chainId,
|
|
7
|
-
address,
|
|
8
|
-
currency
|
|
9
|
-
}) {
|
|
10
|
-
return this.httpRequest.request({
|
|
11
|
-
method: "GET",
|
|
12
|
-
url: "/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",
|
|
13
|
-
path: {
|
|
14
|
-
"chainId": chainId,
|
|
15
|
-
"address": address
|
|
16
|
-
},
|
|
17
|
-
query: {
|
|
18
|
-
"currency": currency
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
listContractDeployments({
|
|
23
|
-
chainId,
|
|
24
|
-
address,
|
|
25
|
-
pageSize = 10,
|
|
26
|
-
pageToken
|
|
27
|
-
}) {
|
|
28
|
-
return this.httpRequest.request({
|
|
29
|
-
method: "GET",
|
|
30
|
-
url: "/v1/chains/{chainId}/contracts/{address}/deployments",
|
|
31
|
-
path: {
|
|
32
|
-
"chainId": chainId,
|
|
33
|
-
"address": address
|
|
34
|
-
},
|
|
35
|
-
query: {
|
|
36
|
-
"pageSize": pageSize,
|
|
37
|
-
"pageToken": pageToken
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
listTransfers({
|
|
42
|
-
chainId,
|
|
43
|
-
address,
|
|
44
|
-
startBlock,
|
|
45
|
-
endBlock,
|
|
46
|
-
pageSize = 10,
|
|
47
|
-
pageToken
|
|
48
|
-
}) {
|
|
49
|
-
return this.httpRequest.request({
|
|
50
|
-
method: "GET",
|
|
51
|
-
url: "/v1/chains/{chainId}/tokens/{address}/transfers",
|
|
52
|
-
path: {
|
|
53
|
-
"chainId": chainId,
|
|
54
|
-
"address": address
|
|
55
|
-
},
|
|
56
|
-
query: {
|
|
57
|
-
"startBlock": startBlock,
|
|
58
|
-
"endBlock": endBlock,
|
|
59
|
-
"pageSize": pageSize,
|
|
60
|
-
"pageToken": pageToken
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
listTransactions({
|
|
65
|
-
chainId,
|
|
66
|
-
address,
|
|
67
|
-
pageSize = 10,
|
|
68
|
-
pageToken,
|
|
69
|
-
startBlock,
|
|
70
|
-
endBlock,
|
|
71
|
-
sortOrder
|
|
72
|
-
}) {
|
|
73
|
-
return this.httpRequest.request({
|
|
74
|
-
method: "GET",
|
|
75
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions",
|
|
76
|
-
path: {
|
|
77
|
-
"chainId": chainId,
|
|
78
|
-
"address": address
|
|
79
|
-
},
|
|
80
|
-
query: {
|
|
81
|
-
"pageSize": pageSize,
|
|
82
|
-
"pageToken": pageToken,
|
|
83
|
-
"startBlock": startBlock,
|
|
84
|
-
"endBlock": endBlock,
|
|
85
|
-
"sortOrder": sortOrder
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
listNativeTransactions({
|
|
90
|
-
chainId,
|
|
91
|
-
address,
|
|
92
|
-
startBlock,
|
|
93
|
-
endBlock,
|
|
94
|
-
pageSize = 10,
|
|
95
|
-
pageToken
|
|
96
|
-
}) {
|
|
97
|
-
return this.httpRequest.request({
|
|
98
|
-
method: "GET",
|
|
99
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listNative",
|
|
100
|
-
path: {
|
|
101
|
-
"chainId": chainId,
|
|
102
|
-
"address": address
|
|
103
|
-
},
|
|
104
|
-
query: {
|
|
105
|
-
"startBlock": startBlock,
|
|
106
|
-
"endBlock": endBlock,
|
|
107
|
-
"pageSize": pageSize,
|
|
108
|
-
"pageToken": pageToken
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
listErc20Transactions({
|
|
113
|
-
chainId,
|
|
114
|
-
address,
|
|
115
|
-
startBlock,
|
|
116
|
-
endBlock,
|
|
117
|
-
pageSize = 10,
|
|
118
|
-
pageToken
|
|
119
|
-
}) {
|
|
120
|
-
return this.httpRequest.request({
|
|
121
|
-
method: "GET",
|
|
122
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",
|
|
123
|
-
path: {
|
|
124
|
-
"chainId": chainId,
|
|
125
|
-
"address": address
|
|
126
|
-
},
|
|
127
|
-
query: {
|
|
128
|
-
"startBlock": startBlock,
|
|
129
|
-
"endBlock": endBlock,
|
|
130
|
-
"pageSize": pageSize,
|
|
131
|
-
"pageToken": pageToken
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
listErc721Transactions({
|
|
136
|
-
chainId,
|
|
137
|
-
address,
|
|
138
|
-
startBlock,
|
|
139
|
-
endBlock,
|
|
140
|
-
pageSize = 10,
|
|
141
|
-
pageToken
|
|
142
|
-
}) {
|
|
143
|
-
return this.httpRequest.request({
|
|
144
|
-
method: "GET",
|
|
145
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",
|
|
146
|
-
path: {
|
|
147
|
-
"chainId": chainId,
|
|
148
|
-
"address": address
|
|
149
|
-
},
|
|
150
|
-
query: {
|
|
151
|
-
"startBlock": startBlock,
|
|
152
|
-
"endBlock": endBlock,
|
|
153
|
-
"pageSize": pageSize,
|
|
154
|
-
"pageToken": pageToken
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
listErc1155Transactions({
|
|
159
|
-
chainId,
|
|
160
|
-
address,
|
|
161
|
-
startBlock,
|
|
162
|
-
endBlock,
|
|
163
|
-
pageSize = 10,
|
|
164
|
-
pageToken
|
|
165
|
-
}) {
|
|
166
|
-
return this.httpRequest.request({
|
|
167
|
-
method: "GET",
|
|
168
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",
|
|
169
|
-
path: {
|
|
170
|
-
"chainId": chainId,
|
|
171
|
-
"address": address
|
|
172
|
-
},
|
|
173
|
-
query: {
|
|
174
|
-
"startBlock": startBlock,
|
|
175
|
-
"endBlock": endBlock,
|
|
176
|
-
"pageSize": pageSize,
|
|
177
|
-
"pageToken": pageToken
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
listInternalTransactions({
|
|
182
|
-
chainId,
|
|
183
|
-
address,
|
|
184
|
-
startBlock,
|
|
185
|
-
endBlock,
|
|
186
|
-
pageSize = 10,
|
|
187
|
-
pageToken
|
|
188
|
-
}) {
|
|
189
|
-
return this.httpRequest.request({
|
|
190
|
-
method: "GET",
|
|
191
|
-
url: "/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",
|
|
192
|
-
path: {
|
|
193
|
-
"chainId": chainId,
|
|
194
|
-
"address": address
|
|
195
|
-
},
|
|
196
|
-
query: {
|
|
197
|
-
"startBlock": startBlock,
|
|
198
|
-
"endBlock": endBlock,
|
|
199
|
-
"pageSize": pageSize,
|
|
200
|
-
"pageToken": pageToken
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
getTransaction({
|
|
205
|
-
chainId,
|
|
206
|
-
txHash
|
|
207
|
-
}) {
|
|
208
|
-
return this.httpRequest.request({
|
|
209
|
-
method: "GET",
|
|
210
|
-
url: "/v1/chains/{chainId}/transactions/{txHash}",
|
|
211
|
-
path: {
|
|
212
|
-
"chainId": chainId,
|
|
213
|
-
"txHash": txHash
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
getTransactionsForBlock({
|
|
218
|
-
chainId,
|
|
219
|
-
blockId
|
|
220
|
-
}) {
|
|
221
|
-
return this.httpRequest.request({
|
|
222
|
-
method: "GET",
|
|
223
|
-
url: "/v1/chains/{chainId}/blocks/{blockId}/transactions",
|
|
224
|
-
path: {
|
|
225
|
-
"chainId": chainId,
|
|
226
|
-
"blockId": blockId
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
listLatestTransactions({
|
|
231
|
-
chainId,
|
|
232
|
-
pageSize = 10,
|
|
233
|
-
pageToken,
|
|
234
|
-
status
|
|
235
|
-
}) {
|
|
236
|
-
return this.httpRequest.request({
|
|
237
|
-
method: "GET",
|
|
238
|
-
url: "/v1/chains/{chainId}/transactions",
|
|
239
|
-
path: {
|
|
240
|
-
"chainId": chainId
|
|
241
|
-
},
|
|
242
|
-
query: {
|
|
243
|
-
"pageSize": pageSize,
|
|
244
|
-
"pageToken": pageToken,
|
|
245
|
-
"status": status
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export { EvmTransactionsService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}getDeploymentTransaction({chainId:e,address:s,currency:t}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/transactions:getDeployment",path:{chainId:e,address:s},query:{currency:t}})}listContractDeployments({chainId:e,address:s,pageToken:t,pageSize:a=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/contracts/{address}/deployments",path:{chainId:e,address:s},query:{pageToken:t,pageSize:a}})}listTransfers({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/tokens/{address}/transfers",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listTransactions({chainId:e,address:s,pageToken:t,pageSize:a=10,startBlock:r,endBlock:n,sortOrder:d}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions",path:{chainId:e,address:s},query:{pageToken:t,pageSize:a,startBlock:r,endBlock:n,sortOrder:d}})}listNativeTransactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listNative",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listErc20Transactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc20",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listErc721Transactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc721",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listErc1155Transactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listErc1155",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}listInternalTransactions({chainId:e,address:s,startBlock:t,endBlock:a,pageToken:r,pageSize:n=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/addresses/{address}/transactions:listInternals",path:{chainId:e,address:s},query:{startBlock:t,endBlock:a,pageToken:r,pageSize:n}})}getTransaction({chainId:e,txHash:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions/{txHash}",path:{chainId:e,txHash:s}})}getTransactionsForBlock({chainId:e,blockId:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/blocks/{blockId}/transactions",path:{chainId:e,blockId:s}})}listLatestTransactions({chainId:e,pageToken:s,pageSize:t=10,status:a}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/transactions",path:{chainId:e},query:{pageToken:s,pageSize:t,status:a}})}}export{e as EvmTransactionsService};
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
healthCheck() {
|
|
6
|
-
return this.httpRequest.request({
|
|
7
|
-
method: "GET",
|
|
8
|
-
url: "/v1/health-check",
|
|
9
|
-
errors: {
|
|
10
|
-
503: `The Health Check is not successful`
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export { HealthCheckService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}healthCheck(){return this.httpRequest.request({method:"GET",url:"/v1/health-check",errors:{503:"The Health Check is not successful"}})}}export{e as HealthCheckService};
|
|
@@ -15,7 +15,7 @@ declare class NfTsService {
|
|
|
15
15
|
*/
|
|
16
16
|
reindexNft({ chainId, address, tokenId, }: {
|
|
17
17
|
/**
|
|
18
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
18
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
19
19
|
*/
|
|
20
20
|
chainId: string;
|
|
21
21
|
/**
|
|
@@ -33,23 +33,23 @@ declare class NfTsService {
|
|
|
33
33
|
* @returns ListNftTokens
|
|
34
34
|
* @throws ApiError
|
|
35
35
|
*/
|
|
36
|
-
listTokens({ chainId, address,
|
|
36
|
+
listTokens({ chainId, address, pageToken, pageSize, }: {
|
|
37
37
|
/**
|
|
38
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
39
39
|
*/
|
|
40
40
|
chainId: string;
|
|
41
41
|
/**
|
|
42
42
|
* Contract address on the relevant chain.
|
|
43
43
|
*/
|
|
44
44
|
address: string;
|
|
45
|
-
/**
|
|
46
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
47
|
-
*/
|
|
48
|
-
pageSize?: number;
|
|
49
45
|
/**
|
|
50
46
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
51
47
|
*/
|
|
52
48
|
pageToken?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
51
|
+
*/
|
|
52
|
+
pageSize?: number;
|
|
53
53
|
}): CancelablePromise<ListNftTokens>;
|
|
54
54
|
/**
|
|
55
55
|
* Get token details
|
|
@@ -59,7 +59,7 @@ declare class NfTsService {
|
|
|
59
59
|
*/
|
|
60
60
|
getTokenDetails({ chainId, address, tokenId, }: {
|
|
61
61
|
/**
|
|
62
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
62
|
+
* A supported evm chain id, chain alias or blockchain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
63
63
|
*/
|
|
64
64
|
chainId: string;
|
|
65
65
|
/**
|
|
@@ -1,56 +1 @@
|
|
|
1
|
-
class
|
|
2
|
-
constructor(httpRequest) {
|
|
3
|
-
this.httpRequest = httpRequest;
|
|
4
|
-
}
|
|
5
|
-
reindexNft({
|
|
6
|
-
chainId,
|
|
7
|
-
address,
|
|
8
|
-
tokenId
|
|
9
|
-
}) {
|
|
10
|
-
return this.httpRequest.request({
|
|
11
|
-
method: "POST",
|
|
12
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",
|
|
13
|
-
path: {
|
|
14
|
-
"chainId": chainId,
|
|
15
|
-
"address": address,
|
|
16
|
-
"tokenId": tokenId
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
listTokens({
|
|
21
|
-
chainId,
|
|
22
|
-
address,
|
|
23
|
-
pageSize = 10,
|
|
24
|
-
pageToken
|
|
25
|
-
}) {
|
|
26
|
-
return this.httpRequest.request({
|
|
27
|
-
method: "GET",
|
|
28
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens",
|
|
29
|
-
path: {
|
|
30
|
-
"chainId": chainId,
|
|
31
|
-
"address": address
|
|
32
|
-
},
|
|
33
|
-
query: {
|
|
34
|
-
"pageSize": pageSize,
|
|
35
|
-
"pageToken": pageToken
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
getTokenDetails({
|
|
40
|
-
chainId,
|
|
41
|
-
address,
|
|
42
|
-
tokenId
|
|
43
|
-
}) {
|
|
44
|
-
return this.httpRequest.request({
|
|
45
|
-
method: "GET",
|
|
46
|
-
url: "/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",
|
|
47
|
-
path: {
|
|
48
|
-
"chainId": chainId,
|
|
49
|
-
"address": address,
|
|
50
|
-
"tokenId": tokenId
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export { NfTsService };
|
|
1
|
+
class e{constructor(e){this.httpRequest=e}reindexNft({chainId:e,address:t,tokenId:s}){return this.httpRequest.request({method:"POST",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}:reindex",path:{chainId:e,address:t,tokenId:s}})}listTokens({chainId:e,address:t,pageToken:s,pageSize:d=10}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens",path:{chainId:e,address:t},query:{pageToken:s,pageSize:d}})}getTokenDetails({chainId:e,address:t,tokenId:s}){return this.httpRequest.request({method:"GET",url:"/v1/chains/{chainId}/nfts/collections/{address}/tokens/{tokenId}",path:{chainId:e,address:t,tokenId:s}})}}export{e as NfTsService};
|