getCampaignReferralStats([payload,])
We expose some useful campaign information via the SDK, this is accessible via the getCampaignReferralStats method
Params
Param | Required | Type | Description |
---|---|---|---|
campaign.id | required | string | the id of the program/campaign to fetch stats for |
Response
Field | Type | Description |
---|---|---|
generated_at | Date | the timestamp the stats were generated at (we cache stats for 5 minutes) |
referrers | { user_id: string; external_id?: string; wallet_address?: string; email?: string; referral_count: number; links_claimed: number; join_date: Date; rewards: { amount: number; denomination: string; }[]; }[]; | A list of stats per active referrer on the program |
Examples
Last updated