Function useContractMetadata

  • Beta

    Get the metadata of this contract

    Type Parameters

    • TContract extends ValidContractInstance

    Parameters

    • contract: RequiredParam<TContract>

      the ValidContractInstance instance of the contract to get the metadata for

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

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

    Example

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

    Twfeature

    ContractMetadata

Generated using TypeDoc