@htsoft/reactjs-hooks
Version:
NFT information hepler for ReactJS
15 lines (14 loc) • 408 B
TypeScript
export declare type useNFTMetadataType = {
loading: boolean;
error?: Error;
metadata: any;
};
/**
* Fetches NFT Metadata from IPFS.
* This hook is cached, it can be called
* multiple times with no issue on one page.
*
* @param uri URI of metadata to fetch
* @returns @type useNFTMetadataType
*/
export declare function useNFTMetadata(uri?: string, initialData?: any): useNFTMetadataType;