import { BaseNsPaginationResData } from '../../nftscan-type'; interface Attributes { /** * The attribute name */ attribute_name: string; /** * The value for the attribute name */ attribute_value: string; /** * How many items have this attribute value */ percentage: string; } /** * The parameters of Asset, which represents a unique digital item whose ownership is managed by the blockchain * - details: {@link https://docs.nftscan.com/nftscan/Asset%20Model} */ export interface Asset { /** * The amount of the NFT (Default 1 for the ERC-721 NFT) */ amount: string; /** * List of attributes */ attributes: Array; /** * The content type */ content_type: string; /** * The content URI to display */ content_uri: string; /** * The contract address */ contract_address: string; /** * The name of the contract */ contract_name: string; /** * The token ID of the NFT in Hex */ contract_token_id: string; /** * The description to display */ description: string; /** * The erc type of the NFT (erc721 or erc1155) */ erc_type: string; /** * External link to the original website */ external_link: string; /** * The image URI to display */ image_uri: string; /** * The latest trade price for the item */ latest_trade_price: number; /** * The latest trade symbol for the item */ latest_trade_symbol: string; /** * The latest trade timestamp in milliseconds for the item */ latest_trade_timestamp: number; /** * The latest trade token for the item */ latest_trade_token: string; /** * The metadata in JSON format */ metadata_json: string; /** * The price when the item was minted (null if the item is an ERC-1155 NFT) */ mint_price: number; /** * The timestamp in milliseconds when the item was minted */ mint_timestamp: number; /** * The transaction hash when the item was minted */ mint_transaction_hash: string; /** * The user address who minted the item */ minter: string; /** * The name */ name: string; /** * The unique ID generated for the item by NFTScan */ nftscan_id: string; /** * The image URI stored by NFTScan (null if not stored by NFTScan) */ nftscan_uri: string; /** * The timestamp in milliseconds when the item was owned (null if the item is an ERC-1155 NFT) */ own_timestamp: number; /** * The user address who owns the item now (null if the item is an ERC-1155 NFT) */ owner: string; /** * The rarity rank for the item */ rarity_rank: number; /** * The rarity score for the item */ rarity_score: number; /** * The small image URI stored by NFTScan (null if not stored by NFTScan) */ small_nftscan_uri: string; /** * The token ID of the NFT in Number */ token_id: string; /** * The token URI */ token_uri: string; } /** * The common response data of EVM Collection and asset */ export interface CollectionAssets { /** * List of Asset Model */ assets: Array; /** * The contract address */ contract_address: string; /** * The name of the contract */ contract_name: string; /** * The description */ description: string; /** * The floor price of the collection */ floor_price: number; /** * Whether the collection is spam contract marked by NFTScan */ is_spam: boolean; /** * How many items for the collection */ items_total: number; /** * The logo URL */ logo_url: string; /** * Whether the collection is verified on OpenSea */ opensea_verified: boolean; /** * How many items the account address owns */ owns_total: number; /** * The symbol */ symbol: string; /** * Whether the collection is verified on NFTScan */ verified: boolean; } /** * The common response data of EVM asset related API */ export interface CommonAssetResponse extends BaseNsPaginationResData { content: Array; } /** * The response data of EVM API 'getMultiChainAssets' */ export interface QueryMultiChainAssets { /** * The short name of chain */ chain: string; /** * List of Collection Asset Model */ collection_assets: Array; /** * Whether the `collection_assets` result exceeds max items. Note: If the account address owns more than 2000 NFTs in total, the NFTs returned will be restricted to less than 2000. In this case, you can request `getAssetsByAccount` for all NFTs the account address owns by paging query. */ exceed_max_items: boolean; }