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 textconst userStatus = await peanut.getUserRaffleStatus({ link, userAddress: '0x...', APIKey: '', })
It will return an object with the following interface:
plain textexport interface IRaffleLeaderboardEntry { address: string name: string | null amount: string usdValue: string | null tokenAddress: string tokenSymbol: string } export interface IUserRaffleStatus { requiresCaptcha: boolean userResults: IRaffleLeaderboardEntry | null }