import type { Asset } from '../models/Asset'; import type { Collection } from '../models/Collection'; import type { CollectionSpecificTraitResponse } from '../models/CollectionSpecificTraitResponse'; import type { CollectionTraitsResponse } from '../models/CollectionTraitsResponse'; import type { GetAssetsInput } from '../models/GetAssetsInput'; import type { RoutesAssetRarityResponse } from '../models/RoutesAssetRarityResponse'; import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class CollectionAndAssetDataService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Get asset data (multiple assets) * Returns key data (e.g., metadata, preview image, collection name) on multiple assets with single call * @returns Asset OK * @throws ApiError */ getAssets({ network, fallbackToChain, requestBody, }: { /** Network ID **/ network?: 'arbitrum-mainnet' | 'avalanche-mainnet' | 'bsc-mainnet' | 'celo-mainnet' | 'ethereum-goerli' | 'ethereum-mainnet' | 'ethereum-rinkeby' | 'ethereum-ropsten' | 'fantom-mainnet' | 'harmony-mainnet' | 'optimism-mainnet' | 'polygon-mainnet' | 'solana-mainnet'; /** If true, any missing data will be fetched from the blockchain node, this can be slow and should not be used for performance-sensitive cases **/ fallbackToChain?: boolean | null; requestBody?: GetAssetsInput; }): CancelablePromise>; /** * Get NFT collection data * Returns key data (e.g., name, preview image, symbol, creator) for a collection * @returns Collection OK * @throws ApiError */ getCollection({ address, network, refresh, }: { /** Collection Address **/ address?: string; /** Network ID **/ network?: 'arbitrum-mainnet' | 'avalanche-mainnet' | 'bsc-mainnet' | 'celo-mainnet' | 'ethereum-goerli' | 'ethereum-mainnet' | 'ethereum-rinkeby' | 'ethereum-ropsten' | 'fantom-mainnet' | 'harmony-mainnet' | 'optimism-mainnet' | 'polygon-mainnet' | 'solana-mainnet'; /** If true then refresh the asset's metadata and media **/ refresh?: boolean | null; }): CancelablePromise; /** * Get collection traits * Returns list of traits of assets in collection * @returns CollectionTraitsResponse OK * @throws ApiError */ getAllTraitsForCollection({ address, network, limit, offset, }: { /** Collection Address **/ address?: string; /** Network ID **/ network?: 'arbitrum-mainnet' | 'avalanche-mainnet' | 'bsc-mainnet' | 'celo-mainnet' | 'ethereum-goerli' | 'ethereum-mainnet' | 'ethereum-rinkeby' | 'ethereum-ropsten' | 'fantom-mainnet' | 'harmony-mainnet' | 'optimism-mainnet' | 'polygon-mainnet' | 'solana-mainnet'; limit?: number | null; offset?: number | null; }): CancelablePromise; /** * Get distribution of attributes for a particular trait * Returns all attribute values for a particular trait within a collection * @returns CollectionSpecificTraitResponse OK * @throws ApiError */ getAttributesForTraitWithinCollection({ address, network, trait, limit, offset, }: { /** Collection Address **/ address?: string; /** Network ID **/ network?: 'arbitrum-mainnet' | 'avalanche-mainnet' | 'bsc-mainnet' | 'celo-mainnet' | 'ethereum-goerli' | 'ethereum-mainnet' | 'ethereum-rinkeby' | 'ethereum-ropsten' | 'fantom-mainnet' | 'harmony-mainnet' | 'optimism-mainnet' | 'polygon-mainnet' | 'solana-mainnet'; trait?: string; limit?: number | null; offset?: number | null; }): CancelablePromise; /** * Get asset data (single asset) * Returns key data (e.g., metadata, preview image, collection name) for given asset * @returns Asset OK * @throws ApiError */ getAsset({ address, network, tokenId, refresh, }: { /** Collection Address **/ address?: string; /** Network ID **/ network?: 'arbitrum-mainnet' | 'avalanche-mainnet' | 'bsc-mainnet' | 'celo-mainnet' | 'ethereum-goerli' | 'ethereum-mainnet' | 'ethereum-rinkeby' | 'ethereum-ropsten' | 'fantom-mainnet' | 'harmony-mainnet' | 'optimism-mainnet' | 'polygon-mainnet' | 'solana-mainnet'; /** Token ID **/ tokenId?: string; /** If true then refresh the asset's metadata and media **/ refresh?: boolean | null; }): CancelablePromise; /** * Get asset rarity * Returns rarity (ranking and score) of an asset in a given collection * @returns RoutesAssetRarityResponse OK * @throws ApiError */ getAssetRarity({ address, network, tokenId, }: { /** Collection Address **/ address?: string; /** Network ID **/ network?: 'arbitrum-mainnet' | 'avalanche-mainnet' | 'bsc-mainnet' | 'celo-mainnet' | 'ethereum-goerli' | 'ethereum-mainnet' | 'ethereum-rinkeby' | 'ethereum-ropsten' | 'fantom-mainnet' | 'harmony-mainnet' | 'optimism-mainnet' | 'polygon-mainnet' | 'solana-mainnet'; /** Token ID **/ tokenId?: string; }): CancelablePromise; }