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
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