UNPKG

@cross-nft-marketplace/auction-house-nft-hooks

Version:

Generic react hooks for fetching cross-nft-marketplace auctions, nfts, and data on arbitary 721s. Powers nft-components.

16 lines (15 loc) 746 B
import { NFTDataType } from '../fetcher/AuctionInfoTypes'; import { SWRConfiguration } from 'swr'; export declare type useNFTType = { error?: string; data?: NFTDataType; }; /** * Fetches on-chain NFT data and pricing for the given NFT id and contract address * * @param contractAddress address of the contract, if null and tokenID is passed in, a ZNFT is assumed * @param tokenId id of NFT to fetch blockchain information for * @param swrConfiguration SWR flags configuration * @returns useNFTType hook results include loading, error, and chainNFT data. */ export declare function useZoraNFTIndexer(contractAddress?: string, tokenId?: string, swrConfiguration?: SWRConfiguration, requireData?: boolean): useNFTType;