cardano-scaling / hydra

Implementation of the Hydra Head protocol
https://hydra.family/head-protocol/
Apache License 2.0
280 stars 84 forks source link

Support ability to evaluate transaction cost via websocket. #736

Closed matiwinnetou closed 1 year ago

matiwinnetou commented 1 year ago

Ogmios has ability to evaluate cost of execution of a transaction, Hydra should offer something like this as well.

Response: ExUnits

pgrange commented 1 year ago

Hello @matiwinnetou, thank you for this issue.

A priori I wouldn't mind that much the cost of execution of a transaction inside a Hydra head as we're not running on L1. But I guess you have a good reason to ask for that information.

May I ask if you could share more about your context and why you need this (e.g. problem, challenge, pain, benefit)?

And if you also have any idea of what the API endpoint or message format should look like to solve your issue do not hesitate to share that with us too.

matiwinnetou commented 1 year ago

@KtorZ agreed to put this into Ogmios - he is just very busy with other tasks at the moment. At some point we will get it there and blockfrost will expose it.

Once it is done, perhaps then it could be a good occasion to see if Hydra could directly have this functionality.

In addition, we are today using Aiken binding to perform this evaluation offchain (on the machine submitting transactions).

Such a feature request is mostly for new users or languages where offchain is poorly supported (e.g. without Aiken bindings).