Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[FR] - More consistent options for giving redeemers

Open
#1,229 6 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

needs investigation

Internal/External
External

Area
Plutus

Describe the feature you'd like
Redeemers can be given as JSON directly on the command line (*-redeemer-value) or as JSON files (*-redeemer-file).
However, these are two different flavours of JSON: The one in the file has to follow the detailed schema for script data and leads to the familiar structure with constructors, while the one on the command line can be any free form JSON.

So, it is not possible to give constructor-type redeemers on the command line (even if they are ridiculously simple) and it is not possible to give free form JSON as a file (even if it is very complex).

I'd propose to have all combinations – *-redeemer-schema-value, *-redeemer-schemaless-value, *-redeemer-schema-file, *-redeemer-schemaless-file – available and the current ones as aliases for backwards compatibility.

The same should probably be done for all the variants of datums.

Describe alternatives you've considered
We could leave it as it is. We can work around it. It was just a point that was confusing to me when I encountered it.

We could also remove one of the two variants entirely. But I guess both have use cases. So that is not really an option.

Dominant language
Haskell
Stars
71
Forks
24
Avg merge
1d 5h
Merged PRs (30d)
9

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from IntersectMBO/cardano-cli

All issues in IntersectMBO/cardano-cli

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.