import { APIResource } from "../../core/resource.js"; import * as MarketChartAPI from "./market-chart.js"; import { MarketChart, MarketChartGetParams, MarketChartGetResponse } from "./market-chart.js"; import * as TickersAPI from "./tickers.js"; import { TickerGetResponse, Tickers } from "./tickers.js"; import * as ContractAPI from "./contract/contract.js"; import { Contract, ContractGetContractAddressParams, ContractGetContractAddressResponse } from "./contract/contract.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; export declare class NFTs extends APIResource { contract: ContractAPI.Contract; marketChart: MarketChartAPI.MarketChart; tickers: TickersAPI.Tickers; /** * To query all the NFT data (name, floor price, 24hr volume, ...) based on the NFT * collection ID */ getID(id: string, options?: RequestOptions): APIPromise; /** * To query all supported NFTs with ID, contract address, name, asset platform ID * and symbol on CoinGecko */ getList(query?: NFTGetListParams | null | undefined, options?: RequestOptions): APIPromise; /** * To query all the supported NFT collections with floor price, market cap, volume * and market related data on CoinGecko */ getMarkets(query?: NFTGetMarketsParams | null | undefined, options?: RequestOptions): APIPromise; } export interface NFTGetIDResponse { /** * NFT collection ID */ id: string; /** * NFT collection asset platform ID */ asset_platform_id: string; /** * NFT collection all time highs */ ath: NFTGetIDResponse.Ath; /** * NFT collection all time highs change percentage */ ath_change_percentage: NFTGetIDResponse.AthChangePercentage; /** * NFT collection all time highs date */ ath_date: NFTGetIDResponse.AthDate; /** * NFT collection banner image URL */ banner_image: string; /** * NFT collection contract address */ contract_address: string; /** * NFT collection description */ description: string; /** * NFT collection block explorer links */ explorers: Array; /** * NFT collection floor price */ floor_price: NFTGetIDResponse.FloorPrice; /** * NFT collection floor price 14 days percentage change */ floor_price_14d_percentage_change: NFTGetIDResponse.FloorPrice14dPercentageChange; /** * NFT collection floor price 1 year percentage change */ floor_price_1y_percentage_change: NFTGetIDResponse.FloorPrice1yPercentageChange; /** * NFT collection floor price 24 hours percentage change */ floor_price_24h_percentage_change: NFTGetIDResponse.FloorPrice24hPercentageChange; /** * NFT collection floor price 30 days percentage change */ floor_price_30d_percentage_change: NFTGetIDResponse.FloorPrice30dPercentageChange; /** * NFT collection floor price 60 days percentage change */ floor_price_60d_percentage_change: NFTGetIDResponse.FloorPrice60dPercentageChange; /** * NFT collection floor price 7 days percentage change */ floor_price_7d_percentage_change: NFTGetIDResponse.FloorPrice7dPercentageChange; /** * NFT collection floor price in USD 24 hours percentage change */ floor_price_in_usd_24h_percentage_change: number; /** * NFT collection image URLs */ image: NFTGetIDResponse.Image; /** * NFT collection links */ links: NFTGetIDResponse.Links; /** * NFT collection market cap */ market_cap: NFTGetIDResponse.MarketCap; /** * NFT collection market cap 24 hours percentage change */ market_cap_24h_percentage_change: NFTGetIDResponse.MarketCap24hPercentageChange; /** * NFT collection market cap rank */ market_cap_rank: number | null; /** * NFT collection name */ name: string; /** * NFT collection native currency */ native_currency: string; /** * NFT collection native currency symbol */ native_currency_symbol: string; /** * Number of unique addresses owning the NFTs */ number_of_unique_addresses: number; /** * Number of unique addresses 24 hours percentage change */ number_of_unique_addresses_24h_percentage_change: number; /** * NFT collection one day average sale price */ one_day_average_sale_price: number | null; /** * NFT collection one day average sale price 24 hours percentage change */ one_day_average_sale_price_24h_percentage_change: number; /** * NFT collection one day sales */ one_day_sales: number | null; /** * NFT collection one day sales 24 hours percentage change */ one_day_sales_24h_percentage_change: number; /** * NFT collection symbol */ symbol: string; /** * NFT collection total supply */ total_supply: number; /** * NFT collection user favorites count */ user_favorites_count: number; /** * NFT collection volume in 24 hours */ volume_24h: NFTGetIDResponse.Volume24h; /** * NFT collection volume in 24 hours percentage change */ volume_24h_percentage_change: NFTGetIDResponse.Volume24hPercentageChange; /** * NFT collection volume in USD 24 hours percentage change */ volume_in_usd_24h_percentage_change: number; /** * NFT collection web slug */ web_slug: string; } export declare namespace NFTGetIDResponse { /** * NFT collection all time highs */ interface Ath { native_currency?: number; usd?: number; } /** * NFT collection all time highs change percentage */ interface AthChangePercentage { native_currency?: number; usd?: number; } /** * NFT collection all time highs date */ interface AthDate { native_currency?: string; usd?: string; } interface Explorer { link?: string; name?: string; } /** * NFT collection floor price */ interface FloorPrice { native_currency?: number; usd?: number; } /** * NFT collection floor price 14 days percentage change */ interface FloorPrice14dPercentageChange { native_currency?: number; usd?: number; } /** * NFT collection floor price 1 year percentage change */ interface FloorPrice1yPercentageChange { native_currency?: number; usd?: number; } /** * NFT collection floor price 24 hours percentage change */ interface FloorPrice24hPercentageChange { native_currency?: number; usd?: number; } /** * NFT collection floor price 30 days percentage change */ interface FloorPrice30dPercentageChange { native_currency?: number; usd?: number; } /** * NFT collection floor price 60 days percentage change */ interface FloorPrice60dPercentageChange { native_currency?: number; usd?: number; } /** * NFT collection floor price 7 days percentage change */ interface FloorPrice7dPercentageChange { native_currency?: number; usd?: number; } /** * NFT collection image URLs */ interface Image { small?: string; small_2x?: string; } /** * NFT collection links */ interface Links { discord?: string; homepage?: string; twitter?: string; } /** * NFT collection market cap */ interface MarketCap { native_currency?: number; usd?: number; } /** * NFT collection market cap 24 hours percentage change */ interface MarketCap24hPercentageChange { native_currency?: number; usd?: number; } /** * NFT collection volume in 24 hours */ interface Volume24h { native_currency?: number; usd?: number; } /** * NFT collection volume in 24 hours percentage change */ interface Volume24hPercentageChange { native_currency?: number; usd?: number; } } export type NFTGetListResponse = Array; export declare namespace NFTGetListResponse { interface NFTGetListResponseItem { /** * NFT collection ID */ id: string; /** * NFT collection asset platform ID */ asset_platform_id: string; /** * NFT collection contract address */ contract_address: string; /** * NFT collection name */ name: string; /** * NFT collection symbol */ symbol: string; } } export type NFTGetMarketsResponse = Array; export declare namespace NFTGetMarketsResponse { interface NFTGetMarketsResponseItem { /** * NFT collection ID */ id: string; /** * NFT collection asset platform ID */ asset_platform_id: string; /** * NFT collection contract address */ contract_address: string | null; /** * NFT collection description */ description: string | null; /** * NFT collection floor price */ floor_price: NFTGetMarketsResponseItem.FloorPrice; /** * NFT collection floor price 24 hours percentage change */ floor_price_24h_percentage_change: NFTGetMarketsResponseItem.FloorPrice24hPercentageChange; /** * NFT collection floor price in USD 24 hours percentage change */ floor_price_in_usd_24h_percentage_change: number; /** * NFT collection image URLs */ image: NFTGetMarketsResponseItem.Image; /** * NFT collection market cap */ market_cap: NFTGetMarketsResponseItem.MarketCap; /** * NFT collection market cap 24 hours percentage change */ market_cap_24h_percentage_change: NFTGetMarketsResponseItem.MarketCap24hPercentageChange; /** * NFT collection name */ name: string; /** * NFT collection native currency */ native_currency: string; /** * NFT collection native currency symbol */ native_currency_symbol: string; /** * Number of unique addresses owning the NFTs */ number_of_unique_addresses: number | null; /** * Number of unique addresses 24 hours percentage change */ number_of_unique_addresses_24h_percentage_change: number; /** * NFT collection one day average sale price */ one_day_average_sale_price: number | null; /** * NFT collection one day average sale price 24 hours percentage change */ one_day_average_sale_price_24h_percentage_change: number; /** * NFT collection one day sales */ one_day_sales: number | null; /** * NFT collection one day sales 24 hours percentage change */ one_day_sales_24h_percentage_change: number; /** * NFT collection symbol */ symbol: string; /** * NFT collection total supply */ total_supply: number | null; /** * NFT collection volume in 24 hours */ volume_24h: NFTGetMarketsResponseItem.Volume24h; /** * NFT collection volume in 24 hours percentage change */ volume_24h_percentage_change: NFTGetMarketsResponseItem.Volume24hPercentageChange; /** * NFT collection volume in USD 24 hours percentage change */ volume_in_usd_24h_percentage_change: number; } namespace NFTGetMarketsResponseItem { /** * NFT collection floor price */ interface FloorPrice { native_currency?: number; usd?: number; } /** * NFT collection floor price 24 hours percentage change */ interface FloorPrice24hPercentageChange { native_currency?: number; usd?: number; } /** * NFT collection image URLs */ interface Image { small?: string; small_2x?: string; } /** * NFT collection market cap */ interface MarketCap { native_currency?: number; usd?: number; } /** * NFT collection market cap 24 hours percentage change */ interface MarketCap24hPercentageChange { native_currency?: number; usd?: number; } /** * NFT collection volume in 24 hours */ interface Volume24h { native_currency?: number; usd?: number; } /** * NFT collection volume in 24 hours percentage change */ interface Volume24hPercentageChange { native_currency?: number; usd?: number; } } } export interface NFTGetListParams { /** * Sort order of responses. */ order?: 'h24_volume_usd_asc' | 'h24_volume_usd_desc' | 'h24_volume_native_asc' | 'h24_volume_native_desc' | 'floor_price_native_asc' | 'floor_price_native_desc' | 'market_cap_native_asc' | 'market_cap_native_desc' | 'market_cap_usd_asc' | 'market_cap_usd_desc'; /** * Page through results. */ page?: number; /** * Total results per page. Valid values: 1...250 */ per_page?: number; } export interface NFTGetMarketsParams { /** * Filter result by asset platform (blockchain network). \*refers to * [`/asset_platforms`](/reference/asset-platforms-list) filter=`nft`. */ asset_platform_id?: string; /** * Sort results by field. Default: `market_cap_usd_desc` */ order?: 'h24_volume_native_asc' | 'h24_volume_native_desc' | 'h24_volume_usd_asc' | 'h24_volume_usd_desc' | 'market_cap_usd_asc' | 'market_cap_usd_desc'; /** * Page through results. Default value: 1 */ page?: number; /** * Total results per page. Default value: 100 Valid values: 1...250 */ per_page?: number; } export declare namespace NFTs { export { type NFTGetIDResponse as NFTGetIDResponse, type NFTGetListResponse as NFTGetListResponse, type NFTGetMarketsResponse as NFTGetMarketsResponse, type NFTGetListParams as NFTGetListParams, type NFTGetMarketsParams as NFTGetMarketsParams, }; export { Contract as Contract, type ContractGetContractAddressResponse as ContractGetContractAddressResponse, type ContractGetContractAddressParams as ContractGetContractAddressParams, }; export { MarketChart as MarketChart, type MarketChartGetResponse as MarketChartGetResponse, type MarketChartGetParams as MarketChartGetParams, }; export { Tickers as Tickers, type TickerGetResponse as TickerGetResponse }; } //# sourceMappingURL=nfts.d.ts.map