With Bitcoin script, is it possible to construct a timelocked address X in such a way that:

  • Players A and B (maybe more players) can send bitcoin to this address;
  • When the timelock expires,the player that had sent more bitcoin to address X can withdraw all bitcoin to himself;
  • If deposits where equal, then whoever is first - withdraws; ?
  • 3
    There's a few misunderstandings in your question. You don't construct timelocked addresses, you can construct time-locked transaction outputs. Each payment a player makes to an address results in a different transaction output - so each would need a timelock. There is no way to cross reference information from different transaction outputs in bitcoin script, nor can the script have access to the amount. – Mark H Jun 23 '20 at 11:16
  • Thanks for clarification! – Dmitry Dubinsky Jun 23 '20 at 13:17
  • I guess this: bitcoin.stackexchange.com/questions/23780/… answers my question as well. – Dmitry Dubinsky Jun 23 '20 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.