This is about Week3/Homework1 of the third Plutus-Pioneer-Program.

Why does the grab endpoint need two slots to resolve and release the funds back to the wallet1?

  1. This will not create a transaction Wait for 1 slot after the grab endpoint was called

  2. This will create the transaction

Wait for 2 slots after the grab endpoint was called

Code to the contract

  • A hunch: maybe because of Constraints.mustValidateIn? Try changing/removing that and see what happens. Jan 31, 2022 at 12:49

1 Answer 1


This happens because 1 slot is not enough to meet the interval when using Constraints.mustValidateIn.

Check this post for more information on why that happens: Constraints.mustValidateIn in a StateMachine

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.