I have quotes for about 160 dollars to create the following program…
You do not need to know anything about cryptocurrency to do this project. I do not know any internet related programming languages. I am building websites with Bubble (www.bubble.io)…
As such, I am building something for a cryptocurrency project, https://www.diviproject.org. It’s basically a lottery using the funds that will be stored in the wallet.
Please understand, that all code written for this project will be audited separately to ensure there is no funny business. so please don’t bother with any funny business.
accept text strings that will be sent to it via POST commands. These will be crypto addresses, and they just need to be kept in a list. The list may become 1000’s of entries long. Each string will look like: DEde2anept9yJC4nbUr4dPvEzNhmiZQudz, it will always start with a D.
Check the Divi blockchain (via diviscan or explorer API), and run a raffle every LOTTERY_INTERVAL blocks (starting on block FIRST_LOTTERY). The raffle will send NUM_OF_WINNERS winners a PRIZE amount of Divi. the winners are simply randomly chosen addresses from the list of addresses. The constants LOTTERY_INTERVAL, FIRST_LOTTERY, NUM_OF_WINNERS, and PRIZE should be defined in a config file. For example, the lottery may be run every 20,000 blocks starting on block number 10000. and it could send out 5000 Divi to 10 winners out of the address list created in step 1. Before winnings are sent out, the balance of the wallet much be checked with a “getbalance” command. The balance of the wallet must be higher than the combined winnings that will be sent out plus 5000 DIVI to cover fees.
when queried by a GET command, Divimator should return the following information:
a)The result of the “getBalance” command
b) The number of addresses in the list
c) the number of blocks until the next Divimator lottery
4)after the Divimator raffle is executed, the address list should be deleted and a new one started.
Extra Credit: every 10080 blocks A blockchain lottery is performed. The winners of that lottery should be excluded from the DiviMater lottery. The winners can be found through the diviscan API on block lottery number* 10080)
Example: the fifth lottery happened on block 50400. The transactions can be found here:
The transaction with 10 items is the lottery and the winners can be found here:
Every address sent a multiple of 25200 was a winner. Those winners should be excluded from the winners of DiviMator.
Along with the constants to run the lottery the config file will need the password to unlock the wallet. For this document I’ll call it PassWord. it will also need a constant, UNLOCKTIME, which will be how long the wallet is unlocked in order to send out funds.
The CLI commands required for this project will be:
walletpassphrase PassWord UNLOCKTIME
sendtoaddress “WinningAddress” PRIZE
The project is over when I can perform an entire lottery sequence using Postman and setting up the config file. So knowledge of how the DiviMator API will be used is not required.