@avalabs/glacier-sdk 2.8.0-alpha.99 → 2.8.0-canary.122008d.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2418 -1684
- package/dist/index.js +749 -317
- package/esm/generated/Glacier.d.ts +26 -2
- package/esm/generated/Glacier.js +52 -12
- package/esm/generated/core/ApiError.js +5 -0
- package/esm/generated/core/CancelablePromise.js +11 -6
- package/esm/generated/core/OpenAPI.js +1 -1
- package/esm/generated/core/request.js +14 -31
- package/esm/generated/models/ActiveDelegatorDetails.d.ts +19 -0
- package/esm/generated/models/ActiveDelegatorDetails.js +8 -0
- package/esm/generated/models/ActiveValidatorDetails.d.ts +27 -0
- package/esm/generated/models/ActiveValidatorDetails.js +8 -0
- package/esm/generated/models/Blockchain.d.ts +10 -0
- package/esm/generated/models/BlockchainId.d.ts +6 -3
- package/esm/generated/models/BlockchainId.js +5 -2
- package/esm/generated/models/BlockchainIds.d.ts +9 -0
- package/esm/generated/models/BlockchainIds.js +10 -0
- package/esm/generated/models/BlockchainInfo.d.ts +5 -0
- package/esm/generated/models/ChainAddressChainIdMap.d.ts +2 -2
- package/esm/generated/models/ChainInfo.d.ts +2 -4
- package/esm/generated/models/CompletedDelegatorDetails.d.ts +19 -0
- package/esm/generated/models/CompletedDelegatorDetails.js +8 -0
- package/esm/generated/models/CompletedValidatorDetails.d.ts +20 -0
- package/esm/generated/models/CompletedValidatorDetails.js +8 -0
- package/esm/generated/models/ContractDeploymentDetails.d.ts +13 -0
- package/esm/generated/models/ContractSubmissionBody.d.ts +10 -0
- package/esm/generated/models/ContractSubmissionErc1155.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc1155.js +8 -0
- package/esm/generated/models/ContractSubmissionErc20.d.ts +31 -0
- package/esm/generated/models/ContractSubmissionErc20.js +8 -0
- package/esm/generated/models/ContractSubmissionErc721.d.ts +29 -0
- package/esm/generated/models/ContractSubmissionErc721.js +8 -0
- package/esm/generated/models/ContractSubmissionUnknown.d.ts +25 -0
- package/esm/generated/models/ContractSubmissionUnknown.js +8 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.d.ts +23 -0
- package/esm/generated/models/CreateEvmTransactionExportRequest.js +8 -0
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.d.ts +23 -0
- package/esm/generated/models/CreatePrimaryNetworkTransactionExportRequest.js +8 -0
- package/esm/generated/models/DelegationStatusType.d.ts +7 -0
- package/esm/generated/models/DelegationStatusType.js +8 -0
- package/esm/generated/models/DelegatorsDetails.d.ts +6 -0
- package/esm/generated/models/EVMInput.d.ts +5 -0
- package/esm/generated/models/Erc1155Contract.d.ts +37 -0
- package/esm/generated/models/Erc1155Contract.js +8 -0
- package/esm/generated/models/Erc1155TokenBalance.d.ts +1 -2
- package/esm/generated/models/Erc1155Transfer.d.ts +1 -0
- package/esm/generated/models/Erc1155TransferDetails.d.ts +1 -0
- package/esm/generated/models/Erc20Contract.d.ts +41 -0
- package/esm/generated/models/Erc20Contract.js +8 -0
- package/esm/generated/models/Erc20Token.d.ts +1 -3
- package/esm/generated/models/Erc20TokenBalance.d.ts +2 -5
- package/esm/generated/models/Erc20Transfer.d.ts +1 -0
- package/esm/generated/models/Erc20TransferDetails.d.ts +1 -0
- package/esm/generated/models/Erc721Contract.d.ts +35 -0
- package/esm/generated/models/Erc721Contract.js +8 -0
- package/esm/generated/models/Erc721Transfer.d.ts +1 -0
- package/esm/generated/models/Erc721TransferDetails.d.ts +1 -0
- package/esm/generated/models/{GetBlockResponse.d.ts → EvmBlock.d.ts} +2 -6
- package/esm/generated/models/EvmNetworkOptions.d.ts +1 -1
- package/esm/generated/models/GetChainResponse.d.ts +2 -4
- package/esm/generated/models/GetEvmBlockResponse.d.ts +45 -0
- package/esm/generated/models/GetNetworkDetailsResponse.d.ts +9 -0
- package/esm/generated/models/GetPrimaryNetworkBlockResponse.d.ts +15 -0
- package/esm/generated/models/GetTransactionResponse.d.ts +1 -7
- package/esm/generated/models/HistoricalReward.d.ts +24 -0
- package/esm/generated/models/ImageAsset.d.ts +9 -0
- package/esm/generated/models/{ListListingsResponse.d.ts → ListBlockchainsResponse.d.ts} +4 -4
- package/esm/generated/models/ListCChainAtomicBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListCChainAtomicTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/ListCollectibleBalancesResponse.d.ts +1 -2
- package/esm/generated/models/ListContractsResponse.d.ts +14 -0
- package/esm/generated/models/ListDelegatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListEvmBlocksResponse.d.ts +11 -0
- package/esm/generated/models/ListHistoricalRewardsResponse.d.ts +11 -0
- package/esm/generated/models/ListPChainBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListPChainTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/ListPChainUtxosResponse.d.ts +2 -0
- package/esm/generated/models/ListPendingRewardsResponse.d.ts +11 -0
- package/esm/generated/models/ListPrimaryNetworkBlocksResponse.d.ts +13 -0
- package/esm/generated/models/{ListBlocksResponse.d.ts → ListSubnetsResponse.d.ts} +4 -4
- package/esm/generated/models/ListUtxosResponse.d.ts +2 -0
- package/esm/generated/models/ListValidatorDetailsResponse.d.ts +16 -0
- package/esm/generated/models/ListXChainBalancesResponse.d.ts +2 -0
- package/esm/generated/models/ListXChainTransactionsResponse.d.ts +2 -0
- package/esm/generated/models/ListXChainVerticesResponse.d.ts +2 -0
- package/esm/generated/models/Method.d.ts +1 -7
- package/esm/generated/models/NativeTokenBalance.d.ts +2 -5
- package/esm/generated/models/NetworkToken.d.ts +1 -3
- package/esm/generated/models/NetworkTokenDetails.d.ts +1 -3
- package/esm/generated/models/NetworkType.d.ts +6 -0
- package/esm/generated/models/NetworkType.js +7 -0
- package/esm/generated/models/OperationStatusResponse.d.ts +2 -2
- package/esm/generated/models/OperationType.d.ts +2 -1
- package/esm/generated/models/OperationType.js +2 -1
- package/esm/generated/models/PChainBalance.d.ts +16 -7
- package/esm/generated/models/PChainId.d.ts +2 -2
- package/esm/generated/models/PChainId.js +1 -1
- package/esm/generated/models/PChainSharedAsset.d.ts +8 -0
- package/esm/generated/models/PChainTransaction.d.ts +10 -15
- package/esm/generated/models/PChainTransactionType.d.ts +17 -0
- package/esm/generated/models/PChainTransactionType.js +18 -0
- package/esm/generated/models/PChainUtxo.d.ts +10 -1
- package/esm/generated/models/PendingDelegatorDetails.d.ts +19 -0
- package/esm/generated/models/PendingDelegatorDetails.js +8 -0
- package/esm/generated/models/PendingReward.d.ts +22 -0
- package/esm/generated/models/PendingValidatorDetails.d.ts +16 -0
- package/esm/generated/models/PendingValidatorDetails.js +8 -0
- package/esm/generated/models/PricingProviders.d.ts +5 -0
- package/esm/generated/models/PrimaryNetwork.d.ts +6 -0
- package/esm/generated/models/PrimaryNetwork.js +7 -0
- package/esm/generated/models/{Block.d.ts → PrimaryNetworkBlock.d.ts} +3 -3
- package/esm/generated/models/PrimaryNetworkChainInfo.d.ts +9 -0
- package/esm/generated/models/PrimaryNetworkChainName.d.ts +7 -0
- package/esm/generated/models/PrimaryNetworkChainName.js +8 -0
- package/esm/generated/models/PrimaryNetworkOptions.d.ts +2 -1
- package/esm/generated/models/PrimaryNetworkTxType.d.ts +20 -0
- package/esm/generated/models/PrimaryNetworkTxType.js +21 -0
- package/esm/generated/models/RewardType.d.ts +7 -0
- package/esm/generated/models/RewardType.js +8 -0
- package/esm/generated/models/Rewards.d.ts +8 -0
- package/esm/generated/models/RichAddress.d.ts +1 -3
- package/esm/generated/models/StakingDistribution.d.ts +7 -0
- package/esm/generated/models/Subnet.d.ts +13 -0
- package/esm/generated/models/TransactionDetails.d.ts +1 -7
- package/esm/generated/models/TransactionExportMetadata.d.ts +15 -0
- package/esm/generated/models/UnknownContract.d.ts +31 -0
- package/esm/generated/models/UnknownContract.js +8 -0
- package/esm/generated/models/UpdateContractResponse.d.ts +10 -0
- package/esm/generated/models/Utxo.d.ts +9 -1
- package/esm/generated/models/UtxoType.d.ts +6 -0
- package/esm/generated/models/UtxoType.js +7 -0
- package/esm/generated/models/ValidationStatusType.d.ts +7 -0
- package/esm/generated/models/ValidationStatusType.js +8 -0
- package/esm/generated/models/ValidatorHealthDetails.d.ts +20 -0
- package/esm/generated/models/ValidatorsDetails.d.ts +11 -0
- package/esm/generated/models/XChainBalances.d.ts +2 -2
- package/esm/generated/models/XChainId.d.ts +3 -2
- package/esm/generated/models/XChainId.js +2 -1
- package/esm/generated/models/XChainLinearTransaction.d.ts +4 -4
- package/esm/generated/models/XChainLinearTransaction.js +1 -1
- package/esm/generated/models/XChainNonLinearTransaction.d.ts +4 -4
- package/esm/generated/models/XChainNonLinearTransaction.js +1 -1
- package/esm/generated/services/DefaultService.d.ts +14 -0
- package/esm/generated/services/DefaultService.js +13 -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/EvmContractsService.d.ts +48 -0
- package/esm/generated/services/EvmContractsService.js +36 -0
- package/esm/generated/services/EvmTransactionsService.d.ts +311 -0
- package/esm/generated/services/EvmTransactionsService.js +251 -0
- package/esm/generated/services/HealthCheckService.d.ts +1 -1
- package/esm/generated/services/NfTsService.d.ts +51 -0
- package/esm/generated/services/NfTsService.js +37 -0
- package/esm/generated/services/OperationsService.d.ts +8 -3
- 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 +77 -0
- package/esm/generated/services/PrimaryNetworkRewardsService.js +53 -0
- package/esm/generated/services/PrimaryNetworkService.d.ts +103 -245
- package/esm/generated/services/PrimaryNetworkService.js +65 -167
- package/esm/generated/services/PrimaryNetworkTransactionsService.d.ts +175 -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 +71 -31
- package/esm/index.js +39 -9
- package/package.json +2 -5
- package/esm/generated/models/Address.d.ts +0 -8
- package/esm/generated/models/CancelListingEventResponse.d.ts +0 -5
- package/esm/generated/models/CloseAuctionEventResponse.d.ts +0 -6
- package/esm/generated/models/CollectionMetrics.d.ts +0 -40
- package/esm/generated/models/CollectionSortByOption.d.ts +0 -8
- package/esm/generated/models/CollectionSortByOption.js +0 -9
- package/esm/generated/models/CreateTransactionExportRequest.d.ts +0 -11
- package/esm/generated/models/ErcType.d.ts +0 -8
- package/esm/generated/models/ErcType.js +0 -9
- package/esm/generated/models/ListNftCollectionWithMetricsResponse.d.ts +0 -11
- package/esm/generated/models/ListingCurrencyType.d.ts +0 -6
- package/esm/generated/models/ListingCurrencyType.js +0 -7
- package/esm/generated/models/ListingEventType.d.ts +0 -8
- package/esm/generated/models/ListingEventType.js +0 -9
- package/esm/generated/models/ListingResponse.d.ts +0 -19
- package/esm/generated/models/ListingType.d.ts +0 -6
- package/esm/generated/models/ListingType.js +0 -7
- package/esm/generated/models/ListingsSortByOption.d.ts +0 -5
- package/esm/generated/models/ListingsSortByOption.js +0 -6
- package/esm/generated/models/NftCollection.d.ts +0 -24
- package/esm/generated/models/NftCollectionWithMetrics.d.ts +0 -26
- package/esm/generated/models/NftFilterOptionsProperty.d.ts +0 -10
- package/esm/generated/models/NftSearchBody.d.ts +0 -10
- package/esm/generated/models/NftSearchResultTypeOption.d.ts +0 -6
- package/esm/generated/models/NftSearchResultTypeOption.js +0 -7
- package/esm/generated/models/OpenListingEventResponse.d.ts +0 -17
- package/esm/generated/models/OperationTransactionExportMetadata.d.ts +0 -18
- package/esm/generated/models/PChainConsumedUtxo.d.ts +0 -11
- package/esm/generated/models/PChainEmittedUtxo.d.ts +0 -19
- package/esm/generated/models/PaginationParams.d.ts +0 -13
- package/esm/generated/models/PurchaseListingEventResponse.d.ts +0 -17
- package/esm/generated/models/TokenWithPrice.d.ts +0 -28
- package/esm/generated/models/TrendingTimeframe.d.ts +0 -7
- package/esm/generated/models/TrendingTimeframe.js +0 -8
- package/esm/generated/services/EvmService.d.ts +0 -724
- package/esm/generated/services/EvmService.js +0 -509
|
@@ -1,724 +0,0 @@
|
|
|
1
|
-
import { CollectionSortByOption } from '../models/CollectionSortByOption.js';
|
|
2
|
-
import { CurrencyCode } from '../models/CurrencyCode.js';
|
|
3
|
-
import { Erc1155Token } from '../models/Erc1155Token.js';
|
|
4
|
-
import { Erc721Token } from '../models/Erc721Token.js';
|
|
5
|
-
import { GetBlockResponse } from '../models/GetBlockResponse.js';
|
|
6
|
-
import { GetChainResponse } from '../models/GetChainResponse.js';
|
|
7
|
-
import { GetNativeBalanceResponse } from '../models/GetNativeBalanceResponse.js';
|
|
8
|
-
import { GetTransactionResponse } from '../models/GetTransactionResponse.js';
|
|
9
|
-
import { ListBlocksResponse } from '../models/ListBlocksResponse.js';
|
|
10
|
-
import { ListChainsResponse } from '../models/ListChainsResponse.js';
|
|
11
|
-
import { ListCollectibleBalancesResponse } from '../models/ListCollectibleBalancesResponse.js';
|
|
12
|
-
import { ListErc1155BalancesResponse } from '../models/ListErc1155BalancesResponse.js';
|
|
13
|
-
import { ListErc1155TransactionsResponse } from '../models/ListErc1155TransactionsResponse.js';
|
|
14
|
-
import { ListErc20BalancesResponse } from '../models/ListErc20BalancesResponse.js';
|
|
15
|
-
import { ListErc20TransactionsResponse } from '../models/ListErc20TransactionsResponse.js';
|
|
16
|
-
import { ListErc721BalancesResponse } from '../models/ListErc721BalancesResponse.js';
|
|
17
|
-
import { ListErc721TransactionsResponse } from '../models/ListErc721TransactionsResponse.js';
|
|
18
|
-
import { ListingEventType } from '../models/ListingEventType.js';
|
|
19
|
-
import { ListingsSortByOption } from '../models/ListingsSortByOption.js';
|
|
20
|
-
import { ListInternalTransactionsResponse } from '../models/ListInternalTransactionsResponse.js';
|
|
21
|
-
import { ListListingsResponse } from '../models/ListListingsResponse.js';
|
|
22
|
-
import { ListNativeTransactionsResponse } from '../models/ListNativeTransactionsResponse.js';
|
|
23
|
-
import { ListNftCollectionWithMetricsResponse } from '../models/ListNftCollectionWithMetricsResponse.js';
|
|
24
|
-
import { ListTransactionDetailsResponse } from '../models/ListTransactionDetailsResponse.js';
|
|
25
|
-
import { ListTransfersResponse } from '../models/ListTransfersResponse.js';
|
|
26
|
-
import { NftCollection } from '../models/NftCollection.js';
|
|
27
|
-
import { NftCollectionWithMetrics } from '../models/NftCollectionWithMetrics.js';
|
|
28
|
-
import { NftSearchBody } from '../models/NftSearchBody.js';
|
|
29
|
-
import { SortOrder } from '../models/SortOrder.js';
|
|
30
|
-
import { TransactionStatus } from '../models/TransactionStatus.js';
|
|
31
|
-
import { TrendingTimeframe } from '../models/TrendingTimeframe.js';
|
|
32
|
-
import { CancelablePromise } from '../core/CancelablePromise.js';
|
|
33
|
-
import { BaseHttpRequest } from '../core/BaseHttpRequest.js';
|
|
34
|
-
|
|
35
|
-
declare class EvmService {
|
|
36
|
-
readonly httpRequest: BaseHttpRequest;
|
|
37
|
-
constructor(httpRequest: BaseHttpRequest);
|
|
38
|
-
/**
|
|
39
|
-
* Get native token balance of a wallet address for a given chain.
|
|
40
|
-
* @returns GetNativeBalanceResponse
|
|
41
|
-
* @throws ApiError
|
|
42
|
-
*/
|
|
43
|
-
getNativeBalance({ chainId, address, currency, }: {
|
|
44
|
-
/**
|
|
45
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
46
|
-
* a list of supported chain ids.
|
|
47
|
-
*/
|
|
48
|
-
chainId: string;
|
|
49
|
-
/**
|
|
50
|
-
* A wallet address.
|
|
51
|
-
*/
|
|
52
|
-
address: string;
|
|
53
|
-
/**
|
|
54
|
-
* The currency that return values should use. Defaults to USD.
|
|
55
|
-
*/
|
|
56
|
-
currency?: CurrencyCode;
|
|
57
|
-
}): CancelablePromise<GetNativeBalanceResponse>;
|
|
58
|
-
/**
|
|
59
|
-
* List ERC-20 token balances of a wallet address for a given chain.
|
|
60
|
-
* @returns ListErc20BalancesResponse
|
|
61
|
-
* @throws ApiError
|
|
62
|
-
*/
|
|
63
|
-
listErc20Balances({ chainId, address, pageSize, pageToken, currency, }: {
|
|
64
|
-
/**
|
|
65
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
66
|
-
* a list of supported chain ids.
|
|
67
|
-
*/
|
|
68
|
-
chainId: string;
|
|
69
|
-
/**
|
|
70
|
-
* A wallet address.
|
|
71
|
-
*/
|
|
72
|
-
address: string;
|
|
73
|
-
/**
|
|
74
|
-
* The maximum number of items to return. The minimum page size
|
|
75
|
-
* is 1. The maximum pageSize is 100.
|
|
76
|
-
*/
|
|
77
|
-
pageSize?: number;
|
|
78
|
-
/**
|
|
79
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
80
|
-
*/
|
|
81
|
-
pageToken?: string;
|
|
82
|
-
/**
|
|
83
|
-
* The currency that return values should use. Defaults to USD.
|
|
84
|
-
*/
|
|
85
|
-
currency?: CurrencyCode;
|
|
86
|
-
}): CancelablePromise<ListErc20BalancesResponse>;
|
|
87
|
-
/**
|
|
88
|
-
* List ERC-721 token balances of a wallet address for a given chain.
|
|
89
|
-
* @returns ListErc721BalancesResponse
|
|
90
|
-
* @throws ApiError
|
|
91
|
-
*/
|
|
92
|
-
listErc721Balances({ chainId, address, pageSize, pageToken, }: {
|
|
93
|
-
/**
|
|
94
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
95
|
-
* a list of supported chain ids.
|
|
96
|
-
*/
|
|
97
|
-
chainId: string;
|
|
98
|
-
/**
|
|
99
|
-
* A wallet address.
|
|
100
|
-
*/
|
|
101
|
-
address: string;
|
|
102
|
-
/**
|
|
103
|
-
* The maximum number of items to return. The minimum page size
|
|
104
|
-
* is 1. The maximum pageSize is 100.
|
|
105
|
-
*/
|
|
106
|
-
pageSize?: number;
|
|
107
|
-
/**
|
|
108
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
109
|
-
*/
|
|
110
|
-
pageToken?: string;
|
|
111
|
-
}): CancelablePromise<ListErc721BalancesResponse>;
|
|
112
|
-
/**
|
|
113
|
-
* List ERC-1155 token balances of a wallet address for a given chain.
|
|
114
|
-
* @returns ListErc1155BalancesResponse
|
|
115
|
-
* @throws ApiError
|
|
116
|
-
*/
|
|
117
|
-
listErc1155Balances({ chainId, address, pageSize, pageToken, }: {
|
|
118
|
-
/**
|
|
119
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
120
|
-
* a list of supported chain ids.
|
|
121
|
-
*/
|
|
122
|
-
chainId: string;
|
|
123
|
-
/**
|
|
124
|
-
* A wallet address.
|
|
125
|
-
*/
|
|
126
|
-
address: string;
|
|
127
|
-
/**
|
|
128
|
-
* The maximum number of items to return. The minimum page size
|
|
129
|
-
* is 1. The maximum pageSize is 100.
|
|
130
|
-
*/
|
|
131
|
-
pageSize?: number;
|
|
132
|
-
/**
|
|
133
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
134
|
-
*/
|
|
135
|
-
pageToken?: string;
|
|
136
|
-
}): CancelablePromise<ListErc1155BalancesResponse>;
|
|
137
|
-
/**
|
|
138
|
-
* List ERC-721 and ERC-1155 token balances of a wallet address
|
|
139
|
-
* for a given chain.
|
|
140
|
-
* @returns ListCollectibleBalancesResponse
|
|
141
|
-
* @throws ApiError
|
|
142
|
-
*/
|
|
143
|
-
listCollectibleBalances({ chainId, address, pageSize, pageToken, }: {
|
|
144
|
-
/**
|
|
145
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
146
|
-
* a list of supported chain ids.
|
|
147
|
-
*/
|
|
148
|
-
chainId: string;
|
|
149
|
-
/**
|
|
150
|
-
* A wallet address.
|
|
151
|
-
*/
|
|
152
|
-
address: string;
|
|
153
|
-
/**
|
|
154
|
-
* The maximum number of items to return. The minimum page size
|
|
155
|
-
* is 1. The maximum pageSize is 100.
|
|
156
|
-
*/
|
|
157
|
-
pageSize?: number;
|
|
158
|
-
/**
|
|
159
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
160
|
-
*/
|
|
161
|
-
pageToken?: string;
|
|
162
|
-
}): CancelablePromise<ListCollectibleBalancesResponse>;
|
|
163
|
-
/**
|
|
164
|
-
* Returns the latest blocks indexed for the chain.
|
|
165
|
-
* @returns ListBlocksResponse
|
|
166
|
-
* @throws ApiError
|
|
167
|
-
*/
|
|
168
|
-
getLatestBlocks({ chainId, pageSize, pageToken, }: {
|
|
169
|
-
/**
|
|
170
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
171
|
-
* a list of supported chain ids.
|
|
172
|
-
*/
|
|
173
|
-
chainId: string;
|
|
174
|
-
/**
|
|
175
|
-
* The maximum number of items to return. The minimum page size
|
|
176
|
-
* is 1. The maximum pageSize is 100.
|
|
177
|
-
*/
|
|
178
|
-
pageSize?: number;
|
|
179
|
-
/**
|
|
180
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
181
|
-
*/
|
|
182
|
-
pageToken?: string;
|
|
183
|
-
}): CancelablePromise<ListBlocksResponse>;
|
|
184
|
-
/**
|
|
185
|
-
* Returns the details of an individual block for the chain.
|
|
186
|
-
* @returns GetBlockResponse
|
|
187
|
-
* @throws ApiError
|
|
188
|
-
*/
|
|
189
|
-
getBlock({ chainId, blockId, }: {
|
|
190
|
-
/**
|
|
191
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
192
|
-
* a list of supported chain ids.
|
|
193
|
-
*/
|
|
194
|
-
chainId: string;
|
|
195
|
-
/**
|
|
196
|
-
* A block identifier which is either a block number or the block hash.
|
|
197
|
-
*/
|
|
198
|
-
blockId: string;
|
|
199
|
-
}): CancelablePromise<GetBlockResponse>;
|
|
200
|
-
/**
|
|
201
|
-
* If the address is a smart contract, returns the transaction at which it was deployed.
|
|
202
|
-
* @returns GetTransactionResponse
|
|
203
|
-
* @throws ApiError
|
|
204
|
-
*/
|
|
205
|
-
getDeploymentTransaction({ chainId, address, currency, }: {
|
|
206
|
-
/**
|
|
207
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
208
|
-
* a list of supported chain ids.
|
|
209
|
-
*/
|
|
210
|
-
chainId: string;
|
|
211
|
-
/**
|
|
212
|
-
* Contract address on the relevant chain.
|
|
213
|
-
*/
|
|
214
|
-
address: string;
|
|
215
|
-
/**
|
|
216
|
-
* The currency that return values should use. Defaults to USD.
|
|
217
|
-
*/
|
|
218
|
-
currency?: CurrencyCode;
|
|
219
|
-
}): CancelablePromise<GetTransactionResponse>;
|
|
220
|
-
/**
|
|
221
|
-
* Gets a list of erc transfers for an ERC-20, ERC-721,
|
|
222
|
-
* or ERC-1155 contract address.
|
|
223
|
-
* @returns ListTransfersResponse
|
|
224
|
-
* @throws ApiError
|
|
225
|
-
*/
|
|
226
|
-
listTransfers({ chainId, address, pageSize, pageToken, }: {
|
|
227
|
-
/**
|
|
228
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
229
|
-
* a list of supported chain ids.
|
|
230
|
-
*/
|
|
231
|
-
chainId: string;
|
|
232
|
-
/**
|
|
233
|
-
* A wallet address.
|
|
234
|
-
*/
|
|
235
|
-
address: string;
|
|
236
|
-
/**
|
|
237
|
-
* The maximum number of items to return. The minimum page size
|
|
238
|
-
* is 1. The maximum pageSize is 100.
|
|
239
|
-
*/
|
|
240
|
-
pageSize?: number;
|
|
241
|
-
/**
|
|
242
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
243
|
-
*/
|
|
244
|
-
pageToken?: string;
|
|
245
|
-
}): CancelablePromise<ListTransfersResponse>;
|
|
246
|
-
/**
|
|
247
|
-
* Gets a list of transactions for an address and chain.
|
|
248
|
-
* Returns a list of transactions where the given wallet
|
|
249
|
-
* address had an on-chain interaction for a given chain. The ERC-20
|
|
250
|
-
* transfers, ERC-721 transfers, ERC-1155, and internal transactions
|
|
251
|
-
* returned are only those where the input address had an interaction.
|
|
252
|
-
* Specifically, those list only inlcude entries where the input address
|
|
253
|
-
* was the sender (`from` field) or the receiver (`to` field) for the
|
|
254
|
-
* sub-transaction. Therefore the transactions returned from this list may
|
|
255
|
-
* not be complete representations of the on-chain data. For a complete
|
|
256
|
-
* view of a transaction use the `/chains/:chainId/transactions/:txHash`
|
|
257
|
-
* endpoint.
|
|
258
|
-
* @returns ListTransactionDetailsResponse
|
|
259
|
-
* @throws ApiError
|
|
260
|
-
*/
|
|
261
|
-
listTransactions({ chainId, address, pageSize, pageToken, startBlock, endBlock, }: {
|
|
262
|
-
/**
|
|
263
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
264
|
-
* a list of supported chain ids.
|
|
265
|
-
*/
|
|
266
|
-
chainId: string;
|
|
267
|
-
/**
|
|
268
|
-
* A wallet address.
|
|
269
|
-
*/
|
|
270
|
-
address: string;
|
|
271
|
-
/**
|
|
272
|
-
* The maximum number of items to return. The minimum page size
|
|
273
|
-
* is 1. The maximum pageSize is 100.
|
|
274
|
-
*/
|
|
275
|
-
pageSize?: number;
|
|
276
|
-
/**
|
|
277
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
278
|
-
*/
|
|
279
|
-
pageToken?: string;
|
|
280
|
-
/**
|
|
281
|
-
* 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.
|
|
282
|
-
*/
|
|
283
|
-
startBlock?: number;
|
|
284
|
-
/**
|
|
285
|
-
* 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.
|
|
286
|
-
*/
|
|
287
|
-
endBlock?: number;
|
|
288
|
-
}): CancelablePromise<ListTransactionDetailsResponse>;
|
|
289
|
-
/**
|
|
290
|
-
* Gets a list of native transactions for an address and chain.
|
|
291
|
-
* @returns ListNativeTransactionsResponse
|
|
292
|
-
* @throws ApiError
|
|
293
|
-
*/
|
|
294
|
-
listNativeTransactions({ chainId, address, pageSize, pageToken, }: {
|
|
295
|
-
/**
|
|
296
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
297
|
-
* a list of supported chain ids.
|
|
298
|
-
*/
|
|
299
|
-
chainId: string;
|
|
300
|
-
/**
|
|
301
|
-
* A wallet address.
|
|
302
|
-
*/
|
|
303
|
-
address: string;
|
|
304
|
-
/**
|
|
305
|
-
* The maximum number of items to return. The minimum page size
|
|
306
|
-
* is 1. The maximum pageSize is 100.
|
|
307
|
-
*/
|
|
308
|
-
pageSize?: number;
|
|
309
|
-
/**
|
|
310
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
311
|
-
*/
|
|
312
|
-
pageToken?: string;
|
|
313
|
-
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
314
|
-
/**
|
|
315
|
-
* Lists ERC-20 transfers for an address.
|
|
316
|
-
* @returns ListErc20TransactionsResponse
|
|
317
|
-
* @throws ApiError
|
|
318
|
-
*/
|
|
319
|
-
listErc20Transactions({ chainId, address, pageSize, pageToken, }: {
|
|
320
|
-
/**
|
|
321
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
322
|
-
* a list of supported chain ids.
|
|
323
|
-
*/
|
|
324
|
-
chainId: string;
|
|
325
|
-
/**
|
|
326
|
-
* A wallet address.
|
|
327
|
-
*/
|
|
328
|
-
address: string;
|
|
329
|
-
/**
|
|
330
|
-
* The maximum number of items to return. The minimum page size
|
|
331
|
-
* is 1. The maximum pageSize is 100.
|
|
332
|
-
*/
|
|
333
|
-
pageSize?: number;
|
|
334
|
-
/**
|
|
335
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
336
|
-
*/
|
|
337
|
-
pageToken?: string;
|
|
338
|
-
}): CancelablePromise<ListErc20TransactionsResponse>;
|
|
339
|
-
/**
|
|
340
|
-
* Lists ERC-721 transfers for an address.
|
|
341
|
-
* @returns ListErc721TransactionsResponse
|
|
342
|
-
* @throws ApiError
|
|
343
|
-
*/
|
|
344
|
-
listErc721Transactions({ chainId, address, pageSize, pageToken, }: {
|
|
345
|
-
/**
|
|
346
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
347
|
-
* a list of supported chain ids.
|
|
348
|
-
*/
|
|
349
|
-
chainId: string;
|
|
350
|
-
/**
|
|
351
|
-
* A wallet address.
|
|
352
|
-
*/
|
|
353
|
-
address: string;
|
|
354
|
-
/**
|
|
355
|
-
* The maximum number of items to return. The minimum page size
|
|
356
|
-
* is 1. The maximum pageSize is 100.
|
|
357
|
-
*/
|
|
358
|
-
pageSize?: number;
|
|
359
|
-
/**
|
|
360
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
361
|
-
*/
|
|
362
|
-
pageToken?: string;
|
|
363
|
-
}): CancelablePromise<ListErc721TransactionsResponse>;
|
|
364
|
-
/**
|
|
365
|
-
* Lists of ERC-1155 transfers for an address.
|
|
366
|
-
* @returns ListErc1155TransactionsResponse
|
|
367
|
-
* @throws ApiError
|
|
368
|
-
*/
|
|
369
|
-
listErc1155Transactions({ chainId, address, pageSize, pageToken, }: {
|
|
370
|
-
/**
|
|
371
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
372
|
-
* a list of supported chain ids.
|
|
373
|
-
*/
|
|
374
|
-
chainId: string;
|
|
375
|
-
/**
|
|
376
|
-
* A wallet address.
|
|
377
|
-
*/
|
|
378
|
-
address: string;
|
|
379
|
-
/**
|
|
380
|
-
* The maximum number of items to return. The minimum page size
|
|
381
|
-
* is 1. The maximum pageSize is 100.
|
|
382
|
-
*/
|
|
383
|
-
pageSize?: number;
|
|
384
|
-
/**
|
|
385
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
386
|
-
*/
|
|
387
|
-
pageToken?: string;
|
|
388
|
-
}): CancelablePromise<ListErc1155TransactionsResponse>;
|
|
389
|
-
/**
|
|
390
|
-
* Lists internal transactions for an address.
|
|
391
|
-
* Returns a list of internal transactions for an address and
|
|
392
|
-
* chain. Note that the internal transactions list only contains CALL or
|
|
393
|
-
* CALLCODE transactions with a non-zero value and CREATE/CREATE2
|
|
394
|
-
* transactions. To get a complete list of internal transactions use the
|
|
395
|
-
* `debug_` prefixed RPC methods on an archive node.
|
|
396
|
-
* @returns ListInternalTransactionsResponse
|
|
397
|
-
* @throws ApiError
|
|
398
|
-
*/
|
|
399
|
-
listInternalTransactions({ chainId, address, pageSize, pageToken, }: {
|
|
400
|
-
/**
|
|
401
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
402
|
-
* a list of supported chain ids.
|
|
403
|
-
*/
|
|
404
|
-
chainId: string;
|
|
405
|
-
/**
|
|
406
|
-
* A wallet address.
|
|
407
|
-
*/
|
|
408
|
-
address: string;
|
|
409
|
-
/**
|
|
410
|
-
* The maximum number of items to return. The minimum page size
|
|
411
|
-
* is 1. The maximum pageSize is 100.
|
|
412
|
-
*/
|
|
413
|
-
pageSize?: number;
|
|
414
|
-
/**
|
|
415
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
416
|
-
*/
|
|
417
|
-
pageToken?: string;
|
|
418
|
-
}): CancelablePromise<ListInternalTransactionsResponse>;
|
|
419
|
-
/**
|
|
420
|
-
* Gets the details of a single transaction.
|
|
421
|
-
* @returns GetTransactionResponse
|
|
422
|
-
* @throws ApiError
|
|
423
|
-
*/
|
|
424
|
-
getTransaction({ chainId, txHash, }: {
|
|
425
|
-
/**
|
|
426
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
427
|
-
* a list of supported chain ids.
|
|
428
|
-
*/
|
|
429
|
-
chainId: string;
|
|
430
|
-
/**
|
|
431
|
-
* A transaction hash.
|
|
432
|
-
*/
|
|
433
|
-
txHash: string;
|
|
434
|
-
}): CancelablePromise<GetTransactionResponse>;
|
|
435
|
-
/**
|
|
436
|
-
* Gets the transactions that occured in a given block.
|
|
437
|
-
* @returns ListNativeTransactionsResponse
|
|
438
|
-
* @throws ApiError
|
|
439
|
-
*/
|
|
440
|
-
getTransactionsForBlock({ chainId, blockId, }: {
|
|
441
|
-
/**
|
|
442
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
443
|
-
* a list of supported chain ids.
|
|
444
|
-
*/
|
|
445
|
-
chainId: string;
|
|
446
|
-
/**
|
|
447
|
-
* A block identifier which is either a block number or the block hash.
|
|
448
|
-
*/
|
|
449
|
-
blockId: string;
|
|
450
|
-
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
451
|
-
/**
|
|
452
|
-
* Gets the latest transactions; can be filtered by status.
|
|
453
|
-
* @returns ListNativeTransactionsResponse
|
|
454
|
-
* @throws ApiError
|
|
455
|
-
*/
|
|
456
|
-
listLatestTransactions({ chainId, pageSize, pageToken, status, }: {
|
|
457
|
-
/**
|
|
458
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
459
|
-
* a list of supported chain ids.
|
|
460
|
-
*/
|
|
461
|
-
chainId: string;
|
|
462
|
-
/**
|
|
463
|
-
* The maximum number of items to return. The minimum page size
|
|
464
|
-
* is 1. The maximum pageSize is 100.
|
|
465
|
-
*/
|
|
466
|
-
pageSize?: number;
|
|
467
|
-
/**
|
|
468
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
469
|
-
*/
|
|
470
|
-
pageToken?: string;
|
|
471
|
-
/**
|
|
472
|
-
* A status filter for listed transactions.
|
|
473
|
-
*/
|
|
474
|
-
status?: TransactionStatus;
|
|
475
|
-
}): CancelablePromise<ListNativeTransactionsResponse>;
|
|
476
|
-
/**
|
|
477
|
-
* Gets the list of chains supported by the api.
|
|
478
|
-
* @returns ListChainsResponse
|
|
479
|
-
* @throws ApiError
|
|
480
|
-
*/
|
|
481
|
-
supportedChains(): CancelablePromise<ListChainsResponse>;
|
|
482
|
-
/**
|
|
483
|
-
* Gets chain information by chain id.
|
|
484
|
-
* @returns GetChainResponse
|
|
485
|
-
* @throws ApiError
|
|
486
|
-
*/
|
|
487
|
-
getChainInfo({ chainId, }: {
|
|
488
|
-
/**
|
|
489
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
490
|
-
* a list of supported chain ids.
|
|
491
|
-
*/
|
|
492
|
-
chainId: string;
|
|
493
|
-
}): CancelablePromise<GetChainResponse>;
|
|
494
|
-
/**
|
|
495
|
-
* Triggers reindexing for a single nft contract and token id pair.
|
|
496
|
-
* Triggers reindexing of token metadata for nft contracts.
|
|
497
|
-
* Will throw 400 if Nft has been indexed within the last hour.
|
|
498
|
-
* @returns any
|
|
499
|
-
* @throws ApiError
|
|
500
|
-
*/
|
|
501
|
-
reindexNft({ chainId, address, tokenId, }: {
|
|
502
|
-
/**
|
|
503
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
504
|
-
* a list of supported chain ids.
|
|
505
|
-
*/
|
|
506
|
-
chainId: string;
|
|
507
|
-
/**
|
|
508
|
-
* Contract address on the relevant chain.
|
|
509
|
-
*/
|
|
510
|
-
address: string;
|
|
511
|
-
/**
|
|
512
|
-
* TokenId on the contract
|
|
513
|
-
*/
|
|
514
|
-
tokenId: string;
|
|
515
|
-
}): CancelablePromise<any>;
|
|
516
|
-
/**
|
|
517
|
-
* Get metadata for a specific token by providing the contract address and token id.
|
|
518
|
-
* @returns any
|
|
519
|
-
* @throws ApiError
|
|
520
|
-
*/
|
|
521
|
-
getTokenMetadata({ chainId, address, tokenId, }: {
|
|
522
|
-
/**
|
|
523
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
524
|
-
* a list of supported chain ids.
|
|
525
|
-
*/
|
|
526
|
-
chainId: string;
|
|
527
|
-
/**
|
|
528
|
-
* Contract address on the relevant chain.
|
|
529
|
-
*/
|
|
530
|
-
address: string;
|
|
531
|
-
/**
|
|
532
|
-
* TokenId on the contract
|
|
533
|
-
*/
|
|
534
|
-
tokenId: string;
|
|
535
|
-
}): CancelablePromise<(Erc721Token | Erc1155Token)>;
|
|
536
|
-
/**
|
|
537
|
-
* Get collection data for provided a ChainID and address.
|
|
538
|
-
* @returns NftCollectionWithMetrics
|
|
539
|
-
* @throws ApiError
|
|
540
|
-
*/
|
|
541
|
-
getCollection({ chainId, address, timeframe, }: {
|
|
542
|
-
/**
|
|
543
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
544
|
-
* a list of supported chain ids.
|
|
545
|
-
*/
|
|
546
|
-
chainId: string;
|
|
547
|
-
/**
|
|
548
|
-
* Contract address on the relevant chain.
|
|
549
|
-
*/
|
|
550
|
-
address: string;
|
|
551
|
-
/**
|
|
552
|
-
* The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
|
|
553
|
-
*/
|
|
554
|
-
timeframe?: TrendingTimeframe;
|
|
555
|
-
}): CancelablePromise<NftCollectionWithMetrics>;
|
|
556
|
-
/**
|
|
557
|
-
* List open listings for a NFT token.
|
|
558
|
-
* @returns ListListingsResponse
|
|
559
|
-
* @throws ApiError
|
|
560
|
-
*/
|
|
561
|
-
listListingsByCollectionTokenId({ chainId, address, tokenId, pageSize, pageToken, sortBy, sortOrder, currency, includeHistory, }: {
|
|
562
|
-
/**
|
|
563
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
564
|
-
* a list of supported chain ids.
|
|
565
|
-
*/
|
|
566
|
-
chainId: string;
|
|
567
|
-
/**
|
|
568
|
-
* Contract address on the relevant chain.
|
|
569
|
-
*/
|
|
570
|
-
address: string;
|
|
571
|
-
/**
|
|
572
|
-
* TokenId on the contract
|
|
573
|
-
*/
|
|
574
|
-
tokenId: string;
|
|
575
|
-
/**
|
|
576
|
-
* The maximum number of items to return. The minimum page size
|
|
577
|
-
* is 1. The maximum pageSize is 100.
|
|
578
|
-
*/
|
|
579
|
-
pageSize?: number;
|
|
580
|
-
/**
|
|
581
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
582
|
-
*/
|
|
583
|
-
pageToken?: string;
|
|
584
|
-
/**
|
|
585
|
-
* Which property to sort by, in conjunction with sortOrder.
|
|
586
|
-
*/
|
|
587
|
-
sortBy?: ListingsSortByOption;
|
|
588
|
-
/**
|
|
589
|
-
* The order by which to sort results. Use "asc" for ascending
|
|
590
|
-
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
591
|
-
* query parameter, if provided.
|
|
592
|
-
*/
|
|
593
|
-
sortOrder?: SortOrder;
|
|
594
|
-
/**
|
|
595
|
-
* The currency that return values should use. Defaults to USD.
|
|
596
|
-
*/
|
|
597
|
-
currency?: CurrencyCode;
|
|
598
|
-
/**
|
|
599
|
-
* Determines whether to return full transaction history for listings.
|
|
600
|
-
*/
|
|
601
|
-
includeHistory?: boolean;
|
|
602
|
-
}): CancelablePromise<ListListingsResponse>;
|
|
603
|
-
/**
|
|
604
|
-
* List open listings for a NFT collection.
|
|
605
|
-
* @returns ListListingsResponse
|
|
606
|
-
* @throws ApiError
|
|
607
|
-
*/
|
|
608
|
-
listListingsByCollection({ chainId, address, pageSize, pageToken, sortBy, sortOrder, currency, includeHistory, }: {
|
|
609
|
-
/**
|
|
610
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
611
|
-
* a list of supported chain ids.
|
|
612
|
-
*/
|
|
613
|
-
chainId: string;
|
|
614
|
-
/**
|
|
615
|
-
* Contract address on the relevant chain.
|
|
616
|
-
*/
|
|
617
|
-
address: string;
|
|
618
|
-
/**
|
|
619
|
-
* The maximum number of items to return. The minimum page size
|
|
620
|
-
* is 1. The maximum pageSize is 100.
|
|
621
|
-
*/
|
|
622
|
-
pageSize?: number;
|
|
623
|
-
/**
|
|
624
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
625
|
-
*/
|
|
626
|
-
pageToken?: string;
|
|
627
|
-
/**
|
|
628
|
-
* Which property to sort by, in conjunction with sortOrder.
|
|
629
|
-
*/
|
|
630
|
-
sortBy?: ListingsSortByOption;
|
|
631
|
-
/**
|
|
632
|
-
* The order by which to sort results. Use "asc" for ascending
|
|
633
|
-
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
634
|
-
* query parameter, if provided.
|
|
635
|
-
*/
|
|
636
|
-
sortOrder?: SortOrder;
|
|
637
|
-
/**
|
|
638
|
-
* The currency that return values should use. Defaults to USD.
|
|
639
|
-
*/
|
|
640
|
-
currency?: CurrencyCode;
|
|
641
|
-
/**
|
|
642
|
-
* Determines whether to return full transaction history for listings.
|
|
643
|
-
*/
|
|
644
|
-
includeHistory?: boolean;
|
|
645
|
-
}): CancelablePromise<ListListingsResponse>;
|
|
646
|
-
/**
|
|
647
|
-
* List recent listings on the chain.
|
|
648
|
-
* @returns ListListingsResponse
|
|
649
|
-
* @throws ApiError
|
|
650
|
-
*/
|
|
651
|
-
listRecentListings({ chainId, pageSize, pageToken, eventType, currency, }: {
|
|
652
|
-
/**
|
|
653
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
654
|
-
* a list of supported chain ids.
|
|
655
|
-
*/
|
|
656
|
-
chainId: string;
|
|
657
|
-
/**
|
|
658
|
-
* The maximum number of items to return. The minimum page size
|
|
659
|
-
* is 1. The maximum pageSize is 100.
|
|
660
|
-
*/
|
|
661
|
-
pageSize?: number;
|
|
662
|
-
/**
|
|
663
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
664
|
-
*/
|
|
665
|
-
pageToken?: string;
|
|
666
|
-
eventType?: ListingEventType;
|
|
667
|
-
/**
|
|
668
|
-
* The currency that return values should use. Defaults to USD.
|
|
669
|
-
*/
|
|
670
|
-
currency?: CurrencyCode;
|
|
671
|
-
}): CancelablePromise<ListListingsResponse>;
|
|
672
|
-
/**
|
|
673
|
-
* List details and metrics for collections.
|
|
674
|
-
* @returns ListNftCollectionWithMetricsResponse
|
|
675
|
-
* @throws ApiError
|
|
676
|
-
*/
|
|
677
|
-
listCollections({ chainId, pageSize, pageToken, timeframe, sortBy, sortOrder, }: {
|
|
678
|
-
/**
|
|
679
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
680
|
-
* a list of supported chain ids.
|
|
681
|
-
*/
|
|
682
|
-
chainId: string;
|
|
683
|
-
/**
|
|
684
|
-
* The maximum number of items to return. The minimum page size
|
|
685
|
-
* is 1. The maximum pageSize is 100.
|
|
686
|
-
*/
|
|
687
|
-
pageSize?: number;
|
|
688
|
-
/**
|
|
689
|
-
* A page token, received from a previous list call. Provide this to retrieve the subsequent page.
|
|
690
|
-
*/
|
|
691
|
-
pageToken?: string;
|
|
692
|
-
/**
|
|
693
|
-
* The timeframe to use for trending listings. Use "DAY" for 24 hours, "WEEK" for 7 days, "MONTH" for 30 days.
|
|
694
|
-
*/
|
|
695
|
-
timeframe?: TrendingTimeframe;
|
|
696
|
-
/**
|
|
697
|
-
* Which property to sort by, in conjunction with sortOrder.
|
|
698
|
-
*/
|
|
699
|
-
sortBy?: CollectionSortByOption;
|
|
700
|
-
/**
|
|
701
|
-
* The order by which to sort results. Use "asc" for ascending
|
|
702
|
-
* order, "desc" for descending order. Sorted by timestamp or the `sortBy`
|
|
703
|
-
* query parameter, if provided.
|
|
704
|
-
*/
|
|
705
|
-
sortOrder?: SortOrder;
|
|
706
|
-
}): CancelablePromise<ListNftCollectionWithMetricsResponse>;
|
|
707
|
-
/**
|
|
708
|
-
* Search for token by name and contract name.
|
|
709
|
-
* @returns any
|
|
710
|
-
* @throws ApiError
|
|
711
|
-
*/
|
|
712
|
-
search({ chainId, requestBody, }: {
|
|
713
|
-
/**
|
|
714
|
-
* A supported evm chain id. Use the `/chains` endpoint to get
|
|
715
|
-
* a list of supported chain ids.
|
|
716
|
-
*/
|
|
717
|
-
chainId: string;
|
|
718
|
-
requestBody: NftSearchBody;
|
|
719
|
-
}): CancelablePromise<{
|
|
720
|
-
results?: Array<NftCollection>;
|
|
721
|
-
}>;
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
export { EvmService };
|