2 votes
Accepted

How do Endpoints work?

In Plutus apps, the mechanism for requesting inputs is called "endpoints". All endpoints that an app wants to use must be declared as part of the type of the app. The set of all endpoints of ...
1 vote

Using custom datum for `mustPayToOtherScript` in off-chain code

As far as I know your datum types are required to conform the Data type. Try: PlutusTx.makeIsDataIndexed ''RandomDatum [ ('RandomDatum, 0) ] {...} let randomDatum = RandomDatum { ...params... } ...

Only top scored, non community-wiki answers of a minimum length are eligible