Get User Raffle Status

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.

const userStatus = await peanut.getUserRaffleStatus({
                link,
                userAddress: '0x...',
                APIKey: '',
            })

It will return an object with the following interface:

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
}

Last updated