getAllocations
Parameters
Parameter
Type
Required
Description
Returns: AllocationResponse
Field
Type
Required
Description
Example
const allocations = await product.getAllocations**({
recipientAddress: '0x742d35Cc...'
});
if (!allocations.isEligible) {
console.log('Cannot mint:', allocations.reason);
return;
}
console.log('Total alloted:', allocations.quantity);Code
Message
Last updated