DEV Community

Discussion on: Grant for the Web Hackathon Help Thread

Collapse
 
ekafyi profile image
Eka

From what I've seen, the payment is streamed real-time. Is there a way to defer or transfer this?

Rough use case I have in mind, eg. in a board game web app is as follows.

a) transfer

  • Four players (all with wallet pointers) play the game
  • During the session, payment is temporarily made to the site
  • Once session ends and there is a winner, the duration is calculated and the amount of money is transferred to the winner's waller pointer

b) defer/manually send payment for a specified duration

  • When players start the game, start a timer. No payment is started.
  • Once session ends and there is a winner, calculate duration and stream the payment to the winner.
    • For very short duration, the start/stop API would work. But say the session is 15 minutes long, is it possible to send payment worth 15 minutes to the winner's wallet? Is it at all possible?