@htsoft/reactjs-hooks
Version:
NFT information hepler for ReactJS
22 lines (21 loc) • 762 B
TypeScript
import { ZNFTDataType } from '../fetcher/AuctionInfoTypes';
import { FetchGroupTypes } from '../fetcher/FetchResultTypes';
export declare type useZNFTType = {
currencyLoaded: boolean;
error?: string;
medias?: ZNFTDataType[];
};
declare type OptionsType = {
refreshInterval?: number;
initialData?: any;
loadCurrencyInfo?: boolean;
};
/**
* Fetches on-chain NFT data and pricing for the given zNFT id
*
* @param id id of zNFT to fetch blockchain information for
* @param options SWR flags and an option to load currency info
* @returns useNFTType hook results include loading, error, and chainNFT data.
*/
export declare function useAizaNFTGroup(ids?: string[], type?: FetchGroupTypes, options?: OptionsType): useZNFTType;
export {};