0

I want to use the value returned from the function utxosAt scriptAddress. What is the value that this function will return ? Is it going to be in a list , json etc.....

1 Answer 1

1

A (Map TxOutRef ChainIndexTxOut) see here.

A good example can be found in the pioneer program of how to utilize that function:

{...}
utxos <- Map.filter (isSuitable pkh) <$> utxosAt scrAddress
{...}
where
   isSuitable :: PubKeyHash -> TxOutTx -> Bool

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.