This is a small initial project with more follow up work if everything works out.
Given 3 Ether addresses the smart contract should be executed once ETH has been received on one of those. The contract should wait 5 minutes, then check all three addresses again if the same address has deposited more .. on the same or the other 2 addresses. After 5 minutes, the contract should generate a random number, from 1-3. Depending on the number, funds should be moved to ether address 1, 2 or 3.
For the web API, there should be an input field where an address can entered. The website should display the 3 addresses provided, and how much was deposited on each one with the address entered. A countdown should mark the 5 minutes. Once the countdown is 0, the API displays the random number generated.
User with ETH address XXX sends 1 ETH to address 1. He goes to the web API, enters his address (XXX), and sees that 1 ETH is deposited on address 1, and the 5 minute countdown counting down. He deposits another 0.5 ETH in address nr. 2. The Web API updates. After 5 minutes, the smart contract generates a random number "3". Funds from address nr. 1 (1 ETH) and address nr. 2 (0.5 ETH) are automatically transferred to address Nr.3.
If you understand what I need, let's chat and discuss further! Looking forward to working with you!