DOCS

useContractMetadata

Get the metadata of this contract

Example

const { data: contractMetadata, isLoading } =
  useContractMetadata(contract);

Parameters

Returns

a response object that includes the contract metadata of the deployed contract

type ReturnType = UseQueryResult<
  RequiredParam<TContract> extends undefined
    ? undefined
    : Awaited<ReturnType<TContract["metadata"]["get"]>>,
  unknown
>;