cardano-node icon indicating copy to clipboard operation
cardano-node copied to clipboard

[FR] - cli query utxo cmd only display valid UTF-8 inline datum byetstrings

Open catch-21 opened this issue 3 years ago • 3 comments

Internal/External Internal if an IOHK staff member.

Area Other Any other topic (Delegation, Ranking, ...).

Describe the feature you'd like The CLI's query utxo cmd attempts to decode bytestring inline datum even if it is not a valid UTF-8 value. For example, the 915e807fa63409181d1533195753e3170587b1edc089be670ab483da8f9bcd48 hash looks like:

ReferenceTxInsScriptsInlineDatumsInBabbageEra (ScriptDataBytes "\145^\128\DEL\166\&4\t\CAN\GS\NAK3\EMWS\227\ETB\ENQ\135\177\237\192\137\190g\n\180\131\218\143\155\205H")

If possible, it would be good to only display the decoded value when it is valid UTF-8 and display the hex value when it is not.

A valid UTF-8 value looks like:

ReferenceTxInsScriptsInlineDatumsInBabbageEra (ScriptDataBytes "no-script-here")

Additional context / screenshots Node/Cli Version: 43393ac88faa99986ecaa0be409e8b6353f5e9fe

catch-21 avatar Jun 22 '22 20:06 catch-21

Closing this. If this is still relevant please reopen.

Jimbo4350 avatar Oct 27 '22 08:10 Jimbo4350

Still relevant.

catch-21 avatar Nov 05 '22 07:11 catch-21

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

github-actions[bot] avatar Oct 10 '25 02:10 github-actions[bot]