@avalabs/glacier-sdk 2.8.0-alpha.122 → 2.8.0-alpha.123
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 +2244 -2021
- package/dist/index.js +355 -198
- package/esm/generated/Glacier.d.ts +24 -2
- package/esm/generated/Glacier.js +25 -3
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +15 -0
- package/esm/generated/models/Contract.d.ts +37 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
- package/esm/generated/models/DelegationStatusType.d.ts +5 -0
- package/esm/generated/models/DelegationStatusType.js +6 -0
- package/esm/generated/models/ListContractsResponse.d.ts +11 -0
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +11 -0
- package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
- package/esm/generated/models/PrimaryNetwork.js +7 -0
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +5 -2
- package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
- package/esm/generated/models/StakingDistribution.d.ts +1 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +1 -0
- package/esm/generated/services/DefaultService.d.ts +52 -0
- package/esm/generated/services/DefaultService.js +34 -0
- package/esm/generated/services/EvmBalancesService.d.ts +177 -0
- package/esm/generated/services/EvmBalancesService.js +116 -0
- package/esm/generated/services/EvmBlocksService.d.ts +47 -0
- package/esm/generated/services/EvmBlocksService.js +37 -0
- package/esm/generated/services/EvmChainsService.d.ts +36 -0
- package/esm/generated/services/EvmChainsService.js +29 -0
- package/esm/generated/services/{EvmService.d.ts → EvmTransactionsService.d.ts} +9 -314
- package/esm/generated/services/{EvmService.js → EvmTransactionsService.js} +7 -219
- package/esm/generated/services/NfTsService.d.ts +108 -0
- package/esm/generated/services/NfTsService.js +77 -0
- package/esm/generated/services/PrimaryNetworkBalancesService.d.ts +40 -0
- package/esm/generated/services/PrimaryNetworkBalancesService.js +26 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.d.ts +85 -0
- package/esm/generated/services/PrimaryNetworkBlocksService.js +62 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.d.ts +69 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.js +49 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +0 -436
- package/esm/generated/services/PrimaryNetworkService.js +0 -298
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +171 -0
- package/esm/generated/services/PrimaryNetworkTransactionsService.js +107 -0
- package/esm/generated/services/PrimaryNetworkUtxOsService.d.ts +54 -0
- package/esm/generated/services/PrimaryNetworkUtxOsService.js +34 -0
- package/esm/generated/services/PrimaryNetworkVerticesService.d.ts +90 -0
- package/esm/generated/services/PrimaryNetworkVerticesService.js +64 -0
- package/esm/index.d.ts +20 -1
- package/esm/index.js +15 -1
- package/package.json +2 -2
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { GetEvmBlockResponse } from '../models/GetEvmBlockResponse.js';
|
|
2
|
+
import { ListEvmBlocksResponse } from '../models/ListEvmBlocksResponse.js';
|
|
3
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
4
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
5
|
+
|
|
6
|
+
declare class EvmBlocksService {
|
|
7
|
+
readonly httpRequest: BaseHttpRequest;
|
|
8
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
9
|
+
/**
|
|
10
|
+
* List latest blocks
|
|
11
|
+
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
12
|
+
* @returns ListEvmBlocksResponse
|
|
13
|
+
* @throws ApiError
|
|
14
|
+
*/
|
|
15
|
+
getLatestBlocks({ chainId, pageSize, pageToken, }: {
|
|
16
|
+
/**
|
|
17
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
18
|
+
*/
|
|
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
|
+
/**
|
|
25
|
+
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
26
|
+
*/
|
|
27
|
+
pageToken?: string;
|
|
28
|
+
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* Get block
|
|
31
|
+
* Gets the details of an individual block on the EVM-compatible chain.
|
|
32
|
+
* @returns GetEvmBlockResponse
|
|
33
|
+
* @throws ApiError
|
|
34
|
+
*/
|
|
35
|
+
getBlock({ chainId, blockId, }: {
|
|
36
|
+
/**
|
|
37
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
38
|
+
*/
|
|
39
|
+
chainId: string;
|
|
40
|
+
/**
|
|
41
|
+
* A block identifier which is either a block number or the block hash.
|
|
42
|
+
*/
|
|
43
|
+
blockId: string;
|
|
44
|
+
}): CancelablePromise<GetEvmBlockResponse>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export { EvmBlocksService };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
class EvmBlocksService {
|
|
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 };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { GetChainResponse } from '../models/GetChainResponse.js';
|
|
2
|
+
import { ListChainsResponse } from '../models/ListChainsResponse.js';
|
|
3
|
+
import { NetworkType } from '../models/NetworkType.js';
|
|
4
|
+
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
5
|
+
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
6
|
+
|
|
7
|
+
declare class EvmChainsService {
|
|
8
|
+
readonly httpRequest: BaseHttpRequest;
|
|
9
|
+
constructor(httpRequest: BaseHttpRequest);
|
|
10
|
+
/**
|
|
11
|
+
* List chains
|
|
12
|
+
* Lists the supported EVM-compatible chains. Filterable by network.
|
|
13
|
+
* @returns ListChainsResponse
|
|
14
|
+
* @throws ApiError
|
|
15
|
+
*/
|
|
16
|
+
supportedChains({ network, }: {
|
|
17
|
+
/**
|
|
18
|
+
* mainnet or testnet.
|
|
19
|
+
*/
|
|
20
|
+
network?: NetworkType;
|
|
21
|
+
}): CancelablePromise<ListChainsResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Get chain information
|
|
24
|
+
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
25
|
+
* @returns GetChainResponse
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
getChainInfo({ chainId, }: {
|
|
29
|
+
/**
|
|
30
|
+
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
31
|
+
*/
|
|
32
|
+
chainId: string;
|
|
33
|
+
}): CancelablePromise<GetChainResponse>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { EvmChainsService };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
class EvmChainsService {
|
|
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,234 +1,21 @@
|
|
|
1
|
-
import { CollectionSortByOption } from '../models/CollectionSortByOption.js';
|
|
2
1
|
import { CurrencyCode } from '../models/CurrencyCode.js';
|
|
3
|
-
import { Erc1155Token } from '../models/Erc1155Token.js';
|
|
4
|
-
import { Erc721Token } from '../models/Erc721Token.js';
|
|
5
|
-
import { GetChainResponse } from '../models/GetChainResponse.js';
|
|
6
|
-
import { GetEvmBlockResponse } from '../models/GetEvmBlockResponse.js';
|
|
7
|
-
import { GetNativeBalanceResponse } from '../models/GetNativeBalanceResponse.js';
|
|
8
2
|
import { GetTransactionResponse } from '../models/GetTransactionResponse.js';
|
|
9
|
-
import {
|
|
10
|
-
import { ListCollectibleBalancesResponse } from '../models/ListCollectibleBalancesResponse.js';
|
|
11
|
-
import { ListErc1155BalancesResponse } from '../models/ListErc1155BalancesResponse.js';
|
|
3
|
+
import { ListContractsResponse } from '../models/ListContractsResponse.js';
|
|
12
4
|
import { ListErc1155TransactionsResponse } from '../models/ListErc1155TransactionsResponse.js';
|
|
13
|
-
import { ListErc20BalancesResponse } from '../models/ListErc20BalancesResponse.js';
|
|
14
5
|
import { ListErc20TransactionsResponse } from '../models/ListErc20TransactionsResponse.js';
|
|
15
|
-
import { ListErc721BalancesResponse } from '../models/ListErc721BalancesResponse.js';
|
|
16
6
|
import { ListErc721TransactionsResponse } from '../models/ListErc721TransactionsResponse.js';
|
|
17
|
-
import { ListEvmBlocksResponse } from '../models/ListEvmBlocksResponse.js';
|
|
18
7
|
import { ListInternalTransactionsResponse } from '../models/ListInternalTransactionsResponse.js';
|
|
19
8
|
import { ListNativeTransactionsResponse } from '../models/ListNativeTransactionsResponse.js';
|
|
20
|
-
import { ListNftCollectionWithMetricsResponse } from '../models/ListNftCollectionWithMetricsResponse.js';
|
|
21
9
|
import { ListTransactionDetailsResponse } from '../models/ListTransactionDetailsResponse.js';
|
|
22
10
|
import { ListTransfersResponse } from '../models/ListTransfersResponse.js';
|
|
23
|
-
import { NetworkType } from '../models/NetworkType.js';
|
|
24
|
-
import { NftCollectionWithMetrics } from '../models/NftCollectionWithMetrics.js';
|
|
25
11
|
import { SortOrder } from '../models/SortOrder.js';
|
|
26
12
|
import { TransactionStatus } from '../models/TransactionStatus.js';
|
|
27
|
-
import { TrendingTimeframe } from '../models/TrendingTimeframe.js';
|
|
28
13
|
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
29
14
|
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
30
15
|
|
|
31
|
-
declare class
|
|
16
|
+
declare class EvmTransactionsService {
|
|
32
17
|
readonly httpRequest: BaseHttpRequest;
|
|
33
18
|
constructor(httpRequest: BaseHttpRequest);
|
|
34
|
-
/**
|
|
35
|
-
* Get native token balance
|
|
36
|
-
* Gets native token balance of a wallet address.
|
|
37
|
-
*
|
|
38
|
-
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
39
|
-
* @returns GetNativeBalanceResponse
|
|
40
|
-
* @throws ApiError
|
|
41
|
-
*/
|
|
42
|
-
getNativeBalance({ chainId, address, blockNumber, currency, }: {
|
|
43
|
-
/**
|
|
44
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
45
|
-
*/
|
|
46
|
-
chainId: string;
|
|
47
|
-
/**
|
|
48
|
-
* A wallet address.
|
|
49
|
-
*/
|
|
50
|
-
address: string;
|
|
51
|
-
/**
|
|
52
|
-
* The block number, if not defined the block number will be the latest block.
|
|
53
|
-
*/
|
|
54
|
-
blockNumber?: string;
|
|
55
|
-
/**
|
|
56
|
-
* The currency that return values should use. Defaults to USD.
|
|
57
|
-
*/
|
|
58
|
-
currency?: CurrencyCode;
|
|
59
|
-
}): CancelablePromise<GetNativeBalanceResponse>;
|
|
60
|
-
/**
|
|
61
|
-
* List ERC-20 balances
|
|
62
|
-
* Lists ERC-20 token balances of a wallet address.
|
|
63
|
-
*
|
|
64
|
-
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
65
|
-
*
|
|
66
|
-
* Balance for specific contracts can be retrieved with the `contractAddresses` parameter.
|
|
67
|
-
* @returns ListErc20BalancesResponse
|
|
68
|
-
* @throws ApiError
|
|
69
|
-
*/
|
|
70
|
-
listErc20Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddresses, currency, }: {
|
|
71
|
-
/**
|
|
72
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
73
|
-
*/
|
|
74
|
-
chainId: string;
|
|
75
|
-
/**
|
|
76
|
-
* A wallet address.
|
|
77
|
-
*/
|
|
78
|
-
address: string;
|
|
79
|
-
/**
|
|
80
|
-
* The block number, if not defined the block number will be the latest block.
|
|
81
|
-
*/
|
|
82
|
-
blockNumber?: string;
|
|
83
|
-
/**
|
|
84
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
85
|
-
*/
|
|
86
|
-
pageSize?: number;
|
|
87
|
-
/**
|
|
88
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
89
|
-
*/
|
|
90
|
-
pageToken?: string;
|
|
91
|
-
/**
|
|
92
|
-
* A comma separated list of contract addresses to filter by.
|
|
93
|
-
*/
|
|
94
|
-
contractAddresses?: string;
|
|
95
|
-
/**
|
|
96
|
-
* The currency that return values should use. Defaults to USD.
|
|
97
|
-
*/
|
|
98
|
-
currency?: CurrencyCode;
|
|
99
|
-
}): CancelablePromise<ListErc20BalancesResponse>;
|
|
100
|
-
/**
|
|
101
|
-
* List ERC-721 balances
|
|
102
|
-
* Lists ERC-721 token balances of a wallet address.
|
|
103
|
-
*
|
|
104
|
-
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
105
|
-
* @returns ListErc721BalancesResponse
|
|
106
|
-
* @throws ApiError
|
|
107
|
-
*/
|
|
108
|
-
listErc721Balances({ chainId, address, pageSize, pageToken, contractAddress, }: {
|
|
109
|
-
/**
|
|
110
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
111
|
-
*/
|
|
112
|
-
chainId: string;
|
|
113
|
-
/**
|
|
114
|
-
* A wallet address.
|
|
115
|
-
*/
|
|
116
|
-
address: string;
|
|
117
|
-
/**
|
|
118
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
119
|
-
*/
|
|
120
|
-
pageSize?: number;
|
|
121
|
-
/**
|
|
122
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
123
|
-
*/
|
|
124
|
-
pageToken?: string;
|
|
125
|
-
/**
|
|
126
|
-
* A contract addresses to filter by.
|
|
127
|
-
*/
|
|
128
|
-
contractAddress?: string;
|
|
129
|
-
}): CancelablePromise<ListErc721BalancesResponse>;
|
|
130
|
-
/**
|
|
131
|
-
* List ERC-1155 balances
|
|
132
|
-
* Lists ERC-1155 token balances of a wallet address.
|
|
133
|
-
*
|
|
134
|
-
* Balance at a given block can be retrieved with the `blockNumber` parameter.
|
|
135
|
-
*
|
|
136
|
-
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
137
|
-
* @returns ListErc1155BalancesResponse
|
|
138
|
-
* @throws ApiError
|
|
139
|
-
*/
|
|
140
|
-
listErc1155Balances({ chainId, address, blockNumber, pageSize, pageToken, contractAddress, }: {
|
|
141
|
-
/**
|
|
142
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
143
|
-
*/
|
|
144
|
-
chainId: string;
|
|
145
|
-
/**
|
|
146
|
-
* A wallet address.
|
|
147
|
-
*/
|
|
148
|
-
address: string;
|
|
149
|
-
/**
|
|
150
|
-
* The block number, if not defined the block number will be the latest block.
|
|
151
|
-
*/
|
|
152
|
-
blockNumber?: string;
|
|
153
|
-
/**
|
|
154
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
155
|
-
*/
|
|
156
|
-
pageSize?: number;
|
|
157
|
-
/**
|
|
158
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
159
|
-
*/
|
|
160
|
-
pageToken?: string;
|
|
161
|
-
/**
|
|
162
|
-
* A contract addresses to filter by.
|
|
163
|
-
*/
|
|
164
|
-
contractAddress?: string;
|
|
165
|
-
}): CancelablePromise<ListErc1155BalancesResponse>;
|
|
166
|
-
/**
|
|
167
|
-
* List collectible (ERC-721/ERC-1155) balances
|
|
168
|
-
* Lists ERC-721 and ERC-1155 token balances of a wallet address.
|
|
169
|
-
*
|
|
170
|
-
* Balance for a specific contract can be retrieved with the `contractAddress` parameter.
|
|
171
|
-
* @returns ListCollectibleBalancesResponse
|
|
172
|
-
* @throws ApiError
|
|
173
|
-
*/
|
|
174
|
-
listCollectibleBalances({ chainId, address, pageSize, pageToken, contractAddress, }: {
|
|
175
|
-
/**
|
|
176
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
177
|
-
*/
|
|
178
|
-
chainId: string;
|
|
179
|
-
/**
|
|
180
|
-
* A wallet address.
|
|
181
|
-
*/
|
|
182
|
-
address: string;
|
|
183
|
-
/**
|
|
184
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
185
|
-
*/
|
|
186
|
-
pageSize?: number;
|
|
187
|
-
/**
|
|
188
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
189
|
-
*/
|
|
190
|
-
pageToken?: string;
|
|
191
|
-
/**
|
|
192
|
-
* A contract addresses to filter by.
|
|
193
|
-
*/
|
|
194
|
-
contractAddress?: string;
|
|
195
|
-
}): CancelablePromise<ListCollectibleBalancesResponse>;
|
|
196
|
-
/**
|
|
197
|
-
* List latest blocks
|
|
198
|
-
* Lists the latest indexed blocks on the EVM-compatible chain sorted in descending order by block timestamp.
|
|
199
|
-
* @returns ListEvmBlocksResponse
|
|
200
|
-
* @throws ApiError
|
|
201
|
-
*/
|
|
202
|
-
getLatestBlocks({ chainId, pageSize, pageToken, }: {
|
|
203
|
-
/**
|
|
204
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
205
|
-
*/
|
|
206
|
-
chainId: string;
|
|
207
|
-
/**
|
|
208
|
-
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
209
|
-
*/
|
|
210
|
-
pageSize?: number;
|
|
211
|
-
/**
|
|
212
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
213
|
-
*/
|
|
214
|
-
pageToken?: string;
|
|
215
|
-
}): CancelablePromise<ListEvmBlocksResponse>;
|
|
216
|
-
/**
|
|
217
|
-
* Get block
|
|
218
|
-
* Gets the details of an individual block on the EVM-compatible chain.
|
|
219
|
-
* @returns GetEvmBlockResponse
|
|
220
|
-
* @throws ApiError
|
|
221
|
-
*/
|
|
222
|
-
getBlock({ chainId, blockId, }: {
|
|
223
|
-
/**
|
|
224
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
225
|
-
*/
|
|
226
|
-
chainId: string;
|
|
227
|
-
/**
|
|
228
|
-
* A block identifier which is either a block number or the block hash.
|
|
229
|
-
*/
|
|
230
|
-
blockId: string;
|
|
231
|
-
}): CancelablePromise<GetEvmBlockResponse>;
|
|
232
19
|
/**
|
|
233
20
|
* Get deployment transaction
|
|
234
21
|
* If the address is a smart contract, returns the transaction in which it was deployed.
|
|
@@ -250,80 +37,20 @@ declare class EvmService {
|
|
|
250
37
|
currency?: CurrencyCode;
|
|
251
38
|
}): CancelablePromise<GetTransactionResponse>;
|
|
252
39
|
/**
|
|
253
|
-
* List
|
|
254
|
-
* Lists
|
|
255
|
-
* @returns
|
|
256
|
-
* @throws ApiError
|
|
257
|
-
*/
|
|
258
|
-
supportedChains({ network, }: {
|
|
259
|
-
/**
|
|
260
|
-
* mainnet or testnet.
|
|
261
|
-
*/
|
|
262
|
-
network?: NetworkType;
|
|
263
|
-
}): CancelablePromise<ListChainsResponse>;
|
|
264
|
-
/**
|
|
265
|
-
* Get chain information
|
|
266
|
-
* Gets chain information for the EVM-compatible chain if supported by the api.
|
|
267
|
-
* @returns GetChainResponse
|
|
40
|
+
* List deployed contracts
|
|
41
|
+
* Lists all contracts deployed by the given address.
|
|
42
|
+
* @returns ListContractsResponse
|
|
268
43
|
* @throws ApiError
|
|
269
44
|
*/
|
|
270
|
-
|
|
45
|
+
listContractDeployments({ chainId, address, pageSize, pageToken, }: {
|
|
271
46
|
/**
|
|
272
47
|
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
273
48
|
*/
|
|
274
49
|
chainId: string;
|
|
275
|
-
}): CancelablePromise<GetChainResponse>;
|
|
276
|
-
/**
|
|
277
|
-
* Reindex NFT metadata
|
|
278
|
-
* Triggers reindexing of token metadata for NFT contracts. Will return 400 if the NFT has been indexed within the last hour.
|
|
279
|
-
* @returns any
|
|
280
|
-
* @throws ApiError
|
|
281
|
-
*/
|
|
282
|
-
reindexNft({ chainId, address, tokenId, }: {
|
|
283
50
|
/**
|
|
284
|
-
* A
|
|
285
|
-
*/
|
|
286
|
-
chainId: string;
|
|
287
|
-
/**
|
|
288
|
-
* Contract address on the relevant chain.
|
|
289
|
-
*/
|
|
290
|
-
address: string;
|
|
291
|
-
/**
|
|
292
|
-
* TokenId on the contract
|
|
293
|
-
*/
|
|
294
|
-
tokenId: string;
|
|
295
|
-
}): CancelablePromise<any>;
|
|
296
|
-
/**
|
|
297
|
-
* Get collection details
|
|
298
|
-
* Get collection details for a specific contract.
|
|
299
|
-
* @returns NftCollectionWithMetrics
|
|
300
|
-
* @throws ApiError
|
|
301
|
-
*/
|
|
302
|
-
getCollection({ chainId, address, timeframe, }: {
|
|
303
|
-
/**
|
|
304
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
305
|
-
*/
|
|
306
|
-
chainId: string;
|
|
307
|
-
/**
|
|
308
|
-
* Contract address on the relevant chain.
|
|
51
|
+
* A wallet address.
|
|
309
52
|
*/
|
|
310
53
|
address: string;
|
|
311
|
-
/**
|
|
312
|
-
* The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
|
|
313
|
-
*/
|
|
314
|
-
timeframe?: TrendingTimeframe;
|
|
315
|
-
}): CancelablePromise<NftCollectionWithMetrics>;
|
|
316
|
-
/**
|
|
317
|
-
* List collections
|
|
318
|
-
* Lists details and metrics for collections.
|
|
319
|
-
* @returns ListNftCollectionWithMetricsResponse
|
|
320
|
-
* @throws ApiError
|
|
321
|
-
*/
|
|
322
|
-
listCollections({ chainId, pageSize, pageToken, timeframe, sortBy, sortOrder, }: {
|
|
323
|
-
/**
|
|
324
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
325
|
-
*/
|
|
326
|
-
chainId: string;
|
|
327
54
|
/**
|
|
328
55
|
* The maximum number of items to return. The minimum page size is 1. The maximum pageSize is 100.
|
|
329
56
|
*/
|
|
@@ -332,39 +59,7 @@ declare class EvmService {
|
|
|
332
59
|
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
333
60
|
*/
|
|
334
61
|
pageToken?: string;
|
|
335
|
-
|
|
336
|
-
* The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
|
|
337
|
-
*/
|
|
338
|
-
timeframe?: TrendingTimeframe;
|
|
339
|
-
/**
|
|
340
|
-
* Which property to sort by, in conjunction with sortOrder.
|
|
341
|
-
*/
|
|
342
|
-
sortBy?: CollectionSortByOption;
|
|
343
|
-
/**
|
|
344
|
-
* 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.
|
|
345
|
-
*/
|
|
346
|
-
sortOrder?: SortOrder;
|
|
347
|
-
}): CancelablePromise<ListNftCollectionWithMetricsResponse>;
|
|
348
|
-
/**
|
|
349
|
-
* Get token details
|
|
350
|
-
* Get token details for a specific token of a contract.
|
|
351
|
-
* @returns any
|
|
352
|
-
* @throws ApiError
|
|
353
|
-
*/
|
|
354
|
-
getTokenDetails({ chainId, address, tokenId, }: {
|
|
355
|
-
/**
|
|
356
|
-
* A supported evm chain id. Use the `/chains` endpoint to get a list of supported chain ids.
|
|
357
|
-
*/
|
|
358
|
-
chainId: string;
|
|
359
|
-
/**
|
|
360
|
-
* Contract address on the relevant chain.
|
|
361
|
-
*/
|
|
362
|
-
address: string;
|
|
363
|
-
/**
|
|
364
|
-
* TokenId on the contract
|
|
365
|
-
*/
|
|
366
|
-
tokenId: string;
|
|
367
|
-
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
62
|
+
}): CancelablePromise<ListContractsResponse>;
|
|
368
63
|
/**
|
|
369
64
|
* List ERC transfers
|
|
370
65
|
* Lists ERC transfers for an ERC-20, ERC-721, or ERC-1155 contract address.
|
|
@@ -613,4 +308,4 @@ declare class EvmService {
|
|
|
613
308
|
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
614
309
|
}
|
|
615
310
|
|
|
616
|
-
export {
|
|
311
|
+
export { EvmTransactionsService };
|