Giveaway Passport

Provider Learn

Giveaway Determination Types

Determination type controls how a winner is selected and when. Pick the mode that matches your fairness and operational model.

Type 0

No Determination

The contract records entries only. No winner selection happens on-chain.

Type 1

Provider Determination

Provider manually declares a winner passport ID with an on-chain transaction.

Type 2

Self Determination

Provider triggers on-chain random winner selection via contract logic.

Type 3

Auto Self Determination

Requires an end time. After end, your automation system can call auto-draw to finalize winner selection on-chain.

Time Windows

  • Start and end are optional. Use `0`/empty for no bound.
  • If both are set, end must be after start.
  • Type 3 (auto self determination) requires an end time.

Handshake Option

If enabled, the winning passport holder confirms receipt on-chain. This gives providers and entrants auditable delivery confirmation.

At creation time you can also choose who pays confirmation gas: entrant pays (winner submits confirmation) or provider pays (provider submits `confirmReceiptByProvider`).

Back to Provider

Configure determination type while creating giveaways.

More Learning

Read the core Web3 and Base L2 overview.