how to add json in datum?
mailtodanish opened this issue · comments
Mohd Ahshan Danish commented
How to use JSON to create datum?
const datum = Loader.Cardano..PlutusData.new_constr_plutus_data(
this.S.ConstrPlutusData.new(
this.S.Int.new_i32(1),
this.S.PlutusList.new()
)
);
I am using below cmd to generate Hash f file but how to do it in JS
cardano-cli transaction hash-script-data --script-data-file ${Json_file}.datum