Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Conditionally) Include resolved Datums & Scripts in responses. #140

Open
KtorZ opened this issue Oct 25, 2023 Discussed in #139 · 0 comments
Open

(Conditionally) Include resolved Datums & Scripts in responses. #140

KtorZ opened this issue Oct 25, 2023 Discussed in #139 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@KtorZ
Copy link
Member

KtorZ commented Oct 25, 2023

Discussed in #139

Originally posted by Cauterization October 17, 2023
In plutus-ledger DecoratedTxOut is the main type to which all logic is tied. Accordingly, most of the requests to kupo in our application are to receive a single DecoratedTxOut or Map from TxId's to DecoratedTxOut's.
We (and many other users I suppose) use kupo as a lightweight alternative to plutus-chain-index. However, while plutus-chain-index can retrieve a map of any size with a single request, it may require up to three requests to get one DecoratedTxOut with kupo (to get match, to get datum from its hash, and, in case of ScriptDecoratedTxOut - to get validator from script address). And this situation gets even worse when requesting many DecoratedTxOut's - this easily can take several hundred requests. We managed to get rid of this bottleneck in some parts of our application, but in some places this cannot be done without rewriting a huge part of cardano libraries
So maybe it would be possible to add a new endpoint that will do all these requests to database at once.

@KtorZ KtorZ added the enhancement New feature or request label Oct 25, 2023
@KtorZ KtorZ added this to the v2.8.0 milestone Oct 25, 2023
@KtorZ KtorZ self-assigned this Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant