Class ClaimReward<T>

Type Parameters

Hierarchy

Implements

Constructors

Properties

automatic?: boolean

If true, the reward is automatically given to the user upon completion.

gatedContent: {
    content?: string;
    params?: {
        [key: string]: any;
    };
    url?: string;
}

The gated content to display upon completion.

instanceId: string

The instance ID of the reward

metadata?: {
    description: string;
    image: string;
    name: string;
}

Metadata for the reward. This is public-facing, so do not include any gated content here. By default, we use the associated rewardId.

rewardId: string

The ID of the reward (either a pre-configured one or "custom")

Methods