Blockchain development - Solana program development

Job ID: 31431370

Budget: $750 – $1,500 USD

This is a proof of concept implementation and upon successful delivery the developer maybe engaged for the actual project.

A Solana program is needed that should act like a lottery system. The implementation is similar to the lottery on pancake swap with a few changes.
→ A program to lock & release SOL.
→ Javascript bindings to issue instructions
→ Simple UI to interact with the program.
→ Off chain program to Issue instructions
Use case:
→ User browses the page and connect Solana wallet (Sollet or Phantom)

→ User agrees to buy a lottery ticket by clicking on a button.
→ System requests for approval in the wallet and a transaction is made for 1 SOL & the amount is now locked in a program/contract.
→ Systems saves the user's public address in an offchain database.
Assuming 50 users have performed these actions. contract now holds a balance of 50 SOL.
→ [MANUAL LOTTERY DRAW to SELECT 3 RANDOM ADDRESSES FROM THE OFFCHAIN DATABASES]
→ An offchain program is executed to transfer the winnings:
→ Address A - 25 SOL
→ Address B - 15 SOL
→ Address C - 5 SOL
Related categories: JavaScript Blockchain Rust