spacebudz / spacebudz

Let's go on an adventure, where will your SpaceBudz take you?

Home Page:https://spacebudz.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to add json in datum?

mailtodanish opened this issue · comments

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