useSharedMetadata

Get the shared metadata of an Open Edition NFT contract

Example

const {
data: sharedMetadata,
isLoading,
error,
} = useSharedMetadata(contract);
function useSharedMetadata(
contract: RequiredParam<NFTContract>,
): UseQueryResult<BasicNFTInput | undefined>;

Parameters

Instance of a NFTContract

Type

let contract: RequiredParam<NFTContract>;

Returns

let returnType: UseQueryResult<BasicNFTInput | undefined>;

Query result object that includes the shared metadata of the contract