0

I am creating a function that takes in UTXOs at a script as a parameter. I know there is a function Plutus.Contract.utxoAt but how do i see what that will return ? I am still developing out my script and it is not on the chain yet.I need to see what utxoAt will return in order to pass it in to a function.

1 Answer 1

1

It will return a map containing the TxOutRefs of the provided address. Perhaps these are what you want your script to validate? Unless I'm misunderstanding your intention, you can't use these contract functions onchain. They are useful for offchain actions such as inspecting and building transactions.

1
  • Yeah , turns out I can just put that in a print statement and run it in playground. I’ll be able to see what it returns in the log.
    – szhang9921
    Apr 20, 2022 at 13:53

Your Answer

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

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