Winner Verifier

Verify the fairness of any Wenmint Sweepstakes raffle directly in your browser. No data is sent anywhere.

1. Re-calculate winningIndex

Find outputSeed in the VRF RandomWordsFulfilled log on Etherscan. Max supply is the collection size shown on OpenSea. Off-chain count is returned by the backend API (/merkle) or the DrawRequested event.

2. Check the off-chain Merkle root (optional)

You can paste the JSON array of invite-based addresses or choose a file downloaded from /merkle.

How does it work?

// Solidity logic reproduced in JS
word0 = keccak256(abi.encode(outputSeed, 0))
winningIndex = word0 % (MAX_SUPPLY + offchainCount)

if (winningIndex < MAX_SUPPLY)
    -> on-chain ticket wins (tokenId = winningIndex)
else
    -> off-chain ticket #(winningIndex - MAX_SUPPLY) wins