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) 724 B
import React from 'react'; import { NetworkIDs } from '../constants/networks'; import { MediaFetchAgent } from '../fetcher/MediaFetchAgent'; export declare type FetchContext = InstanceType<typeof MediaFetchAgent>; export declare const defaultFetchAgent: MediaFetchAgent; export declare const NFTFetchContext: React.Context<MediaFetchAgent>; declare type NFTFetchConfigurationProps = { networkId: NetworkIDs; children: React.ReactNode; infuraApiKey?: string; zdkApiKey?: string; batchScheduleTimeoutMs?: number; }; export declare const NFTFetchConfiguration: ({ networkId, children, infuraApiKey, zdkApiKey, batchScheduleTimeoutMs, }: NFTFetchConfigurationProps) => JSX.Element; export {};