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) 684 B
import { ReserveAuctionPartialWithMediaFragment } from '../graph-queries/zora-graph-types'; import { SWRConfiguration } from 'swr'; export declare type useAuctionHouseType = { loading: boolean; error?: string; data?: ReserveAuctionPartialWithMediaFragment[]; }; /** * Fetches on-chain NFT auction data for the given curator * * @param curators * @param approved * @returns useNFTType hook results include loading, error, and data (ReserveAuctionPartialFragment). */ export declare function useAuctions(curators?: readonly string[], approved?: boolean | null, options?: SWRConfiguration<ReserveAuctionPartialWithMediaFragment[]>): useAuctionHouseType;