Skip to content
Developer Handbook

Cash Improvement Proposals

OP_LOTTERY

On this page

Pre-CHIP · Script

Explores a lottery-like opcode to create incentives in some BCH applications.

Original proposal

Proposal overview

Technical summary by BCH Ninja.

This early design idea discusses collecting contributions into a pool and returning part of it to a selected contributor after a deadline. The proposed use cases include purchase incentives and fundraising.

The discussion explores using block data in participant selection and identifies problems with biased entropy, participant eligibility, and payout enforcement. It leaves those issues open for proposal development.