Can someone please explain the difference between the two sets of constraints supplied to submitTxConstraintsWith?

1st question: The function takes two parameters, referred to as "lookups" and "tx" in the examples, which are both a set of constraints. So what differentiates the "lookup" constraints from the "tx"? Another way to frame this is, what constraints go into "lookups" and what constraints go into "tx"?

2nd question: Conceptually, what does the term "lookup" refer to? What is being looked up? The term is used throughout the documentation without any definition I can find.

1 Answer 1


"tx" constraints determine what goes into the transaction. "lookup" constraints determine which information is needed to validate the transaction, i.e. information from the blockchain or from the wallet.

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.