useActiveClaimCondition

Hook for getting the active claim condition for a given drop contract.

Available for contracts that implement the "ClaimConditions" interface; such as NFT Drop , Edition Drop , and Token Drop .

Example

import {
useActiveClaimCondition,
useContract,
} from "@thirdweb-dev/react";
function App() {
const { contract } = useContract(contractAddress);
const { data, isLoading, error } =
useActiveClaimCondition(contract);
}

Parameters

Returns

A query result object with the currently active claim condition