Skip to main content

claimConditionsQuery() function

Signature:

export declare function claimConditionsQuery(program: RequiredParam<NFTDrop>): {
queryKey: readonly [
"__tw__",
"sol",
RequiredParam<import("@thirdweb-dev/sdk/solana").Network>,
"program",
string | undefined,
"claimConditions",
];
queryFn: () => Promise<{
primarySaleRecipient: string;
startTime: Date | null;
price: {
value: string;
displayValue: string;
};
currencyAddress: string | null;
maxClaimable: string;
sellerFeeBasisPoints: number;
totalAvailableSupply: number;
lazyMintedSupply: number;
claimedSupply: number;
isReadyToClaim: boolean;
}>;
enabled: boolean;
};

Parameters

ParameterTypeDescription
programRequiredParam<NFTDrop>

Returns:

{ queryKey: readonly ["__tw__", "sol", RequiredParam<import("@thirdweb-dev/sdk/solana").Network>, "program", string | undefined, "claimConditions"]; queryFn: () => Promise<{ primarySaleRecipient: string; startTime: Date | null; price: { value: string; displayValue: string; }; currencyAddress: string | null; maxClaimable: string; sellerFeeBasisPoints: number; totalAvailableSupply: number; lazyMintedSupply: number; claimedSupply: number; isReadyToClaim: boolean; }>; enabled: boolean; }