logo
ℹ️
These functions are not actively maintained! Use at your own risk!
The getUserRaffleStatus function will return the status of the user for a specific raffle.
plain text
const userStatus = await peanut.getUserRaffleStatus({ link, userAddress: '0x...', APIKey: '', })
It will return an object with the following interface:
plain text
export interface IRaffleLeaderboardEntry { address: string name: string | null amount: string usdValue: string | null tokenAddress: string tokenSymbol: string } export interface IUserRaffleStatus { requiresCaptcha: boolean userResults: IRaffleLeaderboardEntry | null }
Share