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) 697 B
import { SWRConfiguration } from 'swr'; import { OpenseaNFTDataType } from '../fetcher/AuctionInfoTypes'; export declare type useOpenseaNFTType = { error?: string; data?: OpenseaNFTDataType; }; /** * Fetches on-chain NFT data and pricing for the given zNFT id * * @param contractAddress address of the contract * @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 useOpenseaNFT(contractAddress?: string, tokenId?: string, swrConfiguration?: SWRConfiguration, requireData?: boolean): useOpenseaNFTType;